Question: Which movie staring Mikkel Boe Folsgaard is set in the 18th century, at the court of the mentally ill King Christian VII of Denmark?

Context paragraphs:
Princess Vilhelmine Marie of Denmark: Princess Vilhelmine Marie of Denmark and Norway (Danish: "Vilhelmine af Danmark" ; German: "Wilhelmine von Dänemark" ) (18 January 1808, Kiel, Duchy of Schleswig – 30 May 1891 in Glücksburg, Schleswig-Holstein, Prussia) was the youngest daughter of Frederick VI of Denmark and his wife and first cousin Marie Sophie of Hesse-Kassel.  Her paternal grandfather, Christian VII of Denmark, had major psychological problems and as result, her father had been acting as Regent since 1784.  Within two months of her birth, Vilhelmine Marie's grandfather died of a cerebral aneurysm and her father ascended as king.  At the time of her death, she was the last surviving grandchild of Christian VII.

Nissen (noble family): Nissen, von Nissen and von Nissen-Benzon is a Danish family of land owners from Southern Jutland, which was partially ennobled in 1710.  It is descended from "Henrik Lorentzen (Schack)" (born "ca."  1450), who in 1484 was granted the estate of Oldemorstoft (a so-called free estate, "frigård", i.e. a privileged estate) as a fief by John, King of Denmark.  Members of the family were land owners and from the 17th century war commissioners, judges, councillors of state (etatsråd), Governors (stiftamtmann), Supreme Court Justice and General in Denmark.  Family members served as Governor of Tranquebar, plantation owner and Vice Governor of the Danish West Indies in the 18th century.  In Denmark, the family owned the estates of Oldemorstoft, Lerbæk, Rugballegaard, Brantbjerg, the Stamhus of Skærsø and others between the 15th century and the 18th century.  In the 17th century, King Christian IV of Denmark was a guest at Oldemorstoft several times.  The name "von Nissen" was used by the noble branch and military officers of the family.

The Dictator (1935 film): The Dictator is a 1935 British historical drama film directed by Victor Saville and starring Clive Brook, Madeleine Carroll, Emlyn Williams and Helen Haye.  The film depicts a dramatic episode in Danish history: the tumultuous relationship between King Christian VII of Denmark and his English consort Caroline Matilda in 18th century Copenhagen and the Queen's tragic affair with the royal physician and liberal reformer Johann Friedrich Struensee.  The film is loosely based on real events.

Sölvi Helgason: Sölvi Helgason (August 16, 1820 – November 27, 1895) was an artist, philosopher and drifter in Iceland in the 19th century.  If he hadn't been arrested, we might not know anything more about Sölvi than folk tales about his life.  He never went to school, but was known to always be painting and writing.  It is posited from his writings that he was mentally ill and suffered from paranoia; he was known to accuse people of stealing his work.  He often referred to himself by made-up names as well as names of playwrights, artists, musicians and philosophers: Sókrates, Plato, Sólon, Melankton, Sölvi Spekingur, Sjúlvi, Húsfriður, Sjúlvi Hinn Vitri, Húmboldt, Spinoza, Göte, Hegel, Schiller, Schott, Newton, Caesar, Leonardo da Vinci, Vasco da Gama, Kant, Lamertine, Skagfjörð Norðlandíus, Beethoven and Shakespeare.  Sölvi was convicted several times for vagrancy, falsifying his traveling papers or passport and for petty theft.  He was often flogged and spent three years in prison in Denmark.  Today approximately 100 of Sölvi's artworks and manuscripts are in the collection of the National and University Library of Iceland and the National Museum of Iceland.

Mikkel Følsgaard: Mikkel Boe Følsgaard (born 1 May 1984 in Rønne) is a Danish actor.  In 2012 he won the Silver Bear for Best Actor at the 62nd Berlin International Film Festival for his portrayal of King Christian VII in the "A Royal Affair", his feature film debut, while still studying at the Danish National School of Theatre and Contemporary Dance.

John P. Gray (psychiatrist): John Perdue Gray (Aug 6, 1825 - Nov 29, 1886) was an American psychiatrist at the forefront of biological psychiatric theory during the 19th century.  Gray was the superintendent of Utica State Hospital in New York and was also the editor of the "American Journal of Insanity", the precursor to the "American Journal of Psychology".  Gray believed that insanity was always due to physical causes and that the mentally ill should be treated as physically ill.

Fredensborg (slave ship): Fredensborg was a frigate built in Copenhagen in 1752 or 1753.  She was named "Cron Prindz Christian" after the prince who was to become king Christian VII of Denmark and Norway, and was fitted out as a slave ship.  After an unsuccessful stint in the triangular trade, her operational area was limited to the Caribbean, where she sailed as a trader until 1756.  The ship was then purchased by another Danish company, renamed "Fredensborg" after one of the Danish-Norwegian trading stations on the African Gold Coast, and put under the command of Captain Espen Kiønigs.  On 1 December 1768 "Fredensborg" sank in a storm off Tromøy in Arendal, Norway.

A Royal Affair: A Royal Affair (Danish: En kongelig affære ) is a 2012 historical drama film directed by Nikolaj Arcel, starring Mads Mikkelsen, Alicia Vikander and Mikkel Følsgaard.  The story is set in the 18th century, at the court of the mentally ill King Christian VII of Denmark, and focuses on the romance between his wife, Caroline Matilda of Great Britain, and the royal physician Johann Friedrich Struensee.

The Visit of the Royal Physician: The Visit of the Royal Physician (Swedish: Livläkarens besök ) is a 1999 novel by the Swedish writer Per Olov Enquist.  It is known as The Royal Physician's Visit in the United States.  Against the backdrop of political turbulence and the enlightenment in the second half of the 18th century, the narrative revolves around the court of the mentally ill King Christian VII of Denmark, and the romance between the king's physician, Johann Friedrich Struensee, and the queen, Caroline Mathilde.  The novel won the August Prize and the Independent Foreign Fiction Prize.

Princess Louise Auguste of Denmark: Princess Louise Auguste of Denmark (7 July 1771 – 13 January 1843) was the daughter of the Queen of Denmark, Caroline Matilda of Great Britain.  Though officially regarded as the daughter of King Christian VII, it is widely accepted that her biological father was Johann Friedrich Struensee, the king’s royal physician and "de facto" regent of the country at the time of her birth.  She was referred to sometimes as "la petite Struensee"; this did not, however, have any effect on her position.

Supporting paragraphs: Mikkel Følsgaard A Royal Affair
Answer: A Royal Affair