Project:SPARQL/examples: Difference between revisions
From Beyond Notability
Line 152: | Line 152: | ||
#defaultView:Graph | #defaultView:Graph | ||
SELECT ?resident ?residentLabel ? | SELECT ?resident ?residentLabel ?region ?regionLabel | ||
WHERE { | WHERE { | ||
?resident bnwdt:P29 ?residence . | ?resident bnwdt:P29 ?residence . | ||
FILTER NOT EXISTS {?resident bnwdt:P29 bnwd:Q39 .} | |||
?residence bnwdt:P33 ?district . | ?residence bnwdt:P33 ?district . | ||
?district bnwdt:P33 ?county . | ?district bnwdt:P33 ?county . |