Question: Which has a greater duration, Lost or The Ten Commandments (whose number of episodes is 2)?
Choices: The Ten Commandments
Roots
The Pacific
The Diary of Anne Frank
Edge of Darkness
Battlestar Galactica
The Stand
Emma
George Washington
Lost
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lost" . } UNION { ?e <pred:name> "The Ten Commandments" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "2"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Lost
function: Find
inputs: The Ten Commandments
function: FilterNum
dependencies: 1
inputs: number of episodes
2
=
function: SelectBetween
dependencies: 0
2
inputs: duration
greater
Answer: The Ten Commandments