Amid all the chaos of Brexit, it is hard at times to make sense of the choices and the options that face the UK. 

The 2016 referendum was a non-binding vote won, we now know, by unlawful campaigning. 

It invited no views on our future relationship with the EU and no preparation or planning was undertaken in anticipation of a vote to leave. 

Read more: Exports to EU support 40,000 jobs in and around Glasgow, as no-deal cliff-edge fears mount

The UK Government’s handling of the referendum’s aftermath and the negotiations with the EU have been inept, misguided and incoherent. 

The UK Parliament has a critical role to play in how this whole process ends and what shape the future takes. 

Events move fast and what seemed settled last week can be up in the air the next.

It was with a view to bringing greater clarity and certainty to the process that my colleagues and I embarked on a legal case to answer a very straightforward question. 

If, for whatever reason, the UK Parliament was to wish to instruct the UK Government to revoke the Article 50 letter sent to the EU in March 2017, could it do so knowing for certain what legal effect that would have? 

Read more: Scots battle to win MPs' right to halt Brexit 'likely to succeed'

In particular, if the UK chose to remain in the EU, could it do so by withdrawing the Prime Minister’s letter?

Only the Court of Justice of the EU can answer that question following a referral by a UK court. 

It has been a pleasure to work with politicians from across the political spectrum and from three legislatures to seek and ultimately be successful in having that referral made. 

The answer could have profound implications for the future of all of us and will provide a degree of clarity that may assist Parliament in its deliberations.

  • Andy Wightman is the Scottish Green Party MSP for Lothian