Query Evaluation of Deductive Database by MGTP and its Application to Data Mining