Question: Which one is longer, Kansas City (the one whose title is Kansas City) or Dune (the one whose original film format is 35 mm film) ?
Choices:
Rebecca
The Fifth Element
A Prairie Home Companion
Pleasantville
Kansas City
Dune
The Towering Inferno
Talk to Her
Training Day
Curse of the Golden Flower
Program:
function: Find
inputs: Kansas City
function: FilterStr
dependencies: 0
inputs: title
Kansas City
function: Find
inputs: 35 mm film
function: Relate
dependencies: 2
inputs: original film format
backward
function: Find
inputs: Dune
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kansas City" . ?e <title> ?pv_1 . ?pv_1 <pred:value> "Kansas City" . } UNION { ?e <pred:name> "Dune" . ?e <original_film_format> ?e_1 . ?e_1 <pred:name> "35 mm film" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Dune