the data format in the table is as follows
2018-01-01 58
2018-01-01 12
2018-01-02 54
2018-01-02 24
2018-01-01 36
2018-01-03 3 10
the data format after query is as follows
2018-01-01 9 16
2018-01-02 7 8
2018-01-03 3 10
could you tell me how to write the query statement?