Technically, I'm not really naming two fields "o:P1", I'm naming a single field "o:P1" (i.e. o:quarter scores[0] as 'o:P1'), and using twice in the same query for different, but valid reasons. As you can see, I'm trying get the 1st quarter SU records by team for 2022. Of course, doing so long hand is easy and makes sense. But in making a shortcut P1 for quarter scores[0], I really want to use the "as" alias name, and I have reason to need it twice in the same query.
My goal is to write this query "tS(P1>o:P1),tS(P1<o:P1),tS(P1=o:P1)@team and season", which fails because of the reuse of the alias. I can use "margin after the first>0" or "M1>0" and it works. It seems reasonable that a user may try "tS(P1>o:P1),tS(P1<o:P1)@team and season", so I work on coding around the limitation.
Thanks for helping me think it through.
John