Question: Is Ōsaka or Medina, twinned administrative body of Mecca, the larger in terms of area?
Choices:
Bergen
Abidjan
Dundee
Cork
Chihuahua
Medina
Trieste
Ōsaka
Kingston
Santo Domingo
Program:
function: Find
inputs: Ōsaka
function: Find
inputs: Mecca
function: Relate
dependencies: 1
inputs: twinned administrative body
forward
function: Find
inputs: Medina
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ōsaka" .  } UNION { ?e <pred:name> "Medina" . ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Mecca" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Medina