Question: Which movie is shorter, Fantastic Four (the one whose number of seasons is 2) or Arrested Development?
Choices:
Seinfeld
Saturday Night's Main Event
Phineas and Ferb
Arrested Development
Dancing with the Stars
Robot Chicken
Game of Thrones
American Horror Story
Bleak House
Six Feet Under
Program:
function: Find
inputs: Fantastic Four
function: FilterNum
dependencies: 0
inputs: number of seasons
2
=
function: Find
inputs: Arrested Development
function: SelectBetween
dependencies: 1
2
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Fantastic Four" . ?e <number_of_seasons> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "2"^^xsd:double . } UNION { ?e <pred:name> "Arrested Development" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Arrested Development