Question: Which film is shot in the city that is located in County Galway ?
Choices:
Inglourious Basterds
Bel Ami
All About Eve
The Quiet Man
Judge Dredd
The Lives of Others
The Proposition
Transamerica
Dr. Strangelove
Chungking Express
Answer: The Quiet Man
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film" . ?e <filming_location> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "city" . ?e_1 <located_in_the_administrative_territorial_entity> ?e_2 . ?e_2 <pred:name> "County Galway" .   }
Program:
function: Find
inputs: County Galway
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 1
inputs: city
function: Relate
dependencies: 2
inputs: filming location
backward
function: FilterConcept
dependencies: 3
inputs: film
function: What
dependencies: 4