Question: What country is the headquarter of University of California in Santa Barbara, where Douglas Adams died, located in?
Choices:
United Arab Republic
United States of America
Greece
Belgium
Chile
Peru
Socialist Federal Republic of Yugoslavia
Lithuania
New Zealand
Armenia
Program:
function: Find
inputs: University of California, Santa Barbara
function: Find
inputs: Douglas Adams
function: Relate
dependencies: 1
inputs: place of death
forward
function: Find
inputs: Santa Barbara
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: headquarters location
country
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "University of California, Santa Barbara" . ?e_2 <pred:name> "Santa Barbara" . ?e_3 <place_of_death> ?e_2 . ?e_3 <pred:name> "Douglas Adams" . ?e_1 <headquarters_location> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <headquarters_location> ; <pred:fact_t> ?e_2 ] <country> ?qpv .  }
Answer: United States of America