Question: Which has fewer episodes, Paris (the one that has Steven Bochco as an executive producer) or Oliver Twist (the one whose official website is http://www.bbc.co.uk/drama/oliver)?
Choices:
Battlestar Galactica
The Stand
Paris
The Civil War
The Ten Commandments
George Washington
Edge of Darkness
The Diary of Anne Frank
Oliver Twist
The Pacific
Answer: Oliver Twist
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Paris" . ?e <executive_producer> ?e_1 . ?e_1 <pred:name> "Steven Bochco" . } UNION { ?e <pred:name> "Oliver Twist" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.bbc.co.uk/drama/oliver" . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Steven Bochco
function: Relate
dependencies: 0
inputs: executive producer
backward
function: Find
inputs: Paris
function: And
dependencies: 1
2
function: Find
inputs: Oliver Twist
function: FilterStr
dependencies: 4
inputs: official website
http://www.bbc.co.uk/drama/oliver
function: SelectBetween
dependencies: 3
5
inputs: number of episodes
less