The first lines is using a range on the lines, instead of the simpler line specifications on the second and third line. The last line uses a column range to do the sums of column two and three.
Remember that after changing the table data, you need to place your cursor within the column and hit the recalculate icon from the side panel, or trigger the command Advanced Tables: Evaluate table formulas. It doesn’t happen automatic.