Solving problems with generic relations