query-82a400d1089621cc86ca20699f1e08dc

rq turtle/ttl

How to get a Q id in the result?

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item ?itemId
WHERE
{
    ?item wdt:P31 wd:Q5 .
}
LIMIT 10

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected c2(["wd:Q5"]):::iri v1 --"wdt:P31"--> c2