[#2734] Add support for lateral derived tables