Question: What is the GSS Code (2011) for the non-metropolitan county which has located in Derbyshire that shares border with Greater Manchester?
Choices:
E08000013
S92000003
E07000123
E09000010
E08000012
E10000007
E08000030
E04004932
E06000057
E08000025
Answer: E10000007
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "non-metropolitan county" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Derbyshire" . ?e_1 <shares_border_with> ?e_2 . ?e_2 <pred:name> "Greater Manchester" .  ?e <GSS_code_(2011)> ?pv .  }
Program:
function: Find
inputs: Greater Manchester
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Derbyshire
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 4
inputs: non-metropolitan county
function: QueryAttr
dependencies: 5
inputs: GSS code (2011)