Question: Tell me the New York county that has the capital the United States city with the zip code 12601–12604
Choices:
Jefferson County
Warren County
Monroe County
Oswego County
Albany County
Clinton County
Niagara County
Greene County
Dutchess County
Sullivan County
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: postal code
12601–12604
function: FilterConcept
dependencies: 1
inputs: city of the United States
function: Relate
dependencies: 2
inputs: capital of
forward
function: FilterConcept
dependencies: 3
inputs: county of New York
function: What
dependencies: 4
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of New York" . ?e_1 <capital_of> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "city of the United States" . ?e_1 <postal_code> ?pv . ?pv <pred:value> "12601–12604" .   }
Answer: Dutchess County