{"mysql":"SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month\n\t\t\t\tFROM wp_posts\n\t\t\t\tWHERE post_type = 'attachment'\n\t\t\t\tORDER BY post_date DESC","postgresql":"SELECT DISTINCT EXTRACT(YEAR FROM  post_date ) AS year, EXTRACT(MONTH FROM  post_date ) AS month\n\t\t\t\tFROM wp_posts\n\t\t\t\tWHERE post_type = 'attachment'\n\t\t\t\tORDER BY EXTRACT(YEAR FROM post_date) DESC, EXTRACT(MONTH FROM post_date) DESC"}