Efficient Mining from Large Databases by Query Learning