You can attack all 64 squares (so including the ones the queens stand on) with five queens.
Warning! Spoiler! One of many possible solutions shown below:
... of course, placing five queens to leave just the squares they stand on not attacked, but attacking all the other squares, is also an interesting puzzle...