query-71ee6215773f7e427447461a4fc3f256
TODO
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#>
SELECT DISTINCT ?item ?itemLabel ?target ?targetLabel
WHERE
{
?item wdt:P31 wd:Q28065731 ;
wikibase:sitelinks 0 .
OPTIONAL {
?item p:P31 ?statement .
?statement ps:P31 wd:Q28065731 ;
pq:P642 ?target .
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "sv,fi,en". }
}
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v2("?statement")
v3("?target"):::projected
c4(["0^^xsd:integer"]):::literal
c11(["sv,fi,en"]):::literal
c9(["bd:serviceParam"]):::iri
c2(["wd:Q28065731"]):::iri
v1 --"p:direct/P31"--> c2
v1 --"wikibase:sitelinks"--> c4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:P31".-> v2
v2 --"p:statement/P31"--> c2
v2 --"p:qualifier/P642"--> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end