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