Question: Which show has fewer episodes, Mission: Impossible (the one whose end time is 1973-03-30) or Frank Herbert's Dune?
Choices:
The Civil War
The Diary of Anne Frank
Mission: Impossible
The Pacific
The Stand
Roots
The Ten Commandments
George Washington
Edge of Darkness
Frank Herbert's Dune
Program:
function: Find
inputs: Mission: Impossible
function: FilterDate
dependencies: 0
inputs: end time
1973-03-30
=
function: Find
inputs: Frank Herbert's Dune
function: SelectBetween
dependencies: 1
2
inputs: number of episodes
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mission: Impossible" . ?e <end_time> ?pv_1 . ?pv_1 <pred:date> "1973-03-30"^^xsd:date . } UNION { ?e <pred:name> "Frank Herbert's Dune" . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Frank Herbert's Dune