select BOOK_SUBJECT, count(BOOK_SUBJECT) as `Books In Subject`
from BOOK
group by BOOK_SUBJECT
order by count(BOOK_SUBJECT) desc, BOOK_SUBJECT;