Question: Which Japanese prefecture bordering Tokyo, where Inception was filmed, covers the least area?
Choices:
Saitama Prefecture
Fukushima Prefecture
Okinawa Prefecture
Fukuoka Prefecture
Niigata Prefecture
Miyagi Prefecture
Ōsaka Prefecture
Aichi Prefecture
Chiba Prefecture
Kanagawa Prefecture
Program:
function: Find
inputs: Inception
function: Relate
dependencies: 0
inputs: filming location
forward
function: Find
inputs: Tokyo
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: shares border with
backward
function: FilterConcept
dependencies: 4
inputs: prefecture of Japan
function: SelectAmong
dependencies: 5
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> "Tokyo" . ?e_2 <filming_location> ?e_1 . ?e_2 <pred:name> "Inception" .  ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Kanagawa Prefecture