Question: Where is there a greater female population, in Subiaco or in Perth Airport where the male population is 23?
Choices:
Montclair
Whanganui
Subiaco
Belleville
Livingston
Red Bank
North Hollywood
Verona
Princeton
Ridgewood
Answer: Subiaco
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Subiaco" . } UNION { ?e <pred:name> "Perth Airport" . ?e <male_population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "23"^^xsd:double . } ?e <female_population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Subiaco
function: Find
inputs: Perth Airport
function: FilterNum
dependencies: 1
inputs: male population
23
=
function: SelectBetween
dependencies: 0
2
inputs: female population
greater