Question: Which show has more episodes, The Temptations (the one whose publication date is 1998-01-01) or The Shield?
Choices:
Phineas and Ferb
Saturday Night's Main Event
The Temptations
Dancing with the Stars
The Shield
Game of Thrones
Six Feet Under
Seinfeld
American Horror Story
Bleak House
Answer: The Shield
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> "The Shield" . } ?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: The Shield
function: SelectBetween
dependencies: 1
2
inputs: number of episodes
greater