Question: What California county shares a border with Douglas County (that also shares border with Mono County) and has the FIPS 6-4 (US counties) 06017?
Choices:
San Mateo County
Placer County
Tulare County
Tuolumne County
El Dorado County
Mono County
Butte County
Contra Costa County
Alameda County
San Diego County
Program:
function: Find
inputs: Mono County
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Douglas County
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: shares border with
backward
function: FilterConcept
dependencies: 4
inputs: county of California
function: FindAll
function: FilterStr
dependencies: 6
inputs: FIPS 6-4 (US counties)
06017
function: FilterConcept
dependencies: 7
inputs: county of California
function: And
dependencies: 5
8
function: What
dependencies: 9
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of California" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Douglas County" . ?e_2 <shares_border_with> ?e_1 . ?e_2 <pred:name> "Mono County" .  ?e <FIPS_6-4_(US_counties)> ?pv . ?pv <pred:value> "06017" .  }
Answer: El Dorado County