Question: The person nicknamed The Fresh Prince was born in which Pennsylvania city?
Choices:
Bethlehem
Wilkes-Barre
Johnstown
Greensburg
Pittsburgh
Scranton
Philadelphia
Reading
York
Harrisburg
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: nickname
The Fresh Prince
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_1 <nickname> ?pv . ?pv <pred:value> "The Fresh Prince" .   }
Answer: Philadelphia