Question: How is Monmouthshire related to Gloucestershire (population 861700)?
Choices:
film distribute region
tributary
capital
home port
producer
published in
official language
mouth of the watercourse
opposite of
shares border with
Program:
function: Find
inputs: Monmouthshire
function: Find
inputs: Gloucestershire
function: FilterNum
dependencies: 1
inputs: population
861700
=
function: QueryRelation
dependencies: 0
2
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Monmouthshire" . ?e_2 <pred:name> "Gloucestershire" . ?e_2 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "861700"^^xsd:double . ?e_1 ?p ?e_2 .  }
Answer: shares border with