Question: Of Japanese prefectures bordering Chiba Prefecture, which takes up the least area?
Choices:
Fukuoka Prefecture
Niigata Prefecture
Ōsaka Prefecture
Chiba Prefecture
Fukushima Prefecture
Kanagawa Prefecture
Saitama Prefecture
Okinawa Prefecture
Miyagi Prefecture
Aichi Prefecture
Program:
function: Find
inputs: Chiba 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> "Chiba Prefecture" .  ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Saitama Prefecture