Question: What Pennsylvania city is the birthplace of the person who is the director of Sex and the City 2?
Choices:
Greensburg
Harrisburg
Johnstown
York
Pittsburgh
Wilkes-Barre
Philadelphia
Reading
Bethlehem
Scranton
Program:
function: Find
inputs: Sex and the City 2
function: Relate
dependencies: 0
inputs: director
forward
function: FilterConcept
dependencies: 1
inputs: human
function: Relate
dependencies: 2
inputs: place of birth
forward
function: FilterConcept
dependencies: 3
inputs: city of Pennsylvania
function: What
dependencies: 4
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of Pennsylvania" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "human" . ?e_2 <director> ?e_1 . ?e_2 <pred:name> "Sex and the City 2" .   }
Answer: Scranton