Question: Which show has more episodes, Cher (the one whose end time is 1976-01-04) or Planet of the Apes (the one that uses the language English)?
Choices:
Bleak House
American Horror Story
Cher
Phineas and Ferb
Dancing with the Stars
Planet of the Apes
Seinfeld
Six Feet Under
Robot Chicken
Game of Thrones
Answer: Cher
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cher" . ?e <end_time> ?pv_1 . ?pv_1 <pred:date> "1976-01-04"^^xsd:date . } UNION { ?e <pred:name> "Planet of the Apes" . ?e <language_of_work_or_name> ?e_1 . ?e_1 <pred:name> "English" . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Cher
function: FilterDate
dependencies: 0
inputs: end time
1976-01-04
=
function: Find
inputs: English
function: Relate
dependencies: 2
inputs: language of work or name
backward
function: Find
inputs: Planet of the Apes
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: number of episodes
greater