put (window) in query