Question: DoesThe Temptations whose release date is 1998-01-01 or Guiding Light have more episodes?
Choices:
The Temptations
Seinfeld
Dancing with the Stars
Six Feet Under
Game of Thrones
Guiding Light
Robot Chicken
Bleak House
Phineas and Ferb
American Horror Story
Answer: Guiding Light
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Temptations" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1998-01-01"^^xsd:date . } UNION { ?e <pred:name> "Guiding Light" . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: The Temptations
function: FilterDate
dependencies: 0
inputs: publication date
1998-01-01
=
function: Find
inputs: Guiding Light
function: SelectBetween
dependencies: 1
2
inputs: number of episodes
greater