Since we are considering Gas Price in relation to the transactions, we need to extract the gas price metrics from ethereum.transactions.
Then, to measure the deposit/borrowing metrics, we can extract the data from aave.deposits and aave.borrowings.
In order to tally the AAVE borrowings and deposits transactions its gas fee price, we can use the inner join function. So this will give us the gas price for each AAVE transactions on ethereum.
Finally, we are to tabulate in terms of days by using date_trunc function. The data will be represented in terms of average corresponding metrics.
So essentially:
1- extract gas price metrics from ethereum.transactions
2- extract deposits and borrowing metrics from aave.borrowings and aave.deposits
3- Use inner join to tally the gas price with borrowing/deposits transactions
4- use date_trunc and avg to tabulate the values in terms of day