This query returns the URI, code and name for all organizations associated with a specific Primary Care Trust. The query is written to allow the PCT to be identified by its unique code, rather than its URI.

Query: 
PREFIX nhs: <http://data.kasabi.com/dataset/nhs-organization/def/> PREFIX org: <http://www.w3.org/ns/org#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?org ?code ?name WHERE { ?org org:identifier ?code; rdfs:label ?name; nhs:primaryCareTrust ?trust. ?trust org:identifier "5E1"^^nhs:odsCode. }
Login to test this query using our experimental API explorer