Question: Which zip code applies to the county seat and capital of Somerset County, population 330585?
Choices:
19019–19255
79401–79499
67215
21214
08876
47777
91055
27711
EC170150
50823
Answer: 08876
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county seat" . ?e_1 <capital> ?e . ?e_1 <pred:name> "Somerset County" . ?e_1 <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "330585"^^xsd:double . ?e <postal_code> ?pv .  }
Program:
function: Find
inputs: Somerset County
function: FilterNum
dependencies: 0
inputs: population
330585
=
function: Relate
dependencies: 1
inputs: capital
forward
function: FilterConcept
dependencies: 2
inputs: county seat
function: QueryAttr
dependencies: 3
inputs: postal code