query manager
merge