Question: Which Japanese prefecture bordering Nagano Prefecture covers the least area?
Choices:
Fukushima Prefecture
Chiba Prefecture
Saitama Prefecture
Miyagi Prefecture
Kanagawa Prefecture
Fukuoka Prefecture
Niigata Prefecture
Shizuoka Prefecture
Gifu Prefecture
Ōsaka Prefecture
Program:
function: Find
inputs: Nagano Prefecture
function: Relate
dependencies: 0
inputs: shares border with
backward
function: FilterConcept
dependencies: 1
inputs: prefecture of Japan
function: SelectAmong
dependencies: 2
inputs: area
smallest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "prefecture of Japan" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Nagano Prefecture" .  ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Saitama Prefecture