Question: Which movie is longer, Mobile Suit Gundam or The Incredible Hulk (the one whose end time is 1982-06-02)?
Choices:
Mobile Suit Gundam
Saturday Night's Main Event
Phineas and Ferb
Seinfeld
Robot Chicken
American Horror Story
Six Feet Under
The Incredible Hulk
Bleak House
Dancing with the Stars
Answer: The Incredible Hulk
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mobile Suit Gundam" . } UNION { ?e <pred:name> "The Incredible Hulk" . ?e <end_time> ?pv_1 . ?pv_1 <pred:date> "1982-06-02"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Mobile Suit Gundam
function: Find
inputs: The Incredible Hulk
function: FilterDate
dependencies: 1
inputs: end time
1982-06-02
=
function: SelectBetween
dependencies: 0
2
inputs: duration
greater