select
--min(block_timestamp) as starting_point,
--max(block_timestamp) as final_point,
receiver,
(tx_message :txn :amt/1e6) as rewards
from algorand.payment_transaction
where block_timestamp <= '2022-04-07'
and try_base64_decode_string(tx_message :txn :note) like '%af/gov1:j{"rewardsPrd":2%'
and tx_message :txn :type='pay'
and sender ='57QZ4S7YHTWPRAM3DQ2MLNSVLAQB7DTK4D7SUNRIEFMRGOU7DMYFGF55BY'
order by rewards desc
limit 5