Question: Which has the most episodes, the fantasy Ben 10 or The Wire?
Choices:
Ben 10
Six Feet Under
Seinfeld
Dancing with the Stars
The Wire
Phineas and Ferb
Robot Chicken
American Horror Story
Game of Thrones
Bleak House
Program:
function: Find
inputs: fantasy
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Ben 10
function: And
dependencies: 1
2
function: Find
inputs: The Wire
function: SelectBetween
dependencies: 3
4
inputs: number of episodes
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ben 10" . ?e <genre> ?e_1 . ?e_1 <pred:name> "fantasy" .   } UNION { ?e <pred:name> "The Wire" .  } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Wire