Question: Which show has more seasons, ER or Cher (the one that was nominated for Primetime Emmy Award for Individual Performance in a Variety or Music Program)?
Choices:
Bleak House
American Horror Story
Phineas and Ferb
Saturday Night's Main Event
Game of Thrones
Cher
Dancing with the Stars
ER
Six Feet Under
Robot Chicken
Answer: ER
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "ER" .  } UNION { ?e <pred:name> "Cher" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Primetime Emmy Award for Individual Performance in a Variety or Music Program" .   } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: ER
function: Find
inputs: Primetime Emmy Award for Individual Performance in a Variety or Music Program
function: Relate
dependencies: 1
inputs: nominated for
backward
function: Find
inputs: Cher
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of seasons
greater