Question: Which movie is longer, Charmed (the one whose number of seasons is 1) or Degrassi: The Next Generation?
Choices:
Phineas and Ferb
Robot Chicken
Dancing with the Stars
Game of Thrones
Degrassi: The Next Generation
Charmed
Seinfeld
Bleak House
American Horror Story
Six Feet Under
Answer: Charmed
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Charmed" . ?e <number_of_seasons> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "1"^^xsd:double . } UNION { ?e <pred:name> "Degrassi: The Next Generation" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Charmed
function: FilterNum
dependencies: 0
inputs: number of seasons
1
=
function: Find
inputs: Degrassi: The Next Generation
function: SelectBetween
dependencies: 1
2
inputs: duration
greater