Question: Which prefecture of Japan that shares a border with Niigata Prefecture has the largest land area?
Choices: Chiba Prefecture
Kanagawa Prefecture
Miyagi Prefecture
Nagano Prefecture
Saitama Prefecture
Ōsaka Prefecture
Aichi Prefecture
Fukuoka Prefecture
Niigata Prefecture
Fukushima 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> "Niigata Prefecture" .  ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Niigata 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: Fukushima Prefecture