query-3a4111fdf628b56e422580fe2978a333
Why ?Why this query didn't substract the videos with "[Tt]railer" in their filename ? Hi,
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#>
#defaultView:ImageGrid
#defaultView:ImageGrid
SELECT DISTINCT ?itemLabel ?item ?film
WHERE
{
?item wdt:P31/wdt:P279* wd:Q11424 ;
wdt:P10 ?film ;
wikibase:sitelinks ?linkcount ;
SERVICE wikibase:label {bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".}
MINUS {FILTER REGEX (str(?film), "^.*[Tt]railer.*")}
}
ORDER BY DESC (?linkcount)
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?film"):::projected
v2("?item"):::projected
v1("?linkcount")
a1((" "))
c7(["bd:serviceParam"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c3(["wd:Q11424"]):::iri
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v2 --"wdt:P10"--> v3
v2 --"wikibase:sitelinks"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
f1[["regex(str(?film),'^.*#91;Tt#93;railer.*')"]]
f1 --> v3
end