Question: What miniseries that ended before 1998 has the largest number of episodes?
Choices: It
Roots
Rich Man, Poor Man
Titanic
Masada
Edge of Darkness
Oliver Twist
The Singing Detective
Roots: The Next Generations
The Civil War
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "miniseries" . ?e <end_time> ?pv_1 . ?pv_1 <pred:year> ?v_1 . FILTER ( ?v_1 < 1998 ) . ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: end time
1998
<
function: FilterConcept
dependencies: 1
inputs: miniseries
function: SelectAmong
dependencies: 2
inputs: number of episodes
largest
Answer: Oliver Twist