add queries generation.