Question: What county shares the smallest border with Carroll County in Maryland and has a population of 167271?
Choices:
Prince George's County
Kent County
Charles County
Baltimore County
Allegany County
Harford County
Anne Arundel County
Cecil County
Frederick County
Howard County
Program:
function: Find
inputs: Carroll County
function: FilterNum
dependencies: 0
inputs: population
167271
=
function: Relate
dependencies: 1
inputs: shares border with
backward
function: FilterConcept
dependencies: 2
inputs: county of Maryland
function: SelectAmong
dependencies: 3
inputs: area
smallest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Maryland" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Carroll County" . ?e_1 <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "167271"^^xsd:double . ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Howard County