query-4321a2c8a4e2f17ab9c8151eacca898f
title:some usages of P1114 statements qualified with P1013 SELECT ?item ?itemLabel ?prop ?propLabel ?value ?qual ?qualLabel ?qual_value ?qual_valueLabel ?statement WHERE { ?item p:P1114 ?statement. ?statement ps:P1114 ?value; pq:P1013 ?qual_value. BIND(wd:P1114 AS ?prop) BIND(wd:P1013 AS ?qual) MINUS{ ?item wdt:P31/wdt:P279* wd:Q12483. } 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 P1013
SELECT ?item ?itemLabel ?prop ?propLabel ?value ?qual ?qualLabel ?qual_value ?qual_valueLabel ?statement WHERE {
?item p:P1114 ?statement.
?statement ps:P1114 ?value;
pq:P1013 ?qual_value.
BIND(wd:P1114 AS ?prop)
BIND(wd:P1013 AS ?qual)
MINUS{ ?item wdt:P31/wdt:P279* wd:Q12483. }
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
a1((" "))
c8(["bd:serviceParam"]):::iri
c6(["wd:Q12483"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"p:P1114"--> v2
v2 --"p:statement/P1114"--> v3
v2 --"p:qualifier/P1013"--> v4
bind0[/"'wd:P1114'"/]
bind0 --as--o v5
bind1[/"'wd:P1013'"/]
bind1 --as--o v6
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
v1 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end