query-3537ce8eb9efce53b0114561c2bcbfc2
title:Most popular subjects of scientific articles SELECT (count(?work) as ?count) ?subject ?subjectLabel where { ?work wdt:P31 wd:Q13442814; wdt:P921 ?subject . SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } GROUP BY ?subject ?subjectLabel ORDER BY desc(?count) LIMIT 200
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#>
#title:Most popular subjects of scientific articles
SELECT (count(?work) as ?count) ?subject ?subjectLabel where {
?work wdt:P31 wd:Q13442814;
wdt:P921 ?subject .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
GROUP BY ?subject ?subjectLabel
ORDER BY desc(?count)
LIMIT 200
Query found at
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/en
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?count")
v3("?subject"):::projected
v2("?work"):::projected
c2(["wd:Q13442814"]):::iri
c5(["bd:serviceParam"]):::iri
c7(["en"]):::literal
v2 --"wdt:P31"--> c2
v2 --"wdt:P921"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind1[/"count(?work)"/]
v2 --o bind1
bind1 --as--o v4