You want to find a set of derivatives in one query that match a core structure with substituent variation (R-group search).
You can create an R-group search in CDD using the Marvin Sketch structure editor. You can also use the editor to create atom lists. Learn more about R-group, and other Markush structure searching directly from ChemAxon.
Here on Youtube you can watch the short video from ChemAxon for MarvinJS to see the steps:
If you prefer to read, here are the simple steps from ChemAxon for creating a single attachment point R-group search.
Here an simplified example of how your Marvin JS (or Sketch) drawing should look like: