Added an example with query criteria.