Question: Is the population greater for Brockton or Hollywood (the one whose area is 79.57616 square kilometre)?
Choices:
Franklin
Compton
Greenville
Boulder
New Haven
Hollywood
Columbus
Oakland
Waukegan
Brockton
Answer: Hollywood
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Brockton" . } UNION { ?e <pred:name> "Hollywood" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "79.57616"^^xsd:double . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Brockton
function: Find
inputs: Hollywood
function: FilterNum
dependencies: 1
inputs: area
79.57616 square kilometre
=
function: SelectBetween
dependencies: 0
2
inputs: population
greater