Question: Between Kagoshima and Kanagawa Prefectures, which prefecture occupies a larger area?
Choices:
Kanagawa Prefecture
Niigata Prefecture
Kagoshima Prefecture
Saitama Prefecture
Okinawa Prefecture
Fukushima Prefecture
Chiba Prefecture
Fukuoka Prefecture
Ōsaka Prefecture
Miyagi Prefecture
Program:
function: Find
inputs: Kagoshima Prefecture
function: Find
inputs: Kanagawa Prefecture
function: SelectBetween
dependencies: 0
1
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kagoshima Prefecture" .  } UNION { ?e <pred:name> "Kanagawa Prefecture" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Kagoshima Prefecture