Query editor
with Coinbase as(SELECT*from bitcoin.transactionswhereEXTRACT(YEAR from block_time ) = 2012and is_coinbase = TRUEand input_count = 1and input_value = 0)SELECTCOUNT(DISTINCT c.id) as coinbase_tx,sum(c.output_value)from Coinbase AS c left join bitcoin.outputs as o on c.id=o.tx_idWHERE type = 'nonstandard'