Question: Which show had more seasons, Training Day (the one whose number of seasons is 1) or Soap?
Choices:
Seinfeld
Saturday Night's Main Event
Game of Thrones
Training Day
Robot Chicken
American Horror Story
Dancing with the Stars
Six Feet Under
Phineas and Ferb
Soap
Answer: Soap
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Training Day" . ?e <number_of_seasons> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "1"^^xsd:double . } UNION { ?e <pred:name> "Soap" . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Training Day
function: FilterNum
dependencies: 0
inputs: number of seasons
1
=
function: Find
inputs: Soap
function: SelectBetween
dependencies: 1
2
inputs: number of seasons
greater