Query editor
selectdate_trunc('day', "block_time") as day,count(casewhen bytearray_substring("data", 68, 1) = 0x01 then 1else nullend) as Common,count(casewhen bytearray_substring("data", 68, 1) = 0x02 then 1else nullend) as Uncommon,count(casewhen bytearray_substring("data", 68, 1) = 0x03 then 1else nullend) as Rare,count(casewhen bytearray_substring("data", 68, 1) = 0x04 then 1else nullend) as Epic,count(casewhen bytearray_substring("data", 68, 1) = 0x05 then 1else nullend) as Legendaryfrompolygon.transactionswhere"to" = 0xf293b608baa0077737f691e210d46eedfccb0d67AND "block_time" >= date_trunc('day', now()) - interval '30' dayAND "success" = trueAND bytearray_substring("data", 1, 4) = 0x731133e9group by 1