Question: What metropolitan area in the US in New Orleans is the birthplace of Tyler Perry?
Choices:
Washington metropolitan area
Pittsburgh metropolitan area
Portland metropolitan area
Greater St. Louis
Greater Houston
Baltimore metropolitan area
New Orleans metropolitan area
Seattle metropolitan area
New York metropolitan area
Greater Los Angeles Area
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country
backward
function: FilterConcept
dependencies: 1
inputs: metropolitan area
function: Find
inputs: Tyler Perry
function: Relate
dependencies: 3
inputs: place of birth
forward
function: Find
inputs: New Orleans
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: located on terrain feature
forward
function: FilterConcept
dependencies: 7
inputs: metropolitan area
function: And
dependencies: 2
8
function: What
dependencies: 9
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "metropolitan area" . ?e <country> ?e_1 . ?e_1 <pred:name> "United States of America" .  ?e_2 <located_on_terrain_feature> ?e . ?e_2 <pred:name> "New Orleans" . ?e_3 <place_of_birth> ?e_2 . ?e_3 <pred:name> "Tyler Perry" .  }
Answer: New Orleans metropolitan area