Question: Are more people living in Ridgewood or Exeter (the one whose area is 20.0 square mile)?
Choices:
West Orange
Montclair
Verona
Red Bank
North Hollywood
Livingston
Ridgewood
Whanganui
Exeter
Princeton
Program:
function: Find
inputs: Ridgewood
function: Find
inputs: Exeter
function: FilterNum
dependencies: 1
inputs: area
20.0 square mile
=
function: SelectBetween
dependencies: 0
2
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ridgewood" . } UNION { ?e <pred:name> "Exeter" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square mile" . ?pv_1 <pred:value> "20.0"^^xsd:double . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Ridgewood