query-861cae0a83abf9d9fa781d9a22d26ec8
Propertiessubclass of (P279)instance of (P31)discoverer or inventor (P61)
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?discoverer ?discovererLabel
(COUNT(DISTINCT ?star) as ?count)
(GROUP_CONCAT(DISTINCT(?starLabel); separator=", ") as ?stars)
WHERE
{
?ppart wdt:P279* wd:Q523 .
?star wdt:P31 ?ppart .
?star wdt:P61 ?discoverer .
SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" .
?discoverer rdfs:label ?discovererLabel .
?star rdfs:label ?starLabel
}
}
GROUP BY ?discoverer ?discovererLabel
ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v7("?count")
v4("?discoverer"):::projected
v5("?discovererLabel"):::projected
v2("?ppart")
v3("?star"):::projected
v6("?starLabel"):::projected
v7("?stars")
c2(["wd:Q523"]):::iri
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,mul,en"]):::literal
v2 --"wdt:P279"--> c2
v3 --"wdt:P31"--> v2
v3 --"wdt:P61"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
v4 --"rdfs:label"--> v5
v3 --"rdfs:label"--> v6
end
bind2[/"count(?star)"/]
v3 --o bind2
bind2 --as--o v7
bind3[/"?starLabel"/]
v6 --o bind3
bind3 --as--o v7