Merge queries