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