Question: Which TV show is shorter, Red Dwarf or Miami Vice (the one that is originally aired on USA Network)?
Choices:
Phineas and Ferb
Six Feet Under
Seinfeld
Red Dwarf
American Horror Story
Miami Vice
Game of Thrones
Robot Chicken
Dancing with the Stars
Saturday Night's Main Event
Answer: Red Dwarf
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Red Dwarf" .  } UNION { ?e <pred:name> "Miami Vice" . ?e <original_network> ?e_1 . ?e_1 <pred:name> "USA Network" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Red Dwarf
function: Find
inputs: USA Network
function: Relate
dependencies: 1
inputs: original network
backward
function: Find
inputs: Miami Vice
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less