Question: Which city has fewer people, Lima (the one that is the twinned administrative body of Mexico City) or Plymouth (the one whose area is 79.29 square kilometre)?
Choices:
Cork
Trieste
Lima
Chihuahua
Kingston
Kilkenny
Dundee
Santo Domingo
Plymouth
Abidjan
Program:
function: Find
inputs: Mexico City
function: Relate
dependencies: 0
inputs: twinned administrative body
backward
function: Find
inputs: Lima
function: And
dependencies: 1
2
function: Find
inputs: Plymouth
function: FilterNum
dependencies: 4
inputs: area
79.29 square kilometre
=
function: SelectBetween
dependencies: 3
5
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lima" . ?e <twinned_administrative_body> ?e_1 . ?e_1 <pred:name> "Mexico City" . } UNION { ?e <pred:name> "Plymouth" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "79.29"^^xsd:double . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Plymouth