LinguaLibre
Difference between revisions of "Stats/Languages/scn"
< LinguaLibre:Stats
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 3: | Line 3: | ||
== Languages by number of recordings == | == Languages by number of recordings == | ||
<query _pagination="10" lang=" Item (Language Qid)" langLabel=" Lingua" code=" Còdici ISO 639-3" nb=" Number of records"> | <query _pagination="10" lang=" Item (Language Qid)" langLabel=" Lingua" code=" Còdici ISO 639-3" nb=" Number of records"> | ||
− | SELECT ?lang ?langLabel ?code ( | + | SELECT ?lang ?langLabel ?code ?nb WHERE { |
− | + | { | |
− | + | SELECT ?lang (COUNT(?record) as ?nb) WHERE { | |
+ | ?record prop:P4 ?lang ; prop:P2 entity:Q2 | ||
+ | } GROUP BY ?lang | ||
+ | } | ||
+ | |||
+ | ?lang prop:P2 entity:Q4 | ||
+ | |||
OPTIONAL { ?lang prop:P13 ?code } | OPTIONAL { ?lang prop:P13 ?code } | ||
+ | |||
SERVICE wikibase:label { | SERVICE wikibase:label { | ||
bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . | bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . | ||
?lang rdfs:label ?langLabel . | ?lang rdfs:label ?langLabel . | ||
} | } | ||
− | } | + | } ORDER BY DESC(?nb) |
− | |||
− | ORDER BY DESC(?nb) | ||
</query> | </query> | ||
+ | |||
== Languages by number of speakers == | == Languages by number of speakers == | ||
<query _pagination="10" lang=" Item (Language Qid)" langLabel=" Lingua" code=" Còdici ISO 639-3" nb=" Number of speakers"> | <query _pagination="10" lang=" Item (Language Qid)" langLabel=" Lingua" code=" Còdici ISO 639-3" nb=" Number of speakers"> | ||
− | SELECT ?lang ?langLabel ?code ( | + | SELECT ?lang ?langLabel ?code (COUNT(?recorder) as ?nb) WHERE { |
− | ?lang prop:P2 entity: | + | |
− | + | { | |
+ | SELECT ?lang ?recorder WHERE { | ||
+ | ?record prop:P2 entity:Q2 ; | ||
+ | prop:P4 ?lang ; | ||
+ | prop:P5 ?recorder | ||
+ | } GROUP BY ?lang ?recorder | ||
+ | } | ||
+ | |||
+ | ?lang prop:P2 entity:Q4 . | ||
+ | |||
OPTIONAL { ?lang prop:P13 ?code } | OPTIONAL { ?lang prop:P13 ?code } | ||
+ | |||
SERVICE wikibase:label { | SERVICE wikibase:label { | ||
bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . | bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . | ||
?lang rdfs:label ?langLabel . | ?lang rdfs:label ?langLabel . | ||
} | } | ||
− | } | + | } GROUP BY ?lang ?langLabel ?code |
− | GROUP BY ?lang ?langLabel ?code | ||
ORDER BY DESC(?nb) | ORDER BY DESC(?nb) | ||
</query> | </query> |
Revision as of 22:01, 20 May 2023
Languages by number of recordings