Question: Which show has more episodes, Great Expectations (the one whose publication date is 2011-01-01) or Hannibal (the one whose number of episodes is 39)?
Choices:
Bleak House
American Horror Story
Phineas and Ferb
Dancing with the Stars
Hannibal
Robot Chicken
Seinfeld
Great Expectations
Game of Thrones
Six Feet Under
Program:
function: Find
inputs: Great Expectations
function: FilterDate
dependencies: 0
inputs: publication date
2011-01-01
=
function: Find
inputs: Hannibal
function: FilterNum
dependencies: 2
inputs: number of episodes
39
=
function: SelectBetween
dependencies: 1
3
inputs: number of episodes
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Great Expectations" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2011-01-01"^^xsd:date . } UNION { ?e <pred:name> "Hannibal" . ?e <number_of_episodes> ?pv_2 . ?pv_2 <pred:unit> "1" . ?pv_2 <pred:value> "39"^^xsd:double . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Hannibal