Question: Among the miniseries whose narrative location is London (which is the narrative location of Seabiscuit), which has the smallest number of episodes?
Choices:
The Ten Commandments
The Pacific
Tinker Tailor Soldier Spy
George Washington
Battlestar Galactica
Roots
Edge of Darkness
The Stand
The Civil War
Sherlock Holmes
Program:
function: Find
inputs: Seabiscuit
function: Relate
dependencies: 0
inputs: narrative location
forward
function: Find
inputs: London
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: narrative location
backward
function: FilterConcept
dependencies: 4
inputs: miniseries
function: SelectAmong
dependencies: 5
inputs: number of episodes
smallest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "miniseries" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "London" . ?e_2 <narrative_location> ?e_1 . ?e_2 <pred:name> "Seabiscuit" .  ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Tinker Tailor Soldier Spy