query-ec09d1dcdd4a8c359685f887550236e2

rq turtle/ttl

cases pairals a Catalunya SELECT ?item ?itemLabel ?inst ?instLabel WHERE { ?item wdt:P31 wd:Q879050. ?item wdt:P31 ?inst. ?item wdt:P17 wd:Q29. ?item wdt:P131* wd:Q5705. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],ca". } }

Use at

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#>
# cases pairals a Catalunya
SELECT ?item ?itemLabel ?inst ?instLabel WHERE {
  ?item wdt:P31 wd:Q879050.
  ?item wdt:P31 ?inst.
  ?item wdt:P17 wd:Q29.
  ?item wdt:P131* wd:Q5705.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],ca". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?inst"):::projected v1("?item"):::projected c6(["wd:Q5705"]):::iri c4(["wd:Q29"]):::iri c8(["bd:serviceParam"]):::iri c10(["#91;AUTO_LANGUAGE#93;,ca"]):::literal c2(["wd:Q879050"]):::iri v1 --"wdt:P31"--> c2 v1 --"wdt:P31"--> v2 v1 --"wdt:P17"--> c4 v1 --"wdt:P131"--> c6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end