Question: Between Kanagawa and Saitama prefectures, which occupies the smaller area?
Choices:
Aichi Prefecture
Saitama Prefecture
Fukuoka Prefecture
Miyagi Prefecture
Chiba Prefecture
Ōsaka Prefecture
Kanagawa Prefecture
Fukushima Prefecture
Nagano Prefecture
Okinawa Prefecture
Program:
function: Find
inputs: Kanagawa Prefecture
function: Find
inputs: Saitama Prefecture
function: SelectBetween
dependencies: 0
1
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kanagawa Prefecture" .  } UNION { ?e <pred:name> "Saitama Prefecture" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Kanagawa Prefecture