query-d2e8a995936315881b9692bead4b04f9
Querying Wikidata & Editing WikipediaThe following query may be used in an upcoming Wikipedia editathon in Montréal. It outputs items for actresses in Montréal (place of birth or place of death) with a Wikidata entry, but without a Wikipedia article in French:
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 schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?person ?personLabel ?personDescription ?occupation
  WHERE {
  { ?person wdt:P19 wd:Q340 } UNION { ?person wdt:P20 wd:Q340 }.
  ?person wdt:P21 wd:Q6581072 .
  ?person wdt:P106 wd:Q33999.  
  MINUS { ?sitelink schema:isPartOf <https://fr.wikipedia.org/> ;
     schema:about ?person . }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],fr" }
  }
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v1("?person"):::projected 
  v2("?sitelink")
  c9([https://fr.wikipedia.org/]):::iri 
  c5(["wd:Q6581072"]):::iri 
  c12(["bd:serviceParam"]):::iri 
  c14(["#91;AUTO_LANGUAGE#93;,fr"]):::literal 
  c7(["wd:Q33999"]):::iri 
  c2(["wd:Q340"]):::iri 
  subgraph union0[" Union "]
  subgraph union0l[" "]
    style union0l fill:#abf,stroke-dasharray: 3 3;
    v1 --"wdt:P20"-->  c2
  end
  subgraph union0r[" "]
    style union0r fill:#abf,stroke-dasharray: 3 3;
    v1 --"wdt:P19"-->  c2
  end
  union0r <== or ==> union0l
  end
  v1 --"wdt:P21"-->  c5
  v1 --"wdt:P106"-->  c7
  subgraph minus0["MINUS"]
    style minus0 stroke-width:6px,fill:pink,stroke:red;
    v2 --"schema:isPartOf"-->  c9
    v2 --"schema:about"-->  v1
  end
  subgraph s1["http://wikiba.se/ontology#label"]
    style s1 stroke-width:4px;
    c12 --"wikibase:language"-->  c14
  end