query-bbbbc99a34f83b6356dfaf15d63590c8
Get all statements that use a particular property-qualifier combination
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?property ?propertyLabel ?value ?asObject ?asObjectLabel
WHERE
{
?prop pq:P31 ?asObject .
?item ?p ?prop .
?property wikibase:claim ?p .
?property wikibase:statementProperty ?ps .
?prop ?ps ?value .
wd:P69 wikibase:claim ?p .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,bg" }
}
ORDER BY ASC(?value)
LIMIT 10000
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?asObject"):::projected
v4("?item"):::projected
v5("?p")
v2("?prop")
v6("?property"):::projected
v7("?ps")
v1("?value"):::projected
c6(["bd:serviceParam"]):::iri
c8(["en,bg"]):::literal
c4(["wd:P69"]):::iri
v2 --"pq:P31"--> v3
v4 -->v5--> v2
v6 --"wikibase:claim"--> v5
v6 --"wikibase:statementProperty"--> v7
v2 -->v7--> v1
c4 --"wikibase:claim"--> v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end