Question: How is San Francisco, twinned administrative body of Ōsaka, related to Richmond in Contra Costa County?
Choices: shares border with
art director
nutrient
collection
political alignment
business division
substitute/deputy/replacement of office/officeholder
winner
movement
member of
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "San Francisco" . ?e_1 <twinned_administrative_body> ?e_3 . ?e_3 <pred:name> "Ōsaka" . ?e_2 <pred:name> "Richmond" . ?e_2 <located_in_the_administrative_territorial_entity> ?e_4 . ?e_4 <pred:name> "Contra Costa County" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Ōsaka
function: Relate
dependencies: 0
inputs: twinned administrative body
backward
function: Find
inputs: San Francisco
function: And
dependencies: 1
2
function: Find
inputs: Contra Costa County
function: Relate
dependencies: 4
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Richmond
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
Answer: shares border with