пробовать:
=ARRAYFORMULA(QUERY({SORT({D4:D, H4:H}, 2, 0),
IF(IFERROR(VLOOKUP(INDEX(SORT({D4:D, H4:H}, 2, 0),,1), 'Name And Position'!A4:B, 2, 0))="G",
COUNTIFS(IFERROR(VLOOKUP(INDEX(SORT({D4:D, H4:H}, 2, 0),,1), 'Name And Position'!A4:B, 2, 0)),
IFERROR(VLOOKUP(INDEX(SORT({D4:D, H4:H}, 2, 0),,1), 'Name And Position'!A4:B, 2, 0)),
ROW(K4:K), "<="&ROW(K4:K)), 1)},
"select Col1 where Col3 = 1 order by Col2 desc limit 11", 0))