Question: Which has more episodes, Paddington (the one whose publication date is 1975) or Good Morning America?
Choices:
Today
The Daily Show
Second Intifada
The Colbert Report
Paddington
Good Morning America
FreeBSD
Android
Western Desert Campaign
Napoleonic Wars
Program:
function: Find
inputs: Paddington
function: FilterYear
dependencies: 0
inputs: publication date
1975
=
function: Find
inputs: Good Morning America
function: SelectBetween
dependencies: 1
2
inputs: number of episodes
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Paddington" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:year> 1975 . } UNION { ?e <pred:name> "Good Morning America" . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Good Morning America