grab proper query