query: select distinct (?l as ?item) (concat(replace(str(?l),str(wd:),"{{L|"),"}}") as ?l_) ?gender {
    ?l dct:language wd:Q188;
       wikibase:lexicalCategory wd:Q1084;
       wikibase:lemma ?lemma.
    ?l wdt:P5185 ?gender filter (?gender not in (wd:Q499327, wd:Q1775415, wd:Q1775461)).
  }