query-965db7f9bc33366afaf0b14ba7200203
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 DISTINCT ?item ?itemLabel (COUNT(?sitelink) AS ?sitelinks) WHERE {
?item wdt:P27 wd:Q28 .
?sitelink schema:about ?item .
FILTER NOT EXISTS { ?huwiki schema:about ?item . ?huwiki schema:inLanguage "hu" } .
SERVICE wikibase:label { bd:serviceParam wikibase:language "hu,en" }
}
GROUP BY ?item ?itemLabel
ORDER BY ?sitelinks
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?huwiki")
v3("?item"):::projected
v4("?sitelink"):::projected
v5("?sitelinks")
c5(["wd:Q28"]):::iri
c7(["bd:serviceParam"]):::iri
c9(["hu,en"]):::literal
c3(["hu"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"schema:about"--> e0v2
e0v1 --"schema:inLanguage"--> e0c3
e0v1("?huwiki"):::projected
e0v2("?item"):::projected
e0c3(["hu"]):::literal
end
f0--EXISTS--> f0e0
f0 --> v2
f0 --> c1
f0 --> v3
f0 --> c2
f0 --> c3
v2 --"schema:about"--> v3
v2 --"schema:inLanguage"--> c3
v3 --"wdt:P27"--> c5
v4 --"schema:about"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
bind2[/"count(?sitelink)"/]
v4 --o bind2
bind2 --as--o v5