Question: Which movie is longer, Quadrophenia (the one that uses the language English) or Brian Wilson (the one that origins from United States of America)?
Choices:
Roots
Kraftwerk
Flight of the Conchords
Dynasty
Luis Miguel
Toni Braxton
Quadrophenia
The B-52's
Brian Wilson
Hollywood
Answer: Quadrophenia
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Quadrophenia" . ?e <language_of_work_or_name> ?e_1 . ?e_1 <pred:name> "English" .   } UNION { ?e <pred:name> "Brian Wilson" . ?e <country_of_origin> ?e_2 . ?e_2 <pred:name> "United States of America" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: English
function: Relate
dependencies: 0
inputs: language of work or name
backward
function: Find
inputs: Quadrophenia
function: And
dependencies: 1
2
function: Find
inputs: United States of America
function: Relate
dependencies: 4
inputs: country of origin
backward
function: Find
inputs: Brian Wilson
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater