query-a151e7c55da2466206ebec519bb73de7
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?work ?title ?spacecount
WHERE
{
?work wdt:P31/wdt:P279* wd:Q838948;
wdt:P1476 ?title.
bind(replace(?title, "\\S", "") as ?space)
bind(strlen(?space) as ?spacecount)
FILTER(REGEX(?title, "^\\s*\\S+(?:\\s+\\S+){33,}\\s*$", "i")).
}
ORDER BY STR(?title)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?space")
v4("?spacecount"):::projected
v1("?title"):::projected
v2("?work"):::projected
a1((" "))
c5(["wd:Q838948"]):::iri
f0[["regex(?title,'^\s*\S+(?:\s+\S+){33,}\s*$','i')"]]
f0 --> v1
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c5
v2 --"wdt:P1476"--> v1
bind1[/"replace(?title,'\S','')"/]
v1 --o bind1
bind1 --as--o v3
bind2[/"string-length(?space)"/]
v3 --o bind2
bind2 --as--o v4