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