multiple query plotting working