proper query