Data mining primitives include task-relevant data, the kind of knowledge to be mined, background knowledge such as concept hierarchies, interestingness measures, and methods for presenting discovered patterns. A data mining query specifies these primitives to guide the knowledge discovery process. Background knowledge like concept hierarchies allow mining patterns at different levels of abstraction. Interestingness measures estimate pattern simplicity, certainty, utility, and novelty to filter uninteresting results. Discovered patterns can be presented through various visualizations including rules, tables, charts, and decision trees.