[WIP] Adding failing test for DDC-2452

DQL joins between JTI entities produce invalid SQL when additional conditions are inserted via WITH clause

Still working on a fix