HHH-7841 : Add LoadQuery for generating SQL