Question: Which show has more seasons, King of the Hill (the one whose number of seasons is 13) or Sonic the Hedgehog (the one whose number of seasons is 2)?
Choices:
Robot Chicken
Tiny Toon Adventures
The Venture Bros.
Sonic the Hedgehog
Aladdin
American Dad!
South Park
Phineas and Ferb
King of the Hill
Batman Beyond
Program:
function: Find
inputs: King of the Hill
function: FilterNum
dependencies: 0
inputs: number of seasons
13
=
function: Find
inputs: Sonic the Hedgehog
function: FilterNum
dependencies: 2
inputs: number of seasons
2
=
function: SelectBetween
dependencies: 1
3
inputs: number of seasons
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "King of the Hill" . ?e <number_of_seasons> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "13"^^xsd:double . } UNION { ?e <pred:name> "Sonic the Hedgehog" . ?e <number_of_seasons> ?pv_2 . ?pv_2 <pred:unit> "1" . ?pv_2 <pred:value> "2"^^xsd:double . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: King of the Hill