Question: What is the connection between Gloucestershire (the one that shares border with Wiltshire) to Gloucester (the one whose population is 125649)?
Choices:
afflicts
contributor(s) to the creative work
business division
capital
academic degree
penalty
occupant
has cause
screenwriter
field of this occupation
Program:
function: Find
inputs: Wiltshire
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Gloucestershire
function: And
dependencies: 1
2
function: Find
inputs: Gloucester
function: FilterNum
dependencies: 4
inputs: population
125649
=
function: QueryRelation
dependencies: 3
5
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Gloucestershire" . ?e_1 <shares_border_with> ?e_3 . ?e_3 <pred:name> "Wiltshire" . ?e_2 <pred:name> "Gloucester" . ?e_2 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "125649"^^xsd:double . ?e_1 ?p ?e_2 .  }
Answer: capital