Question: Which is longer, The Great Gatsby shot in Los Angeles or Singapore that runs 79 minutes?
Choices: A Prairie Home Companion
Pleasantville
The Towering Inferno
Curse of the Golden Flower
Talk to Her
The Great Gatsby
The Fifth Element
Rebecca
Training Day
The Hunchback of Notre Dame
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Great Gatsby" . ?e <filming_location> ?e_1 . ?e_1 <pred:name> "Los Angeles" . } UNION { ?e <pred:name> "Singapore" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "79"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Los Angeles
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: The Great Gatsby
function: And
dependencies: 1
2
function: Find
inputs: Singapore
function: FilterNum
dependencies: 4
inputs: duration
79 minute
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater
Answer: The Great Gatsby