Revert "updated query"

This reverts commit 481443ee67d9d15de802c9d812332269c43c3547.