select tx_id, event_attributes, block_timestamp, event_attributes:to::string as address, event_attributes:"0_amount"::float/1e6 as amount from terra.msg_events
where tx_id = '9B111E0125B6F4EF562E0C5919565AC08A96AA85B98EA73128C1DC2DEC337AF2'
and event_type ='from_contract'
and tx_status = 'SUCCEEDED'
and event_attributes:"0_contract_address"::string = 'terra1sepfj7s0aeg5967uxnfk4thzlerrsktkpelm5s'
and event_attributes:"0_action"::string = 'claim_rewards'