Some nested joins could not be executed, for example: select * from (select * from (select * from a) a right join b b) c;