query-f12a3f5db169cde10f3e079bcf8ad8c3
(P2397)YouTube channel ID
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?pred (COUNT(?pred) AS ?cnt) WHERE {
?sen p:P39 ?stmt;
wdt:P31 wd:Q5.
?stmt ps:P39 wd:Q4416090.
FILTER(NOT EXISTS { ?stmt pq:P2937 ?term. })
?stmt ?pred ?val.
}
GROUP BY ?pred
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?cnt")
v4("?pred"):::projected
v3("?sen")
v1("?stmt")
v2("?term")
v5("?val")
c6(["wd:Q4416090"]):::iri
c4(["wd:Q5"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"p:qualifier/P2937"--> e0v2
e0v1("?stmt"):::projected
e0v2("?term"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> v2
v1 --"p:qualifier/P2937"--> v2
v3 --"p:P39"--> v1
v3 --"p:direct/P31"--> c4
v1 --"p:statement/P39"--> c6
v1 -->v4--> v5
bind2[/"count(?pred)"/]
v4 --o bind2
bind2 --as--o v6