query-a3f014acd5fc6bf54a4df01ad9cd7385
title:People with a Good Article in Spanish Wikipedia but worse article in English Wikipedia SELECT ?item ?itemLabel ?itemDescription ?enwp ?eswp WHERE { ?item wdt:P31 wd:Q5 . # Human beings ?eswp schema:isPartOf https://es.wikipedia.org/; # Spanish article exists schema:about ?item; wikibase:badge wd:Q17437798 . # Spanish article has Good Article badge ?enwp schema:isPartOf https://en.wikipedia.org/; # English article exists schema:about ?item. MINUS {?enwp wikibase:badge []} # English article lacks any kind of badge SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en,es" } } ORDER BY ?itemLabel
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:People with a Good Article in Spanish Wikipedia but worse article in English Wikipedia
SELECT ?item ?itemLabel ?itemDescription ?enwp ?eswp WHERE {
?item wdt:P31 wd:Q5 . # Human beings
?eswp schema:isPartOf <https://es.wikipedia.org/>; # Spanish article exists
schema:about ?item;
wikibase:badge wd:Q17437798 . # Spanish article has Good Article badge
?enwp schema:isPartOf <https://en.wikipedia.org/>; # English article exists
schema:about ?item.
MINUS {?enwp wikibase:badge []} # English article lacks any kind of badge
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en,es" }
} ORDER BY ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?enwp"):::projected
v3("?eswp"):::projected
v2("?item"):::projected
v1("?itemLabel"):::projected
a1((" "))
c12(["#91;AUTO_LANGUAGE#93;,mul,en,es"]):::literal
c8([https://en.wikipedia.org/]):::iri
c10(["bd:serviceParam"]):::iri
c4([https://es.wikipedia.org/]):::iri
c2(["wd:Q5"]):::iri
c7(["wd:Q17437798"]):::iri
v2 --"wdt:P31"--> c2
v3 --"schema:isPartOf"--> c4
v3 --"schema:about"--> v2
v3 --"wikibase:badge"--> c7
v4 --"schema:isPartOf"--> c8
v4 --"schema:about"--> v2
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v4 --"wikibase:badge"--> a1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end