query-1eab9eb57d7e55a05d6feb14d7feb0e1
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT DISTINCT ?item WHERE {
{
SELECT ?item (COUNT(*) AS ?cnt) WHERE {
?item p:P106/ps:P106/wdt:P279* wd:Q13382576; wdt:P106 ?occ .
?item wdt:P21 wd:Q6581097; wdt:P27 wd:Q183 .
} GROUP BY ?item HAVING ( ?cnt = 1 )
}.
OPTIONAL { ?item schema:description ?str . FILTER(LANG(?str) = 'es') }
FILTER(!BOUND(?str)) .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?cnt")
v3("?item"):::projected
v4("?occ")
v1("?str")
a1((" "))
a2((" "))
c9(["wd:Q6581097"]):::iri
c11(["wd:Q183"]):::iri
c6(["wd:Q13382576"]):::iri
f0[["not bound(?str)"]]
f0 --> v1
f1[["?cnt = '1^^xsd:integer'"]]
f1 --> v5
v3 --"p:P106"--> a1
a1 --"p:statement/P106"--> a2
a2 --"p:direct/P279"--> c6
v3 --"p:direct/P106"--> v4
v3 --"p:direct/P21"--> c9
v3 --"p:direct/P27"--> c11
bind3[/"count(*)"/]
bind3 --as--o v5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."schema:description".-> v1
end