Question: Which has a greater duration, Antarctica (whose original language is Japanese) or To Kill a Mockingbird (whose genre is film based on literature)?
Choices:
The Fifth Element
The Hunchback of Notre Dame
Talk to Her
Rebecca
To Kill a Mockingbird
Antarctica
Curse of the Golden Flower
Pleasantville
The Towering Inferno
A Prairie Home Companion
Program:
function: Find
inputs: Japanese
function: Relate
dependencies: 0
inputs: original language of film or TV show
backward
function: Find
inputs: Antarctica
function: And
dependencies: 1
2
function: Find
inputs: film based on literature
function: Relate
dependencies: 4
inputs: genre
backward
function: Find
inputs: To Kill a Mockingbird
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Antarctica" . ?e <original_language_of_film_or_TV_show> ?e_1 . ?e_1 <pred:name> "Japanese" .   } UNION { ?e <pred:name> "To Kill a Mockingbird" . ?e <genre> ?e_2 . ?e_2 <pred:name> "film based on literature" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Antarctica