Question: What prefecture in Japan that shares a border with Aichi Prefecture has the largest area?
Choices: Aichi Prefecture
Nagano Prefecture
Fukushima Prefecture
Shizuoka Prefecture
Gifu Prefecture
Ōsaka Prefecture
Niigata Prefecture
Chiba Prefecture
Fukuoka Prefecture
Kanagawa Prefecture
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> "Aichi Prefecture" .  ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Aichi Prefecture
function: Relate
dependencies: 0
inputs: shares border with
backward
function: FilterConcept
dependencies: 1
inputs: prefecture of Japan
function: SelectAmong
dependencies: 2
inputs: area
largest
Answer: Nagano Prefecture