Question: Which one, Sault Ste. Marie or Hiroshima (the one that is the capital of Hiroshima Prefecture), has less area?
Choices:
Cork
Trieste
Dundee
Santo Domingo
Abidjan
Sault Ste. Marie
Kilkenny
Kingston
Bergen
Chihuahua
Program:
function: Find
inputs: Sault Ste. Marie
function: Find
inputs: Hiroshima Prefecture
function: Relate
dependencies: 1
inputs: capital
forward
function: Find
inputs: Hiroshima
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sault Ste. Marie" .  } UNION { ?e <pred:name> "Hiroshima" . ?e_1 <capital> ?e . ?e_1 <pred:name> "Hiroshima Prefecture" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Sault Ste. Marie