Question: For the United States city whose official website is http://www.carlsbadca.gov (the language of this statement is English), to what country does its postal code of 92009 belong?
Choices:
Prussia
international
United States of America
Albania
West Germany
Nazi Germany
Ontario
Armenia
worldwide
Kingdom of the Netherlands
Answer: United States of America
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of the United States" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.carlsbadca.gov" . [ <pred:fact_h> ?e ; <pred:fact_r> <official_website> ; <pred:fact_t> ?pv_1 ] <language_of_work_or_name> ?qpv_1 . ?qpv_1 <pred:value> "English" . ?e <postal_code> ?pv . ?pv <pred:value> "92009" . [ <pred:fact_h> ?e ; <pred:fact_r> <postal_code> ; <pred:fact_t> ?pv ] <country> ?qpv .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: official website
http://www.carlsbadca.gov
function: QFilterStr
dependencies: 1
inputs: language of work or name
English
function: FilterConcept
dependencies: 2
inputs: city of the United States
function: QueryAttrQualifier
dependencies: 3
inputs: postal code
92009
country