query-e6c06734e3706d26e5468bf81d079991
title:all usages of P1114 statements qualified with P5102 SELECT ?item ?itemLabel ?prop ?propLabel ?value ?qual ?qualLabel ?qual_value ?qual_valueLabel ?statement WHERE { ?item p:P1114 ?statement. ?statement ps:P1114 ?value; pq:P5102 ?qual_value. BIND(wd:P1114 AS ?prop) BIND(wd:P5102 AS ?qual) SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title:all usages of P1114 statements qualified with P5102
SELECT ?item ?itemLabel ?prop ?propLabel ?value ?qual ?qualLabel ?qual_value ?qual_valueLabel ?statement WHERE {
?item p:P1114 ?statement.
?statement ps:P1114 ?value;
pq:P5102 ?qual_value.
BIND(wd:P1114 AS ?prop)
BIND(wd:P5102 AS ?qual)
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;
v1("?item"):::projected
v5("?prop"):::projected
v6("?qual"):::projected
v4("?qual_value"):::projected
v2("?statement"):::projected
v3("?value"):::projected
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"p:P1114"--> v2
v2 --"p:statement/P1114"--> v3
v2 --"p:qualifier/P5102"--> v4
bind0[/"'wd:P1114'"/]
bind0 --as--o v5
bind1[/"'wd:P5102'"/]
bind1 --as--o v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end