Statistics, Data Analysis and Probability K12A chess queen attacks all squares along its path horizontally, vertically and diagonally.

I would like to place at least 2 white queens and at least 2 black queens on a 5x5 chessboard, such that the queens on either side cannot attack any opposing queens.

What is the maximum number of queens I can place on the board?