Question: Does the lower episode count belong to the cartoon Tiny Toon Adventures or to Frank Herbert's Dune?
Choices:
George Washington
Battlestar Galactica
The Pacific
Tiny Toon Adventures
Frank Herbert's Dune
Roots
The Stand
The Diary of Anne Frank
The Civil War
Edge of Darkness
Program:
function: Find
inputs: cartoon
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Tiny Toon Adventures
function: And
dependencies: 1
2
function: Find
inputs: Frank Herbert's Dune
function: SelectBetween
dependencies: 3
4
inputs: number of episodes
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tiny Toon Adventures" . ?e <genre> ?e_1 . ?e_1 <pred:name> "cartoon" .   } UNION { ?e <pred:name> "Frank Herbert's Dune" .  } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Frank Herbert's Dune