Question: Which boasts the higher season count: The Simpsons, or Sex and the City that launched on 1998-06-06?
Choices:
South Park
The Cleveland Show
Aladdin
American Dad!
Tiny Toon Adventures
Batman Beyond
The Simpsons
Phineas and Ferb
Sex and the City
The Venture Bros.
Answer: The Simpsons
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Simpsons" . } UNION { ?e <pred:name> "Sex and the City" . ?e <start_time> ?pv_1 . ?pv_1 <pred:date> "1998-06-06"^^xsd:date . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: The Simpsons
function: Find
inputs: Sex and the City
function: FilterDate
dependencies: 1
inputs: start time
1998-06-06
=
function: SelectBetween
dependencies: 0
2
inputs: number of seasons
greater