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

Tables:

Table: university
|   University_ID | University_Name                | City         | State     | Team_Name      | Affiliation                     |   Enrollment | Home_Conference   |
|----------------:|:-------------------------------|:-------------|:----------|:---------------|:--------------------------------|-------------:|:------------------|
|               1 | Augustana College              | Rock Island  | Illinois  | Vikings        | Private_Lutheran                |         2500 | CCIW              |
|               2 | Aurora University              | Aurora       | Illinois  | Spartans       | Private_Non-sectarian           |         4400 | Northern          |
|               3 | Beloit College                 | Beloit       | Wisconsin | Buccaneers     | Private_United Church of Christ |         1000 | Midwest           |
|               4 | Benedictine University         | Lisle        | Illinois  | Eagles         | Private_Catholic                |         1300 | Northern          |
|               5 | Carroll University             | Waukesha     | Wisconsin | Pioneers       | Private_Presbyterian            |         2789 | Midwest           |
|               6 | Carthage College               | Kenosha      | Wisconsin | Red Men        | Private_Lutheran                |         2188 | CCIW              |
|               7 | Concordia University Wisconsin | Mequon       | Wisconsin | Falcons        | Private_Lutheran                |         1608 | Northern          |
|               8 | Cornell College                | Mount Vernon | Iowa      | Rams           | Private_United Methodist        |         1176 | Midwest           |
|               9 | Defiance College               | Defiance     | Ohio      | Yellow Jackets | Private_United Church of Christ |         1000 | HCAC              |
|              10 | Elmhurst College               | Elmhurst     | Illinois  | Bluejays       | Private_United Church of Christ |         3400 | CCIW              |


Table: overall_ranking
|   Rank |   University_ID |   Reputation_point |   Research_point |   Citation_point |   Total |
|-------:|----------------:|-------------------:|-----------------:|-----------------:|--------:|
|      1 |               1 |                  5 |                2 |                0 |       7 |
|      1 |               2 |                  5 |                1 |                1 |       7 |
|      3 |               3 |                  4 |                0 |                0 |       4 |
|      4 |               4 |                  1 |                3 |                2 |       6 |
|      5 |               5 |                  1 |                2 |                0 |       3 |
|      6 |               6 |                  1 |                0 |                2 |       3 |
|      7 |               7 |                  1 |                0 |                1 |       2 |
|      7 |               8 |                  1 |                0 |                1 |       2 |
|      9 |               9 |                  1 |                0 |                0 |       1 |
|      9 |              10 |                  1 |                0 |                0 |       1 |


Table: major
|   Major_ID | Major_Name            |   Major_Code |
|-----------:|:----------------------|-------------:|
|          1 | Accounting            |         1054 |
|          2 | Advertising           |         1053 |
|          3 | Healthcare Management |         1154 |
|          4 | Journalism            |         1059 |
|          5 | Urban Education       |         1041 |


Table: major_ranking
|   Rank |   University_ID |   Major_ID |
|-------:|----------------:|-----------:|
|      1 |               1 |          1 |
|      2 |               1 |          5 |
|      1 |               2 |          3 |
|      2 |               1 |          3 |
|      1 |               3 |          1 |
|      4 |               4 |          1 |
|      3 |               2 |          4 |
|      2 |               1 |          4 |


Question: What is the name, city, and state of the university with number 1 ranked Accounting major?

db_id: university_rank
tables: name: university
data: university.csv
name: overall_ranking
data: overall_ranking.csv
name: major
data: major.csv
name: major_ranking
data: major_ranking.csv
label: SELECT T2.university_name ,  T2.city ,  T2.state FROM Major_Ranking AS T1 JOIN University AS T2 JOIN Major AS T3 ON T1.university_id  =  T2.university_id AND T1.major_id  =  T3.major_id WHERE T1.rank  =  1 AND T3.major_name  =  'Accounting'
sqlite_path: $MMTU_HOME/data_sqlite/spider/spider_data/test_database/university_rank/university_rank.sqlite