Principal submatrices II: the upper and lower quadratic inequalities☆