Patch join.
Add initial #ToSQL for SelectStatement.