Question: Which occupies a smaller area: Jersey City or Elizabeth (zip code 07207)?
Choices:
Trenton
Paterson
Hoboken
Passaic
Jersey City
Plainfield
Bayonne
Elizabeth
Atlantic City
East Orange
Program:
function: Find
inputs: Jersey City
function: Find
inputs: Elizabeth
function: FilterStr
dependencies: 1
inputs: postal code
07207
function: SelectBetween
dependencies: 0
2
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jersey City" . } UNION { ?e <pred:name> "Elizabeth" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "07207" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Elizabeth