Question: Which has fewer episodes, Eureka (the one whose end time is 2012-07-16) or Oliver Twist (the one whose start time is 1985-10-13)?
Choices:
The Diary of Anne Frank
Eureka
The Ten Commandments
George Washington
Roots
The Stand
Oliver Twist
Battlestar Galactica
The Civil War
The Pacific
Program:
function: Find
inputs: Eureka
function: FilterDate
dependencies: 0
inputs: end time
2012-07-16
=
function: Find
inputs: Oliver Twist
function: FilterDate
dependencies: 2
inputs: start time
1985-10-13
=
function: SelectBetween
dependencies: 1
3
inputs: number of episodes
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Eureka" . ?e <end_time> ?pv_1 . ?pv_1 <pred:date> "2012-07-16"^^xsd:date . } UNION { ?e <pred:name> "Oliver Twist" . ?e <start_time> ?pv_2 . ?pv_2 <pred:date> "1985-10-13"^^xsd:date . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Oliver Twist