query-4f8ab929e8061858c5a4a33bf61e8088

rq turtle/ttl

All statements with item as a qualifier value

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX target: <http://www.wikidata.org/entity/Q263367>

SELECT ?item ?itemLabel ?property ?propertyLabel ?value ?valueLabel ?qualifier ?qualifierLabel WHERE {
  {
    SELECT ?item ?property ?value ?qualifier {

      ?qualifier wikibase:qualifier ?pq.
      ?st ?pq target:.
      ?property wikibase:claim ?p;
        wikibase:statementProperty ?ps.
      ?item ?p ?st.
      ?st ?ps ?value.
    }
    LIMIT 1000
  }
  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; v7("?item"):::projected v5("?p") v2("?pq") v4("?property"):::projected v6("?ps") v1("?qualifier"):::projected v3("?st") v8("?value"):::projected c6(["bd:serviceParam"]):::iri c2([http://www.wikidata.org/entity/Q263367]):::iri c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal v1 --"wikibase:qualifier"--> v2 v3 -->v2--> c2 v4 --"wikibase:claim"--> v5 v4 --"wikibase:statementProperty"--> v6 v7 -->v5--> v3 v3 -->v6--> v8 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end