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