adding queries