query-4887fb46a17a9dc15460e2d6af810b91
BCIN i BCIL de Barcelona SELECT ?monument ?monumentLabel ?prot ?protLabel WITH { SELECT ?monument WHERE { ?monument wdt:P131* wd:Q1492. } } AS %1 WHERE { INCLUDE %1. VALUES ?prot {wd:Q1019352 wd:Q11910250} ?monument wdt:P1435 ?prot. SERVICE wikibase:label { bd:serviceParam wikibase:language "ca" . } }
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 bd: <http://www.bigdata.com/rdf#>
# BCIN i BCIL de Barcelona
SELECT ?monument ?monumentLabel ?prot ?protLabel
WHERE {
{
SELECT ?monument
WHERE {
?monument wdt:P131* wd:Q1492.
} }
VALUES ?prot {wd:Q1019352 wd:Q11910250}
?monument wdt:P1435 ?prot.
SERVICE wikibase:label {
bd:serviceParam wikibase:language "ca" .
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?monument"):::projected
v2("?prot"):::projected
c5(["bd:serviceParam"]):::iri
c2(["wd:Q1492"]):::iri
c7(["ca"]):::literal
v1 --"wdt:P131"--> c2
bind0[/VALUES ?prot/]
bind0-->v2
bind00(["wd:Q1019352"])
bind00 --> bind0
bind01(["wd:Q11910250"])
bind01 --> bind0
v1 --"wdt:P1435"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end