Use reactant-product notation, with an optional atom map.
Any valid Reaction SMILES is a valid SMARTS query.
Any valid Molecule SMARTS can be a component of a Reaction SMARTS query.
Recursive SMARTS supports only molecule expressions.
Matches any reaction with a reactant acid and a product ester. Includes all esterification reactions, plus any reaction which happens to have the appropriate functionality in its components.
Matches esterification reactions.
Diels-alder, recursive SMARTS.