query-e513427d5ab189b080cebedda3248533
Propertiesproperty constraint (P2302)property (P2306)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?allowedQualifier ?allowedQualifierLabel (COUNT(?prop) AS ?numOccurs)
WHERE {
?prop wikibase:propertyType wikibase:ExternalId ;
p:P2302 [
ps:P2302 wd:Q21510851;
pq:P2306 ?allowedQualifier
]
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?allowedQualifier ?allowedQualifierLabel
ORDER BY DESC(?numOccurs)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?allowedQualifier"):::projected
v4("?numOccurs")
v2("?prop"):::projected
a1((" "))
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2(["wikibase:ExternalId"]):::iri
c4(["wd:Q21510851"]):::iri
v2 --"wikibase:propertyType"--> c2
a1 --"p:statement/P2302"--> c4
a1 --"p:qualifier/P2306"--> v3
v2 --"p:P2302"--> a1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
bind1[/"count(?prop)"/]
v2 --o bind1
bind1 --as--o v4