Question: What city is the capital of Apulia and the filming location of April whose duration is 78 minutes?
Choices:
Bari
Cork
Kilkenny
Dundee
Venice
Abidjan
Santo Domingo
Chihuahua
Kingston
Trieste
Program:
function: Find
inputs: Apulia
function: Relate
dependencies: 0
inputs: capital of
backward
function: FilterConcept
dependencies: 1
inputs: city
function: Find
inputs: April
function: FilterNum
dependencies: 3
inputs: duration
78 minute
=
function: Relate
dependencies: 4
inputs: filming location
forward
function: FilterConcept
dependencies: 5
inputs: city
function: And
dependencies: 2
6
function: What
dependencies: 7
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e <capital_of> ?e_1 . ?e_1 <pred:name> "Apulia" .  ?e_2 <filming_location> ?e . ?e_2 <pred:name> "April" . ?e_2 <duration> ?pv . ?pv <pred:unit> "minute" . ?pv <pred:value> "78"^^xsd:double .  }
Answer: Bari