Question: Which movie is longer, Constantine (the one that uses the language English) or Last of the Summer Wine?
Choices:
Seinfeld
Bleak House
Game of Thrones
Constantine
Last of the Summer Wine
Robot Chicken
Saturday Night's Main Event
Dancing with the Stars
American Horror Story
Six Feet Under
Program:
function: Find
inputs: English
function: Relate
dependencies: 0
inputs: language of work or name
backward
function: Find
inputs: Constantine
function: And
dependencies: 1
2
function: Find
inputs: Last of the Summer Wine
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Constantine" . ?e <language_of_work_or_name> ?e_1 . ?e_1 <pred:name> "English" .   } UNION { ?e <pred:name> "Last of the Summer Wine" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Constantine