Question: Which movie is shorter, Jodhaa Akbar or Independence Day (the one whose genre is action film)?
Choices:
Training Day
The Hunchback of Notre Dame
Independence Day
Rebecca
Jodhaa Akbar
Curse of the Golden Flower
Talk to Her
The Fifth Element
Pleasantville
The Towering Inferno
Program:
function: Find
inputs: Jodhaa Akbar
function: Find
inputs: action film
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: Independence Day
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jodhaa Akbar" .  } UNION { ?e <pred:name> "Independence Day" . ?e <genre> ?e_1 . ?e_1 <pred:name> "action film" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Independence Day