query-af095e1e468bf6bf37cf0e32f2020478
Propertiesmaintained by WikiProject (P6104)instance of (P31)author (P50)
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 bd: <http://www.bigdata.com/rdf#>
SELECT
DISTINCT
(REPLACE(STR(?author), ".*Q", "-Q") AS ?qid)
("P6104" AS ?property)
("Q56241615" AS ?ReplaceWithYourTargetID)
WHERE {
{
SELECT DISTINCT ?author
WHERE {
?author wdt:P6104 wd:Q56241615 ;
wdt:P31 wd:Q5 .
FILTER NOT EXISTS { ?work wdt:P50 ?author ; wdt:P6104 wd:Q56241615 .}
}
GROUP BY ?author
LIMIT 100
} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTOLANG],en" . }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?ReplaceWithYourTargetID")
v2("?author"):::projected
v4("?property")
v3("?qid")
v1("?work")
c9(["#91;AUTOLANG#93;,en"]):::literal
c7(["bd:serviceParam"]):::iri
c3(["wd:Q56241615"]):::iri
c5(["wd:Q5"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P50"--> e0v2
e0v1 --"wdt:P6104"--> e0c3
e0v2("?author"):::projected
e0v1("?work"):::projected
e0c3(["wd:Q56241615"]):::iri
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> v2
f0 --> c2
f0 --> c3
v1 --"wdt:P50"--> v2
v1 --"wdt:P6104"--> c3
v2 --"wdt:P6104"--> c3
v2 --"wdt:P31"--> c5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
bind1[/"replace(str(?author),'.*Q','-Q')"/]
v2 --o bind1
bind1 --as--o v3
bind2[/"'P6104'"/]
bind2 --as--o v4
bind3[/"'Q56241615'"/]
bind3 --as--o v5