query-bec19fa20aded42095a489a0ee3cffe5
title: New stubs about government agencies, based on EuroGeographics data SELECT ?item ?itemLabel ?country ?countryLabel WHERE { { SELECT * WHERE { ?item wdt:P31 wd:Q327333 ; wdt:P17 ?country . FILTER (CONTAINS(?desc, "; member of EuroGeographics")) . SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". ?item schema:description ?desc . } } } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }
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: New stubs about government agencies, based on EuroGeographics data
SELECT ?item ?itemLabel ?country ?countryLabel WHERE {
{
SELECT * WHERE {
?item wdt:P31 wd:Q327333 ;
wdt:P17 ?country .
FILTER (CONTAINS(?desc, "; member of EuroGeographics")) .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". ?item schema:description ?desc . }
}
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?country"):::projected
v1("?desc")
v2("?item"):::projected
c6(["bd:serviceParam"]):::iri
c3(["wd:Q327333"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["contains(?desc,'; member of EuroGeographics')"]]
f0 --> v1
v2 --"wdt:P31"--> c3
v2 --"wdt:P17"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
v2 --"schema:description"--> v1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end