query-0ef8a91c1e78a7d6646d7f9e59d922a3
Propertiesinstance of (P31)research site (P6153)parent organization (P749)
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 ?research_site ?research_siteLabel ?count
WHERE {
{
SELECT ?research_site (COUNT(?trial) AS ?count) WHERE {
?trial wdt:P31 wd:Q30612 .
{ ?trial wdt:P6153 ?research_site . }
UNION
{ ?trial wdt:P6153 [wdt:P749 ?research_site] . }
}
GROUP BY ?research_site
} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?research_site ?research_siteLabel ?count
ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?count"):::projected
v3("?research_site"):::projected
v2("?trial")
a1((" "))
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2(["wd:Q30612"]):::iri
v2 --"wdt:P31"--> c2
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
a1 --"wdt:P749"--> v3
v2 --"wdt:P6153"--> a1
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P6153"--> v3
end
union0r <== or ==> union0l
end
bind1[/"count(?trial)"/]
v2 --o bind1
bind1 --as--o v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end