input stringlengths 667 7.62k | output stringlengths 41 600 | db_id stringlengths 3 31 | query stringlengths 18 577 | question stringlengths 3 224 | schema stringlengths 177 6.14k | primary_keys stringlengths 16 545 | foreign_keys stringlengths 16 1.48k |
|---|---|---|---|---|---|---|---|
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | music_4 | artist : artist_id (text) , artist (number) , age (text) , famous_title (number) , famous_release_date (text) | volume : volume_id (text) , volume_issue (number) , issue_date (text) , weeks_on_top (number) , song (text) , artist_id (text) | music_festival : id (text) , music_festival (number) , date_of_ceremony (text) , category (number) , volume (text) , result (text);</schema>"
<primary_keys>[Primary Keys]: artist : artist_id, volume : volume_id, music_festival : id</primary_keys>"
<foreign_keys>[Foreign Keys]: volume : artist_id = artist : artist_id | music_festival : volume = volume : volume_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>How many music festivals have had each kind of result, ordered descending by count?</question>
[SQL]:
| <SQL_QUERY>SELECT RESULT , COUNT(*) FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC</SQL_QUERY> | music_4 | SELECT RESULT , COUNT(*) FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC | How many music festivals have had each kind of result, ordered descending by count? | [Schema (values) (types)]: | music_4 | artist : artist_id (text) , artist (number) , age (text) , famous_title (number) , famous_release_date (text) | volume : volume_id (text) , volume_issue (number) , issue_date (text) , weeks_on_top (number) , song (text) , artist_id (text) | music_festival : id (text) , music_festival (number) , date_of_ceremony (text) , category (number) , volume (text) , result (text); | [Primary Keys]: artist : artist_id, volume : volume_id, music_festival : id | [Foreign Keys]: volume : artist_id = artist : artist_id | music_festival : volume = volume : volume_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | music_4 | artist : artist_id (text) , artist (number) , age (text) , famous_title (number) , famous_release_date (text) | volume : volume_id (text) , volume_issue (number) , issue_date (text) , weeks_on_top (number) , song (text) , artist_id (text) | music_festival : id (text) , music_festival (number) , date_of_ceremony (text) , category (number) , volume (text) , result (text);</schema>"
<primary_keys>[Primary Keys]: artist : artist_id, volume : volume_id, music_festival : id</primary_keys>"
<foreign_keys>[Foreign Keys]: volume : artist_id = artist : artist_id | music_festival : volume = volume : volume_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What are the issue dates of volumes associated with the artist aged 23 or younger?</question>
[SQL]:
| <SQL_QUERY>SELECT Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age <= 23</SQL_QUERY> | music_4 | SELECT Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age <= 23 | What are the issue dates of volumes associated with the artist aged 23 or younger? | [Schema (values) (types)]: | music_4 | artist : artist_id (text) , artist (number) , age (text) , famous_title (number) , famous_release_date (text) | volume : volume_id (text) , volume_issue (number) , issue_date (text) , weeks_on_top (number) , song (text) , artist_id (text) | music_festival : id (text) , music_festival (number) , date_of_ceremony (text) , category (number) , volume (text) , result (text); | [Primary Keys]: artist : artist_id, volume : volume_id, music_festival : id | [Foreign Keys]: volume : artist_id = artist : artist_id | music_festival : volume = volume : volume_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | music_4 | artist : artist_id (text) , artist (number) , age (text) , famous_title (number) , famous_release_date (text) | volume : volume_id (text) , volume_issue (number) , issue_date (text) , weeks_on_top (number) , song (text) , artist_id (text) | music_festival : id (text) , music_festival (number) , date_of_ceremony (text) , category (number) , volume (text) , result (text);</schema>"
<primary_keys>[Primary Keys]: artist : artist_id, volume : volume_id, music_festival : id</primary_keys>"
<foreign_keys>[Foreign Keys]: volume : artist_id = artist : artist_id | music_festival : volume = volume : volume_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Return the issue dates of volumes by artists who are at most 23 years old?</question>
[SQL]:
| <SQL_QUERY>SELECT Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age <= 23</SQL_QUERY> | music_4 | SELECT Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age <= 23 | Return the issue dates of volumes by artists who are at most 23 years old? | [Schema (values) (types)]: | music_4 | artist : artist_id (text) , artist (number) , age (text) , famous_title (number) , famous_release_date (text) | volume : volume_id (text) , volume_issue (number) , issue_date (text) , weeks_on_top (number) , song (text) , artist_id (text) | music_festival : id (text) , music_festival (number) , date_of_ceremony (text) , category (number) , volume (text) , result (text); | [Primary Keys]: artist : artist_id, volume : volume_id, music_festival : id | [Foreign Keys]: volume : artist_id = artist : artist_id | music_festival : volume = volume : volume_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | roller_coaster | roller_coaster : roller_coaster_id (text) , name (number) , park (text) , country_id (text) , length (number) , height (number) , speed (number) , opened (text) , status (text) | country : country_id (text) , name (number) , population (text) , area (text) , languages (number);</schema>"
<primary_keys>[Primary Keys]: roller_coaster : roller_coaster_id, country : country_id</primary_keys>"
<foreign_keys>[Foreign Keys]: roller_coaster : country_id = country : country_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>How many roller coasters are there?</question>
[SQL]:
| <SQL_QUERY>SELECT count(*) FROM roller_coaster</SQL_QUERY> | roller_coaster | SELECT count(*) FROM roller_coaster | How many roller coasters are there? | [Schema (values) (types)]: | roller_coaster | roller_coaster : roller_coaster_id (text) , name (number) , park (text) , country_id (text) , length (number) , height (number) , speed (number) , opened (text) , status (text) | country : country_id (text) , name (number) , population (text) , area (text) , languages (number); | [Primary Keys]: roller_coaster : roller_coaster_id, country : country_id | [Foreign Keys]: roller_coaster : country_id = country : country_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | roller_coaster | roller_coaster : roller_coaster_id (text) , name (number) , park (text) , country_id (text) , length (number) , height (number) , speed (number) , opened (text) , status (text) | country : country_id (text) , name (number) , population (text) , area (text) , languages (number);</schema>"
<primary_keys>[Primary Keys]: roller_coaster : roller_coaster_id, country : country_id</primary_keys>"
<foreign_keys>[Foreign Keys]: roller_coaster : country_id = country : country_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>List the names of roller coasters by ascending order of length.</question>
[SQL]:
| <SQL_QUERY>SELECT Name FROM roller_coaster ORDER BY LENGTH ASC</SQL_QUERY> | roller_coaster | SELECT Name FROM roller_coaster ORDER BY LENGTH ASC | List the names of roller coasters by ascending order of length. | [Schema (values) (types)]: | roller_coaster | roller_coaster : roller_coaster_id (text) , name (number) , park (text) , country_id (text) , length (number) , height (number) , speed (number) , opened (text) , status (text) | country : country_id (text) , name (number) , population (text) , area (text) , languages (number); | [Primary Keys]: roller_coaster : roller_coaster_id, country : country_id | [Foreign Keys]: roller_coaster : country_id = country : country_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | roller_coaster | roller_coaster : roller_coaster_id (text) , name (number) , park (text) , country_id (text) , length (number) , height (number) , speed (number) , opened (text) , status (text) | country : country_id (text) , name (number) , population (text) , area (text) , languages (number);</schema>"
<primary_keys>[Primary Keys]: roller_coaster : roller_coaster_id, country : country_id</primary_keys>"
<foreign_keys>[Foreign Keys]: roller_coaster : country_id = country : country_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What are the lengths and heights of roller coasters?</question>
[SQL]:
| <SQL_QUERY>SELECT LENGTH , Height FROM roller_coaster</SQL_QUERY> | roller_coaster | SELECT LENGTH , Height FROM roller_coaster | What are the lengths and heights of roller coasters? | [Schema (values) (types)]: | roller_coaster | roller_coaster : roller_coaster_id (text) , name (number) , park (text) , country_id (text) , length (number) , height (number) , speed (number) , opened (text) , status (text) | country : country_id (text) , name (number) , population (text) , area (text) , languages (number); | [Primary Keys]: roller_coaster : roller_coaster_id, country : country_id | [Foreign Keys]: roller_coaster : country_id = country : country_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | roller_coaster | roller_coaster : roller_coaster_id (text) , name (number) , park (text) , country_id (text) , length (number) , height (number) , speed (number) , opened (text) , status (text) | country : country_id (text) , name (number) , population (text) , area (text) , languages (number);</schema>"
<primary_keys>[Primary Keys]: roller_coaster : roller_coaster_id, country : country_id</primary_keys>"
<foreign_keys>[Foreign Keys]: roller_coaster : country_id = country : country_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>List the names of countries whose language is not "German".</question>
[SQL]:
| <SQL_QUERY>SELECT Name FROM country WHERE Languages != "German"</SQL_QUERY> | roller_coaster | SELECT Name FROM country WHERE Languages != "German" | List the names of countries whose language is not "German". | [Schema (values) (types)]: | roller_coaster | roller_coaster : roller_coaster_id (text) , name (number) , park (text) , country_id (text) , length (number) , height (number) , speed (number) , opened (text) , status (text) | country : country_id (text) , name (number) , population (text) , area (text) , languages (number); | [Primary Keys]: roller_coaster : roller_coaster_id, country : country_id | [Foreign Keys]: roller_coaster : country_id = country : country_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | roller_coaster | roller_coaster : roller_coaster_id (text) , name (number) , park (text) , country_id (text) , length (number) , height (number) , speed (number) , opened (text) , status (text) | country : country_id (text) , name (number) , population (text) , area (text) , languages (number);</schema>"
<primary_keys>[Primary Keys]: roller_coaster : roller_coaster_id, country : country_id</primary_keys>"
<foreign_keys>[Foreign Keys]: roller_coaster : country_id = country : country_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Show the statuses of roller coasters longer than 3300 or higher than 100.</question>
[SQL]:
| <SQL_QUERY>SELECT Status FROM roller_coaster WHERE LENGTH > 3300 OR Height > 100</SQL_QUERY> | roller_coaster | SELECT Status FROM roller_coaster WHERE LENGTH > 3300 OR Height > 100 | Show the statuses of roller coasters longer than 3300 or higher than 100. | [Schema (values) (types)]: | roller_coaster | roller_coaster : roller_coaster_id (text) , name (number) , park (text) , country_id (text) , length (number) , height (number) , speed (number) , opened (text) , status (text) | country : country_id (text) , name (number) , population (text) , area (text) , languages (number); | [Primary Keys]: roller_coaster : roller_coaster_id, country : country_id | [Foreign Keys]: roller_coaster : country_id = country : country_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | roller_coaster | roller_coaster : roller_coaster_id (text) , name (number) , park (text) , country_id (text) , length (number) , height (number) , speed (number) , opened (text) , status (text) | country : country_id (text) , name (number) , population (text) , area (text) , languages (number);</schema>"
<primary_keys>[Primary Keys]: roller_coaster : roller_coaster_id, country : country_id</primary_keys>"
<foreign_keys>[Foreign Keys]: roller_coaster : country_id = country : country_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What are the speeds of the longest roller coaster?</question>
[SQL]:
| <SQL_QUERY>SELECT Speed FROM roller_coaster ORDER BY LENGTH DESC LIMIT 1</SQL_QUERY> | roller_coaster | SELECT Speed FROM roller_coaster ORDER BY LENGTH DESC LIMIT 1 | What are the speeds of the longest roller coaster? | [Schema (values) (types)]: | roller_coaster | roller_coaster : roller_coaster_id (text) , name (number) , park (text) , country_id (text) , length (number) , height (number) , speed (number) , opened (text) , status (text) | country : country_id (text) , name (number) , population (text) , area (text) , languages (number); | [Primary Keys]: roller_coaster : roller_coaster_id, country : country_id | [Foreign Keys]: roller_coaster : country_id = country : country_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | roller_coaster | roller_coaster : roller_coaster_id (text) , name (number) , park (text) , country_id (text) , length (number) , height (number) , speed (number) , opened (text) , status (text) | country : country_id (text) , name (number) , population (text) , area (text) , languages (number);</schema>"
<primary_keys>[Primary Keys]: roller_coaster : roller_coaster_id, country : country_id</primary_keys>"
<foreign_keys>[Foreign Keys]: roller_coaster : country_id = country : country_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What is the average speed of roller coasters?</question>
[SQL]:
| <SQL_QUERY>SELECT avg(Speed) FROM roller_coaster</SQL_QUERY> | roller_coaster | SELECT avg(Speed) FROM roller_coaster | What is the average speed of roller coasters? | [Schema (values) (types)]: | roller_coaster | roller_coaster : roller_coaster_id (text) , name (number) , park (text) , country_id (text) , length (number) , height (number) , speed (number) , opened (text) , status (text) | country : country_id (text) , name (number) , population (text) , area (text) , languages (number); | [Primary Keys]: roller_coaster : roller_coaster_id, country : country_id | [Foreign Keys]: roller_coaster : country_id = country : country_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | roller_coaster | roller_coaster : roller_coaster_id (text) , name (number) , park (text) , country_id (text) , length (number) , height (number) , speed (number) , opened (text) , status (text) | country : country_id (text) , name (number) , population (text) , area (text) , languages (number);</schema>"
<primary_keys>[Primary Keys]: roller_coaster : roller_coaster_id, country : country_id</primary_keys>"
<foreign_keys>[Foreign Keys]: roller_coaster : country_id = country : country_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Show the different statuses and the numbers of roller coasters for each status.</question>
[SQL]:
| <SQL_QUERY>SELECT Status , COUNT(*) FROM roller_coaster GROUP BY Status</SQL_QUERY> | roller_coaster | SELECT Status , COUNT(*) FROM roller_coaster GROUP BY Status | Show the different statuses and the numbers of roller coasters for each status. | [Schema (values) (types)]: | roller_coaster | roller_coaster : roller_coaster_id (text) , name (number) , park (text) , country_id (text) , length (number) , height (number) , speed (number) , opened (text) , status (text) | country : country_id (text) , name (number) , population (text) , area (text) , languages (number); | [Primary Keys]: roller_coaster : roller_coaster_id, country : country_id | [Foreign Keys]: roller_coaster : country_id = country : country_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | roller_coaster | roller_coaster : roller_coaster_id (text) , name (number) , park (text) , country_id (text) , length (number) , height (number) , speed (number) , opened (text) , status (text) | country : country_id (text) , name (number) , population (text) , area (text) , languages (number);</schema>"
<primary_keys>[Primary Keys]: roller_coaster : roller_coaster_id, country : country_id</primary_keys>"
<foreign_keys>[Foreign Keys]: roller_coaster : country_id = country : country_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Please show the most common status of roller coasters.</question>
[SQL]:
| <SQL_QUERY>SELECT Status FROM roller_coaster GROUP BY Status ORDER BY COUNT(*) DESC LIMIT 1</SQL_QUERY> | roller_coaster | SELECT Status FROM roller_coaster GROUP BY Status ORDER BY COUNT(*) DESC LIMIT 1 | Please show the most common status of roller coasters. | [Schema (values) (types)]: | roller_coaster | roller_coaster : roller_coaster_id (text) , name (number) , park (text) , country_id (text) , length (number) , height (number) , speed (number) , opened (text) , status (text) | country : country_id (text) , name (number) , population (text) , area (text) , languages (number); | [Primary Keys]: roller_coaster : roller_coaster_id, country : country_id | [Foreign Keys]: roller_coaster : country_id = country : country_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | roller_coaster | roller_coaster : roller_coaster_id (text) , name (number) , park (text) , country_id (text) , length (number) , height (number) , speed (number) , opened (text) , status (text) | country : country_id (text) , name (number) , population (text) , area (text) , languages (number);</schema>"
<primary_keys>[Primary Keys]: roller_coaster : roller_coaster_id, country : country_id</primary_keys>"
<foreign_keys>[Foreign Keys]: roller_coaster : country_id = country : country_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>List the status shared by more than two roller coaster.</question>
[SQL]:
| <SQL_QUERY>SELECT Status FROM roller_coaster GROUP BY Status HAVING COUNT(*) > 2</SQL_QUERY> | roller_coaster | SELECT Status FROM roller_coaster GROUP BY Status HAVING COUNT(*) > 2 | List the status shared by more than two roller coaster. | [Schema (values) (types)]: | roller_coaster | roller_coaster : roller_coaster_id (text) , name (number) , park (text) , country_id (text) , length (number) , height (number) , speed (number) , opened (text) , status (text) | country : country_id (text) , name (number) , population (text) , area (text) , languages (number); | [Primary Keys]: roller_coaster : roller_coaster_id, country : country_id | [Foreign Keys]: roller_coaster : country_id = country : country_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | roller_coaster | roller_coaster : roller_coaster_id (text) , name (number) , park (text) , country_id (text) , length (number) , height (number) , speed (number) , opened (text) , status (text) | country : country_id (text) , name (number) , population (text) , area (text) , languages (number);</schema>"
<primary_keys>[Primary Keys]: roller_coaster : roller_coaster_id, country : country_id</primary_keys>"
<foreign_keys>[Foreign Keys]: roller_coaster : country_id = country : country_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Show the park of the roller coaster with the highest speed.</question>
[SQL]:
| <SQL_QUERY>SELECT Park FROM roller_coaster ORDER BY Speed DESC LIMIT 1</SQL_QUERY> | roller_coaster | SELECT Park FROM roller_coaster ORDER BY Speed DESC LIMIT 1 | Show the park of the roller coaster with the highest speed. | [Schema (values) (types)]: | roller_coaster | roller_coaster : roller_coaster_id (text) , name (number) , park (text) , country_id (text) , length (number) , height (number) , speed (number) , opened (text) , status (text) | country : country_id (text) , name (number) , population (text) , area (text) , languages (number); | [Primary Keys]: roller_coaster : roller_coaster_id, country : country_id | [Foreign Keys]: roller_coaster : country_id = country : country_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | roller_coaster | roller_coaster : roller_coaster_id (text) , name (number) , park (text) , country_id (text) , length (number) , height (number) , speed (number) , opened (text) , status (text) | country : country_id (text) , name (number) , population (text) , area (text) , languages (number);</schema>"
<primary_keys>[Primary Keys]: roller_coaster : roller_coaster_id, country : country_id</primary_keys>"
<foreign_keys>[Foreign Keys]: roller_coaster : country_id = country : country_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Show the names of roller coasters and names of country they are in.</question>
[SQL]:
| <SQL_QUERY>SELECT T2.Name , T1.Name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID</SQL_QUERY> | roller_coaster | SELECT T2.Name , T1.Name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID | Show the names of roller coasters and names of country they are in. | [Schema (values) (types)]: | roller_coaster | roller_coaster : roller_coaster_id (text) , name (number) , park (text) , country_id (text) , length (number) , height (number) , speed (number) , opened (text) , status (text) | country : country_id (text) , name (number) , population (text) , area (text) , languages (number); | [Primary Keys]: roller_coaster : roller_coaster_id, country : country_id | [Foreign Keys]: roller_coaster : country_id = country : country_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | roller_coaster | roller_coaster : roller_coaster_id (text) , name (number) , park (text) , country_id (text) , length (number) , height (number) , speed (number) , opened (text) , status (text) | country : country_id (text) , name (number) , population (text) , area (text) , languages (number);</schema>"
<primary_keys>[Primary Keys]: roller_coaster : roller_coaster_id, country : country_id</primary_keys>"
<foreign_keys>[Foreign Keys]: roller_coaster : country_id = country : country_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Show the names of countries that have more than one roller coaster.</question>
[SQL]:
| <SQL_QUERY>SELECT T1.Name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID GROUP BY T1.Name HAVING COUNT(*) > 1</SQL_QUERY> | roller_coaster | SELECT T1.Name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID GROUP BY T1.Name HAVING COUNT(*) > 1 | Show the names of countries that have more than one roller coaster. | [Schema (values) (types)]: | roller_coaster | roller_coaster : roller_coaster_id (text) , name (number) , park (text) , country_id (text) , length (number) , height (number) , speed (number) , opened (text) , status (text) | country : country_id (text) , name (number) , population (text) , area (text) , languages (number); | [Primary Keys]: roller_coaster : roller_coaster_id, country : country_id | [Foreign Keys]: roller_coaster : country_id = country : country_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | roller_coaster | roller_coaster : roller_coaster_id (text) , name (number) , park (text) , country_id (text) , length (number) , height (number) , speed (number) , opened (text) , status (text) | country : country_id (text) , name (number) , population (text) , area (text) , languages (number);</schema>"
<primary_keys>[Primary Keys]: roller_coaster : roller_coaster_id, country : country_id</primary_keys>"
<foreign_keys>[Foreign Keys]: roller_coaster : country_id = country : country_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Show the name and population of the country that has the highest roller coaster.</question>
[SQL]:
| <SQL_QUERY>SELECT T1.Name , T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID ORDER BY T2.Height DESC LIMIT 1</SQL_QUERY> | roller_coaster | SELECT T1.Name , T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID ORDER BY T2.Height DESC LIMIT 1 | Show the name and population of the country that has the highest roller coaster. | [Schema (values) (types)]: | roller_coaster | roller_coaster : roller_coaster_id (text) , name (number) , park (text) , country_id (text) , length (number) , height (number) , speed (number) , opened (text) , status (text) | country : country_id (text) , name (number) , population (text) , area (text) , languages (number); | [Primary Keys]: roller_coaster : roller_coaster_id, country : country_id | [Foreign Keys]: roller_coaster : country_id = country : country_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | roller_coaster | roller_coaster : roller_coaster_id (text) , name (number) , park (text) , country_id (text) , length (number) , height (number) , speed (number) , opened (text) , status (text) | country : country_id (text) , name (number) , population (text) , area (text) , languages (number);</schema>"
<primary_keys>[Primary Keys]: roller_coaster : roller_coaster_id, country : country_id</primary_keys>"
<foreign_keys>[Foreign Keys]: roller_coaster : country_id = country : country_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Show the names of countries and the average speed of roller coasters from each country.</question>
[SQL]:
| <SQL_QUERY>SELECT T1.Name , avg(T2.Speed) FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID GROUP BY T1.Name</SQL_QUERY> | roller_coaster | SELECT T1.Name , avg(T2.Speed) FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID GROUP BY T1.Name | Show the names of countries and the average speed of roller coasters from each country. | [Schema (values) (types)]: | roller_coaster | roller_coaster : roller_coaster_id (text) , name (number) , park (text) , country_id (text) , length (number) , height (number) , speed (number) , opened (text) , status (text) | country : country_id (text) , name (number) , population (text) , area (text) , languages (number); | [Primary Keys]: roller_coaster : roller_coaster_id, country : country_id | [Foreign Keys]: roller_coaster : country_id = country : country_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | roller_coaster | roller_coaster : roller_coaster_id (text) , name (number) , park (text) , country_id (text) , length (number) , height (number) , speed (number) , opened (text) , status (text) | country : country_id (text) , name (number) , population (text) , area (text) , languages (number);</schema>"
<primary_keys>[Primary Keys]: roller_coaster : roller_coaster_id, country : country_id</primary_keys>"
<foreign_keys>[Foreign Keys]: roller_coaster : country_id = country : country_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>How many countries do not have an roller coaster longer than 3000?</question>
[SQL]:
| <SQL_QUERY>SELECT count(*) FROM country WHERE country_id NOT IN ( SELECT country_id FROM roller_coaster WHERE LENGTH > 3000 )</SQL_QUERY> | roller_coaster | SELECT count(*) FROM country WHERE country_id NOT IN ( SELECT country_id FROM roller_coaster WHERE LENGTH > 3000 ) | How many countries do not have an roller coaster longer than 3000? | [Schema (values) (types)]: | roller_coaster | roller_coaster : roller_coaster_id (text) , name (number) , park (text) , country_id (text) , length (number) , height (number) , speed (number) , opened (text) , status (text) | country : country_id (text) , name (number) , population (text) , area (text) , languages (number); | [Primary Keys]: roller_coaster : roller_coaster_id, country : country_id | [Foreign Keys]: roller_coaster : country_id = country : country_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | roller_coaster | roller_coaster : roller_coaster_id (text) , name (number) , park (text) , country_id (text) , length (number) , height (number) , speed (number) , opened (text) , status (text) | country : country_id (text) , name (number) , population (text) , area (text) , languages (number);</schema>"
<primary_keys>[Primary Keys]: roller_coaster : roller_coaster_id, country : country_id</primary_keys>"
<foreign_keys>[Foreign Keys]: roller_coaster : country_id = country : country_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What are the country names, area and population which has both roller coasters with speed higher</question>
[SQL]:
| <SQL_QUERY>SELECT T1.name , T1.area , T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID WHERE T2.speed > 60 INTERSECT SELECT T1.name , T1.area , T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID WHERE T2.speed < 55</SQL_QUERY> | roller_coaster | SELECT T1.name , T1.area , T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID WHERE T2.speed > 60 INTERSECT SELECT T1.name , T1.area , T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID WHERE T2.speed < 55 | What are the country names, area and population which has both roller coasters with speed higher | [Schema (values) (types)]: | roller_coaster | roller_coaster : roller_coaster_id (text) , name (number) , park (text) , country_id (text) , length (number) , height (number) , speed (number) , opened (text) , status (text) | country : country_id (text) , name (number) , population (text) , area (text) , languages (number); | [Primary Keys]: roller_coaster : roller_coaster_id, country : country_id | [Foreign Keys]: roller_coaster : country_id = country : country_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>How many different captain ranks are there?</question>
[SQL]:
| <SQL_QUERY>SELECT count(DISTINCT rank) FROM captain</SQL_QUERY> | ship_1 | SELECT count(DISTINCT rank) FROM captain | How many different captain ranks are there? | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Count the number of different ranks of captain.</question>
[SQL]:
| <SQL_QUERY>SELECT count(DISTINCT rank) FROM captain</SQL_QUERY> | ship_1 | SELECT count(DISTINCT rank) FROM captain | Count the number of different ranks of captain. | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>How many captains are in each rank?</question>
[SQL]:
| <SQL_QUERY>SELECT count(*) , rank FROM captain GROUP BY rank</SQL_QUERY> | ship_1 | SELECT count(*) , rank FROM captain GROUP BY rank | How many captains are in each rank? | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Count the number of captains that have each rank.</question>
[SQL]:
| <SQL_QUERY>SELECT count(*) , rank FROM captain GROUP BY rank</SQL_QUERY> | ship_1 | SELECT count(*) , rank FROM captain GROUP BY rank | Count the number of captains that have each rank. | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>How many captains with younger than 50 are in each rank?</question>
[SQL]:
| <SQL_QUERY>SELECT count(*) , rank FROM captain WHERE age < 50 GROUP BY rank</SQL_QUERY> | ship_1 | SELECT count(*) , rank FROM captain WHERE age < 50 GROUP BY rank | How many captains with younger than 50 are in each rank? | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Count the number of captains younger than 50 of each rank.</question>
[SQL]:
| <SQL_QUERY>SELECT count(*) , rank FROM captain WHERE age < 50 GROUP BY rank</SQL_QUERY> | ship_1 | SELECT count(*) , rank FROM captain WHERE age < 50 GROUP BY rank | Count the number of captains younger than 50 of each rank. | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Sort all captain names by their ages from old to young.</question>
[SQL]:
| <SQL_QUERY>SELECT name FROM captain ORDER BY age DESC</SQL_QUERY> | ship_1 | SELECT name FROM captain ORDER BY age DESC | Sort all captain names by their ages from old to young. | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What are the names of captains, sorted by age descending?</question>
[SQL]:
| <SQL_QUERY>SELECT name FROM captain ORDER BY age DESC</SQL_QUERY> | ship_1 | SELECT name FROM captain ORDER BY age DESC | What are the names of captains, sorted by age descending? | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Find the name, class and rank of all captains.</question>
[SQL]:
| <SQL_QUERY>SELECT name , CLASS , rank FROM captain</SQL_QUERY> | ship_1 | SELECT name , CLASS , rank FROM captain | Find the name, class and rank of all captains. | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What are the names, classes, and ranks of all captains?</question>
[SQL]:
| <SQL_QUERY>SELECT name , CLASS , rank FROM captain</SQL_QUERY> | ship_1 | SELECT name , CLASS , rank FROM captain | What are the names, classes, and ranks of all captains? | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Which rank is the most common among captains?</question>
[SQL]:
| <SQL_QUERY>SELECT rank FROM captain GROUP BY rank ORDER BY count(*) DESC LIMIT 1</SQL_QUERY> | ship_1 | SELECT rank FROM captain GROUP BY rank ORDER BY count(*) DESC LIMIT 1 | Which rank is the most common among captains? | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Return the rank for which there are the fewest captains.</question>
[SQL]:
| <SQL_QUERY>SELECT rank FROM captain GROUP BY rank ORDER BY count(*) DESC LIMIT 1</SQL_QUERY> | ship_1 | SELECT rank FROM captain GROUP BY rank ORDER BY count(*) DESC LIMIT 1 | Return the rank for which there are the fewest captains. | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Which classes have more than two captains?</question>
[SQL]:
| <SQL_QUERY>SELECT CLASS FROM captain GROUP BY CLASS HAVING count(*) > 2</SQL_QUERY> | ship_1 | SELECT CLASS FROM captain GROUP BY CLASS HAVING count(*) > 2 | Which classes have more than two captains? | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Give the classes that have more than two captains.</question>
[SQL]:
| <SQL_QUERY>SELECT CLASS FROM captain GROUP BY CLASS HAVING count(*) > 2</SQL_QUERY> | ship_1 | SELECT CLASS FROM captain GROUP BY CLASS HAVING count(*) > 2 | Give the classes that have more than two captains. | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Find the name of captains whose rank are either Midshipman or Lieutenant.</question>
[SQL]:
| <SQL_QUERY>SELECT name FROM captain WHERE rank = 'Midshipman' OR rank = 'Lieutenant'</SQL_QUERY> | ship_1 | SELECT name FROM captain WHERE rank = 'Midshipman' OR rank = 'Lieutenant' | Find the name of captains whose rank are either Midshipman or Lieutenant. | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What are the names of captains that have either the rank Midshipman or Lieutenant?</question>
[SQL]:
| <SQL_QUERY>SELECT name FROM captain WHERE rank = 'Midshipman' OR rank = 'Lieutenant'</SQL_QUERY> | ship_1 | SELECT name FROM captain WHERE rank = 'Midshipman' OR rank = 'Lieutenant' | What are the names of captains that have either the rank Midshipman or Lieutenant? | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What are the average and minimum age of captains in different class?</question>
[SQL]:
| <SQL_QUERY>SELECT avg(age) , min(age) , CLASS FROM captain GROUP BY CLASS</SQL_QUERY> | ship_1 | SELECT avg(age) , min(age) , CLASS FROM captain GROUP BY CLASS | What are the average and minimum age of captains in different class? | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Return the average and minimum age of captains in each class.</question>
[SQL]:
| <SQL_QUERY>SELECT avg(age) , min(age) , CLASS FROM captain GROUP BY CLASS</SQL_QUERY> | ship_1 | SELECT avg(age) , min(age) , CLASS FROM captain GROUP BY CLASS | Return the average and minimum age of captains in each class. | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Find the captain rank that has some captains in both Cutter and Armed schooner classes.</question>
[SQL]:
| <SQL_QUERY>SELECT rank FROM captain WHERE CLASS = 'Cutter' INTERSECT SELECT rank FROM captain WHERE CLASS = 'Armed schooner'</SQL_QUERY> | ship_1 | SELECT rank FROM captain WHERE CLASS = 'Cutter' INTERSECT SELECT rank FROM captain WHERE CLASS = 'Armed schooner' | Find the captain rank that has some captains in both Cutter and Armed schooner classes. | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What are the ranks of captains that are both in the Cutter and Armed schooner classes?</question>
[SQL]:
| <SQL_QUERY>SELECT rank FROM captain WHERE CLASS = 'Cutter' INTERSECT SELECT rank FROM captain WHERE CLASS = 'Armed schooner'</SQL_QUERY> | ship_1 | SELECT rank FROM captain WHERE CLASS = 'Cutter' INTERSECT SELECT rank FROM captain WHERE CLASS = 'Armed schooner' | What are the ranks of captains that are both in the Cutter and Armed schooner classes? | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Find the captain rank that has no captain in Third-rate ship of the line class.</question>
[SQL]:
| <SQL_QUERY>SELECT rank FROM captain EXCEPT SELECT rank FROM captain WHERE CLASS = 'Third-rate ship of the line'</SQL_QUERY> | ship_1 | SELECT rank FROM captain EXCEPT SELECT rank FROM captain WHERE CLASS = 'Third-rate ship of the line' | Find the captain rank that has no captain in Third-rate ship of the line class. | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What are the ranks of captains that have no captain that are in the Third-rate ship of the line class?</question>
[SQL]:
| <SQL_QUERY>SELECT rank FROM captain EXCEPT SELECT rank FROM captain WHERE CLASS = 'Third-rate ship of the line'</SQL_QUERY> | ship_1 | SELECT rank FROM captain EXCEPT SELECT rank FROM captain WHERE CLASS = 'Third-rate ship of the line' | What are the ranks of captains that have no captain that are in the Third-rate ship of the line class? | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What is the name of the youngest captain?</question>
[SQL]:
| <SQL_QUERY>SELECT name FROM captain ORDER BY age LIMIT 1</SQL_QUERY> | ship_1 | SELECT name FROM captain ORDER BY age LIMIT 1 | What is the name of the youngest captain? | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Return the name of the youngest captain.</question>
[SQL]:
| <SQL_QUERY>SELECT name FROM captain ORDER BY age LIMIT 1</SQL_QUERY> | ship_1 | SELECT name FROM captain ORDER BY age LIMIT 1 | Return the name of the youngest captain. | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>how many ships are there?</question>
[SQL]:
| <SQL_QUERY>SELECT count(*) FROM ship</SQL_QUERY> | ship_1 | SELECT count(*) FROM ship | how many ships are there? | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Count the number of ships.</question>
[SQL]:
| <SQL_QUERY>SELECT count(*) FROM ship</SQL_QUERY> | ship_1 | SELECT count(*) FROM ship | Count the number of ships. | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Find the name, type, and flag of the ship that is built in the most recent year.</question>
[SQL]:
| <SQL_QUERY>SELECT name , TYPE , flag FROM ship ORDER BY built_year DESC LIMIT 1</SQL_QUERY> | ship_1 | SELECT name , TYPE , flag FROM ship ORDER BY built_year DESC LIMIT 1 | Find the name, type, and flag of the ship that is built in the most recent year. | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What is the name, type, and flag of the ship that was built in the most recent year?</question>
[SQL]:
| <SQL_QUERY>SELECT name , TYPE , flag FROM ship ORDER BY built_year DESC LIMIT 1</SQL_QUERY> | ship_1 | SELECT name , TYPE , flag FROM ship ORDER BY built_year DESC LIMIT 1 | What is the name, type, and flag of the ship that was built in the most recent year? | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Group by ships by flag, and return number of ships that have each flag.</question>
[SQL]:
| <SQL_QUERY>SELECT count(*) , flag FROM ship GROUP BY flag</SQL_QUERY> | ship_1 | SELECT count(*) , flag FROM ship GROUP BY flag | Group by ships by flag, and return number of ships that have each flag. | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What are the different ship flags, and how many ships have each?</question>
[SQL]:
| <SQL_QUERY>SELECT count(*) , flag FROM ship GROUP BY flag</SQL_QUERY> | ship_1 | SELECT count(*) , flag FROM ship GROUP BY flag | What are the different ship flags, and how many ships have each? | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Which flag is most widely used among all ships?</question>
[SQL]:
| <SQL_QUERY>SELECT flag FROM ship GROUP BY flag ORDER BY count(*) DESC LIMIT 1</SQL_QUERY> | ship_1 | SELECT flag FROM ship GROUP BY flag ORDER BY count(*) DESC LIMIT 1 | Which flag is most widely used among all ships? | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Return the flag that is most common among all ships.</question>
[SQL]:
| <SQL_QUERY>SELECT flag FROM ship GROUP BY flag ORDER BY count(*) DESC LIMIT 1</SQL_QUERY> | ship_1 | SELECT flag FROM ship GROUP BY flag ORDER BY count(*) DESC LIMIT 1 | Return the flag that is most common among all ships. | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>List all ship names in the order of built year and class.</question>
[SQL]:
| <SQL_QUERY>SELECT name FROM ship ORDER BY built_year , CLASS</SQL_QUERY> | ship_1 | SELECT name FROM ship ORDER BY built_year , CLASS | List all ship names in the order of built year and class. | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What are the names of ships, ordered by year they were built and their class?</question>
[SQL]:
| <SQL_QUERY>SELECT name FROM ship ORDER BY built_year , CLASS</SQL_QUERY> | ship_1 | SELECT name FROM ship ORDER BY built_year , CLASS | What are the names of ships, ordered by year they were built and their class? | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Find the ship type that are used by both ships with Panama and Malta flags.</question>
[SQL]:
| <SQL_QUERY>SELECT TYPE FROM ship WHERE flag = 'Panama' INTERSECT SELECT TYPE FROM ship WHERE flag = 'Malta'</SQL_QUERY> | ship_1 | SELECT TYPE FROM ship WHERE flag = 'Panama' INTERSECT SELECT TYPE FROM ship WHERE flag = 'Malta' | Find the ship type that are used by both ships with Panama and Malta flags. | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What types of ships have both ships that have Panama Flags and Malta flags?</question>
[SQL]:
| <SQL_QUERY>SELECT TYPE FROM ship WHERE flag = 'Panama' INTERSECT SELECT TYPE FROM ship WHERE flag = 'Malta'</SQL_QUERY> | ship_1 | SELECT TYPE FROM ship WHERE flag = 'Panama' INTERSECT SELECT TYPE FROM ship WHERE flag = 'Malta' | What types of ships have both ships that have Panama Flags and Malta flags? | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>In which year were most of ships built?</question>
[SQL]:
| <SQL_QUERY>SELECT built_year FROM ship GROUP BY built_year ORDER BY count(*) DESC LIMIT 1</SQL_QUERY> | ship_1 | SELECT built_year FROM ship GROUP BY built_year ORDER BY count(*) DESC LIMIT 1 | In which year were most of ships built? | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What is the year in which most ships were built?</question>
[SQL]:
| <SQL_QUERY>SELECT built_year FROM ship GROUP BY built_year ORDER BY count(*) DESC LIMIT 1</SQL_QUERY> | ship_1 | SELECT built_year FROM ship GROUP BY built_year ORDER BY count(*) DESC LIMIT 1 | What is the year in which most ships were built? | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Find the name of the ships that have more than one captain.</question>
[SQL]:
| <SQL_QUERY>SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id GROUP BY t2.ship_id HAVING count(*) > 1</SQL_QUERY> | ship_1 | SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id GROUP BY t2.ship_id HAVING count(*) > 1 | Find the name of the ships that have more than one captain. | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What are the names of ships that have more than one captain?</question>
[SQL]:
| <SQL_QUERY>SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id GROUP BY t2.ship_id HAVING count(*) > 1</SQL_QUERY> | ship_1 | SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id GROUP BY t2.ship_id HAVING count(*) > 1 | What are the names of ships that have more than one captain? | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>what are the names and classes of the ships that do not have any captain yet?</question>
[SQL]:
| <SQL_QUERY>SELECT name , CLASS FROM ship WHERE ship_id NOT IN (SELECT ship_id FROM captain)</SQL_QUERY> | ship_1 | SELECT name , CLASS FROM ship WHERE ship_id NOT IN (SELECT ship_id FROM captain) | what are the names and classes of the ships that do not have any captain yet? | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Return the names and classes of ships that do not have a captain?</question>
[SQL]:
| <SQL_QUERY>SELECT name , CLASS FROM ship WHERE ship_id NOT IN (SELECT ship_id FROM captain)</SQL_QUERY> | ship_1 | SELECT name , CLASS FROM ship WHERE ship_id NOT IN (SELECT ship_id FROM captain) | Return the names and classes of ships that do not have a captain? | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Find the name of the ship that is steered by the youngest captain.</question>
[SQL]:
| <SQL_QUERY>SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id ORDER BY t2.age LIMIT 1</SQL_QUERY> | ship_1 | SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id ORDER BY t2.age LIMIT 1 | Find the name of the ship that is steered by the youngest captain. | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What is the name of the ship that is commanded by the youngest captain?</question>
[SQL]:
| <SQL_QUERY>SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id ORDER BY t2.age LIMIT 1</SQL_QUERY> | ship_1 | SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id ORDER BY t2.age LIMIT 1 | What is the name of the ship that is commanded by the youngest captain? | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Find the name and flag of ships that are not steered by any captain with Midshipman rank.</question>
[SQL]:
| <SQL_QUERY>SELECT name , flag FROM ship WHERE ship_id NOT IN (SELECT ship_id FROM captain WHERE rank = 'Midshipman')</SQL_QUERY> | ship_1 | SELECT name , flag FROM ship WHERE ship_id NOT IN (SELECT ship_id FROM captain WHERE rank = 'Midshipman') | Find the name and flag of ships that are not steered by any captain with Midshipman rank. | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What are the names and flags of ships that do not have a captain with the rank of Midshipman?</question>
[SQL]:
| <SQL_QUERY>SELECT name , flag FROM ship WHERE ship_id NOT IN (SELECT ship_id FROM captain WHERE rank = 'Midshipman')</SQL_QUERY> | ship_1 | SELECT name , flag FROM ship WHERE ship_id NOT IN (SELECT ship_id FROM captain WHERE rank = 'Midshipman') | What are the names and flags of ships that do not have a captain with the rank of Midshipman? | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Find the name of the ships that are steered by both a captain with Midshipman rank and a captain with Lieutenant rank.</question>
[SQL]:
| <SQL_QUERY>SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.rank = 'Midshipman' INTERSECT SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.rank = 'Lieutenant'</SQL_QUERY> | ship_1 | SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.rank = 'Midshipman' INTERSECT SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.rank = 'Lieutenant' | Find the name of the ships that are steered by both a captain with Midshipman rank and a captain with Lieutenant rank. | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text);</schema>"
<primary_keys>[Primary Keys]: captain : captain_id, ship : ship_id</primary_keys>"
<foreign_keys>[Foreign Keys]: captain : ship_id = ship : ship_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What are the names of ships that are commanded by both captains with the rank of Midshipman and captains with the rank of Lieutenant?</question>
[SQL]:
| <SQL_QUERY>SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.rank = 'Midshipman' INTERSECT SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.rank = 'Lieutenant'</SQL_QUERY> | ship_1 | SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.rank = 'Midshipman' INTERSECT SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id WHERE t2.rank = 'Lieutenant' | What are the names of ships that are commanded by both captains with the rank of Midshipman and captains with the rank of Lieutenant? | [Schema (values) (types)]: | ship_1 | captain : captain_id (text) , name (number) , ship_id (text) , age (number) , class (text) , rank (text) | Ship : ship_id (text) , name (number) , type (text) , built_year (number) , class (text) , flag (text); | [Primary Keys]: captain : captain_id, ship : ship_id | [Foreign Keys]: captain : ship_id = ship : ship_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text);</schema>"
<primary_keys>[Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year</primary_keys>"
<foreign_keys>[Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What is id of the city that hosted events in the most recent year?</question>
[SQL]:
| <SQL_QUERY>SELECT host_city FROM hosting_city ORDER BY YEAR DESC LIMIT 1</SQL_QUERY> | city_record | SELECT host_city FROM hosting_city ORDER BY YEAR DESC LIMIT 1 | What is id of the city that hosted events in the most recent year? | [Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text); | [Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year | [Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text);</schema>"
<primary_keys>[Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year</primary_keys>"
<foreign_keys>[Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Find the city that hosted some events in the most recent year. What is the id of this city?</question>
[SQL]:
| <SQL_QUERY>SELECT host_city FROM hosting_city ORDER BY YEAR DESC LIMIT 1</SQL_QUERY> | city_record | SELECT host_city FROM hosting_city ORDER BY YEAR DESC LIMIT 1 | Find the city that hosted some events in the most recent year. What is the id of this city? | [Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text); | [Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year | [Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text);</schema>"
<primary_keys>[Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year</primary_keys>"
<foreign_keys>[Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Find the match ids of the cities that hosted competition "1994 FIFA World Cup qualification"?</question>
[SQL]:
| <SQL_QUERY>SELECT match_id FROM MATCH WHERE competition = "1994 FIFA World Cup qualification"</SQL_QUERY> | city_record | SELECT match_id FROM MATCH WHERE competition = "1994 FIFA World Cup qualification" | Find the match ids of the cities that hosted competition "1994 FIFA World Cup qualification"? | [Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text); | [Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year | [Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text);</schema>"
<primary_keys>[Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year</primary_keys>"
<foreign_keys>[Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What is the match id of the competition called "1994 FIFA World Cup qualification"?</question>
[SQL]:
| <SQL_QUERY>SELECT match_id FROM MATCH WHERE competition = "1994 FIFA World Cup qualification"</SQL_QUERY> | city_record | SELECT match_id FROM MATCH WHERE competition = "1994 FIFA World Cup qualification" | What is the match id of the competition called "1994 FIFA World Cup qualification"? | [Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text); | [Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year | [Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text);</schema>"
<primary_keys>[Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year</primary_keys>"
<foreign_keys>[Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Find the cities which were once a host city after 2010?</question>
[SQL]:
| <SQL_QUERY>SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T2.year > 2010</SQL_QUERY> | city_record | SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T2.year > 2010 | Find the cities which were once a host city after 2010? | [Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text); | [Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year | [Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text);</schema>"
<primary_keys>[Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year</primary_keys>"
<foreign_keys>[Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Which cities served as a host city after 2010?</question>
[SQL]:
| <SQL_QUERY>SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T2.year > 2010</SQL_QUERY> | city_record | SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T2.year > 2010 | Which cities served as a host city after 2010? | [Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text); | [Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year | [Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text);</schema>"
<primary_keys>[Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year</primary_keys>"
<foreign_keys>[Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Which city has hosted the most events?</question>
[SQL]:
| <SQL_QUERY>SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city GROUP BY T2.host_city ORDER BY count(*) DESC LIMIT 1</SQL_QUERY> | city_record | SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city GROUP BY T2.host_city ORDER BY count(*) DESC LIMIT 1 | Which city has hosted the most events? | [Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text); | [Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year | [Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text);</schema>"
<primary_keys>[Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year</primary_keys>"
<foreign_keys>[Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Find the city that hosted the most events.</question>
[SQL]:
| <SQL_QUERY>SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city GROUP BY T2.host_city ORDER BY count(*) DESC LIMIT 1</SQL_QUERY> | city_record | SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city GROUP BY T2.host_city ORDER BY count(*) DESC LIMIT 1 | Find the city that hosted the most events. | [Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text); | [Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year | [Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text);</schema>"
<primary_keys>[Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year</primary_keys>"
<foreign_keys>[Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What is the venue of the competition "1994 FIFA World Cup qualification" hosted by "Nanjing ( Jiangsu )"?</question>
[SQL]:
| <SQL_QUERY>SELECT T3.venue FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city JOIN MATCH AS T3 ON T2.match_id = T3.match_id WHERE T1.city = "Nanjing ( Jiangsu )" AND T3.competition = "1994 FIFA World Cup qualification"</SQL_QUERY> | city_record | SELECT T3.venue FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city JOIN MATCH AS T3 ON T2.match_id = T3.match_id WHERE T1.city = "Nanjing ( Jiangsu )" AND T3.competition = "1994 FIFA World Cup qualification" | What is the venue of the competition "1994 FIFA World Cup qualification" hosted by "Nanjing ( Jiangsu )"? | [Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text); | [Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year | [Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text);</schema>"
<primary_keys>[Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year</primary_keys>"
<foreign_keys>[Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Find the venue of the competition "1994 FIFA World Cup qualification" which was hosted by "Nanjing ( Jiangsu )".</question>
[SQL]:
| <SQL_QUERY>SELECT T3.venue FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city JOIN MATCH AS T3 ON T2.match_id = T3.match_id WHERE T1.city = "Nanjing ( Jiangsu )" AND T3.competition = "1994 FIFA World Cup qualification"</SQL_QUERY> | city_record | SELECT T3.venue FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city JOIN MATCH AS T3 ON T2.match_id = T3.match_id WHERE T1.city = "Nanjing ( Jiangsu )" AND T3.competition = "1994 FIFA World Cup qualification" | Find the venue of the competition "1994 FIFA World Cup qualification" which was hosted by "Nanjing ( Jiangsu )". | [Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text); | [Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year | [Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text);</schema>"
<primary_keys>[Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year</primary_keys>"
<foreign_keys>[Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Give me the temperature of Shanghai in January.</question>
[SQL]:
| <SQL_QUERY>SELECT T2.Jan FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T1.city = "Shanghai"</SQL_QUERY> | city_record | SELECT T2.Jan FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T1.city = "Shanghai" | Give me the temperature of Shanghai in January. | [Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text); | [Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year | [Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text);</schema>"
<primary_keys>[Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year</primary_keys>"
<foreign_keys>[Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What is the temperature of "Shanghai" city in January?</question>
[SQL]:
| <SQL_QUERY>SELECT T2.Jan FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T1.city = "Shanghai"</SQL_QUERY> | city_record | SELECT T2.Jan FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T1.city = "Shanghai" | What is the temperature of "Shanghai" city in January? | [Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text); | [Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year | [Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text);</schema>"
<primary_keys>[Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year</primary_keys>"
<foreign_keys>[Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What is the host year of city "Taizhou ( Zhejiang )"?</question>
[SQL]:
| <SQL_QUERY>SELECT T2.year FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T1.city = "Taizhou ( Zhejiang )"</SQL_QUERY> | city_record | SELECT T2.year FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T1.city = "Taizhou ( Zhejiang )" | What is the host year of city "Taizhou ( Zhejiang )"? | [Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text); | [Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year | [Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text);</schema>"
<primary_keys>[Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year</primary_keys>"
<foreign_keys>[Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>IN which year did city "Taizhou ( Zhejiang )" serve as a host city?</question>
[SQL]:
| <SQL_QUERY>SELECT T2.year FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T1.city = "Taizhou ( Zhejiang )"</SQL_QUERY> | city_record | SELECT T2.year FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T1.city = "Taizhou ( Zhejiang )" | IN which year did city "Taizhou ( Zhejiang )" serve as a host city? | [Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text); | [Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year | [Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text);</schema>"
<primary_keys>[Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year</primary_keys>"
<foreign_keys>[Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Which three cities have the largest regional population?</question>
[SQL]:
| <SQL_QUERY>SELECT city FROM city ORDER BY regional_population DESC LIMIT 3</SQL_QUERY> | city_record | SELECT city FROM city ORDER BY regional_population DESC LIMIT 3 | Which three cities have the largest regional population? | [Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text); | [Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year | [Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text);</schema>"
<primary_keys>[Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year</primary_keys>"
<foreign_keys>[Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What are the three largest cities in terms of regional population?</question>
[SQL]:
| <SQL_QUERY>SELECT city FROM city ORDER BY regional_population DESC LIMIT 3</SQL_QUERY> | city_record | SELECT city FROM city ORDER BY regional_population DESC LIMIT 3 | What are the three largest cities in terms of regional population? | [Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text); | [Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year | [Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text);</schema>"
<primary_keys>[Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year</primary_keys>"
<foreign_keys>[Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Which city has the lowest GDP? Please list the city name and its GDP.</question>
[SQL]:
| <SQL_QUERY>SELECT city , GDP FROM city ORDER BY GDP LIMIT 1</SQL_QUERY> | city_record | SELECT city , GDP FROM city ORDER BY GDP LIMIT 1 | Which city has the lowest GDP? Please list the city name and its GDP. | [Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text); | [Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year | [Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text);</schema>"
<primary_keys>[Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year</primary_keys>"
<foreign_keys>[Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What is the city with the smallest GDP? Return the city and its GDP.</question>
[SQL]:
| <SQL_QUERY>SELECT city , GDP FROM city ORDER BY GDP LIMIT 1</SQL_QUERY> | city_record | SELECT city , GDP FROM city ORDER BY GDP LIMIT 1 | What is the city with the smallest GDP? Return the city and its GDP. | [Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text); | [Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year | [Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text);</schema>"
<primary_keys>[Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year</primary_keys>"
<foreign_keys>[Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Which city has the highest temperature in February?</question>
[SQL]:
| <SQL_QUERY>SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id ORDER BY T2.Feb DESC LIMIT 1</SQL_QUERY> | city_record | SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id ORDER BY T2.Feb DESC LIMIT 1 | Which city has the highest temperature in February? | [Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text); | [Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year | [Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text);</schema>"
<primary_keys>[Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year</primary_keys>"
<foreign_keys>[Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>In February, which city marks the highest temperature?</question>
[SQL]:
| <SQL_QUERY>SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id ORDER BY T2.Feb DESC LIMIT 1</SQL_QUERY> | city_record | SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id ORDER BY T2.Feb DESC LIMIT 1 | In February, which city marks the highest temperature? | [Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text); | [Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year | [Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text);</schema>"
<primary_keys>[Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year</primary_keys>"
<foreign_keys>[Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Give me a list of cities whose temperature in March is lower than that in July or higher than that in Oct?</question>
[SQL]:
| <SQL_QUERY>SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Jul OR T2.Mar > T2.Oct</SQL_QUERY> | city_record | SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Jul OR T2.Mar > T2.Oct | Give me a list of cities whose temperature in March is lower than that in July or higher than that in Oct? | [Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text); | [Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year | [Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text);</schema>"
<primary_keys>[Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year</primary_keys>"
<foreign_keys>[Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Which cities' temperature in March is lower than that in July or higher than that in Oct?</question>
[SQL]:
| <SQL_QUERY>SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Jul OR T2.Mar > T2.Oct</SQL_QUERY> | city_record | SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Jul OR T2.Mar > T2.Oct | Which cities' temperature in March is lower than that in July or higher than that in Oct? | [Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text); | [Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year | [Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text);</schema>"
<primary_keys>[Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year</primary_keys>"
<foreign_keys>[Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Give me a list of cities whose temperature in Mar is lower than that in July and which have also served as host cities?</question>
[SQL]:
| <SQL_QUERY>SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Jul INTERSECT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city</SQL_QUERY> | city_record | SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Jul INTERSECT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city | Give me a list of cities whose temperature in Mar is lower than that in July and which have also served as host cities? | [Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text); | [Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year | [Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text);</schema>"
<primary_keys>[Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year</primary_keys>"
<foreign_keys>[Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Which cities have lower temperature in March than in July and have been once host cities?</question>
[SQL]:
| <SQL_QUERY>SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Jul INTERSECT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city</SQL_QUERY> | city_record | SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Jul INTERSECT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city | Which cities have lower temperature in March than in July and have been once host cities? | [Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text); | [Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year | [Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text);</schema>"
<primary_keys>[Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year</primary_keys>"
<foreign_keys>[Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Give me a list of cities whose temperature in Mar is lower than that in Dec and which have never been host cities.</question>
[SQL]:
| <SQL_QUERY>SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Dec EXCEPT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city</SQL_QUERY> | city_record | SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Dec EXCEPT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city | Give me a list of cities whose temperature in Mar is lower than that in Dec and which have never been host cities. | [Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text); | [Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year | [Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text);</schema>"
<primary_keys>[Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year</primary_keys>"
<foreign_keys>[Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Which cities have lower temperature in March than in Dec and have never served as host cities?</question>
[SQL]:
| <SQL_QUERY>SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Dec EXCEPT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city</SQL_QUERY> | city_record | SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Dec EXCEPT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city | Which cities have lower temperature in March than in Dec and have never served as host cities? | [Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text); | [Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year | [Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text);</schema>"
<primary_keys>[Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year</primary_keys>"
<foreign_keys>[Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Give me a list of cities whose temperature in Feb is higher than that in Jun or cities that were once host cities?</question>
[SQL]:
| <SQL_QUERY>SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Feb > T2.Jun UNION SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city</SQL_QUERY> | city_record | SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Feb > T2.Jun UNION SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city | Give me a list of cities whose temperature in Feb is higher than that in Jun or cities that were once host cities? | [Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text); | [Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year | [Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text);</schema>"
<primary_keys>[Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year</primary_keys>"
<foreign_keys>[Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Which cities have higher temperature in Feb than in Jun or have once served as host cities?</question>
[SQL]:
| <SQL_QUERY>SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Feb > T2.Jun UNION SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city</SQL_QUERY> | city_record | SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Feb > T2.Jun UNION SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city | Which cities have higher temperature in Feb than in Jun or have once served as host cities? | [Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text); | [Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year | [Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text);</schema>"
<primary_keys>[Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year</primary_keys>"
<foreign_keys>[Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Please give me a list of cities whose regional population is over 10000000.</question>
[SQL]:
| <SQL_QUERY>SELECT city FROM city WHERE regional_population > 10000000</SQL_QUERY> | city_record | SELECT city FROM city WHERE regional_population > 10000000 | Please give me a list of cities whose regional population is over 10000000. | [Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text); | [Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year | [Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text);</schema>"
<primary_keys>[Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year</primary_keys>"
<foreign_keys>[Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Which cities have regional population above 10000000?</question>
[SQL]:
| <SQL_QUERY>SELECT city FROM city WHERE regional_population > 10000000</SQL_QUERY> | city_record | SELECT city FROM city WHERE regional_population > 10000000 | Which cities have regional population above 10000000? | [Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text); | [Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year | [Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text);</schema>"
<primary_keys>[Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year</primary_keys>"
<foreign_keys>[Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Please give me a list of cities whose regional population is over 8000000 or under 5000000.</question>
[SQL]:
| <SQL_QUERY>SELECT city FROM city WHERE regional_population > 10000000 UNION SELECT city FROM city WHERE regional_population < 5000000</SQL_QUERY> | city_record | SELECT city FROM city WHERE regional_population > 10000000 UNION SELECT city FROM city WHERE regional_population < 5000000 | Please give me a list of cities whose regional population is over 8000000 or under 5000000. | [Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text); | [Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year | [Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id |
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
<schema>[Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text);</schema>"
<primary_keys>[Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year</primary_keys>"
<foreign_keys>[Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Which cities have regional population above 8000000 or below 5000000?</question>
[SQL]:
| <SQL_QUERY>SELECT city FROM city WHERE regional_population > 10000000 UNION SELECT city FROM city WHERE regional_population < 5000000</SQL_QUERY> | city_record | SELECT city FROM city WHERE regional_population > 10000000 UNION SELECT city FROM city WHERE regional_population < 5000000 | Which cities have regional population above 8000000 or below 5000000? | [Schema (values) (types)]: | city_record | city : city_id (text) , city (number) , hanzi (text) , hanyu_pinyin (text) , regional_population (text) , gdp (number) | match : match_id (text) , date (number) , venue (text) , score (text) , result (text) , competition (number) | temperature : city_id (text) , jan (number) , feb (text) , mar (text) , apr (text) , jun (number) , jul (number) , aug (number) , sep (text) , oct (text) , nov (text) , dec (text) | hosting_city : year (text) , match_id (number) , host_city (text); | [Primary Keys]: city : city_id, match : match_id, temperature : city_id, hosting_city : year | [Foreign Keys]: temperature : city_id = city : city_id | hosting_city : match_id = match : match_id | hosting_city : host_city = city : city_id |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.