Question: Which film has a duration greater than 60 minutes and has the director Johnnie To?
Choices:
Serpico
13 Going on 30
The Taking of Pelham 123
Election
The Nightmare Before Christmas
The Truman Show
A Prairie Home Companion
The Mission
Vertigo
Election 2
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: duration
60 minute
>
function: FilterConcept
dependencies: 1
inputs: film
function: Find
inputs: Johnnie To
function: Relate
dependencies: 3
inputs: director
backward
function: FilterConcept
dependencies: 4
inputs: film
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film" . ?e <duration> ?pv . ?pv <pred:unit> "minute" . ?pv <pred:value> ?v . FILTER ( ?v > "60"^^xsd:double ) . ?e <director> ?e_1 . ?e_1 <pred:name> "Johnnie To" .  }
Answer: The Mission