Question: Which movie is longer, The Fall (the one whose number of seasons is 3) or Fist of the North Star (the one whose duration is 25 minute)?
Choices:
Saturday Night's Main Event
Six Feet Under
Seinfeld
Robot Chicken
Phineas and Ferb
The Fall
Dancing with the Stars
Bleak House
Fist of the North Star
American Horror Story
Program:
function: Find
inputs: The Fall
function: FilterNum
dependencies: 0
inputs: number of seasons
3
=
function: Find
inputs: Fist of the North Star
function: FilterNum
dependencies: 2
inputs: duration
25 minute
=
function: SelectBetween
dependencies: 1
3
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Fall" . ?e <number_of_seasons> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "3"^^xsd:double . } UNION { ?e <pred:name> "Fist of the North Star" . ?e <duration> ?pv_2 . ?pv_2 <pred:unit> "minute" . ?pv_2 <pred:value> "25"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Fall