SPY's 10-year average return is 12.76%,
The 10 year average annual return for QQQ stock is 18.52%.
The historical average yearly return of the S&P 500 is 10.473% over the last 20 years, as of the end of July 2024.
The Invesco QQQ Trust ETF (QQQ) has a 14.66% average annual return over the past 30 years
https://www.financecharts.com/etfs/QQQ/performance/total-return
https://finance.yahoo.com/quote/SPY/performance/