query: PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
  PREFIX schema: <http://schema.org/>
  # Malayalam women (birth/ language) without an article in 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)