select *
from first_table
join second_table
on second_table.x = first_table.x
join third_table
on third_table.y = second_table.y;
The query is formatted the same, no matter whether I tick the "Spit JOIN expression before ON" or not (in the Beautifier options, tab DML)