updating query with nested properties