Question: Does Kansas City (whose genre is drama film) or Pulp Fiction have the longer runtime?
Choices:
The Towering Inferno
Rebecca
Curse of the Golden Flower
Pulp Fiction
Kansas City
The Fifth Element
A Prairie Home Companion
Training Day
Talk to Her
Pleasantville
Program:
function: Find
inputs: drama film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Kansas City
function: And
dependencies: 1
2
function: Find
inputs: Pulp Fiction
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kansas City" . ?e <genre> ?e_1 . ?e_1 <pred:name> "drama film" .   } UNION { ?e <pred:name> "Pulp Fiction" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Pulp Fiction