KT-246 join query with empty result