Question: Which city has less land area, Elizabeth (whose local area code is 908) or New Brunswick (the birthplace of Heather O'Reilly)?
Choices:
Paterson
East Orange
Atlantic City
Perth Amboy
Elizabeth
Plainfield
Hoboken
Trenton
New Brunswick
Jersey City
Program:
function: Find
inputs: Elizabeth
function: FilterStr
dependencies: 0
inputs: local dialing code
908
function: Find
inputs: Heather O'Reilly
function: Relate
dependencies: 2
inputs: place of birth
forward
function: Find
inputs: New Brunswick
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Elizabeth" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "908" . } UNION { ?e <pred:name> "New Brunswick" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Heather O'Reilly" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: New Brunswick