Question: Does the higher season count belong to Wanted, exec-produced by Aaron Spelling, or to Taxi, a Primetime Emmy nominee for Outstanding Lead Actress in a Comedy Series?
Choices:
Saturday Night's Main Event
Seinfeld
Wanted
Taxi
Game of Thrones
Bleak House
Dancing with the Stars
Six Feet Under
Phineas and Ferb
American Horror Story
Answer: Taxi
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Wanted" . ?e <executive_producer> ?e_1 . ?e_1 <pred:name> "Aaron Spelling" .   } UNION { ?e <pred:name> "Taxi" . ?e <nominated_for> ?e_2 . ?e_2 <pred:name> "Primetime Emmy Award for Outstanding Lead Actress in a Comedy Series" .  } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Aaron Spelling
function: Relate
dependencies: 0
inputs: executive producer
backward
function: Find
inputs: Wanted
function: And
dependencies: 1
2
function: Find
inputs: Primetime Emmy Award for Outstanding Lead Actress in a Comedy Series
function: Relate
dependencies: 4
inputs: nominated for
backward
function: Find
inputs: Taxi
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: number of seasons
greater