Get query information from DBQLogTBL in Teradata