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