Question: Does Jamaica (the one whose population is 217000) or Venice (the one whose population is 40885) have the greater area?
Choices:
Studio City
Monte Carlo
Astoria
Jamaica
Venice
Woodland Hills
Encino
Pacific Palisades
Roxbury
Northridge
Program:
function: Find
inputs: Jamaica
function: FilterNum
dependencies: 0
inputs: population
217000
=
function: Find
inputs: Venice
function: FilterNum
dependencies: 2
inputs: population
40885
=
function: SelectBetween
dependencies: 1
3
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jamaica" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "217000"^^xsd:double . } UNION { ?e <pred:name> "Venice" . ?e <population> ?pv_2 . ?pv_2 <pred:unit> "1" . ?pv_2 <pred:value> "40885"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Venice