Question: Does Merlin (that is filmed in Wales) or ABC Afterschool Special have more episodes?
Choices:
ABC Afterschool Special
Merlin
Bleak House
Seinfeld
Robot Chicken
Saturday Night's Main Event
Dancing with the Stars
American Horror Story
Six Feet Under
Game of Thrones
Answer: ABC Afterschool Special
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Merlin" . ?e <filming_location> ?e_1 . ?e_1 <pred:name> "Wales" .   } UNION { ?e <pred:name> "ABC Afterschool Special" .  } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Wales
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: Merlin
function: And
dependencies: 1
2
function: Find
inputs: ABC Afterschool Special
function: SelectBetween
dependencies: 3
4
inputs: number of episodes
greater