Query editor
SELECTblock_date,block_height,round(sum(output_value)) as fee_valueFROM bitcoin.transactionswhere block_date >= TIMESTAMP '2012-01-01'and block_date < TIMESTAMP '2013-01-01'and is_coinbase = TRUEand input_count = 1and input_value = 0group by 1,2order by 1