query-6e682c069bd4775400cdcc609fa42b47
title: altesdresden ObjectID mit Straßenkürzeln SELECT ?street ?streetLabel ?ddid ?4er (COUNT(*) as ?count) WHERE { ?item wdt:P11855 ?aid. BIND( SUBSTR(STR(?aid),1,4) as ?4er) ?item wdt:P669 ?street. ?street wdt:P8710 ?ddid. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } GROUP BY ?street ?streetLabel ?ddid ?4er ORDER BY ?street
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title: altesdresden ObjectID mit Straßenkürzeln
SELECT ?street ?streetLabel ?ddid ?4er (COUNT(*) as ?count)
WHERE
{
?item wdt:P11855 ?aid.
BIND( SUBSTR(STR(?aid),1,4) as ?4er)
?item wdt:P669 ?street.
?street wdt:P8710 ?ddid.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} GROUP BY ?street ?streetLabel ?ddid ?4er ORDER BY ?street
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?4er"):::projected
v3("?aid")
v6("?count")
v5("?ddid"):::projected
v2("?item")
v1("?street"):::projected
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"wdt:P11855"--> v3
bind0[/"substring(str(?aid),'1^^xsd:integer','4^^xsd:integer')"/]
v3 --o bind0
bind0 --as--o v4
v2 --"wdt:P669"--> v1
v1 --"wdt:P8710"--> v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind2[/"count(*)"/]
bind2 --as--o v6