I am trying to write this SQL query: t1.tms_id, t1 Choose as Ktms_name, (select t1.Pts t.tms_id, t.tms_name, SUM tb_league as (points as s.lsc_1stscore) T, L, g in tb_game, tb_score as tb_team as Where s (t.tms_id = l.lgs_1stplace) and (l.fk_lsc_id = s.lsc_id) AND (t.fk_gms_id = g.gms_id) AND (g.gms_id = 1) GROUP by T.T.M.S. _NA) Select T1 Union T2 TMS_ID, T2 TMS_Name, T2. The PTS (t.tms_id, t.tms_name, SUM (as selected s.lsc_2ndscore) points t, tb_league L, g as tb_game, as tb_score as the tb_team where (t.tms_id = L.lgs_2ndplace) and (l.fk_lsc_id = S.lsc_id) AND (t.fk_gms_id = g.gms_id) AND (g.gms_id = 1) GROUP by T.TMSS_NA) T2 Union T3. tms_id, T3.tms_name, the T3.Pts (SELECT t.tms_id, t .tms_name, (s.lsc_3rdscore) L as tb_league, g as tb_game, as the sum of points tb_score as tb_team where s (T.tms_id = l.lgs_3rdplace) and (l.fk_lsc_id = s.lsc_id) and (t.fk_gms_id = g.gms_id) and (g.gms_id = 1) group TTMs _name) Select t3 union t4.tms_id, tb_league as T, L as the number (t.t...