XQuake: an XQuery-like language for mining XML data