query-5d545a4a12bb6167f3f67bab2f654a91
Propertiesmaintained by WikiProject (P6104)main subject (P921)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 (count(DISTINCT ?work) as ?count) ?author
WHERE {
?work wdt:P6104 wd:Q56241615 .
?work wdt:P921 ?topic .
?work wdt:P50 ?author .
?author wdt:P6104 wd:Q56241615
}
GROUP BY ?author
HAVING(?count < 3)
} 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;
v7("?ReplaceWithYourTargetID")
v4("?author"):::projected
v5("?count")
v6("?property")
v5("?qid")
v3("?topic")
v2("?work")
c9(["#91;AUTOLANG#93;,en"]):::literal
c7(["bd:serviceParam"]):::iri
c3(["wd:Q56241615"]):::iri
f0[["?count < '3^^xsd:integer'"]]
f0 --> v5
v2 --"wdt:P6104"--> c3
v2 --"wdt:P921"--> v3
v2 --"wdt:P50"--> v4
v4 --"wdt:P6104"--> c3
bind2[/"count(?work)"/]
v2 --o bind2
bind2 --as--o v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
bind3[/"replace(str(?author),'.*Q','-Q')"/]
v4 --o bind3
bind3 --as--o v5
bind4[/"'P6104'"/]
bind4 --as--o v6
bind5[/"'Q56241615'"/]
bind5 --as--o v7