HCL interview question

fact, cube sql queries