Question: Does Perth Amboy or Bayonne have the greater area?
Choices:
Passaic
Paterson
Hoboken
Bayonne
East Orange
Atlantic City
Perth Amboy
Jersey City
Elizabeth
Plainfield
Program:
function: Find
inputs: Perth Amboy
function: Find
inputs: Bayonne
function: SelectBetween
dependencies: 0
1
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Perth Amboy" .  } UNION { ?e <pred:name> "Bayonne" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Bayonne