Question: Which movie is longer, Stardust (the one that is shot in Hertfordshire) or Wonder Woman (the one whose distributor is Warner Bros.)?
Choices:
Training Day
Talk to Her
The Towering Inferno
Stardust
Wonder Woman
A Prairie Home Companion
Curse of the Golden Flower
The Hunchback of Notre Dame
The Fifth Element
Rebecca
Program:
function: Find
inputs: Hertfordshire
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: Stardust
function: And
dependencies: 1
2
function: Find
inputs: Warner Bros.
function: Relate
dependencies: 4
inputs: distributor
backward
function: Find
inputs: Wonder Woman
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Stardust" . ?e <filming_location> ?e_1 . ?e_1 <pred:name> "Hertfordshire" .   } UNION { ?e <pred:name> "Wonder Woman" . ?e <distributor> ?e_2 . ?e_2 <pred:name> "Warner Bros." .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Wonder Woman