Question: Which show ran for more seasons, Desperate Housewives or Upstairs, Downstairs?
Choices:
Dancing with the Stars
American Horror Story
Game of Thrones
Desperate Housewives
Saturday Night's Main Event
Upstairs, Downstairs
Phineas and Ferb
Seinfeld
Six Feet Under
Bleak House
Program:
function: Find
inputs: Desperate Housewives
function: Find
inputs: Upstairs, Downstairs
function: SelectBetween
dependencies: 0
1
inputs: number of seasons
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Desperate Housewives" .  } UNION { ?e <pred:name> "Upstairs, Downstairs" .  } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Desperate Housewives