Question: Which university has their headquarters location in the city whose ISNI is 0000 0004 0409 3523 and has a postal code of M3J 1P3?
Choices:
McMaster University
University of Tehran
University of Manchester
King's College London
Presidency University
Imperial College London
York University
University of Toronto
Pennsylvania State University
Ryerson University
Answer: York University
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "university" . ?e <headquarters_location> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "city" . ?e_1 <ISNI> ?pv . ?pv <pred:value> "0000 0004 0409 3523" .  [ <pred:fact_h> ?e ; <pred:fact_r> <headquarters_location> ; <pred:fact_t> ?e_1 ] <postal_code> ?qpv . ?qpv <pred:value> "M3J 1P3" .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: ISNI
0000 0004 0409 3523
function: FilterConcept
dependencies: 1
inputs: city
function: Relate
dependencies: 2
inputs: headquarters location
backward
function: QFilterStr
dependencies: 3
inputs: postal code
M3J 1P3
function: FilterConcept
dependencies: 4
inputs: university
function: What
dependencies: 5