Question: Which movie is longer, the drama film San Francisco or We Bought a Zoo?
Choices:
Training Day
San Francisco
Rebecca
The Towering Inferno
Curse of the Golden Flower
A Prairie Home Companion
Talk to Her
The Hunchback of Notre Dame
We Bought a Zoo
The Fifth Element
Program:
function: Find
inputs: We Bought a Zoo
function: Find
inputs: drama film
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: San Francisco
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "We Bought a Zoo" .  } UNION { ?e <pred:name> "San Francisco" . ?e <genre> ?e_1 . ?e_1 <pred:name> "drama film" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: We Bought a Zoo