Question: Which has the smaller area, Hamilton, with a population of 64277, or Durham, where North Carolina Central University is headquartered?
Choices:
Franklin
Columbus
Greenville
Lansing
Boulder
Compton
Hamilton
Waukegan
Oakland
Durham
Program:
function: Find
inputs: Hamilton
function: FilterNum
dependencies: 0
inputs: population
62477
=
function: Find
inputs: North Carolina Central University
function: Relate
dependencies: 2
inputs: headquarters location
forward
function: Find
inputs: Durham
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hamilton" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "62477"^^xsd:double . } UNION { ?e <pred:name> "Durham" . ?e_1 <headquarters_location> ?e . ?e_1 <pred:name> "North Carolina Central University" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Hamilton