query-816d23d84c67597a09993f4a91146165
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/>
SELECT ?item (COUNT(?sitelink) AS ?sitelinks) WHERE {
?item wdt:P27 wd:Q664 .
MINUS { ?item wdt:P18 [] }
MINUS { ?item wdt:P570 [] } .
?item wdt:P2002 ?twitter .
?sitelink schema:about ?item .
} GROUP BY ?item HAVING(?sitelinks >= 15) ORDER BY DESC(?sitelinks)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v4("?sitelink"):::projected
v5("?sitelinks")
v3("?twitter")
a1((" "))
a2((" "))
c3(["wd:Q664"]):::iri
f0[["?sitelinks >= '15^^xsd:integer'"]]
f0 --> v5
v2 --"wdt:P27"--> c3
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P18"--> a1
end
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P570"--> a2
end
v2 --"wdt:P2002"--> v3
v4 --"schema:about"--> v2
bind4[/"count(?sitelink)"/]
v4 --o bind4
bind4 --as--o v5