Question: Which of the miniseries by Stephen King (the one from Maine) has the largest number of episodes?
Choices:
George Washington
Emma
Edge of Darkness
The Ten Commandments
Battlestar Galactica
The Shining
The Diary of Anne Frank
The Pacific
The Civil War
Roots
Program:
function: Find
inputs: Maine
function: Relate
dependencies: 0
inputs: residence
backward
function: Find
inputs: Stephen King
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: creator
backward
function: FilterConcept
dependencies: 4
inputs: miniseries
function: SelectAmong
dependencies: 5
inputs: number of episodes
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "miniseries" . ?e <creator> ?e_1 . ?e_1 <pred:name> "Stephen King" . ?e_1 <residence> ?e_2 . ?e_2 <pred:name> "Maine" .  ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Shining