query-7e95fb95ad953deb11efd1faba10a527
Countries that have sitelinks to en-wiki
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 ?country ?countryLabel ?article WHERE {
?country wdt:P31 wd:Q3624078 . # sovereign state
?article schema:about ?country .
?article schema:isPartOf <https://en.wikipedia.org/>.
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en"
}
}
Query found at
- https://www.wikidata.org/wiki/User:JotaCartas/Queries
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?article"):::projected
v1("?country"):::projected
c5([https://en.wikipedia.org/]):::iri
c2(["wd:Q3624078"]):::iri
c7(["bd:serviceParam"]):::iri
c9(["en"]):::literal
v1 --"wdt:P31"--> c2
v2 --"schema:about"--> v1
v2 --"schema:isPartOf"--> c5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end