Report question

Question: group by year, month, day in a sqlalchemy