Question: Among the miniseries titled Oliver Twist, which has the smallest number ?
Choices:
The Civil War
Battlestar Galactica
The Stand
Edge of Darkness
The Pacific
Oliver Twist
The Ten Commandments
The Diary of Anne Frank
Oliver Twist
Roots
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: title
Oliver Twist
function: FilterConcept
dependencies: 1
inputs: miniseries
function: SelectAmong
dependencies: 2
inputs: number of episodes
smallest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "miniseries" . ?e <title> ?pv_1 . ?pv_1 <pred:value> "Oliver Twist" . ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Oliver Twist