John and SDQL Friends,
Your SDQL returns the sum of starter innings pitched in 2022 after the sum of starter innings pitched since the start of the database is more than 40.
You can see how many innings in excess of 40 starters have using the SDQL:
R(starter),S(Starter:sum:IP)@starter and season=2022 and sS(Starter:sum:IP)>40|
Remember that sS(PARAMETER) expands out to S(PARAMETER@starter and season).
Consider also the SDQL:
R(starter),S(Starter:sum:IP)@starter and season=2022|$1,$2@$2>40|
best regards,
Joe Meyer