Question: What is the name of the city of the United States that shares border with Alexandria (the one founded in 1818) and with a population of less than 6000000?
Choices:
Columbus
Oxnard
Waukegan
Washington, D.C.
Spokane
Oakland
New Haven
Baton Rouge
Ypsilanti
Ann Arbor
Program:
function: Find
inputs: Alexandria
function: FilterYear
dependencies: 0
inputs: inception
1818
=
function: Relate
dependencies: 1
inputs: shares border with
backward
function: FilterConcept
dependencies: 2
inputs: city of the United States
function: FindAll
function: FilterNum
dependencies: 4
inputs: population
6000000
<
function: FilterConcept
dependencies: 5
inputs: city of the United States
function: And
dependencies: 3
6
function: What
dependencies: 7
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of the United States" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Alexandria" . ?e_1 <inception> ?pv . ?pv <pred:year> 1818 .  ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> ?v . FILTER ( ?v < "6000000"^^xsd:double ) .  }
Answer: Baton Rouge