query: SELECT DISTINCT ?item ?itemLabel ?propertyLabel ?property ?genderLabel ?occupation ?occupationLabel WHERE {
    ?item (wdt:P31/wdt:P279*) wd:Q5.
    ?item ?property wd:Q13371.
    ?item wdt:P21 ?gender.
    ?item wdt:P106 ?occupation.
    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  }