Question: Which show has more episodes, Scarlett (the one whose end time is 1994) or Samson and Delilah (the one whose duration is 172 minute)?
Choices:
All Quiet on the Western Front
The Late Shift
The Music Man
The Challenge
Scarlett
Samson and Delilah
A Christmas Carol
A Streetcar Named Desire
Shackleton
The Goodbye Girl
Answer: Scarlett
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Scarlett" . ?e <end_time> ?pv_1 . ?pv_1 <pred:year> 1994 . } UNION { ?e <pred:name> "Samson and Delilah" . ?e <duration> ?pv_2 . ?pv_2 <pred:unit> "minute" . ?pv_2 <pred:value> "172"^^xsd:double . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Scarlett
function: FilterYear
dependencies: 0
inputs: end time
1994
=
function: Find
inputs: Samson and Delilah
function: FilterNum
dependencies: 2
inputs: duration
172 minute
=
function: SelectBetween
dependencies: 1
3
inputs: number of episodes
greater