query-b9796a3e7d62ad8d93f5203280bda608
Hotels amb ubicaciĆ³ de la seu en un edifici
SELECT DISTINCT ?hotel ?hotelBuilding ?hotelLabel ?hotelBuildingLabel WHERE {
?hotel wdt:P159 ?hotelBuilding.
?hotel wdt:P31 wd:Q27686.
?hotelBuilding wdt:P31/wdt:P279* wd:Q41176.
SERVICE wikibase:label {bd:serviceParam wikibase:language "[AUTO_LANGUAGE],ca,en,es,fr,pl,pt,de".}
}
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#>
# Hotels amb ubicaciĆ³ de la seu en un edifici
SELECT DISTINCT ?hotel ?hotelBuilding ?hotelLabel ?hotelBuildingLabel WHERE {
?hotel wdt:P159 ?hotelBuilding.
?hotel wdt:P31 wd:Q27686.
?hotelBuilding wdt:P31/wdt:P279* wd:Q41176.
SERVICE wikibase:label {bd:serviceParam wikibase:language "[AUTO_LANGUAGE],ca,en,es,fr,pl,pt,de".}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?hotel"):::projected
v2("?hotelBuilding"):::projected
a1((" "))
c3(["wd:Q27686"]):::iri
c7(["bd:serviceParam"]):::iri
c5(["wd:Q41176"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,ca,en,es,fr,pl,pt,de"]):::literal
v1 --"wdt:P159"--> v2
v1 --"wdt:P31"--> c3
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end