Question: Which movie is longer, Hannah Montana: The Movie or The Hunchback of Notre Dame (the one whose original language is French)?
Choices:
Hannah Montana: The Movie
Old Dogs
John Carter
G-Force
The Muppets
Holes
The Hunchback of Notre Dame
The Flintstones in Viva Rock Vegas
The Flintstones
National Treasure: Book of Secrets
Program:
function: Find
inputs: Hannah Montana: The Movie
function: Find
inputs: French
function: Relate
dependencies: 1
inputs: original language of film or TV show
backward
function: Find
inputs: The Hunchback of Notre Dame
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hannah Montana: The Movie" .  } UNION { ?e <pred:name> "The Hunchback of Notre Dame" . ?e <original_language_of_film_or_TV_show> ?e_1 . ?e_1 <pred:name> "French" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Hunchback of Notre Dame