first step into merging queries