Question: Which movie is shorter, State of Play (the one that uses the language English) or Homeland?
Choices:
Game of Thrones
Homeland
Seinfeld
American Horror Story
Dancing with the Stars
Bleak House
State of Play
Robot Chicken
Phineas and Ferb
Six Feet Under
Program:
function: Find
inputs: English
function: Relate
dependencies: 0
inputs: language of work or name
backward
function: Find
inputs: State of Play
function: And
dependencies: 1
2
function: Find
inputs: Homeland
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "State of Play" . ?e <language_of_work_or_name> ?e_1 . ?e_1 <pred:name> "English" .   } UNION { ?e <pred:name> "Homeland" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: State of Play