This query finds the URI, code, and name for all General Practices associated with a specific post code. The post code is specified using an Ordnance Survey URI.

Query: 
PREFIX nhs: <http://data.kasabi.com/dataset/nhs-organization/def/> PREFIX org: <http://www.w3.org/ns/org#> PREFIX os: <http://data.ordnancesurvey.co.uk/ontology/postcode/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?org ?code ?name WHERE { ?org a nhs:GeneralPractice; org:identifier ?code; rdfs:label ?name; org:hasSite ?site. ?site os:postcode <http://data.ordnancesurvey.co.uk/id/postcodeunit/TS181HU>. }
Login to test this query using our experimental API explorer