query-393fbd05e1c1fb2e8269aa8c8f11507c

rq turtle/ttl

TODO

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 ?item ?itemLabel ?prop ?propLabel ?value ?valueLabel ?count WHERE {
  {
    SELECT ?item ?prop ?value (COUNT(DISTINCT(?stmt)) AS ?count) WHERE {

       ?item wdt:P39 wd:Q30185.
       ?item ?p ?stmt .
       ?prop wikibase:claim ?p .
       ?prop wikibase:statementProperty ?ps .
       ?stmt ?ps ?value .
    }
    GROUP BY ?item ?prop ?value
    HAVING (?count > 1)
  }
  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; v8("?count"):::projected v2("?item"):::projected v3("?p") v5("?prop"):::projected v6("?ps") v4("?stmt") v7("?value"):::projected c7(["bd:serviceParam"]):::iri c3(["wd:Q30185"]):::iri c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["?count > '1^^xsd:integer'"]] f0 --> v8 v2 --"wdt:P39"--> c3 v2 -->v3--> v4 v5 --"wikibase:claim"--> v3 v5 --"wikibase:statementProperty"--> v6 v4 -->v6--> v7 bind2[/"count(?stmt)"/] v4 --o bind2 bind2 --as--o v8 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end