Question: Which is longer, Rocky (the one whose Giphy username is rockymovie) or Beowulf (the one whose director is Robert Zemeckis)?
Choices:
Curse of the Golden Flower
The Hunchback of Notre Dame
Pleasantville
The Fifth Element
Beowulf
A Prairie Home Companion
Rocky
Training Day
Talk to Her
The Towering Inferno
Answer: Rocky
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rocky" . ?e <Giphy_username> ?pv_1 . ?pv_1 <pred:value> "rockymovie" . } UNION { ?e <pred:name> "Beowulf" . ?e <director> ?e_1 . ?e_1 <pred:name> "Robert Zemeckis" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Rocky
function: FilterStr
dependencies: 0
inputs: Giphy username
rockymovie
function: Find
inputs: Robert Zemeckis
function: Relate
dependencies: 2
inputs: director
backward
function: Find
inputs: Beowulf
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater