Question: Regarding the city that has Punjab as a location (where Saeed Jaffrey was born) (this statement's end time is 1947-08-14), what is the UN/LOCODE?
Choices: USCMI
ITBRC
ITFRR
ITMIL
USCHI
NZCAN
ITPAV
PKRWP
ITBRI
DEESS
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Punjab" . ?e_2 <place_of_birth> ?e_1 . ?e_2 <pred:name> "Saeed Jaffrey" .  [ <pred:fact_h> ?e ; <pred:fact_r> <located_in_the_administrative_territorial_entity> ; <pred:fact_t> ?e_1 ] <end_time> ?qpv . ?qpv <pred:date> "1947-08-14"^^xsd:date . ?e <UN/LOCODE> ?pv .  }
Program:
function: Find
inputs: Saeed Jaffrey
function: Relate
dependencies: 0
inputs: place of birth
forward
function: Find
inputs: Punjab
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
backward
function: QFilterDate
dependencies: 4
inputs: end time
1947-08-14
=
function: FilterConcept
dependencies: 5
inputs: city
function: QueryAttr
dependencies: 6
inputs: UN/LOCODE
Answer: PKRWP