Question: In what country is Brooklyn College's headquarters of Brooklyn, where Aaliyah resides, located?
Choices: Israel
United Kingdom of Great Britain and Ireland
Ecuador
Scotland
Canada
Kingdom of Bavaria
United States of America
international
English
Netherlands
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Brooklyn College" . ?e_2 <pred:name> "Brooklyn" . ?e_3 <residence> ?e_2 . ?e_3 <pred:name> "Aaliyah" . ?e_1 <headquarters_location> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <headquarters_location> ; <pred:fact_t> ?e_2 ] <country> ?qpv .  }
Program:
function: Find
inputs: Brooklyn College
function: Find
inputs: Aaliyah
function: Relate
dependencies: 1
inputs: residence
forward
function: Find
inputs: Brooklyn
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: headquarters location
country
Answer: United States of America