adding queries assignment