Question: Which one is longer, The Wizard of Oz (the one whose cost was 2,777,000 USD) or George Washington (the one whose narrative location is North Carolina) ?
Choices: George Washington
The Hunchback of Notre Dame
A Prairie Home Companion
Rebecca
The Wizard of Oz
The Fifth Element
Training Day
Pleasantville
The Towering Inferno
Talk to Her
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Wizard of Oz" . ?e <cost> ?pv_1 . ?pv_1 <pred:unit> "United States dollar" . ?pv_1 <pred:value> "2777000"^^xsd:double . } UNION { ?e <pred:name> "George Washington" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "North Carolina" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: The Wizard of Oz
function: FilterNum
dependencies: 0
inputs: cost
2777000 United States dollar
=
function: Find
inputs: North Carolina
function: Relate
dependencies: 2
inputs: narrative location
backward
function: Find
inputs: George Washington
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater
Answer: The Wizard of Oz