Question: To what country does California College of the Arts's headquarter location in San Francisco (the one that is the formation location of Counting Crows) belong?
Choices:
Kingdom of Great Britain
Russian Soviet Federative Socialist Republic
Bulgaria
Austria-Hungary
Weimar Republic
German Democratic Republic
United States of America
Nepal
Armenia
Bhutan
Answer: United States of America
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "California College of the Arts" . ?e_2 <pred:name> "San Francisco" . ?e_3 <location_of_formation> ?e_2 . ?e_3 <pred:name> "Counting Crows" . ?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: California College of the Arts
function: Find
inputs: Counting Crows
function: Relate
dependencies: 1
inputs: location of formation
forward
function: Find
inputs: San Francisco
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: headquarters location
country