Question: Which show has more seasons, The Untouchables (the one that has Robert Stack as a cast member) or Alias (the one that uses the language English)?
Choices:
Robot Chicken
Bleak House
Seinfeld
Alias
Saturday Night's Main Event
Six Feet Under
Game of Thrones
American Horror Story
Dancing with the Stars
The Untouchables
Program:
function: Find
inputs: Robert Stack
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Untouchables
function: And
dependencies: 1
2
function: Find
inputs: English
function: Relate
dependencies: 4
inputs: language of work or name
backward
function: Find
inputs: Alias
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: number of seasons
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Untouchables" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Robert Stack" .   } UNION { ?e <pred:name> "Alias" . ?e <language_of_work_or_name> ?e_2 . ?e_2 <pred:name> "English" .  } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Alias