Question: Which one, Spider-Man (the one whose duration is 22 minute) or The Cosby Show, has the greater number of seasons?
Choices:
Six Feet Under
Saturday Night's Main Event
Seinfeld
Bleak House
Dancing with the Stars
Spider-Man
Robot Chicken
Game of Thrones
The Cosby Show
American Horror Story
Answer: The Cosby Show
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Spider-Man" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "22"^^xsd:double . } UNION { ?e <pred:name> "The Cosby Show" . } ?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: duration
22 minute
=
function: Find
inputs: The Cosby Show
function: SelectBetween
dependencies: 1
2
inputs: number of seasons
greater