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:
book_press

Tables:

Table: author
|   Author_ID | Name              |   Age | Gender   |
|------------:|:------------------|------:|:---------|
|           1 | Derrick Kosinski  |    45 | Male     |
|           2 | Evelyn Smith      |    32 | Female   |
|           3 | Johnny Devenanzio |    54 | Male     |
|           4 | Kenny Santucci    |    21 | Male     |
|           5 | Jenn Grijalva     |    19 | Female   |
|           6 | Paula Meronek     |    23 | Female   |
|           7 | Robin Hibbard     |    52 | Female   |


Table: press
|   Press_ID | Name                 |   Month_Profits_billion |   Year_Profits_billion |
|-----------:|:---------------------|------------------------:|-----------------------:|
|          1 | Accor                |                    0.65 |                   6.02 |
|          2 | Air Liquide          |                    4.08 |                  29.49 |
|          3 | Alstom               |                    0.96 |                   9.4  |
|          4 | ArcelorMittal        |                    1.69 |                  15.4  |
|          5 | STMicroelectronics   |                    0.54 |                   5.25 |
|          6 | Technip              |                    1.18 |                   9.24 |
|          7 | Total                |                   11.96 |                  86.94 |
|          8 | Unibail-Rodamco      |                    2.31 |                  16.8  |
|          9 | Vallourec            |                    0.58 |                   4.56 |
|         10 | Veolia Environnement |                    0.44 |                   5.01 |


Table: book
|   Book_ID | Title                    | Book_Series   |   Author_ID |   Press_ID |   Sale_Amount | Release_date   |
|----------:|:-------------------------|:--------------|------------:|-----------:|--------------:|:---------------|
|         1 | Book Revue               | LT            |           1 |          1 |          1234 | 2016-01-05     |
|         2 | Baseball Bugs            | LT            |           2 |          2 |          1214 | 2016-02-02     |
|         3 | Holiday for Shoestrings  | MM            |           3 |          3 |           714 | 2016-02-23     |
|         4 | Quentin Quail            | MM            |           4 |          4 |           615 | 2016-03-02     |
|         5 | Baby Bottleneck          | LT            |           5 |          5 |          1256 | 2016-03-16     |
|         6 | Hare Remover             | MM            |           5 |          4 |          1014 | 2016-03-23     |
|         7 | Daffy Doodles            | MM            |           1 |          9 |          1307 | 2016-04-06     |
|         8 | Hollywood Canine Canteen | MM            |           1 |          2 |          1114 | 2016-04-20     |
|         9 | Hush My Mouse            | LT            |           2 |          3 |          1258 | 2016-05-04     |
|        10 | Hair-Raising Hare        | MM            |           5 |          2 |           115 | 2016-05-25     |


Question: what are the average and maximum profit of a year for all presses?

db_id: book_press
tables: name: author
data: author.csv
name: press
data: press.csv
name: book
data: book.csv
label: SELECT avg(Year_Profits_billion) ,  max(Year_Profits_billion) FROM press
sqlite_path: $MMTU_HOME/data_sqlite/spider/spider_data/test_database/book_press/book_press.sqlite