Question: Which US city shares borders with Oxnard?
Choices:
Selma
Evansville
New Haven
Waukegan
Quincy
Columbus
Holyoke
Franklin
Indianapolis
Ventura
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country
backward
function: FilterConcept
dependencies: 1
inputs: city of the United States
function: Find
inputs: Oxnard
function: Relate
dependencies: 3
inputs: shares border with
backward
function: FilterConcept
dependencies: 4
inputs: city of the United States
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of the United States" . ?e <country> ?e_1 . ?e_1 <pred:name> "United States of America" .  ?e <shares_border_with> ?e_2 . ?e_2 <pred:name> "Oxnard" .  }
Answer: Ventura