Question: Which one has lower number of episodes, Coronation Street or Gulliver's Travels (the one whose publication date is 1996-02-04) ?
Choices:
George Washington
The Pacific
The Diary of Anne Frank
Battlestar Galactica
Edge of Darkness
The Stand
Roots
The Civil War
Gulliver's Travels
Coronation Street
Program:
function: Find
inputs: Coronation Street
function: Find
inputs: Gulliver's Travels
function: FilterDate
dependencies: 1
inputs: publication date
1996-02-04
=
function: SelectBetween
dependencies: 0
2
inputs: number of episodes
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Coronation Street" . } UNION { ?e <pred:name> "Gulliver's Travels" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1996-02-04"^^xsd:date . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Gulliver's Travels