To generate a query, the user types in a structure in the same way that new structures are entered, and can indicate where there are wildcards (i.e., no particular atom necessary) and where there are multiple acceptable types of atoms or bonds by indicating the specific atoms and bonds that are acceptable in any given position.