Question: Which has fewer episodes, Happy Days (the one whose start time is 1974-01-15) or The Twilight Zone (the one whose publication date is 1985)?
Choices:
Game of Thrones
American Horror Story
Saturday Night's Main Event
Six Feet Under
Phineas and Ferb
The Twilight Zone
Happy Days
Dancing with the Stars
Bleak House
Robot Chicken
Answer: The Twilight Zone
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Happy Days" . ?e <start_time> ?pv_1 . ?pv_1 <pred:date> "1974-01-15"^^xsd:date . } UNION { ?e <pred:name> "The Twilight Zone" . ?e <publication_date> ?pv_2 . ?pv_2 <pred:year> 1985 . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Happy Days
function: FilterDate
dependencies: 0
inputs: start time
1974-01-15
=
function: Find
inputs: The Twilight Zone
function: FilterYear
dependencies: 2
inputs: publication date
1985
=
function: SelectBetween
dependencies: 1
3
inputs: number of episodes
less