xxxxxxxxxx
WITH toDate(:dateFrom) as startD, toDate(:dateTo) as endD
SELECT MONTH(addMonths(toDate(startD), number)) AS month, YEAR(addMonths(toDate(startD), number)) AS year
FROM (SELECT arrayJoin(range(0, toUInt64(dateDiff('month', startD,endD))+1)) AS number)