Report question

Question: Group query results by month and year in postgresql