Question: What United States city shares a border with the city of the United States whose postal code is 39121 in the country of the United States of America?
Choices:
Columbus
Vicksburg
Glendale
Oak Park
Sunnyvale
Birmingham
Garland
Phoenix
New Haven
Franklin
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: postal code
39121
function: QFilterStr
dependencies: 1
inputs: country
United States of America
function: FilterConcept
dependencies: 2
inputs: city of the United States
function: Relate
dependencies: 3
inputs: shares border with
forward
function: FilterConcept
dependencies: 4
inputs: city of the United States
function: What
dependencies: 5
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of the United States" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "city of the United States" . ?e_1 <postal_code> ?pv . ?pv <pred:value> "39121" . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <postal_code> ; <pred:fact_t> ?pv ] <country> ?qpv . ?qpv <pred:value> "United States of America" .   }
Answer: Vicksburg