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