Question: Which lasted for longer, Bones (which ended on 2017-03-28) or American Dad?
Choices:
Dancing with the Stars
Bleak House
American Dad!
Robot Chicken
Game of Thrones
Saturday Night's Main Event
Seinfeld
Phineas and Ferb
Bones
Six Feet Under
Answer: Bones
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bones" . ?e <end_time> ?pv_1 . ?pv_1 <pred:date> "2017-03-28"^^xsd:date . } UNION { ?e <pred:name> "American Dad!" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Bones
function: FilterDate
dependencies: 0
inputs: end time
2017-03-28
=
function: Find
inputs: American Dad!
function: SelectBetween
dependencies: 1
2
inputs: duration
greater