Question: The HQ of Shanachie Records in Newton (population 7997) is in which country?
Choices:
Kingdom of Prussia
Austria
Estonia
Cambodia
Panama
United Kingdom
United States of America
Pakistan
Australia
South Korea
Program:
function: Find
inputs: Shanachie Records
function: Find
inputs: Newton
function: FilterNum
dependencies: 1
inputs: population
7997
=
function: QueryRelationQualifier
dependencies: 0
2
inputs: headquarters location
country
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Shanachie Records" . ?e_2 <pred:name> "Newton" . ?e_2 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "7997"^^xsd:double . ?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