Question: Which human settlement in Western Australia has a suburban female population under 32000?
Choices:
Subiaco
Princeton
North Hollywood
Livingston
Ridgewood
Red Bank
Perth Airport
Verona
Montclair
Whanganui
Program:
function: Find
inputs: Western Australia
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 1
inputs: human settlement
function: FindAll
function: FilterNum
dependencies: 3
inputs: female population
32000
<
function: QFilterStr
dependencies: 4
inputs: applies to part
state suburb
function: FilterConcept
dependencies: 5
inputs: human settlement
function: And
dependencies: 2
6
function: What
dependencies: 7
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human settlement" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Western Australia" .  ?e <female_population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "32000"^^xsd:double ) . [ <pred:fact_h> ?e ; <pred:fact_r> <female_population> ; <pred:fact_t> ?pv ] <applies_to_part> ?qpv . ?qpv <pred:value> "state suburb" .  }
Answer: Subiaco