Question: What is the TOID of the non-metropolitan county that is an administrative division of Gloucestershire (the one whose population is 861700)?
Choices:
7000000000018846
7000000000020616
7000000000000072
7000000000018690
4000000074576144
7000000000013965
4000000074574269
4000000074558887
4000000074555832
4000000074544162
Program:
function: Find
inputs: Gloucestershire
function: FilterNum
dependencies: 0
inputs: population
861700
=
function: Relate
dependencies: 1
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 2
inputs: non-metropolitan county
function: QueryAttr
dependencies: 3
inputs: TOID
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "non-metropolitan county" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Gloucestershire" . ?e_1 <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "861700"^^xsd:double . ?e <TOID> ?pv .  }
Answer: 7000000000020616