Question: Which is longer in duration: The Incredible Hulk, which concluded its run on 1982-06-02, or Hannibal, with a 3 season run?
Choices: Hannibal
American Horror Story
Seinfeld
Bleak House
The Incredible Hulk
Dancing with the Stars
Robot Chicken
Phineas and Ferb
Game of Thrones
Six Feet Under
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Incredible Hulk" . ?e <end_time> ?pv_1 . ?pv_1 <pred:date> "1982-06-02"^^xsd:date . } UNION { ?e <pred:name> "Hannibal" . ?e <number_of_seasons> ?pv_2 . ?pv_2 <pred:unit> "1" . ?pv_2 <pred:value> "3"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: The Incredible Hulk
function: FilterDate
dependencies: 0
inputs: end time
1982-06-02
=
function: Find
inputs: Hannibal
function: FilterNum
dependencies: 2
inputs: number of seasons
3
=
function: SelectBetween
dependencies: 1
3
inputs: duration
greater
Answer: The Incredible Hulk