Question: Which movie is longer, ABC Afterschool Special or The Incredible Hulk (the one whose duration is 45 minute)?
Choices:
The Incredible Hulk
Saturday Night's Main Event
Robot Chicken
Game of Thrones
ABC Afterschool Special
Six Feet Under
Seinfeld
Dancing with the Stars
Bleak House
American Horror Story
Program:
function: Find
inputs: ABC Afterschool Special
function: Find
inputs: The Incredible Hulk
function: FilterNum
dependencies: 1
inputs: duration
45 minute
=
function: SelectBetween
dependencies: 0
2
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "ABC Afterschool Special" . } UNION { ?e <pred:name> "The Incredible Hulk" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "45"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: ABC Afterschool Special