Fragment is a subset of biomolecule
defined by a query. Basically, it is any arrangement of either atoms or residues. Therefore, both atoms and also residues can be considered as fragments too.
Query is a single declarative expression of the '''MQ''' language which describes a structural fragment.