Question: Which has fewer episodes, The Good Wife or Rome that comes from the United Kingdom?
Choices:
Game of Thrones
Seinfeld
Rome
Phineas and Ferb
American Horror Story
Saturday Night's Main Event
Robot Chicken
Six Feet Under
Dancing with the Stars
Bleak House
Program:
function: Find
inputs: The Good Wife
function: Find
inputs: United Kingdom
function: Relate
dependencies: 1
inputs: country of origin
backward
function: Find
inputs: Rome
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of episodes
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Good Wife" .  } UNION { ?e <pred:name> "Rome" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "United Kingdom" .   } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Rome