Update Advanced query