query-1cdb539e8fde2d76d333657db68cbabd

rq turtle/ttl

Combine two queriesHi, I would like to combine these two queries into one: This returns the streets in Haarlem here on Wikidata:

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?item ?wikilabel WHERE { 
    ?item rdfs:label ?wikilabel .
    ?item wdt:P131 wd:Q9920 .
    ?item wdt:P31 wd:Q79007 .
    }

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected v2("?wikilabel"):::projected c5(["wd:Q79007"]):::iri c3(["wd:Q9920"]):::iri v1 --"rdfs:label"--> v2 v1 --"wdt:P131"--> c3 v1 --"wdt:P31"--> c5