Question: Does Seinfeld or Twin Peaks (which began 2017-05-21) have a greater number of episodes?
Choices: Robot Chicken
Game of Thrones
Saturday Night's Main Event
Six Feet Under
Dancing with the Stars
American Horror Story
Babylon 5
Seinfeld
Twin Peaks
Bleak House
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Seinfeld" . } UNION { ?e <pred:name> "Twin Peaks" . ?e <start_time> ?pv_1 . ?pv_1 <pred:date> "2017-05-21"^^xsd:date . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Seinfeld
function: Find
inputs: Twin Peaks
function: FilterDate
dependencies: 1
inputs: start time
2017-05-21
=
function: SelectBetween
dependencies: 0
2
inputs: number of episodes
greater
Answer: Seinfeld