Question: What United States city is the capital of the county of Massachusetts and has the Dewey Decimal Classification of 2--7446?
Choices:
Fort Lauderdale
Taunton
Pittsfield
Greenville
Waukegan
Dubuque
Boston
Columbus
Salem
Northampton
Answer: Boston
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of the United States" . ?e <capital_of> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "county of Massachusetts" . ?e_1 <Dewey_Decimal_Classification> ?pv . ?pv <pred:value> "2--7446" .   }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: Dewey Decimal Classification
2--7446
function: FilterConcept
dependencies: 1
inputs: county of Massachusetts
function: Relate
dependencies: 2
inputs: capital of
backward
function: FilterConcept
dependencies: 3
inputs: city of the United States
function: What
dependencies: 4