The tremendous number of rules generated in the mining process makes it nec
essary for any good data mining system to provide for powerful query primit
ives to post-process the generated rulebase, as well as for performing sele
ctive, query based generation. In this paper, we present the design and com
pilation of MSQL, the rule query language developed as part of the Discover
y Board system.