Question: Which movie is shorter, Rich Man, Poor Man (the one whose date of first performance is 1976) or Iron Man (the one whose number of episodes is 26)?
Choices:
Game of Thrones
Seinfeld
Six Feet Under
Phineas and Ferb
Iron Man
Rich Man, Poor Man
Robot Chicken
Dancing with the Stars
Bleak House
Saturday Night's Main Event
Answer: Iron Man
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rich Man, Poor Man" . ?e <date_of_first_performance> ?pv_1 . ?pv_1 <pred:year> 1976 . } UNION { ?e <pred:name> "Iron Man" . ?e <number_of_episodes> ?pv_2 . ?pv_2 <pred:unit> "1" . ?pv_2 <pred:value> "26"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Rich Man, Poor Man
function: FilterYear
dependencies: 0
inputs: date of first performance
1976
=
function: Find
inputs: Iron Man
function: FilterNum
dependencies: 2
inputs: number of episodes
26
=
function: SelectBetween
dependencies: 1
3
inputs: duration
less