Question: Which county in Florida shares the smallest border with Polk County?
Choices:
Polk County
Indian River County
Lake County
Putnam County
Broward County
Citrus County
Alachua County
Pasco County
Monroe County
Orange County
Program:
function: Find
inputs: Pasco County
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Polk County
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: shares border with
forward
function: FilterConcept
dependencies: 4
inputs: county of Florida
function: SelectAmong
dependencies: 5
inputs: area
smallest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Florida" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Polk County" . ?e_2 <shares_border_with> ?e_1 . ?e_2 <pred:name> "Pasco County" .  ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Pasco County