Query editor
select height, time as time, log2(difficulty) as log2_difficulty -- adjusts every 2016 blocks (2 weeks), log2(varbinary_to_uint256(chainwork)) as log2_workfrom bitcoin.blockswhere height % 2016 = 0order by 1
Query editor
1select height2, time as time3, log2(difficulty) as log2_difficulty -- adjusts every 2016 blocks (2 weeks)4, log2(varbinary_to_uint256(chainwork)) as log2_work5from bitcoin.blocks6where height % 2016 = 07order by 18