query-bbcf1a7792d8b57532689b7ae871d45c
TODO
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?itemDescription
WHERE
{
?item wdt:P136 wd:Q309481 ; wdt:P31 wd:Q13442814 .
?item rdfs:label ?l .
FILTER ( lang ( ?l) = "en" && REGEX( ?l, "[12]\\d{3}.+[12]\\d{3}") )
MINUS { ?item wdt:P921 [] }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?l")
a1((" "))
c6(["wd:Q13442814"]):::iri
c10(["bd:serviceParam"]):::iri
c4(["wd:Q309481"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?l = 'en'regex(?l,'#91;12#93;\d{3}.+#91;12#93;\d{3}')"]]
f0 --> v1
v2 --"wdt:P136"--> c4
v2 --"wdt:P31"--> c6
v2 --"rdfs:label"--> v1
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P921"--> a1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end