Question: Which Californian county shares border with Alameda County, and its WOEID is 12587710?
Choices:
Solano County
Tuolumne County
Butte County
San Luis Obispo County
Mariposa County
Tulare County
San Mateo County
San Diego County
San Joaquin County
Alameda County
Answer: San Mateo County
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of California" . ?e <WOEID> ?pv . ?pv <pred:value> "12587710" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Alameda County" .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: WOEID
12587710
function: FilterConcept
dependencies: 1
inputs: county of California
function: Find
inputs: Alameda County
function: Relate
dependencies: 3
inputs: shares border with
forward
function: FilterConcept
dependencies: 4
inputs: county of California
function: And
dependencies: 2
5
function: What
dependencies: 6