query-b66b99958d63b7cf066db64c0b1d361f
Propertiesinstance of (P31)used by (P1535)Wikidata item of this property (P1629)
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#>
SELECT DISTINCT ?registry ?registryLabel ?count
WHERE {
{
SELECT DISTINCT ?registry (COUNT(*) AS ?count) WHERE {
{
SELECT DISTINCT ?item WHERE {
?item wdt:P31 wd:Q30612 ;
}
LIMIT 400000
}
{
SELECT DISTINCT ?registry ?registryIDitem WHERE {
?registry wdt:P31 wd:Q2138567 .
?registryIDitem wdt:P1535 ?registry .
}
GROUP BY ?registry ?registryIDitem
LIMIT 100
}
?item ?p [ ] .
?property wdt:P1629 ?registryIDitem;
wikibase:claim ?p.
?property wikibase:propertyType wikibase:ExternalId .
}
GROUP BY ?registry
LIMIT 100
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
ORDER BY DESC(?count)
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v7("?count"):::projected
v2("?item")
v5("?p")
v6("?property")
v3("?registry"):::projected
v4("?registryIDitem")
a1((" "))
c10(["bd:serviceParam"]):::iri
c3(["wd:Q2138567"]):::iri
c12(["en"]):::literal
c2(["wd:Q30612"]):::iri
c8(["wikibase:ExternalId"]):::iri
v2 --"wdt:P31"--> c2
v3 --"wdt:P31"--> c3
v4 --"wdt:P1535"--> v3
v2 -->v5--> a1
v6 --"wdt:P1629"--> v4
v6 --"wikibase:claim"--> v5
v6 --"wikibase:propertyType"--> c8
bind1[/"count(*)"/]
bind1 --as--o v7
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end