Traps and pitfalls when learning logical definitions from relations