Question: Which one, Palo Alto (the one with USA origins) or Kansas (the one whose original language is English), has greater duration?
Choices:
Kansas
The Hunchback of Notre Dame
Rebecca
Talk to Her
Pleasantville
A Prairie Home Companion
The Towering Inferno
Training Day
Palo Alto
Curse of the Golden Flower
Answer: Kansas
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Palo Alto" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "United States of America" .   } UNION { ?e <pred:name> "Kansas" . ?e <original_language_of_film_or_TV_show> ?e_2 . ?e_2 <pred:name> "English" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Palo Alto
function: And
dependencies: 1
2
function: Find
inputs: English
function: Relate
dependencies: 4
inputs: original language of film or TV show
backward
function: Find
inputs: Kansas
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater