How to adding ID column to Json

Hello all

I have several questions hope someone can help>
So in order to get the 3 lastest records based on the specific date so I can compare the revenue with each other

  1. I did create this query to filter the revenue with year and month

    2.1. How can I get the 3 records above the record that have year =2022 and month =4
    2.2. Is there anyway to create a ID column to automatic fill the incremental number
    2.3. Is there anyway that I can synce that table to a googl sheet?

Thanks all <3,
An