HCL Interview Question

fact, cube sql queries