query-3318727fe7d2a2a254f658db0e180eed

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?count ?image 


WHERE {
    {
       SELECT ?item (COUNT(?image) AS ?count) WHERE {
            {
   SELECT ?item ?image WHERE {
       ?item wdt:P18 ?image .
   }  LIMIT 1000000
}       } GROUP BY ?item
      HAVING (?count > 1)
    }
     {
   SELECT ?item ?image WHERE {
       ?item wdt:P18 ?image .
   }  LIMIT 1000000
}.
    FILTER (CONTAINS(LCASE(str(?image)), "interior")) .
    MINUS {?item wdt:P5775 [] }
    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?count"):::projected v1("?image"):::projected v3("?item"):::projected a1((" ")) c6(["bd:serviceParam"]):::iri c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["contains(lower-case(str(?image)),'interior')"]] f0 --> v1 f1[["?count > '1^^xsd:integer'"]] f1 --> v4 v3 --"wdt:P18"--> v1 bind3[/"count(?image)"/] v1 --o bind3 bind3 --as--o v4 v3 --"wdt:P18"--> v1 subgraph minus4["MINUS"] style minus4 stroke-width:6px,fill:pink,stroke:red; v3 --"wdt:P5775"--> a1 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end