Question: Which had more seasons, Monk or Pushing Daisies?
Choices:
Saturday Night's Main Event
Six Feet Under
Bleak House
Game of Thrones
American Horror Story
Pushing Daisies
Phineas and Ferb
Seinfeld
Monk
Robot Chicken
Program:
function: Find
inputs: Monk
function: Find
inputs: Pushing Daisies
function: SelectBetween
dependencies: 0
1
inputs: number of seasons
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Monk" .  } UNION { ?e <pred:name> "Pushing Daisies" .  } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Monk