query-830a6e1153544b3857181bae20114879

rq turtle/ttl

Malayalam women (by birth / language) without an article on Malayalam Wikipedia

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX schema: <http://schema.org/>
# Malayalam women (by birth / language) without an article on Malayalam Wikipedia
SELECT ?item ?itemLabel ?birth ?pobLabel ?death ?podLabel WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  BIND(xsd:integer(STRAFTER(STR(?item), "Q")) AS ?qid)
  ?item wdt:P31 wd:Q5.
  ?item wdt:P21 wd:Q6581072.
  { ?item wdt:P19 wd:Q1186. }
  UNION
  {
    ?item wdt:P19 ?pob.
    ?pob wdt:P131* wd:Q1186.
  }
  UNION
  { ?item wdt:P103 wd:Q36236. }
  UNION
  { ?item wdt:P1412 wd:Q36236. }
  OPTIONAL { ?item wdt:P569 ?birth. }
  OPTIONAL { ?item wdt:P19 ?pob. }
  OPTIONAL { ?item wdt:P570 ?death. }
  OPTIONAL { ?item wdt:P20 ?pod. }
  OPTIONAL {
    ?sitelink schema:about ?item.
    ?sitelink schema:inLanguage "ml".
  }
  FILTER(!BOUND(?sitelink))
}
GROUP BY ?item ?itemLabel ?birth ?pobLabel ?death ?podLabel
ORDER BY DESC(?statements)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?birth"):::projected v7("?death"):::projected v4("?item"):::projected v5("?pob") v8("?pod") v3("?qid") v2("?sitelink") v1("?statements") c8(["wd:Q6581072"]):::iri c2(["bd:serviceParam"]):::iri c13(["wd:Q36236"]):::iri c6(["wd:Q5"]):::iri c10(["wd:Q1186"]):::iri c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal c20(["ml"]):::literal f0[["not bound(?sitelink)"]] f0 --> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end bind1[/"http://www.w3.org/2001/XMLSchema#integer(substring-after(str(?item),'Q'))"/] v4 --o bind1 bind1 --as--o v3 v4 --"wdt:P31"--> c6 v4 --"wdt:P21"--> c8 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; subgraph union2[" Union "] subgraph union2l[" "] style union2l fill:#abf,stroke-dasharray: 3 3; v4 --"wdt:P1412"--> c13 end subgraph union2r[" "] style union2r fill:#abf,stroke-dasharray: 3 3; v4 --"wdt:P103"--> c13 end union2r <== or ==> union2l end end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v4 --"wdt:P19"--> v5 v5 --"wdt:P131"--> c10 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v4 --"wdt:P19"--> c10 end union0r <== or ==> union0l end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v4 -."wdt:P569".-> v6 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v4 -."wdt:P19".-> v5 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v4 -."wdt:P570".-> v7 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v4 -."wdt:P20".-> v8 end subgraph optional4["(optional)"] style optional4 fill:#bbf,stroke-dasharray: 5 5; v2 -."schema:about".-> v4 v2 --"schema:inLanguage"--> c20 end