Question: Which show has more seasons, Cheers or Greek (the one whose narrative location is Los Angeles)?
Choices:
Dancing with the Stars
Six Feet Under
Saturday Night's Main Event
Cheers
Robot Chicken
Phineas and Ferb
Seinfeld
Game of Thrones
Bleak House
American Horror Story
Answer: Cheers
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cheers" .  } UNION { ?e <pred:name> "Greek" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "Los Angeles" .   } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Cheers
function: Find
inputs: Los Angeles
function: Relate
dependencies: 1
inputs: narrative location
backward
function: Find
inputs: Greek
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of seasons
greater