query-b1943c505604ec5e3358a068bdc50094
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?sitelinks where
{
?item wdt:P106 wd:Q82955. # occupation = politician
?item wdt:P27 wd:Q145. # country of citizenship = UK
?item wikibase:sitelinks ?sitelinks . # count of sitelinks
filter not exists { ?article schema:about ?item ; # no en.wikipedia sitelink
schema:isPartOf <https://en.wikipedia.org/> .
}
SERVICE wikibase:label { bd:serviceParam wikibase:language 'en' }
} order by desc(?sitelinks)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?article")
v3("?item"):::projected
v1("?sitelinks"):::projected
c3([https://en.wikipedia.org/]):::iri
c10(["bd:serviceParam"]):::iri
c12(["en"]):::literal
c7(["wd:Q145"]):::iri
c5(["wd:Q82955"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"schema:about"--> e0v2
e0v1 --"schema:isPartOf"--> e0c3
e0v1("?article"):::projected
e0v2("?item"):::projected
e0c3([https://en.wikipedia.org/]):::iri
end
f0--EXISTS--> f0e0
f0 --> v2
f0 --> c1
f0 --> v3
f0 --> c2
f0 --> c3
v2 --"schema:about"--> v3
v2 --"schema:isPartOf"--> c3
v3 --"wdt:P106"--> c5
v3 --"wdt:P27"--> c7
v3 --"wikibase:sitelinks"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end