query-4a18a7c9be34a968fae04c204c863d8e
Propertiesmaintained by WikiProject (P6104)author (P50)
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
#title: Authors of at least three in-scope works who are not tagged as in scope
#defaultView:Table
SELECT
(REPLACE(STR(?author), ".*Q", "Q") AS ?qid)
("P6104" AS ?property)
("Q56241615" AS ?ReplaceWithYourTargetID)
WHERE {
{
SELECT (count(DISTINCT ?work) as ?count) ?author WHERE {
?work wdt:P6104 wd:Q56241615 .
?work wdt:P50 ?author .
}
GROUP BY ?author
HAVING (?count > 2)
} FILTER NOT EXISTS {?author wdt:P6104 wd:Q56241615 .}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?ReplaceWithYourTargetID")
v1("?author"):::projected
v4("?count")
v5("?property")
v4("?qid")
v3("?work")
c2(["wd:Q56241615"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P6104"--> e0c2
e0v1("?author"):::projected
e0c2(["wd:Q56241615"]):::iri
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> c2
v1 --"wdt:P6104"--> c2
f1[["?count > '2^^xsd:integer'"]]
f1 --> v4
v3 --"wdt:P6104"--> c2
v3 --"wdt:P50"--> v1
bind3[/"count(?work)"/]
v3 --o bind3
bind3 --as--o v4
bind4[/"replace(str(?author),'.*Q','Q')"/]
v1 --o bind4
bind4 --as--o v4
bind5[/"'P6104'"/]
bind5 --as--o v5
bind6[/"'Q56241615'"/]
bind6 --as--o v6