query-ce0fd4eac7c15dd53a12a8a551379c0a

rq turtle/ttl

Main subjects given as books SELECT ?item WHERE {?item wdt:P921 ?subject. ?subject wdt:P486 [ ]; wdt:P31 wd:Q571}

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
#Main subjects given as books
SELECT ?item
  WHERE {?item wdt:P921 ?subject.
         ?subject wdt:P486 [ ];
               wdt:P31 wd:Q571}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected v2("?subject") a1((" ")) c4(["wd:Q571"]):::iri v1 --"wdt:P921"--> v2 v2 --"wdt:P486"--> a1 v2 --"wdt:P31"--> c4