Question: Does Eat Bulaga! or the detective fiction 24 have fewer episodes?
Choices:
24
The Pacific
The Civil War
Battlestar Galactica
Roots
Edge of Darkness
George Washington
The Ten Commandments
The Stand
The Diary of Anne Frank
Program:
function: Find
inputs: Eat Bulaga!
function: Find
inputs: detective fiction
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: 24
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of episodes
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Eat Bulaga!" .  } UNION { ?e <pred:name> "24" . ?e <genre> ?e_1 . ?e_1 <pred:name> "detective fiction" .   } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: 24