Remove the single quote around the WORD. It causes the column name to be converted as string.
SELECT word, SUM(amount)
FROM Data
Group By word
Remove the single quote around the WORD. It causes the column name to be converted as string.
SELECT word, SUM(amount)
FROM Data
Group By word