Updated 2023-09-07
    SELECT
    dt,
    sum(fee_usd) as total_fee_usd
    FROM
    (
    SELECT
    sum(amount_usd) * 0.003 as fee_usd,
    CONCAT(
    YEAR(BLOCK_TIMESTAMP),
    '-',
    MONTH(BLOCK_TIMESTAMP)
    ) as dt
    FROM
    ethereum.core.ez_token_transfers
    WHERE
    (
    from_address = '0x7fb69e8fb1525ceec03783ffd8a317bafbdfd394'
    AND to_address = '0x3edbe670d03c4a71367deda78e73ea4f8d68f2e4'
    )
    OR (
    from_address = '0x3edbe670d03c4a71367deda78e73ea4f8d68f2e4'
    AND to_address = '0x7fb69e8fb1525ceec03783ffd8a317bafbdfd394'
    )
    OR (
    from_address = '0x7fb69e8fb1525ceec03783ffd8a317bafbdfd394'
    AND to_address = '0xf62a24ebe766d0da04c9e2aeecd5e86fac049b7b'
    )
    OR (
    from_address = '0xf62a24ebe766d0da04c9e2aeecd5e86fac049b7b'
    AND to_address = '0x7fb69e8fb1525ceec03783ffd8a317bafbdfd394'
    )
    GROUP BY
    dt
    UNION
    ALL
    SELECT
    Run a query to Download Data