Question: For the U.S. city whose official website is http://www.newtonma.gov/, to what country does its postal code of 02458 belong?
Choices:
Scotland
Ontario
Burkina Faso
Suriname
Bangladesh
United States of America
Singapore
Saudi Arabia
Finland
Kingdom of Prussia
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.newtonma.gov/" . ?e <postal_code> ?pv . ?pv <pred:value> "02458" . [ <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.newtonma.gov/
function: FilterConcept
dependencies: 1
inputs: city of the United States
function: QueryAttrQualifier
dependencies: 2
inputs: postal code
02458
country