Question: Which has a longer run time, the teen film Gladiator or the children's film Charlie and the Chocolate Factory?
Choices:
Talk to Her
A Prairie Home Companion
Curse of the Golden Flower
Training Day
Pleasantville
The Fifth Element
Gladiator
Charlie and the Chocolate Factory
The Hunchback of Notre Dame
The Towering Inferno
Answer: Charlie and the Chocolate Factory
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Gladiator" . ?e <genre> ?e_1 . ?e_1 <pred:name> "teen film" .   } UNION { ?e <pred:name> "Charlie and the Chocolate Factory" . ?e <genre> ?e_2 . ?e_2 <pred:name> "children's film" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: teen film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Gladiator
function: And
dependencies: 1
2
function: Find
inputs: children's film
function: Relate
dependencies: 4
inputs: genre
backward
function: Find
inputs: Charlie and the Chocolate Factory
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater