query-3ba8db599636dfba04a44138281ec6cd
Left-wing entities with no Wikipedia article in Spanish ordered by linkcount
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 bd: <http://www.bigdata.com/rdf#>
PREFIX schema: <http://schema.org/>
SELECT DISTINCT ?item ?itemLabel ?linkCount ?wen
WHERE
{
?item wdt:P1142*/wdt:P1387*/wdt:P361* wd:Q164597 .
?item wikibase:sitelinks ?linkCount .
OPTIONAL { ?wen schema:about ?item . ?wen schema:inLanguage "en" . ?wen schema:isPartOf <https://en.wikipedia.org/> . }
OPTIONAL { ?wes schema:about ?item . ?wes schema:inLanguage "es" }
FILTER (!BOUND(?wes))
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,de,pt,fr,it,ca" }
}
ORDER BY DESC(?linkCount)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?item"):::projected
v1("?linkCount"):::projected
v4("?wen"):::projected
v2("?wes")
a1((" "))
a2((" "))
c8(["en"]):::literal
c4(["wd:Q164597"]):::iri
c11(["es"]):::literal
c15(["en,de,pt,fr,it,ca"]):::literal
c10([https://en.wikipedia.org/]):::iri
c13(["bd:serviceParam"]):::iri
f0[["not bound(?wes)"]]
f0 --> v2
v3 --"wdt:P1142"--> a1
a1 --"wdt:P1387"--> a2
a2 --"wdt:P361"--> c4
v3 --"wikibase:sitelinks"--> v1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."schema:about".-> v3
v4 --"schema:inLanguage"--> c8
v4 --"schema:isPartOf"--> c10
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."schema:about".-> v3
v2 --"schema:inLanguage"--> c11
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c13 --"wikibase:language"--> c15
end