Question: What is the connection between Gloucestershire (the one that shares border with Wiltshire) to Gloucester (the one that is the twinned administrative body of Metz)?
Choices:
architect
candidacy in election
filmography
office held by head of state
capital
patron saint
has edition
illustrator
position played on team / speciality
original language of film or TV show
Program:
function: Find
inputs: Wiltshire
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Gloucestershire
function: And
dependencies: 1
2
function: Find
inputs: Metz
function: Relate
dependencies: 4
inputs: twinned administrative body
forward
function: Find
inputs: Gloucester
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Gloucestershire" . ?e_3 <shares_border_with> ?e_1 . ?e_3 <pred:name> "Wiltshire" . ?e_2 <pred:name> "Gloucester" . ?e_4 <twinned_administrative_body> ?e_2 . ?e_4 <pred:name> "Metz" . ?e_1 ?p ?e_2 .  }
Answer: capital