Task: NL2SQL (source dataset: Spider)

Natural language to SQL, also known as NL2SQL, is the problem of generating a SQL query that can be executed on a input table, for a given natural language question.

You will be given an input table called "table" in the markdown format, as well as a question. Your task is to generate an SQL query that can be executed on the input table to answer the question.

Please ensure that the generated SQL only return relevant columns being specifically asked in the question (e.g., in SQL please don't return more than one columns in SELECT if only one column is needed to answer the given question, and similarly please refrain from using SELECT * unless the entire row is needed to answer the question).
 
When generating SQL code, please use the SQLite syntax to ensure that your SQL is executable on SQLite3. Use only columns that are present in the table, always use quotes around your column and table names (some column names have punctuation or special characters), and refer to the columns using the column-names exactly as they appear in the table, do not add or remove punctuation (underscore, slash, etc.)

No explanation, return the code only with the following markdown codeblock format : ```sql<SQL CODE>```. For example, ```sql
SELECT * FROM "table"
``` is a valid format.

Database:
bakery_1

Tables:

Table: customers
|   Id | LastName   | FirstName   |
|-----:|:-----------|:------------|
|    1 | LOGAN      | JULIET      |
|    2 | ARZT       | TERRELL     |
|    3 | ESPOSITA   | TRAVIS      |
|    4 | ENGLEY     | SIXTA       |
|    5 | DUNLOW     | OSVALDO     |
|    6 | SLINGLAND  | JOSETTE     |
|    7 | TOUSSAND   | SHARRON     |
|    8 | HELING     | RUPERT      |
|    9 | HAFFERKAMP | CUC         |
|   10 | DUKELOW    | CORETTA     |


Table: goods
| Id         | Flavor     | Food   |   Price |
|:-----------|:-----------|:-------|--------:|
| 20-BC-C-10 | Chocolate  | Cake   |    8.95 |
| 20-BC-L-10 | Lemon      | Cake   |    8.95 |
| 20-CA-7.5  | Casino     | Cake   |   15.95 |
| 24-8x10    | Opera      | Cake   |   15.95 |
| 25-STR-9   | Strawberry | Cake   |   11.95 |
| 26-8x10    | Truffle    | Cake   |   15.95 |
| 45-CH      | Chocolate  | Eclair |    3.25 |
| 45-CO      | Coffee     | Eclair |    3.5  |
| 45-VA      | Vanilla    | Eclair |    3.25 |
| 46-11      | Napoleon   | Cake   |   13.49 |


Table: items
|   Receipt |   Ordinal | Item       |
|----------:|----------:|:-----------|
|     18129 |         1 | 70-TU      |
|     51991 |         1 | 90-APIE-10 |
|     51991 |         2 | 90-CH-PF   |
|     51991 |         3 | 90-APP-11  |
|     51991 |         4 | 26-8x10    |
|     83085 |         1 | 25-STR-9   |
|     83085 |         2 | 24-8x10    |
|     83085 |         3 | 90-APR-PF  |
|     83085 |         4 | 51-ATW     |
|     83085 |         5 | 26-8x10    |


Table: receipts
|   ReceiptNumber | Date        |   CustomerId |
|----------------:|:------------|-------------:|
|           10013 | 17-Oct-2007 |           15 |
|           11548 | 21-Oct-2007 |           13 |
|           11891 | 30-Oct-2007 |            7 |
|           11923 | 9-Oct-2007  |           15 |
|           12396 | 10-Oct-2007 |           10 |
|           12698 | 23-Oct-2007 |           19 |
|           12800 | 22-Oct-2007 |           11 |
|           13355 | 19-Oct-2007 |            7 |
|           13496 | 30-Oct-2007 |           11 |
|           15286 | 11-Oct-2007 |            6 |


Question: What is the full name of the customer who visited on the earliest date?

db_id: bakery_1
tables: name: customers
data: customers.csv
name: goods
data: goods.csv
name: items
data: items.csv
name: receipts
data: receipts.csv
label: SELECT T1.FirstName ,  T1.LastName FROM customers AS T1 JOIN receipts AS T2 ON T1.id  =  T2.CustomerId ORDER BY T2.date LIMIT 1
sqlite_path: $MMTU_HOME/data_sqlite/spider/spider_data/test_database/bakery_1/bakery_1.sqlite