Question: Which has less area, Perth Amboy or Paterson USA?
Choices:
Atlantic City
Elizabeth
Passaic
Paterson
Perth Amboy
Bayonne
Hoboken
Jersey City
East Orange
Trenton
Program:
function: Find
inputs: Perth Amboy
function: Find
inputs: United States of America
function: Relate
dependencies: 1
inputs: country
backward
function: Find
inputs: Paterson
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Perth Amboy" .  } UNION { ?e <pred:name> "Paterson" . ?e <country> ?e_1 . ?e_1 <pred:name> "United States of America" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Perth Amboy