query-6e242f4beb54b7a699ba71e34d1c6a3d

rq turtle/ttl

title:Screen Nation award winners with English Wikipedia articles SELECT DISTINCT ?winner ?winnerLabel ?enwp WHERE { ?award wdt:P31/wdt:P279/wdt:P279 wd:Q7439004. # Screen Nation awards ?winner wdt:P166 ?award. OPTIONAL {?enwp schema:about ?winner; schema:isPartOf https://en.wikipedia.org/} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } ORDER BY ?winnerLabel

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:Screen Nation award winners with English Wikipedia articles
SELECT DISTINCT ?winner ?winnerLabel ?enwp WHERE {
  ?award wdt:P31/wdt:P279/wdt:P279 wd:Q7439004. # Screen Nation awards
  ?winner wdt:P166 ?award.
  OPTIONAL {?enwp schema:about ?winner; schema:isPartOf <https://en.wikipedia.org/>}
    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} ORDER BY ?winnerLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?award") v4("?enwp"):::projected v3("?winner"):::projected v1("?winnerLabel"):::projected a1((" ")) a2((" ")) c7([https://en.wikipedia.org/]):::iri c9(["bd:serviceParam"]):::iri c3(["wd:Q7439004"]):::iri c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> a2 a2 --"wdt:P279"--> c3 v3 --"wdt:P166"--> v2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v4 -."schema:about".-> v3 v4 --"schema:isPartOf"--> c7 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end