Solve rational inequalities (#331)