query-61a36c13a52657f9c0f5e606c1b93849

rq turtle/ttl

PropertiesCommons Creator page (P1472)Commons category (P373)instance of (P31)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item1 ?item1Label ?item2 ?item2Label ?value
{
    ?item1 wdt:P1472 [] .
    ?item1 wdt:P373 ?value .
    ?item2 wdt:P373 ?value .
    FILTER(?item1 != ?item2) .
    MINUS{ ?item2 wdt:P31 wd:Q4167836 . }
    SERVICE wikibase:label { bd:serviceParam wikibase:language "en,en" } .
} LIMIT 500

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item1"):::projected v2("?item2"):::projected v3("?value"):::projected a1((" ")) c6(["bd:serviceParam"]):::iri c4(["wd:Q4167836"]):::iri c8(["en,en"]):::literal f0[["?item1 != ?item2"]] f0 --> v1 f0 --> v2 v1 --"wdt:P1472"--> a1 v1 --"wdt:P373"--> v3 v2 --"wdt:P373"--> v3 subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v2 --"wdt:P31"--> c4 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end