Question: Which one, Upstairs, Downstairs or Paris (the one whose end time is 1980-01-15), has less duration?
Choices:
Bleak House
Paris
Six Feet Under
Saturday Night's Main Event
Seinfeld
Game of Thrones
Upstairs, Downstairs
American Horror Story
Phineas and Ferb
Dancing with the Stars
Program:
function: Find
inputs: Upstairs, Downstairs
function: Find
inputs: Paris
function: FilterDate
dependencies: 1
inputs: end time
1980-01-15
=
function: SelectBetween
dependencies: 0
2
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Upstairs, Downstairs" . } UNION { ?e <pred:name> "Paris" . ?e <end_time> ?pv_1 . ?pv_1 <pred:date> "1980-01-15"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Paris