Question: Which film, shot in a United States city, is the formation location of The Mars Volta?
Choices:
Alice in Wonderland
Dead Man
Fast Five
Think like a Man
Get Smart
Constantine
Young Frankenstein
Traffic
Courage Under Fire
Happy-Go-Lucky
Answer: Courage Under Fire
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 of the United States" . ?e_2 <location_of_formation> ?e_1 . ?e_2 <pred:name> "The Mars Volta" .   }
Program:
function: Find
inputs: The Mars Volta
function: Relate
dependencies: 0
inputs: location of formation
forward
function: FilterConcept
dependencies: 1
inputs: city of the United States
function: Relate
dependencies: 2
inputs: filming location
backward
function: FilterConcept
dependencies: 3
inputs: film
function: What
dependencies: 4