Task: NL2SQL (source dataset: Archer)

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

Tables:

Table: stadium
|   Stadium_ID | Location        | Name              |   Capacity |   Highest |   Lowest |   Average |
|-------------:|:----------------|:------------------|-----------:|----------:|---------:|----------:|
|            1 | Raith Rovers    | Stark's Park      |      10104 |      4812 |     1294 |      2106 |
|            2 | Ayr United      | Somerset Park     |      11998 |      2363 |     1057 |      1477 |
|            3 | East Fife       | Bayview Stadium   |       2000 |      1980 |      533 |       864 |
|            4 | Queen's Park    | Hampden Park      |      52500 |      1763 |      466 |       730 |
|            5 | Stirling Albion | Forthbank Stadium |       3808 |      1125 |      404 |       642 |
|            6 | Arbroath        | Gayfield Park     |       4125 |       921 |      411 |       638 |
|            7 | Alloa Athletic  | Recreation Park   |       3100 |      1057 |      331 |       637 |
|            9 | Peterhead       | Balmoor           |       4000 |       837 |      400 |       615 |
|           10 | Brechin City    | Glebe Park        |       3960 |       780 |      315 |       552 |


Table: singer
|   Singer_ID | Name         | Country       | Song_Name   |   Song_release_year |   Age | Is_male   |
|------------:|:-------------|:--------------|:------------|--------------------:|------:|:----------|
|           1 | Joe Sharp    | Netherlands   | You         |                1992 |    52 | F         |
|           2 | Timbaland    | United States | Dangerous   |                2008 |    32 | T         |
|           3 | Justin Brown | France        | Hey Oh      |                2013 |    29 | T         |
|           4 | Rose White   | France        | Sun         |                2003 |    41 | F         |
|           5 | John Nizinik | France        | Gentleman   |                2014 |    43 | T         |
|           6 | Tribal King  | France        | Love        |                2016 |    25 | T         |


Table: concert
|   concert_ID | concert_Name   | Theme           |   Stadium_ID |   Year |
|-------------:|:---------------|:----------------|-------------:|-------:|
|            1 | Auditions      | Free choice     |            1 |   2014 |
|            2 | Super bootcamp | Free choice 2   |            2 |   2014 |
|            3 | Home Visits    | Bleeding Love   |            2 |   2015 |
|            4 | Week 1         | Wide Awake      |           10 |   2014 |
|            5 | Week 1         | Happy Tonight   |            9 |   2015 |
|            6 | Week 2         | Party All Night |            7 |   2015 |


Table: singer_in_concert
|   concert_ID |   Singer_ID |
|-------------:|------------:|
|            1 |           2 |
|            1 |           3 |
|            1 |           5 |
|            2 |           3 |
|            2 |           6 |
|            3 |           5 |
|            4 |           4 |
|            5 |           6 |
|            5 |           3 |
|            6 |           2 |


Question: Which stadiums have the lowest and highest average attendance rates respectively, and how many concerts have they each held?

db_id: concert_singer
tables: name: stadium
data: stadium.csv
name: singer
data: singer.csv
name: concert
data: concert.csv
name: singer_in_concert
data: singer_in_concert.csv
label: SELECT * FROM ( SELECT Name AS highest_name FROM stadium GROUP BY Stadium_ID ORDER BY 100.0 * Average / Capacity DESC LIMIT 1 ) JOIN ( SELECT COUNT ( * ) AS concerts_in_highest_stadium FROM stadium A JOIN concert B ON A.Stadium_ID = B.Stadium_ID WHERE A.Stadium_ID = ( SELECT Stadium_ID FROM stadium GROUP BY Stadium_ID ORDER BY 100.0 * Average / Capacity DESC LIMIT 1 ) ) JOIN ( SELECT Name AS lowest_name FROM stadium GROUP BY Stadium_ID ORDER BY 100.0 * Average / Capacity ASC LIMIT 1 ) JOIN ( SELECT COUNT ( * ) AS concerts_in_lowest_stadium FROM stadium A JOIN concert B ON A.Stadium_ID = B.Stadium_ID WHERE A.Stadium_ID = ( SELECT Stadium_ID FROM stadium GROUP BY Stadium_ID ORDER BY 100.0 * Average / Capacity ASC LIMIT 1 ) )
commonsense_knowledge: Attendance rate is calculated by divding attendance amount by the capacity of the stadium.
sqlite_path: $MMTU_HOME/data_sqlite/Archer/databases/concert_singer/concert_singer.sqlite