Question: Between the 20th Century Fox production of South Pacific or the silent film Waterloo, which is longer?
Choices:
Training Day
Talk to Her
South Pacific
Rebecca
Waterloo
Curse of the Golden Flower
A Prairie Home Companion
The Hunchback of Notre Dame
Pleasantville
The Fifth Element
Program:
function: Find
inputs: 20th Century Fox
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: South Pacific
function: And
dependencies: 1
2
function: Find
inputs: silent film
function: Relate
dependencies: 4
inputs: genre
backward
function: Find
inputs: Waterloo
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "South Pacific" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "20th Century Fox" .   } UNION { ?e <pred:name> "Waterloo" . ?e <genre> ?e_2 . ?e_2 <pred:name> "silent film" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: South Pacific