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