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