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