Question: Which had the longer run, The Office (which ended on 2003-12-27) or Spider-Man (which started on 1994-01-01)?
Choices: American Horror Story
Dancing with the Stars
The Office
Robot Chicken
Seinfeld
Phineas and Ferb
Game of Thrones
Spider-Man
Bleak House
Saturday Night's Main Event
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Spider-Man" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1994-01-01"^^xsd:date . } UNION { ?e <pred:name> "The Office" . ?e <end_time> ?pv_2 . ?pv_2 <pred:date> "2003-12-27"^^xsd:date . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Spider-Man
function: FilterDate
dependencies: 0
inputs: publication date
1994-01-01
=
function: Find
inputs: The Office
function: FilterDate
dependencies: 2
inputs: end time
2003-12-27
=
function: SelectBetween
dependencies: 1
3
inputs: number of seasons
greater
Answer: Spider-Man