query-bf6edee7039c913f6f60b35df5031acd
title:Persone con più di un ID nel medesimo IRIS SELECT DISTINCT ?item ?sigla (COUNT(DISTINCT ?irisid) AS ?n) WHERE { ?item ?irisst ?irisid . ?iris wikibase:directClaim ?irisst . ?iris wdt:P9073 [ wdt:P408 wd:Q107492957 ; wdt:P1813 ?sigla ] . FILTER(REGEX(?sigla, "^IRIS\s")) } GROUP BY ?item ?sigla HAVING(?n > 1) ORDER BY DESC(?n)
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/>
#title:Persone con più di un ID nel medesimo IRIS
SELECT DISTINCT ?item ?sigla (COUNT(DISTINCT ?irisid) AS ?n)
WHERE {
?item ?irisst ?irisid .
?iris wikibase:directClaim ?irisst .
?iris wdt:P9073 [ wdt:P408 wd:Q107492957 ; wdt:P1813 ?sigla ] . FILTER(REGEX(?sigla, "^IRIS\\s"))
}
GROUP BY ?item ?sigla
HAVING(?n > 1)
ORDER BY DESC(?n)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?iris")
v5("?irisid"):::projected
v4("?irisst")
v3("?item"):::projected
v7("?n")
v2("?sigla"):::projected
a1((" "))
c5(["wd:Q107492957"]):::iri
f0[["?n > '1^^xsd:integer'"]]
f0 --> v7
f1[["regex(?sigla,'^IRIS\s')"]]
f1 --> v2
v3 -->v4--> v5
v6 --"wikibase:directClaim"--> v4
a1 --"wdt:P408"--> c5
a1 --"wdt:P1813"--> v2
v6 --"wdt:P9073"--> a1
bind3[/"count(?irisid)"/]
v5 --o bind3
bind3 --as--o v7