user: Question: Who was born on 10 May 1788 that ceased to be queen?
Columns: ['Name', 'Birth', 'Marriage', 'Became Queen', 'Ceased to be Queen', 'Death', 'Spouse']
Types: ['text', 'text', 'text', 'text', 'text', 'text', 'text']
Sample row: ['Charlotte, Princess Royal', '29 September 1766', '18 May 1797', '1 January 1806 elevated from Electress', "30 October 1816 husband's death", '5 October 1828', 'Frederick I']
SQL:

assistant: SELECT "Ceased to be Queen" FROM "Table" WHERE "Birth" = '10 May 1788';