Question: Which show had more episodes, Starsky & Hutch (the one whose number of seasons is 4) or Madison (the one that uses the language English)?
Choices: Saturday Night's Main Event
Game of Thrones
Bleak House
Seinfeld
American Horror Story
Phineas and Ferb
Starsky & Hutch
Madison
Six Feet Under
Robot Chicken
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Starsky & Hutch" . ?e <number_of_seasons> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "4"^^xsd:double . } UNION { ?e <pred:name> "Madison" . ?e <language_of_work_or_name> ?e_1 . ?e_1 <pred:name> "English" . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Starsky & Hutch
function: FilterNum
dependencies: 0
inputs: number of seasons
4
=
function: Find
inputs: English
function: Relate
dependencies: 2
inputs: language of work or name
backward
function: Find
inputs: Madison
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: number of episodes
greater
Answer: Starsky & Hutch