Question: Which show has more episodes, Ugly Betty or Edge of Darkness (the one whose director is Ian McNeice)?
Choices:
Edge of Darkness
Bleak House
American Horror Story
Robot Chicken
Game of Thrones
Saturday Night's Main Event
Seinfeld
Phineas and Ferb
Dancing with the Stars
Ugly Betty
Program:
function: Find
inputs: Ugly Betty
function: Find
inputs: Ian McNeice
function: Relate
dependencies: 1
inputs: director
backward
function: Find
inputs: Edge of Darkness
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of episodes
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ugly Betty" .  } UNION { ?e <pred:name> "Edge of Darkness" . ?e <director> ?e_1 . ?e_1 <pred:name> "Ian McNeice" .   } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Ugly Betty