Question: What New Jersey city with a population under 4200000000 is the place where Heather O'Reilly was born?
Choices:
Passaic
East Orange
Paterson
Bayonne
Plainfield
Perth Amboy
Atlantic City
Jersey City
Elizabeth
New Brunswick
Program:
function: Find
inputs: Heather O'Reilly
function: Relate
dependencies: 0
inputs: place of birth
forward
function: FilterConcept
dependencies: 1
inputs: city in New Jersey
function: FindAll
function: FilterNum
dependencies: 3
inputs: population
4200000000
<
function: FilterConcept
dependencies: 4
inputs: city in New Jersey
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city in New Jersey" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Heather O'Reilly" .  ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "4200000000"^^xsd:double ) .  }
Answer: New Brunswick