Question: Which movie is longer, Back to the Future (the one that uses the language English) or Sense and Sensibility (the one whose duration is 180 minute)?
Choices:
Roots
The Ten Commandments
Battlestar Galactica
The Diary of Anne Frank
Sense and Sensibility
The Stand
George Washington
Back to the Future
Edge of Darkness
The Pacific
Answer: Sense and Sensibility
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Back to the Future" . ?e <language_of_work_or_name> ?e_1 . ?e_1 <pred:name> "English" . } UNION { ?e <pred:name> "Sense and Sensibility" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "180"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: English
function: Relate
dependencies: 0
inputs: language of work or name
backward
function: Find
inputs: Back to the Future
function: And
dependencies: 1
2
function: Find
inputs: Sense and Sensibility
function: FilterNum
dependencies: 4
inputs: duration
180 minute
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater