Question: Do more people live in, Jersey City or Atlantic City (the one that is located in Atlantic County)?
Choices:
Perth Amboy
Passaic
East Orange
Paterson
Bayonne
Elizabeth
Hoboken
Trenton
Plainfield
Jersey City
Program:
function: Find
inputs: Jersey City
function: Find
inputs: Atlantic County
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Atlantic City
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jersey City" .  } UNION { ?e <pred:name> "Atlantic City" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Atlantic County" .   } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Jersey City