Added query #merge method