Question: Which has fewer episodes, Prison Break (the one that has William Fichtner as a cast member) or Frank Herbert's Dune?
Choices:
Frank Herbert's Dune
Edge of Darkness
George Washington
Roots
Prison Break
The Stand
The Pacific
The Ten Commandments
The Diary of Anne Frank
Battlestar Galactica
Program:
function: Find
inputs: William Fichtner
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Prison Break
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> "Prison Break" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "William Fichtner" .   } 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