Work on impala queries