Question: Does the City of Angels (that has Maya Rudolph as a cast member) or America's Got Talent have more seasons?
Choices:
America's Got Talent
Six Feet Under
Saturday Night's Main Event
Seinfeld
Dancing with the Stars
Phineas and Ferb
Game of Thrones
American Horror Story
Bleak House
City of Angels
Program:
function: Find
inputs: Maya Rudolph
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: City of Angels
function: And
dependencies: 1
2
function: Find
inputs: America's Got Talent
function: SelectBetween
dependencies: 3
4
inputs: number of seasons
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "City of Angels" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Maya Rudolph" .   } UNION { ?e <pred:name> "America's Got Talent" .  } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: America's Got Talent