The shown query is syntactically correct. That's why you don't see an error marker from the syntax checker. However, it might be wrong from a data standpoint (e.g. table empresa doesn't exist or the DEPT column has a different name etc.).
You can see the response from the server when you execute the query by opening the output pane using the marked button in the toolbar:
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…