Case 19

On the midday flight from Paris to Croydon, the rear cabin is quiet. Somewhere over the Channel, Madame Giselle, a feared Paris moneylender, is found dead in her seat with a tiny puncture on her neck. A wasp has been buzzing about the cabin and a small feathered dart lies on the floor. Eleven passengers and two stewards were aboard. Nobody saw anything unusual.

Your mission: Use SQL to rebuild the seating plan and the timeline of who moved when, find the steward who was never really a steward and follow the money to name the killer.

Let's Investigate

How to solve it

  1. Read the brief, then explore the tables of passengers, events and motives
  2. Answer 5 questions in order. Each one builds on the last
  3. Expect to look things up: the hints point to the right part of the PostgreSQL documentation
  4. The last question names the killer and closes the case

About this case

Based on Death in the Clouds (Agatha Christie, 1935). A moneylender dies in her seat on a small airliner, surrounded by passengers who all had the chance to reach her and several who had reason to. The wasp, the dart and the blowpipe all point somewhere. Only the timeline tells you where.

Inspired by the novel: the main plot stays true, but some details are added to build the SQL clues.

What you'll practise

This is the first Expert case. It uses SQL you will probably need to look up:

The database

You'll query suspect_info (everyone aboard and where they sat), events (a minute by minute log of the flight) and suspect_reason (debts, grudges and who inherits from whom).

Difficulty

Expert. Harder than every case before it. Finish a few Hard cases first if window functions and WITH queries are new to you.