Curvature inequalities for Lagrangian submanifolds: The final solution