initial steps for composite queries