query-f005af63fcf259b231c6b32b9902d304

rq turtle/ttl

title:People with a Benezit or Grove Art online link with sitelinks but no English Wikipedia article SELECT DISTINCT ?artist ?artistLabel ?countryLabel ?links ?benezit_id ?grove_id WHERE { { ?artist wdt:P2843 ?benezit_id } UNION { ?artist wdt:P8406 ?grove_id } ?artist wikibase:sitelinks ?links FILTER (?links > 0). ?artist wdt:P31 wd:Q5. ?artist wdt:P27 ?country. FILTER NOT EXISTS{?enwp schema:about ?artist; schema:inLanguage "en"} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } ORDER BY DESC(?links)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title:People with a Benezit or Grove Art online link with sitelinks but no English Wikipedia article
SELECT DISTINCT ?artist ?artistLabel ?countryLabel ?links ?benezit_id ?grove_id WHERE {
{ ?artist wdt:P2843 ?benezit_id } UNION { ?artist wdt:P8406 ?grove_id }
  ?artist wikibase:sitelinks ?links FILTER (?links > 0).
  ?artist wdt:P31 wd:Q5.
  ?artist wdt:P27 ?country.
  FILTER NOT EXISTS{?enwp schema:about ?artist; schema:inLanguage "en"}
    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} ORDER BY DESC(?links)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?artist"):::projected v4("?benezit_id"):::projected v6("?country") v2("?enwp") v5("?grove_id"):::projected v1("?links"):::projected c3(["en"]):::literal c12(["bd:serviceParam"]):::iri c9(["wd:Q5"]):::iri c14(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"schema:about"--> e0v2 e0v1 --"schema:inLanguage"--> e0c3 e0v2("?artist"):::projected e0v1("?enwp"):::projected e0c3(["en"]):::literal end f0--EXISTS--> f0e0 f0 --> v2 f0 --> c1 f0 --> v3 f0 --> c2 f0 --> c3 v2 --"schema:about"--> v3 v2 --"schema:inLanguage"--> c3 f1[["?links > '0^^xsd:integer'"]] f1 --> v1 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P8406"--> v5 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P2843"--> v4 end union0r <== or ==> union0l end v3 --"wikibase:sitelinks"--> v1 v3 --"wdt:P31"--> c9 v3 --"wdt:P27"--> v6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c12 --"wikibase:language"--> c14 end