Formulation for XML Retrieval with Bricks