Question: Which one has the smallest number of episodes, The Temptations (the one whose title is The Temptations) or Minority Report (the one whose number of episodes is 10) ?
Choices:
Edge of Darkness
Battlestar Galactica
The Stand
The Civil War
Minority Report
George Washington
The Diary of Anne Frank
The Temptations
Roots
The Ten Commandments
Answer: The Temptations
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Temptations" . ?e <title> ?pv_1 . ?pv_1 <pred:value> "The Temptations" . } UNION { ?e <pred:name> "Minority Report" . ?e <number_of_episodes> ?pv_2 . ?pv_2 <pred:unit> "1" . ?pv_2 <pred:value> "10"^^xsd:double . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: The Temptations
function: FilterStr
dependencies: 0
inputs: title
The Temptations
function: Find
inputs: Minority Report
function: FilterNum
dependencies: 2
inputs: number of episodes
10
=
function: SelectBetween
dependencies: 1
3
inputs: number of episodes
less