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