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