Question: Which movie is longer, Friends (the one that was nominated for Primetime Emmy Award for Outstanding Comedy Series) or Spider-Man (the one whose start time is 1994-11-19)?
Choices:
Saturday Night's Main Event
Phineas and Ferb
Seinfeld
American Horror Story
Game of Thrones
Six Feet Under
Dancing with the Stars
Spider-Man
Friends
Robot Chicken
Answer: Friends
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Friends" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Primetime Emmy Award for Outstanding Comedy Series" . } UNION { ?e <pred:name> "Spider-Man" . ?e <start_time> ?pv_1 . ?pv_1 <pred:date> "1994-11-19"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Primetime Emmy Award for Outstanding Comedy Series
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: Friends
function: And
dependencies: 1
2
function: Find
inputs: Spider-Man
function: FilterDate
dependencies: 4
inputs: start time
1994-11-19
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater