query-6092dba8c598d01d05e3e209b7afd9f5
title:Mathematicians (field of work in geometry) who are covered in other language Wikipedias but with entries missing in Lithuanian
Note: Link count is from Wikipedias only not from other projects
SELECT ?item ?itemLabel (COUNT(?wpSitelink) as ?sitelinks) WHERE {
?item wdt:P31 wd:Q5.
?item wdt:P106 wd:Q170790.
?item wdt:P101 wd:Q8087.
optional {?wpSitelink schema:about ?item . ?wpSitelink schema:isPartOf [ wikibase:wikiGroup "wikipedia" ] .}
filter not exists { ?ltwiki schema:about ?item; schema:isPartOf https://lt.wikipedia.org/ .}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,de,es,fr". } } group by ?item ?itemLabel ORDER BY DESC(?sitelinks)
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#>
#title:Mathematicians (field of work in geometry) who are covered in other language Wikipedias but with entries missing in Lithuanian
#Note: Link count is from Wikipedias only not from other projects
SELECT ?item ?itemLabel (COUNT(?wpSitelink) as ?sitelinks) WHERE {
?item wdt:P31 wd:Q5.
?item wdt:P106 wd:Q170790.
?item wdt:P101 wd:Q8087.
optional {?wpSitelink schema:about ?item . ?wpSitelink schema:isPartOf [ wikibase:wikiGroup "wikipedia" ] .}
filter not exists { ?ltwiki schema:about ?item; schema:isPartOf <https://lt.wikipedia.org/> .}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,de,es,fr". }
}
group by ?item ?itemLabel
ORDER BY DESC(?sitelinks)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?item"):::projected
v2("?ltwiki")
v5("?sitelinks")
v4("?wpSitelink"):::projected
a1((" "))
c3([https://lt.wikipedia.org/]):::iri
c7(["wd:Q170790"]):::iri
c15(["en,de,es,fr"]):::literal
c13(["bd:serviceParam"]):::iri
c9(["wd:Q8087"]):::iri
c5(["wd:Q5"]):::iri
c11(["wikipedia"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"schema:about"--> e0v2
e0v1 --"schema:isPartOf"--> e0c3
e0v2("?item"):::projected
e0v1("?ltwiki"):::projected
e0c3([https://lt.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:P31"--> c5
v3 --"wdt:P106"--> c7
v3 --"wdt:P101"--> c9
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."schema:about".-> v3
a1 --"wikibase:wikiGroup"--> c11
v4 --"schema:isPartOf"--> a1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c13 --"wikibase:language"--> c15
end
bind2[/"count(?wpSitelink)"/]
v4 --o bind2
bind2 --as--o v5