[INST] Here is a database schema:
customers :
CustomerID [ INTEGER ] primary_key
Segment [ TEXT ]
Currency [ TEXT ]

gasstations :
GasStationID [ INTEGER ] primary_key
ChainID [ INTEGER ]
Country [ TEXT ]
Segment [ TEXT ]

products :
ProductID [ INTEGER ] primary_key
Description [ TEXT ]

transactions_1k :
TransactionID [ INTEGER ] primary_key
Date [ DATE ]
Time [ TEXT ]
CustomerID [ INTEGER ]
CardID [ INTEGER ]
GasStationID [ INTEGER ]
ProductID [ INTEGER ]
Amount [ INTEGER ]
Price [ REAL ]

yearmonth :
CustomerID [ INTEGER ] yearmonth.CustomerID = customers.CustomerID
Date [ TEXT ]
Consumption [ REAL ]

Please write me a SQL statement that answers the following question: Which customer paid the most in 2012/8/25? [/INST]
SELECT CustomerID FROM transactions_1k WHERE Date = '2012-08-25' GROUP BY CustomerID ORDER BY SUM(Price) DESC LIMIT 1;