Project:SPARQL/examples: Difference between revisions

Line 152: Line 152:


#defaultView:Graph
#defaultView:Graph
SELECT ?resident ?residentLabel ?county ?countyLabel
SELECT ?resident ?residentLabel ?region ?regionLabel
WHERE {   
WHERE {   
   ?resident bnwdt:P29 ?residence .
   ?resident bnwdt:P29 ?residence .
  FILTER NOT EXISTS {?resident bnwdt:P29 bnwd:Q39 .}  
    FILTER NOT EXISTS {?resident bnwdt:P29 bnwd:Q39 .}  
   ?residence bnwdt:P33 ?district .
   ?residence bnwdt:P33 ?district .
   ?district bnwdt:P33 ?county .
   ?district bnwdt:P33 ?county .
6,317

edits