Question: Which movie is longer, The Gay Divorcee or The Scorpion King (the one whose title is The Scorpion King)?
Choices:
Training Day
Pleasantville
The Fifth Element
Rebecca
The Scorpion King
Curse of the Golden Flower
The Gay Divorcee
The Towering Inferno
A Prairie Home Companion
Talk to Her
Answer: The Gay Divorcee
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Gay Divorcee" . } UNION { ?e <pred:name> "The Scorpion King" . ?e <title> ?pv_1 . ?pv_1 <pred:value> "The Scorpion King" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: The Gay Divorcee
function: Find
inputs: The Scorpion King
function: FilterStr
dependencies: 1
inputs: title
The Scorpion King
function: SelectBetween
dependencies: 0
2
inputs: duration
greater