solution for whats in query