Question: Which show has more episodes, Pan Am (the one that is originally aired on American Broadcasting Company) or Charlie's Angels (the one that derives Charlie's Angels: Full Throttle)?
Choices:
Bleak House
Seinfeld
Dancing with the Stars
Robot Chicken
Six Feet Under
American Horror Story
Charlie's Angels
Game of Thrones
Pan Am
Saturday Night's Main Event
Answer: Charlie's Angels
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Pan Am" . ?e <original_network> ?e_1 . ?e_1 <pred:name> "American Broadcasting Company" .   } UNION { ?e <pred:name> "Charlie's Angels" . ?e_2 <based_on> ?e . ?e_2 <pred:name> "Charlie's Angels: Full Throttle" .  } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: American Broadcasting Company
function: Relate
dependencies: 0
inputs: original network
backward
function: Find
inputs: Pan Am
function: And
dependencies: 1
2
function: Find
inputs: Charlie's Angels: Full Throttle
function: Relate
dependencies: 4
inputs: based on
forward
function: Find
inputs: Charlie's Angels
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: number of episodes
greater