Question: Does the smaller episode count belong to EastEnders or to Emma, featuring Jonny Lee Miller as a cast member?
Choices:
The Civil War
The Stand
The Pacific
Battlestar Galactica
Edge of Darkness
The Ten Commandments
Roots
Emma
George Washington
The Diary of Anne Frank
Program:
function: Find
inputs: EastEnders
function: Find
inputs: Jonny Lee Miller
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Emma
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of episodes
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "EastEnders" .  } UNION { ?e <pred:name> "Emma" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Jonny Lee Miller" .   } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Emma