Question: Which show has more episodes, Titanic (the one whose start time is 1996-11-17) or L.A. Law?
Choices: Bleak House
Saturday Night's Main Event
L.A. Law
Six Feet Under
Phineas and Ferb
American Horror Story
Titanic
Seinfeld
Dancing with the Stars
Game of Thrones
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Titanic" . ?e <start_time> ?pv_1 . ?pv_1 <pred:date> "1996-11-17"^^xsd:date . } UNION { ?e <pred:name> "L.A. Law" . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Titanic
function: FilterDate
dependencies: 0
inputs: start time
1996-11-17
=
function: Find
inputs: L.A. Law
function: SelectBetween
dependencies: 1
2
inputs: number of episodes
greater
Answer: L.A. Law