Question: Which show has more episodes, Santa Barbara (the one whose end time is 1993-01-15) or Sons of Anarchy?
Choices:
American Horror Story
Santa Barbara
Dancing with the Stars
Sons of Anarchy
Game of Thrones
Seinfeld
Robot Chicken
Phineas and Ferb
Six Feet Under
Saturday Night's Main Event
Program:
function: Find
inputs: Santa Barbara
function: FilterDate
dependencies: 0
inputs: end time
1993-01-15
=
function: Find
inputs: Sons of Anarchy
function: SelectBetween
dependencies: 1
2
inputs: number of episodes
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Santa Barbara" . ?e <end_time> ?pv_1 . ?pv_1 <pred:date> "1993-01-15"^^xsd:date . } UNION { ?e <pred:name> "Sons of Anarchy" . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Santa Barbara