Question: OF Maryland counties bordering Carroll County (subreddit CarrollCountyMaryland), which takes up the least area?
Choices:
Carroll County
Frederick County
Baltimore County
Harford County
Howard County
Anne Arundel County
Cecil County
Kent County
Allegany County
Prince George's County
Program:
function: Find
inputs: Carroll County
function: FilterStr
dependencies: 0
inputs: subreddit
CarrollCountyMaryland
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 <subreddit> ?pv_1 . ?pv_1 <pred:value> "CarrollCountyMaryland" . ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Howard County