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