SQL REPORT IN X3

SUGGESTED

I am trying to run the following query but its giving me an error. Any suggestion on how it can be fixed.