query-6fb38428fb257748676cc5051883379b

rq turtle/ttl

Properties had by music venue (Q8719053) and its subclasses (apart from instance of (P31)) Properties had by music venue (Q8719053) and its subclasses (apart from instance of (P31)) Eigenschappen van music venue (Q8719053) en zijn subklassen (behalve instance of (P31))

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#>
SELECT ?prop ?propLabel (COUNT(?music_venue) AS ?count) WHERE {
?music_venue wdt:P31/wdt:P279? wd:Q8719053 ; # music venues or 1st-level subtypes
?p [].
?prop wikibase:directClaim ?p FILTER (?prop != wd:P31)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} GROUP BY ?prop ?propLabel
ORDER BY DESC(?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?count") v3("?music_venue"):::projected v4("?p") v2("?prop"):::projected a2((" ")) a1((" ")) c7(["bd:serviceParam"]):::iri c3(["wd:Q8719053"]):::iri c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["?prop != 'wd:P31'"]] f0 --> v2 v3 --"wdt:P31"--> a1 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; a1 --"wdt:P279"--> c3 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; end union0r <== or ==> union0l end v3 -->v4--> a2 v2 --"wikibase:directClaim"--> v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end bind2[/"count(?music_venue)"/] v3 --o bind2 bind2 --as--o v5