Question: Which Californian county shares a border with Tuolumne County and also with San Joaquin County?
Choices: Tulare County
Merced County
Sacramento County
Contra Costa County
Calaveras County
Santa Clara County
San Diego County
Mariposa County
Butte County
Mono County
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> "Tuolumne County" .  ?e_2 <shares_border_with> ?e . ?e_2 <pred:name> "San Joaquin County" .  }
Program:
function: Find
inputs: Tuolumne County
function: Relate
dependencies: 0
inputs: shares border with
backward
function: FilterConcept
dependencies: 1
inputs: county of California
function: Find
inputs: San Joaquin 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
Answer: Calaveras County