query-01dfeeeb58f5328e44839c1a070120dd

rq turtle/ttl

Entità in Toscana con import dal Sistema Cultura e più di un numero di telefono SELECT ?i ?iLabel ?iDescription ?inst ?instLabel (count(?tel) AS ?num) WHERE { ?i p:P17 [ps:P17 ?c ; prov:wasDerivedFrom [pr:P248 wd:Q80199870] ] . ?i (wdt:P131)* wd:Q1273 . ?i wdt:P131 ?inst . #?inst wdt:P625 ?instcoord . ?i wdt:P1329 ?tel . SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it,en". } } GROUP BY ?i ?iLabel ?iDescription ?inst ?instLabel HAVING(?num > 1)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Entità in Toscana con import dal Sistema Cultura e più di un numero di telefono
SELECT ?i ?iLabel ?iDescription ?inst ?instLabel (count(?tel) AS ?num)
WHERE {
  ?i p:P17 [ps:P17 ?c ; prov:wasDerivedFrom [pr:P248 wd:Q80199870] ] .
  ?i (wdt:P131)* wd:Q1273 . 
  ?i wdt:P131 ?inst .
  #?inst wdt:P625 ?instcoord .
  ?i wdt:P1329 ?tel .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it,en". }
}
GROUP BY ?i ?iLabel ?iDescription ?inst ?instLabel
HAVING(?num > 1)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?c") v3("?i"):::projected v4("?inst"):::projected v6("?num") v5("?tel"):::projected a1((" ")) a2((" ")) c13(["#91;AUTO_LANGUAGE#93;,it,en"]):::literal c4(["wd:Q80199870"]):::iri c11(["bd:serviceParam"]):::iri c8(["wd:Q1273"]):::iri f0[["?num > '1^^xsd:integer'"]] f0 --> v6 a1 --"p:statement/P17"--> v2 a2 --"p:reference/P248"--> c4 a1 --"prov:wasDerivedFrom"--> a2 v3 --"p:P17"--> a1 v3 --"p:direct/P131"--> c8 v3 --"p:direct/P131"--> v4 v3 --"p:direct/P1329"--> v5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c11 --"wikibase:language"--> c13 end bind2[/"count(?tel)"/] v5 --o bind2 bind2 --as--o v6