Question: What is the connection between Richmond (the one that is the capital of Fort Bend County) to Richmond (the one whose country is United Kingdom)?
Choices:
month of the year
sponsor
league
indigenous to
named after
theme music
organizer
candidate
convicted of
place served by transport hub
Answer: named after
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Richmond" . ?e_3 <capital> ?e_1 . ?e_3 <pred:name> "Fort Bend County" . ?e_2 <pred:name> "Richmond" . ?e_2 <country> ?e_4 . ?e_4 <pred:name> "United Kingdom" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Fort Bend County
function: Relate
dependencies: 0
inputs: capital
forward
function: Find
inputs: Richmond
function: And
dependencies: 1
2
function: Find
inputs: United Kingdom
function: Relate
dependencies: 4
inputs: country
backward
function: Find
inputs: Richmond
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7