Updated query

Updated query