Question: Which movie is shorter, Nashville (the one that uses the language English) or The Green Hornet (the one that has Bruce Lee as a cast member)?
Choices:
Game of Thrones
Saturday Night's Main Event
The Green Hornet
Seinfeld
Dancing with the Stars
Robot Chicken
Nashville
Phineas and Ferb
American Horror Story
Bleak House
Program:
function: Find
inputs: English
function: Relate
dependencies: 0
inputs: language of work or name
backward
function: Find
inputs: Nashville
function: And
dependencies: 1
2
function: Find
inputs: Bruce Lee
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: The Green Hornet
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Nashville" . ?e <language_of_work_or_name> ?e_1 . ?e_1 <pred:name> "English" .   } UNION { ?e <pred:name> "The Green Hornet" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Bruce Lee" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Green Hornet