"The Riddle of the Sphinx" is the third episode of the third series of the British dark comedy anthology television programme Inside No. 9. It first aired, on BBC Two, on 28 February 2017. The episode was written by the programme's creators, Steve Pemberton and Reece Shearsmith, and directed by Guillem Morales. "The Riddle of the Sphinx", which is set in Cambridge, stars Alexandra Roach as Nina, a young woman seeking answers to the Varsity cryptic crossword, Pemberton as Professor Nigel Squires, who pseudonymously sets the crossword using the name Sphinx, and Shearsmith as Dr Jacob Tyler, another Cambridge academic. The story begins with Nina surreptitiously entering Squires's rooms on a stormy night and being discovered; this leads to Squires teaching her how to decipher clues in cryptic crosswords.

The plot of "The Riddle of the Sphinx" revolves around the clues and answers to a particular crossword puzzle. The idea to focus an episode on crosswords came from Pemberton; he had long been a fan of cryptic crosswords, but particular inspiration came from Two Girls, One on Each Knee: The Puzzling, Playful World of the Crossword, a non-fiction book by Alan Connor. The crossword featured in "The Riddle of the Sphinx" was set by Pemberton, and was published in The Guardian on the day the episode aired, credited to "Sphinx". This crossword contains multiple ninas—hidden messages or words. Along with many of the crossword's answers, one nina is integral to the episode's plot. A second was introduced accidentally, and then incorporated into the episode. A third nina is an Inside No. 9 in-joke.

The Riddle of the Sphinx (Inside No. 9)

Influences for "The Riddle of the Sphinx", which emphasises gothicism over comedy, include Anthony Shaffer's 1970 play Sleuth, the work of Anton Chekhov, and the 1989 film The Cook, the Thief, His Wife & Her Lover. Critics responded extremely positively to the episode, lauding its writing and the precise attention to detail in the production. Commentators noted that the episode was very dark, and probably the cleverest episode of Inside No. 9 to date. Roach's performance was praised, as was the direction of Morales.

The Riddle of the Sphinx (Inside No. 9)

Production

The third series of Inside No. 9 was announced in October 2015, and heavily publicised in January 2016, at which time Alexandra Roach was named as a guest star in the series. The series began with the Christmas special "The Devil of Christmas" (December 2016) and continued with "The Bill" (February 2017), the latter of which was the first of a run of five episodes, of which "The Riddle of the Sphinx" was the second. The episode was first aired on 28 February 2017. It was shown on BBC Two at 10:00pm, clashing with first episode of the third series of Catastrophe, the acclaimed Channel 4 comedy.

The Riddle of the Sphinx (Inside No. 9)

"The Riddle of the Sphinx" was written in the summer of 2015, one of the last of the series, and was filmed in December that year. Most of the episode was filmed in Langleybury, a country house in Abbots Langley, Hertfordshire, which had previous been used for the Inside No. 9 episodes "The Harrowing" and "Séance Time", as well as the house of Oscar Lomax in the Shearsmith and Pemberton television series Psychoville. The opening exterior shot was filmed in a court of Gonville and Caius College, Cambridge. The idea to set the episode during a storm, which gave it a gothic quality, was Morales's. For Shearsmith and Pemberton, this was an example of an advantage to having a third party direct episodes, in contrast to "Cold Comfort" and "Nana's Party" from the second series, which they had directed themselves. Close-up shots of the crossword and the blackboard were filmed later, some on the set of "Private View", which introduced potential continuity problems. The episode was filmed after two days' rehearsals. The script was 32 pages in length, resulting in a first cut that was 38 minutes long. The BBC permitted the final version to be a little longer than the half hour typical of Inside No. 9, but the production team still needed to lose several minutes in the edit. The final run-time for the episode is 31 minutes and 35 seconds.