query-301d4eb078c98e87167e39c3f37a6776
Countries with Wikipedia article in Catalonian and Euskera but not in Spanish
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/>
SELECT DISTINCT ?item ?linkCount ?wca ?weu
WHERE
{
?item wdt:P31/wdt:P279* wd:Q6256 .
?item wikibase:sitelinks ?linkCount .
?weu schema:about ?item .
?weu schema:inLanguage "eu" .
?wca schema:about ?item .
?wca schema:inLanguage "ca" .
OPTIONAL { ?wes schema:about ?item . ?wes schema:inLanguage "es" }
FILTER (!BOUND(?wes))
#OPTIONAL { ?wen schema:about ?item . ?wen schema:inLanguage "en" }
#FILTER (!BOUND(?wen))
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v3("?linkCount"):::projected
v5("?wca"):::projected
v1("?wes")
v4("?weu"):::projected
a1((" "))
c7(["eu"]):::literal
c3(["wd:Q6256"]):::iri
c8(["ca"]):::literal
c9(["es"]):::literal
f0[["not bound(?wes)"]]
f0 --> v1
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v2 --"wikibase:sitelinks"--> v3
v4 --"schema:about"--> v2
v4 --"schema:inLanguage"--> c7
v5 --"schema:about"--> v2
v5 --"schema:inLanguage"--> c8
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."schema:about".-> v2
v1 --"schema:inLanguage"--> c9
end