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