Question: Which show has fewer episodes, Cheers or Happy Days (the one whose end time is 1984-09-24)?
Choices:
Bleak House
Game of Thrones
Six Feet Under
Happy Days
Robot Chicken
Cheers
Saturday Night's Main Event
Phineas and Ferb
American Horror Story
Seinfeld
Program:
function: Find
inputs: Cheers
function: Find
inputs: Happy Days
function: FilterDate
dependencies: 1
inputs: end time
1984-09-24
=
function: SelectBetween
dependencies: 0
2
inputs: number of episodes
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cheers" . } UNION { ?e <pred:name> "Happy Days" . ?e <end_time> ?pv_1 . ?pv_1 <pred:date> "1984-09-24"^^xsd:date . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Happy Days