updated to query example