query-6f485064e7db88644b22033e8e52be21
Persones amb article per nombre de llocs de mort SELECT ?persona ?personaLabel ?article (COUNT(?lloc) AS ?numllocs) WHERE { ?persona wdt:P20 ?lloc. ?article schema:about ?persona. ?article schema:isPartOf https://ca.wikipedia.org/. } GROUP BY ?persona ?personaLabel ?article HAVING (COUNT(?lloc)>1) ORDER BY DESC(?numllocs)
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
# Persones amb article per nombre de llocs de mort
SELECT ?persona ?personaLabel ?article (COUNT(?lloc) AS ?numllocs)
WHERE {
?persona wdt:P20 ?lloc.
?article schema:about ?persona.
?article schema:isPartOf <https://ca.wikipedia.org/>.
}
GROUP BY ?persona ?personaLabel ?article
HAVING (COUNT(?lloc)>1)
ORDER BY DESC(?numllocs)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?_anon_42b5416610844a34809f33a099ae9de128365")
v4("?article"):::projected
v3("?lloc"):::projected
v6("?numllocs")
v2("?persona"):::projected
a1((" "))
c5([https://ca.wikipedia.org/]):::iri
f0[[" > '1^^xsd:integer'"]]
f0 --> a1
v2 --"wdt:P20"--> v3
v4 --"schema:about"--> v2
v4 --"schema:isPartOf"--> c5
bind3[/"count(?lloc)"/]
v3 --o bind3
bind3 --as--o v5
bind4[/"count(?lloc)"/]
v3 --o bind4
bind4 --as--o v6