Question: Is there a greater male population in Shiraz (the one whose number of households is 481239) or Wagga Wagga?
Choices: Kilkenny
Chihuahua
Trieste
Santo Domingo
Wagga Wagga
Shiraz
Cork
Kingston
Abidjan
Dundee
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Shiraz" . ?e <number_of_households> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "481239"^^xsd:double . } UNION { ?e <pred:name> "Wagga Wagga" . } ?e <male_population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Shiraz
function: FilterNum
dependencies: 0
inputs: number of households
481239
=
function: Find
inputs: Wagga Wagga
function: SelectBetween
dependencies: 1
2
inputs: male population
greater
Answer: Shiraz