USD-Expenses in 2015, grouped by month

SELECT
  MONTH(date) AS month,
  SUM(COST(position)) AS balance
WHERE
   account ~ 'Expenses:' AND
   currency = 'USD' AND
   YEAR(date) = 2015
GROUP BY 1
ORDER BY 1;
Run in bean-query in fava