added support for nested join conditions
Merge pull request #806 from yuszuv/support_for_nested_joins

added support for nested join conditions