i want program from used select from table and saved result queries in multi dimensional