Question: How is Gloucester whose population is 28789 related to the United States?
Choices:
drug used for treatment
mother
copyright representative
different from
symptom of
distributor
office held by head of state
country
record label
allegiance
Program:
function: Find
inputs: Gloucester
function: FilterNum
dependencies: 0
inputs: population
28789
=
function: Find
inputs: United States of America
function: QueryRelation
dependencies: 1
2
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Gloucester" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "28789"^^xsd:double . ?e_2 <pred:name> "United States of America" . ?e_1 ?p ?e_2 .  }
Answer: country