Question: Which has more episodes, King of the Hill (the one that has Elijah Wood as a voice actor) or Dallas (the one whose distributor is Lorimar Television)?
Choices: American Horror Story
Robot Chicken
Seinfeld
Dallas
Phineas and Ferb
Six Feet Under
King of the Hill
Game of Thrones
Saturday Night's Main Event
Dancing with the Stars
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "King of the Hill" . ?e <voice_actor> ?e_1 . ?e_1 <pred:name> "Elijah Wood" .   } UNION { ?e <pred:name> "Dallas" . ?e <distributor> ?e_2 . ?e_2 <pred:name> "Lorimar Television" .  } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Elijah Wood
function: Relate
dependencies: 0
inputs: voice actor
backward
function: Find
inputs: King of the Hill
function: And
dependencies: 1
2
function: Find
inputs: Lorimar Television
function: Relate
dependencies: 4
inputs: distributor
backward
function: Find
inputs: Dallas
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: number of episodes
greater
Answer: Dallas