I think it's fail here - https://github.com/andygrove/sqlparser-rs/blob/master/src/parser.rs#L1797 because the code assume that inside the Parenthesis should be TableFactor::Derived or TableFactor::NestedJoin, but it's not take in account it's could be TableFactor::Table