updated the query example