query-3348c2f7d7d4566b8840605363155d65

rq turtle/ttl

Canadian archaeologists with an article on the English Wikipedia and no ADS ID SELECT ?person ?personLabel ?article WHERE {

?person wdt:P31 wd:Q5 . # person
?person wdt:P106*/wdt:P279* wd:Q3621491 . # any subclass of archaeologist
?person wdt:P27 wd:Q16 . # Canadian
?article schema:about ?person .
?article schema:isPartOf <https://en.wikipedia.org/>. # with an article on en.wiki
MINUS { ?person wdt:P6734 [] } .

SERVICE wikibase:label {
   bd:serviceParam wikibase:language "en"
}

}

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#>
#Canadian archaeologists with an article on the English Wikipedia and no ADS ID
SELECT ?person ?personLabel ?article WHERE {

    ?person wdt:P31 wd:Q5 . # person
    ?person wdt:P106*/wdt:P279* wd:Q3621491 . # any subclass of archaeologist
    ?person wdt:P27 wd:Q16 . # Canadian
    ?article schema:about ?person .
    ?article schema:isPartOf <https://en.wikipedia.org/>. # with an article on en.wiki
    MINUS { ?person wdt:P6734 [] } .

    SERVICE wikibase:label {
       bd:serviceParam wikibase:language "en"
    }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?article"):::projected v1("?person"):::projected a2((" ")) a1((" ")) c15(["en"]):::literal c5(["wd:Q3621491"]):::iri c7(["wd:Q16"]):::iri c10([https://en.wikipedia.org/]):::iri c13(["bd:serviceParam"]):::iri c2(["wd:Q5"]):::iri v1 --"wdt:P31"--> c2 v1 --"wdt:P106"--> a1 a1 --"wdt:P279"--> c5 v1 --"wdt:P27"--> c7 v2 --"schema:about"--> v1 v2 --"schema:isPartOf"--> c10 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v1 --"wdt:P6734"--> a2 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c13 --"wikibase:language"--> c15 end