Question: Which has less area, the 5.7 square kilometer Orange or Whanganui?
Choices:
Ridgewood
Livingston
Belleville
Princeton
Orange
North Hollywood
Montclair
Whanganui
Red Bank
Verona
Program:
function: Find
inputs: Whanganui
function: Find
inputs: Orange
function: FilterNum
dependencies: 1
inputs: area
5.7 square kilometre
=
function: SelectBetween
dependencies: 0
2
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Whanganui" . } UNION { ?e <pred:name> "Orange" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "5.7"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Whanganui