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