[{"prompt": "Convert text to SQL: [Question]: How many singers do we have?\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT count(*) FROM singer"}, {"prompt": "Convert text to SQL: [Question]: What is the total number of singers?\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT count(*) FROM singer"}, {"prompt": "Convert text to SQL: [Question]: Show name, country, age for all singers ordered by age from the oldest to the youngest.\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT name , country , age FROM singer ORDER BY age DESC"}, {"prompt": "Convert text to SQL: [Question]: What are the names, countries, and ages for every singer in descending order of age?\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT name , country , age FROM singer ORDER BY age DESC"}, {"prompt": "Convert text to SQL: [Question]: What is the average, minimum, and maximum age of all singers from France?\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT avg(age) , min(age) , max(age) FROM singer WHERE country = 'France'"}, {"prompt": "Convert text to SQL: [Question]: What is the average, minimum, and maximum age for all French singers?\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT avg(age) , min(age) , max(age) FROM singer WHERE country = 'France'"}, {"prompt": "Convert text to SQL: [Question]: Show the name and the release year of the song by the youngest singer.\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT song_name , song_release_year FROM singer ORDER BY age LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What are the names and release years for all the songs of the youngest singer?\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT song_name , song_release_year FROM singer ORDER BY age LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What are all distinct countries where singers above age 20 are from?\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT DISTINCT country FROM singer WHERE age > 20"}, {"prompt": "Convert text to SQL: [Question]: What are the different countries with singers above age 20?\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT DISTINCT country FROM singer WHERE age > 20"}, {"prompt": "Convert text to SQL: [Question]: Show all countries and the number of singers in each country.\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT country , count(*) FROM singer GROUP BY country"}, {"prompt": "Convert text to SQL: [Question]: How many singers are from each country?\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT country , count(*) FROM singer GROUP BY country"}, {"prompt": "Convert text to SQL: [Question]: List all song names by singers above the average age.\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT song_name FROM singer WHERE age > (SELECT avg(age) FROM singer)"}, {"prompt": "Convert text to SQL: [Question]: What are all the song names by singers who are older than average?\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT song_name FROM singer WHERE age > (SELECT avg(age) FROM singer)"}, {"prompt": "Convert text to SQL: [Question]: Show location and name for all stadiums with a capacity between 5000 and 10000.\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT LOCATION , name FROM stadium WHERE capacity BETWEEN 5000 AND 10000"}, {"prompt": "Convert text to SQL: [Question]: What are the locations and names of all stations with capacity between 5000 and 10000?\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT LOCATION , name FROM stadium WHERE capacity BETWEEN 5000 AND 10000"}, {"prompt": "Convert text to SQL: [Question]: What is the maximum capacity and the average of all stadiums ?\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "select max(capacity), average from stadium"}, {"prompt": "Convert text to SQL: [Question]: What is the average and maximum capacities for all stadiums ?\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "select avg(capacity) , max(capacity) from stadium"}, {"prompt": "Convert text to SQL: [Question]: What is the name and capacity for the stadium with highest average attendance?\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT name , capacity FROM stadium ORDER BY average DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the name and capacity for the stadium with the highest average attendance?\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT name , capacity FROM stadium ORDER BY average DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: How many concerts are there in year 2014 or 2015?\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT count(*) FROM concert WHERE YEAR = 2014 OR YEAR = 2015"}, {"prompt": "Convert text to SQL: [Question]: How many concerts occurred in 2014 or 2015?\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT count(*) FROM concert WHERE YEAR = 2014 OR YEAR = 2015"}, {"prompt": "Convert text to SQL: [Question]: Show the stadium name and the number of concerts in each stadium.\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT T2.name , count(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id GROUP BY T1.stadium_id"}, {"prompt": "Convert text to SQL: [Question]: For each stadium, how many concerts play there?\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT T2.name , count(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id GROUP BY T1.stadium_id"}, {"prompt": "Convert text to SQL: [Question]: Show the stadium name and capacity with most number of concerts in year 2014 or after.\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT T2.name , T2.capacity FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.year >= 2014 GROUP BY T2.stadium_id ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the name and capacity of the stadium with the most concerts after 2013 ?\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "select t2.name , t2.capacity from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id where t1.year > 2013 group by t2.stadium_id order by count(*) desc limit 1"}, {"prompt": "Convert text to SQL: [Question]: Which year has most number of concerts?\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT YEAR FROM concert GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the year that had the most concerts?\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT YEAR FROM concert GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Show the stadium names without any concert.\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT name FROM stadium WHERE stadium_id NOT IN (SELECT stadium_id FROM concert)"}, {"prompt": "Convert text to SQL: [Question]: What are the names of the stadiums without any concerts?\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT name FROM stadium WHERE stadium_id NOT IN (SELECT stadium_id FROM concert)"}, {"prompt": "Convert text to SQL: [Question]: Show countries where a singer above age 40 and a singer below 30 are from.\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT country FROM singer WHERE age > 40 INTERSECT SELECT country FROM singer WHERE age < 30"}, {"prompt": "Convert text to SQL: [Question]: Show names for all stadiums except for stadiums having a concert in year 2014.\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT name FROM stadium EXCEPT SELECT T2.name FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.year = 2014"}, {"prompt": "Convert text to SQL: [Question]: What are the names of all stadiums that did not have a concert in 2014?\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT name FROM stadium EXCEPT SELECT T2.name FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.year = 2014"}, {"prompt": "Convert text to SQL: [Question]: Show the name and theme for all concerts and the number of singers in each concert.\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT T2.concert_name , T2.theme , count(*) FROM singer_in_concert AS T1 JOIN concert AS T2 ON T1.concert_id = T2.concert_id GROUP BY T2.concert_id"}, {"prompt": "Convert text to SQL: [Question]: What are the names , themes , and number of singers for every concert ?\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "select t2.concert_name , t2.theme , count(*) from singer_in_concert as t1 join concert as t2 on t1.concert_id = t2.concert_id group by t2.concert_id"}, {"prompt": "Convert text to SQL: [Question]: List singer names and number of concerts for each singer.\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT T2.name , count(*) FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id GROUP BY T2.singer_id"}, {"prompt": "Convert text to SQL: [Question]: What are the names of the singers and number of concerts for each person?\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT T2.name , count(*) FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id GROUP BY T2.singer_id"}, {"prompt": "Convert text to SQL: [Question]: List all singer names in concerts in year 2014.\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT T2.name FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id JOIN concert AS T3 ON T1.concert_id = T3.concert_id WHERE T3.year = 2014"}, {"prompt": "Convert text to SQL: [Question]: What are the names of the singers who performed in a concert in 2014?\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT T2.name FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id JOIN concert AS T3 ON T1.concert_id = T3.concert_id WHERE T3.year = 2014"}, {"prompt": "Convert text to SQL: [Question]: what is the name and nation of the singer who have a song having 'Hey' in its name?\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT name , country FROM singer WHERE song_name LIKE '%Hey%'"}, {"prompt": "Convert text to SQL: [Question]: What is the name and country of origin of every singer who has a song with the word 'Hey' in its title?\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT name , country FROM singer WHERE song_name LIKE '%Hey%'"}, {"prompt": "Convert text to SQL: [Question]: Find the name and location of the stadiums which some concerts happened in the years of both 2014 and 2015.\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT T2.name , T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2014 INTERSECT SELECT T2.name , T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2015"}, {"prompt": "Convert text to SQL: [Question]: What are the names and locations of the stadiums that had concerts that occurred in both 2014 and 2015?\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "SELECT T2.name , T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2014 INTERSECT SELECT T2.name , T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2015"}, {"prompt": "Convert text to SQL: [Question]: Find the number of concerts happened in the stadium with the highest capacity .\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "select count(*) from concert where stadium_id = (select stadium_id from stadium order by capacity desc limit 1)"}, {"prompt": "Convert text to SQL: [Question]: What are the number of concerts that occurred in the stadium with the largest capacity ?\n[Database Information]:[Schema (values)]: stadium : Stadium_ID , Location , Name , Capacity , Highest , Lowest , Average | singer : Singer_ID , Name , Country , Song_Name , Song_release_year , Age , Is_male | concert : concert_ID , concert_Name , Theme , Stadium_ID , Year | singer_in_concert : concert_ID , Singer_ID\n[Column names (type)]: singer_in_concert : * (text) | stadium : Stadium_ID (number) | stadium : Location (text) | stadium : Name (text) | stadium : Capacity (number) | stadium : Highest (number) | stadium : Lowest (number) | stadium : Average (number) | singer : Singer_ID (number) | singer : Name (text) | singer : Country (text) | singer : Song_Name (text) | singer : Song_release_year (text) | singer : Age (number) | singer : Is_male (others) | concert : concert_ID (number) | concert : concert_Name (text) | concert : Theme (text) | concert : Stadium_ID (text) | concert : Year (text) | singer_in_concert : concert_ID (number) | singer_in_concert : Singer_ID (text)\n[Primary Keys]: stadium : Stadium_ID | singer : Singer_ID | concert : concert_ID | singer_in_concert : concert_ID\n[Foreign Keys]: concert : Stadium_ID equals stadium : Stadium_ID | singer_in_concert : Singer_ID equals singer : Singer_ID | singer_in_concert : concert_ID equals concert : concert_ID", "ground_truth": "select count(*) from concert where stadium_id = (select stadium_id from stadium order by capacity desc limit 1)"}, {"prompt": "Convert text to SQL: [Question]: Find the number of pets whose weight is heavier than 10.\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "SELECT count(*) FROM pets WHERE weight > 10"}, {"prompt": "Convert text to SQL: [Question]: How many pets have a greater weight than 10?\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "SELECT count(*) FROM pets WHERE weight > 10"}, {"prompt": "Convert text to SQL: [Question]: Find the weight of the youngest dog.\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "SELECT weight FROM pets ORDER BY pet_age LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: How much does the youngest dog weigh?\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "SELECT weight FROM pets ORDER BY pet_age LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Find the maximum weight for each type of pet. List the maximum weight and pet type.\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "SELECT max(weight) , petType FROM pets GROUP BY petType"}, {"prompt": "Convert text to SQL: [Question]: List the maximum weight and type for each type of pet.\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "SELECT max(weight) , petType FROM pets GROUP BY petType"}, {"prompt": "Convert text to SQL: [Question]: Find number of pets owned by students who are older than 20.\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.age > 20"}, {"prompt": "Convert text to SQL: [Question]: How many pets are owned by students that have an age greater than 20?\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.age > 20"}, {"prompt": "Convert text to SQL: [Question]: Find the number of dog pets that are raised by female students (with sex F).\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T2.petid = T3.petid WHERE T1.sex = 'F' AND T3.pettype = 'dog'"}, {"prompt": "Convert text to SQL: [Question]: How many dog pets are raised by female students?\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T2.petid = T3.petid WHERE T1.sex = 'F' AND T3.pettype = 'dog'"}, {"prompt": "Convert text to SQL: [Question]: Find the number of distinct type of pets.\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "SELECT count(DISTINCT pettype) FROM pets"}, {"prompt": "Convert text to SQL: [Question]: How many different types of pet are there?\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "SELECT count(DISTINCT pettype) FROM pets"}, {"prompt": "Convert text to SQL: [Question]: Find the first name of students who have cat or dog pet.\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "SELECT DISTINCT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' OR T3.pettype = 'dog'"}, {"prompt": "Convert text to SQL: [Question]: What are the first names of every student who has a cat or dog as a pet?\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "SELECT DISTINCT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' OR T3.pettype = 'dog'"}, {"prompt": "Convert text to SQL: [Question]: Find the first name of students who have both cat and dog pets .\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "select t1.fname from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'cat' intersect select t1.fname from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t3.petid = t2.petid where t3.pettype = 'dog'"}, {"prompt": "Convert text to SQL: [Question]: What are the students' first names who have both cats and dogs as pets?\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "SELECT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' INTERSECT SELECT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'dog'"}, {"prompt": "Convert text to SQL: [Question]: Find the major and age of students who do not have a cat pet.\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "SELECT major , age FROM student WHERE stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')"}, {"prompt": "Convert text to SQL: [Question]: What major is every student who does not own a cat as a pet, and also how old are they?\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "SELECT major , age FROM student WHERE stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')"}, {"prompt": "Convert text to SQL: [Question]: Find the id of students who do not have a cat pet.\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "SELECT stuid FROM student EXCEPT SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat'"}, {"prompt": "Convert text to SQL: [Question]: What are the ids of the students who do not own cats as pets?\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "SELECT stuid FROM student EXCEPT SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat'"}, {"prompt": "Convert text to SQL: [Question]: Find the first name and age of students who have a dog but do not have a cat as a pet.\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "SELECT T1.fname , T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'dog' AND T1.stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')"}, {"prompt": "Convert text to SQL: [Question]: What is the first name of every student who has a dog but does not have a cat?\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "SELECT T1.fname , T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'dog' AND T1.stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')"}, {"prompt": "Convert text to SQL: [Question]: Find the type and weight of the youngest pet.\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "SELECT pettype , weight FROM pets ORDER BY pet_age LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What type of pet is the youngest animal, and how much does it weigh?\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "SELECT pettype , weight FROM pets ORDER BY pet_age LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Find the id and weight of all pets whose age is older than 1.\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "SELECT petid , weight FROM pets WHERE pet_age > 1"}, {"prompt": "Convert text to SQL: [Question]: What is the id and weight of every pet who is older than 1?\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "SELECT petid , weight FROM pets WHERE pet_age > 1"}, {"prompt": "Convert text to SQL: [Question]: Find the average and maximum age for each type of pet.\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "SELECT avg(pet_age) , max(pet_age) , pettype FROM pets GROUP BY pettype"}, {"prompt": "Convert text to SQL: [Question]: What is the average and maximum age for each pet type?\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "SELECT avg(pet_age) , max(pet_age) , pettype FROM pets GROUP BY pettype"}, {"prompt": "Convert text to SQL: [Question]: Find the average weight for each pet type.\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "SELECT avg(weight) , pettype FROM pets GROUP BY pettype"}, {"prompt": "Convert text to SQL: [Question]: What is the average weight for each type of pet?\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "SELECT avg(weight) , pettype FROM pets GROUP BY pettype"}, {"prompt": "Convert text to SQL: [Question]: Find the first name and age of students who have a pet.\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "SELECT DISTINCT T1.fname , T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid"}, {"prompt": "Convert text to SQL: [Question]: What are the different first names and ages of the students who do have pets?\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "SELECT DISTINCT T1.fname , T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid"}, {"prompt": "Convert text to SQL: [Question]: Find the id of the pet owned by student whose last name is \u2018Smith\u2019.\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "SELECT T2.petid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.Lname = 'Smith'"}, {"prompt": "Convert text to SQL: [Question]: What is the id of the pet owned by the student whose last name is 'Smith'?\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "SELECT T2.petid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.Lname = 'Smith'"}, {"prompt": "Convert text to SQL: [Question]: Find the number of pets for each student who has any pet and student id.\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "SELECT count(*) , T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid"}, {"prompt": "Convert text to SQL: [Question]: For students who have pets , how many pets does each student have ? list their ids instead of names .\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "select count(*) , t1.stuid from student as t1 join has_pet as t2 on t1.stuid = t2.stuid group by t1.stuid"}, {"prompt": "Convert text to SQL: [Question]: Find the first name and gender of student who have more than one pet.\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "SELECT T1.fname , T1.sex FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid HAVING count(*) > 1"}, {"prompt": "Convert text to SQL: [Question]: What is the first name and gender of the all the students who have more than one pet?\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "SELECT T1.fname , T1.sex FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid HAVING count(*) > 1"}, {"prompt": "Convert text to SQL: [Question]: Find the last name of the student who has a cat that is age 3.\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "SELECT T1.lname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pet_age = 3 AND T3.pettype = 'cat'"}, {"prompt": "Convert text to SQL: [Question]: What is the last name of the student who has a cat that is 3 years old?\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "SELECT T1.lname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pet_age = 3 AND T3.pettype = 'cat'"}, {"prompt": "Convert text to SQL: [Question]: Find the average age of students who do not have any pet .\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "select avg(age) from student where stuid not in (select stuid from has_pet)"}, {"prompt": "Convert text to SQL: [Question]: What is the average age for all students who do not own any pets ?\n[Database Information]:[Schema (values)]: Student : StuID , LName , Fname , Age , Sex , Major , Advisor , city_code | Has_Pet : StuID , PetID | Pets : PetID , PetType , pet_age , weight\n[Column names (type)]: Pets : * (text) | Student : StuID (number) | Student : LName (text) | Student : Fname (text) | Student : Age (number) | Student : Sex (text) | Student : Major (number) | Student : Advisor (number) | Student : city_code (text) | Has_Pet : StuID (number) | Has_Pet : PetID (number) | Pets : PetID (number) | Pets : PetType (text) | Pets : pet_age (number) | Pets : weight (number)\n[Primary Keys]: Student : StuID | Pets : PetID\n[Foreign Keys]: Has_Pet : StuID equals Student : StuID | Has_Pet : PetID equals Pets : PetID", "ground_truth": "select avg(age) from student where stuid not in (select stuid from has_pet)"}, {"prompt": "Convert text to SQL: [Question]: How many continents are there?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT count(*) FROM CONTINENTS;"}, {"prompt": "Convert text to SQL: [Question]: What is the number of continents?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT count(*) FROM CONTINENTS;"}, {"prompt": "Convert text to SQL: [Question]: How many countries does each continent have? List the continent id, continent name and the number of countries.\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT T1.ContId , T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.Continent GROUP BY T1.ContId;"}, {"prompt": "Convert text to SQL: [Question]: For each continent, list its id, name, and how many countries it has?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT T1.ContId , T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.Continent GROUP BY T1.ContId;"}, {"prompt": "Convert text to SQL: [Question]: How many countries are listed?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT count(*) FROM COUNTRIES;"}, {"prompt": "Convert text to SQL: [Question]: How many countries exist?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT count(*) FROM COUNTRIES;"}, {"prompt": "Convert text to SQL: [Question]: How many models does each car maker produce? List maker full name, id and the number.\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT T1.FullName , T1.Id , count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id;"}, {"prompt": "Convert text to SQL: [Question]: What is the full name of each car maker, along with its id and how many models it produces?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT T1.FullName , T1.Id , count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id;"}, {"prompt": "Convert text to SQL: [Question]: Which model of the car has the minimum horsepower?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.horsepower ASC LIMIT 1;"}, {"prompt": "Convert text to SQL: [Question]: What is the model of the car with the smallest amount of horsepower?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.horsepower ASC LIMIT 1;"}, {"prompt": "Convert text to SQL: [Question]: Find the model of the car whose weight is below the average weight.\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT T1.model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Weight < (SELECT avg(Weight) FROM CARS_DATA)"}, {"prompt": "Convert text to SQL: [Question]: What is the model for the car with a weight smaller than the average?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT T1.model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Weight < (SELECT avg(Weight) FROM CARS_DATA)"}, {"prompt": "Convert text to SQL: [Question]: Find the name of the makers that produced some cars in the year of 1970?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT DISTINCT T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model JOIN CARS_DATA AS T4 ON T3.MakeId = T4.id WHERE T4.year = '1970';"}, {"prompt": "Convert text to SQL: [Question]: What is the name of the different car makers who produced a car in 1970?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT DISTINCT T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model JOIN CARS_DATA AS T4 ON T3.MakeId = T4.id WHERE T4.year = '1970';"}, {"prompt": "Convert text to SQL: [Question]: Find the make and production time of the cars that were produced in the earliest year?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT T2.Make , T1.Year FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Year = (SELECT min(YEAR) FROM CARS_DATA);"}, {"prompt": "Convert text to SQL: [Question]: What is the maker of the carr produced in the earliest year and what year was it?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT T2.Make , T1.Year FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Year = (SELECT min(YEAR) FROM CARS_DATA);"}, {"prompt": "Convert text to SQL: [Question]: Which distinct car models are the produced after 1980?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.model = T2.model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.id WHERE T3.year > 1980;"}, {"prompt": "Convert text to SQL: [Question]: What are the different models for the cards produced after 1980?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.model = T2.model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.id WHERE T3.year > 1980;"}, {"prompt": "Convert text to SQL: [Question]: How many car makers are there in each continents? List the continent name and the count.\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.continent JOIN car_makers AS T3 ON T2.CountryId = T3.Country GROUP BY T1.Continent;"}, {"prompt": "Convert text to SQL: [Question]: What is the name of each continent and how many car makers are there in each one?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.continent JOIN car_makers AS T3 ON T2.CountryId = T3.Country GROUP BY T1.Continent;"}, {"prompt": "Convert text to SQL: [Question]: Which of the countries has the most car makers? List the country name.\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT T2.CountryName FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId GROUP BY T1.Country ORDER BY Count(*) DESC LIMIT 1;"}, {"prompt": "Convert text to SQL: [Question]: What is the name of the country with the most car makers?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT T2.CountryName FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId GROUP BY T1.Country ORDER BY Count(*) DESC LIMIT 1;"}, {"prompt": "Convert text to SQL: [Question]: How many car models are produced by each maker ? Only list the count and the maker full name .\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "select count(*) , t2.fullname from model_list as t1 join car_makers as t2 on t1.maker = t2.id group by t2.id;"}, {"prompt": "Convert text to SQL: [Question]: What is the number of car models that are produced by each maker and what is the id and full name of each maker?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT Count(*) , T2.FullName , T2.id FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id GROUP BY T2.id;"}, {"prompt": "Convert text to SQL: [Question]: What is the accelerate of the car make amc hornet sportabout (sw)?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT T1.Accelerate FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Make = 'amc hornet sportabout (sw)';"}, {"prompt": "Convert text to SQL: [Question]: How much does the car accelerate that makes amc hornet sportabout (sw)?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT T1.Accelerate FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Make = 'amc hornet sportabout (sw)';"}, {"prompt": "Convert text to SQL: [Question]: How many car makers are there in france?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId WHERE T2.CountryName = 'france';"}, {"prompt": "Convert text to SQL: [Question]: What is the number of makers of care in France?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId WHERE T2.CountryName = 'france';"}, {"prompt": "Convert text to SQL: [Question]: How many car models are produced in the usa?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT count(*) FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id JOIN COUNTRIES AS T3 ON T2.Country = T3.CountryId WHERE T3.CountryName = 'usa';"}, {"prompt": "Convert text to SQL: [Question]: What is the count of the car models produced in the United States?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT count(*) FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id JOIN COUNTRIES AS T3 ON T2.Country = T3.CountryId WHERE T3.CountryName = 'usa';"}, {"prompt": "Convert text to SQL: [Question]: What is the average miles per gallon(mpg) of the cars with 4 cylinders?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT avg(mpg) FROM CARS_DATA WHERE Cylinders = 4;"}, {"prompt": "Convert text to SQL: [Question]: What is the average miles per gallon of all the cards with 4 cylinders?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT avg(mpg) FROM CARS_DATA WHERE Cylinders = 4;"}, {"prompt": "Convert text to SQL: [Question]: What is the smallest weight of the car produced with 8 cylinders on 1974 ?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "select min(weight) from cars_data where cylinders = 8 and year = 1974"}, {"prompt": "Convert text to SQL: [Question]: What is the minimum weight of the car with 8 cylinders produced in 1974 ?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "select min(weight) from cars_data where cylinders = 8 and year = 1974"}, {"prompt": "Convert text to SQL: [Question]: What are all the makers and models?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT Maker , Model FROM MODEL_LIST;"}, {"prompt": "Convert text to SQL: [Question]: What are the makers and models?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT Maker , Model FROM MODEL_LIST;"}, {"prompt": "Convert text to SQL: [Question]: What are the countries having at least one car maker? List name and id.\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT T1.CountryName , T1.CountryId FROM COUNTRIES AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.CountryId HAVING count(*) >= 1;"}, {"prompt": "Convert text to SQL: [Question]: What are the names and ids of all countries with at least one car maker?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT T1.CountryName , T1.CountryId FROM COUNTRIES AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.CountryId HAVING count(*) >= 1;"}, {"prompt": "Convert text to SQL: [Question]: What is the number of the cars with horsepower more than 150?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT count(*) FROM CARS_DATA WHERE horsepower > 150;"}, {"prompt": "Convert text to SQL: [Question]: What is the number of cars with a horsepower greater than 150?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT count(*) FROM CARS_DATA WHERE horsepower > 150;"}, {"prompt": "Convert text to SQL: [Question]: What is the average weight of cars each year?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT avg(Weight) , YEAR FROM CARS_DATA GROUP BY YEAR;"}, {"prompt": "Convert text to SQL: [Question]: What is the average weight and year for each year?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT avg(Weight) , YEAR FROM CARS_DATA GROUP BY YEAR;"}, {"prompt": "Convert text to SQL: [Question]: Which countries in europe have at least 3 car manufacturers?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent = T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId = T3.Country WHERE T2.Continent = 'europe' GROUP BY T1.CountryName HAVING count(*) >= 3;"}, {"prompt": "Convert text to SQL: [Question]: What are the names of all European countries with at least 3 manufacturers?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent = T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId = T3.Country WHERE T2.Continent = 'europe' GROUP BY T1.CountryName HAVING count(*) >= 3;"}, {"prompt": "Convert text to SQL: [Question]: What is the maximum horsepower and the make of the car models with 3 cylinders?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT T2.horsepower , T1.Make FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.cylinders = 3 ORDER BY T2.horsepower DESC LIMIT 1;"}, {"prompt": "Convert text to SQL: [Question]: What is the largest amount of horsepower for the models with 3 cylinders and what make is it?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT T2.horsepower , T1.Make FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.cylinders = 3 ORDER BY T2.horsepower DESC LIMIT 1;"}, {"prompt": "Convert text to SQL: [Question]: Which model saves the most gasoline? That is to say, have the maximum miles per gallon.\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.mpg DESC LIMIT 1;"}, {"prompt": "Convert text to SQL: [Question]: What is the car model with the highest mpg ?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "select t1.model from car_names as t1 join cars_data as t2 on t1.makeid = t2.id order by t2.mpg desc limit 1;"}, {"prompt": "Convert text to SQL: [Question]: What is the average horsepower of the cars before 1980?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT avg(horsepower) FROM CARS_DATA WHERE YEAR < 1980;"}, {"prompt": "Convert text to SQL: [Question]: What is the average horsepower for all cars produced before 1980 ?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "select avg(horsepower) from cars_data where year < 1980;"}, {"prompt": "Convert text to SQL: [Question]: What is the average edispl of the cars of model volvo?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT avg(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'volvo';"}, {"prompt": "Convert text to SQL: [Question]: What is the average edispl for all volvos?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT avg(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'volvo';"}, {"prompt": "Convert text to SQL: [Question]: What is the maximum accelerate for different number of cylinders?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT max(Accelerate) , Cylinders FROM CARS_DATA GROUP BY Cylinders;"}, {"prompt": "Convert text to SQL: [Question]: What is the maximum accelerate for all the different cylinders?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT max(Accelerate) , Cylinders FROM CARS_DATA GROUP BY Cylinders;"}, {"prompt": "Convert text to SQL: [Question]: Which model has the most version(make) of cars?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY count(*) DESC LIMIT 1;"}, {"prompt": "Convert text to SQL: [Question]: What model has the most different versions?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY count(*) DESC LIMIT 1;"}, {"prompt": "Convert text to SQL: [Question]: How many cars have more than 4 cylinders?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT count(*) FROM CARS_DATA WHERE Cylinders > 4;"}, {"prompt": "Convert text to SQL: [Question]: What is the number of cars with more than 4 cylinders?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT count(*) FROM CARS_DATA WHERE Cylinders > 4;"}, {"prompt": "Convert text to SQL: [Question]: how many cars were produced in 1980?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT count(*) FROM CARS_DATA WHERE YEAR = 1980;"}, {"prompt": "Convert text to SQL: [Question]: In 1980, how many cars were made?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT count(*) FROM CARS_DATA WHERE YEAR = 1980;"}, {"prompt": "Convert text to SQL: [Question]: How many car models were produced by the maker with full name American Motor Company?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company';"}, {"prompt": "Convert text to SQL: [Question]: What is the number of car models created by the car maker American Motor Company?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company';"}, {"prompt": "Convert text to SQL: [Question]: Which makers designed more than 3 car models? List full name and the id.\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT T1.FullName , T1.Id FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING count(*) > 3;"}, {"prompt": "Convert text to SQL: [Question]: What are the names and ids of all makers with more than 3 models?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT T1.FullName , T1.Id FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING count(*) > 3;"}, {"prompt": "Convert text to SQL: [Question]: Which distinctive models are produced by maker with the full name General Motors or weighing more than 3500?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model = T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker = T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId = T4.Id WHERE T3.FullName = 'General Motors' OR T4.weight > 3500;"}, {"prompt": "Convert text to SQL: [Question]: What are the different models created by either the car maker General Motors or weighed more than 3500?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model = T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker = T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId = T4.Id WHERE T3.FullName = 'General Motors' OR T4.weight > 3500;"}, {"prompt": "Convert text to SQL: [Question]: In which years cars were produced weighing no less than 3000 and no more than 4000 ?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "select distinct year from cars_data where weight between 3000 and 4000;"}, {"prompt": "Convert text to SQL: [Question]: What are the different years in which there were cars produced that weighed less than 4000 and also cars that weighted more than 3000 ?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "select distinct year from cars_data where weight between 3000 and 4000;"}, {"prompt": "Convert text to SQL: [Question]: What is the horsepower of the car with the largest accelerate?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1;"}, {"prompt": "Convert text to SQL: [Question]: What is the horsepower of the car with the greatest accelerate?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1;"}, {"prompt": "Convert text to SQL: [Question]: For model volvo, how many cylinders does the car with the least accelerate have?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'volvo' ORDER BY T1.accelerate ASC LIMIT 1;"}, {"prompt": "Convert text to SQL: [Question]: For a volvo model, how many cylinders does the version with least accelerate have?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'volvo' ORDER BY T1.accelerate ASC LIMIT 1;"}, {"prompt": "Convert text to SQL: [Question]: How many cars have a larger accelerate than the car with the largest horsepower?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > ( SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1 );"}, {"prompt": "Convert text to SQL: [Question]: What is the number of cars with a greater accelerate than the one with the most horsepower?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > ( SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1 );"}, {"prompt": "Convert text to SQL: [Question]: How many countries has more than 2 car makers ?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "select count(*) from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 2"}, {"prompt": "Convert text to SQL: [Question]: What is the number of countries with more than 2 car makers ?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "select count(*) from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 2"}, {"prompt": "Convert text to SQL: [Question]: How many cars has over 6 cylinders?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 6;"}, {"prompt": "Convert text to SQL: [Question]: What is the number of carsw ith over 6 cylinders?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 6;"}, {"prompt": "Convert text to SQL: [Question]: For the cars with 4 cylinders, which model has the largest horsepower?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Cylinders = 4 ORDER BY T2.horsepower DESC LIMIT 1;"}, {"prompt": "Convert text to SQL: [Question]: For all of the 4 cylinder cars, which model has the most horsepower?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Cylinders = 4 ORDER BY T2.horsepower DESC LIMIT 1;"}, {"prompt": "Convert text to SQL: [Question]: Among the cars with more than lowest horsepower, which ones do not have more than 3 cylinders? List the car makeid and make name.\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT T2.MakeId , T2.Make FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Horsepower > (SELECT min(Horsepower) FROM CARS_DATA) AND T1.Cylinders <= 3;"}, {"prompt": "Convert text to SQL: [Question]: Among the cars that do not have the minimum horsepower , what are the make ids and names of all those with less than 4 cylinders ?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "select t2.makeid , t2.make from cars_data as t1 join car_names as t2 on t1.id = t2.makeid where t1.horsepower > (select min(horsepower) from cars_data) and t1.cylinders < 4;"}, {"prompt": "Convert text to SQL: [Question]: What is the maximum miles per gallon of the car with 8 cylinders or produced before 1980 ?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "select max(mpg) from cars_data where cylinders = 8 or year < 1980"}, {"prompt": "Convert text to SQL: [Question]: What is the maximum mpg of the cars that had 8 cylinders or that were produced before 1980 ?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "select max(mpg) from cars_data where cylinders = 8 or year < 1980"}, {"prompt": "Convert text to SQL: [Question]: Which models are lighter than 3500 but not built by the 'Ford Motor Company'?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.Model = T2.Model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.Id JOIN CAR_MAKERS AS T4 ON T1.Maker = T4.Id WHERE T3.weight < 3500 AND T4.FullName != 'Ford Motor Company';"}, {"prompt": "Convert text to SQL: [Question]: What are the different models wthat are lighter than 3500 but were not built by the Ford Motor Company?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.Model = T2.Model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.Id JOIN CAR_MAKERS AS T4 ON T1.Maker = T4.Id WHERE T3.weight < 3500 AND T4.FullName != 'Ford Motor Company';"}, {"prompt": "Convert text to SQL: [Question]: What are the name of the countries where there is not a single car maker?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId = T2.Country;"}, {"prompt": "Convert text to SQL: [Question]: What are the names of the countries with no car makers?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId = T2.Country;"}, {"prompt": "Convert text to SQL: [Question]: Which are the car makers which produce at least 2 models and more than 3 car makers ? List the id and the maker .\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "select t1.id , t1.maker from car_makers as t1 join model_list as t2 on t1.id = t2.maker group by t1.id having count(*) >= 2 intersect select t1.id , t1.maker from car_makers as t1 join model_list as t2 on t1.id = t2.maker join car_names as t3 on t2.model = t3.model group by t1.id having count(*) > 3;"}, {"prompt": "Convert text to SQL: [Question]: What are the ids and makers of all car makers that produce at least 2 models and make more than 3 cars?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT T1.Id , T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING count(*) >= 2 INTERSECT SELECT T1.Id , T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model GROUP BY T1.Id HAVING count(*) > 3;"}, {"prompt": "Convert text to SQL: [Question]: What are the id and names of the countries which have more than 3 car makers or produce the 'fiat' model?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "SELECT T1.countryId , T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.countryId HAVING count(*) > 3 UNION SELECT T1.countryId , T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country JOIN MODEL_LIST AS T3 ON T2.Id = T3.Maker WHERE T3.Model = 'fiat';"}, {"prompt": "Convert text to SQL: [Question]: What are the ids and names of all countries that either have more than 3 car makers or produce fiat model ?\n[Database Information]:[Schema (values)]: continents : ContId , Continent | countries : CountryId , CountryName , Continent | car_makers : Id , Maker , FullName , Country | model_list : ModelId , Maker , Model | car_names : MakeId , Model , Make | cars_data : Id , MPG , Cylinders , Edispl , Horsepower , Weight , Accelerate , Year\n[Column names (type)]: cars_data : * (text) | continents : ContId (number) | continents : Continent (text) | countries : CountryId (number) | countries : CountryName (text) | countries : Continent (number) | car_makers : Id (number) | car_makers : Maker (text) | car_makers : FullName (text) | car_makers : Country (text) | model_list : ModelId (number) | model_list : Maker (number) | model_list : Model (text) | car_names : MakeId (number) | car_names : Model (text) | car_names : Make (text) | cars_data : Id (number) | cars_data : MPG (text) | cars_data : Cylinders (number) | cars_data : Edispl (number) | cars_data : Horsepower (text) | cars_data : Weight (number) | cars_data : Accelerate (number) | cars_data : Year (number)\n[Primary Keys]: continents : ContId | countries : CountryId | car_makers : Id | model_list : ModelId | car_names : MakeId | cars_data : Id\n[Foreign Keys]: countries : Continent equals continents : ContId | car_makers : Country equals countries : CountryId | model_list : Maker equals car_makers : Id | car_names : Model equals model_list : Model | cars_data : Id equals car_names : MakeId", "ground_truth": "select t1.countryid , t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 3 union select t1.countryid , t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country join model_list as t3 on t2.id = t3.maker where t3.model = 'fiat';"}, {"prompt": "Convert text to SQL: [Question]: Which country does Airline \"JetBlue Airways\" belong to?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT Country FROM AIRLINES WHERE Airline = \"JetBlue Airways\""}, {"prompt": "Convert text to SQL: [Question]: What country is Jetblue Airways affiliated with?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT Country FROM AIRLINES WHERE Airline = \"JetBlue Airways\""}, {"prompt": "Convert text to SQL: [Question]: What is the abbreviation of Airline \"JetBlue Airways\"?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT Abbreviation FROM AIRLINES WHERE Airline = \"JetBlue Airways\""}, {"prompt": "Convert text to SQL: [Question]: Which abbreviation corresponds to Jetblue Airways?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT Abbreviation FROM AIRLINES WHERE Airline = \"JetBlue Airways\""}, {"prompt": "Convert text to SQL: [Question]: List all airline names and their abbreviations in \"USA\".\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT Airline , Abbreviation FROM AIRLINES WHERE Country = \"USA\""}, {"prompt": "Convert text to SQL: [Question]: What are the airline names and abbreviations for airlines in the USA?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT Airline , Abbreviation FROM AIRLINES WHERE Country = \"USA\""}, {"prompt": "Convert text to SQL: [Question]: List the airport code and name in the city of Anthony.\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT AirportCode , AirportName FROM AIRPORTS WHERE city = \"Anthony\""}, {"prompt": "Convert text to SQL: [Question]: Give the airport code and airport name corresonding to the city Anthony.\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT AirportCode , AirportName FROM AIRPORTS WHERE city = \"Anthony\""}, {"prompt": "Convert text to SQL: [Question]: How many airlines do we have?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT count(*) FROM AIRLINES"}, {"prompt": "Convert text to SQL: [Question]: What is the total number of airlines?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT count(*) FROM AIRLINES"}, {"prompt": "Convert text to SQL: [Question]: How many airports do we have?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT count(*) FROM AIRPORTS"}, {"prompt": "Convert text to SQL: [Question]: Return the number of airports.\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT count(*) FROM AIRPORTS"}, {"prompt": "Convert text to SQL: [Question]: How many flights do we have?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT count(*) FROM FLIGHTS"}, {"prompt": "Convert text to SQL: [Question]: Return the number of flights.\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT count(*) FROM FLIGHTS"}, {"prompt": "Convert text to SQL: [Question]: Which airline has abbreviation 'UAL'?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT Airline FROM AIRLINES WHERE Abbreviation = \"UAL\""}, {"prompt": "Convert text to SQL: [Question]: Give the airline with abbreviation 'UAL'.\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT Airline FROM AIRLINES WHERE Abbreviation = \"UAL\""}, {"prompt": "Convert text to SQL: [Question]: How many airlines are from USA?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT count(*) FROM AIRLINES WHERE Country = \"USA\""}, {"prompt": "Convert text to SQL: [Question]: Return the number of airlines in the USA.\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT count(*) FROM AIRLINES WHERE Country = \"USA\""}, {"prompt": "Convert text to SQL: [Question]: Which city and country is the Alton airport at?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT City , Country FROM AIRPORTS WHERE AirportName = \"Alton\""}, {"prompt": "Convert text to SQL: [Question]: Give the city and country for the Alton airport.\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT City , Country FROM AIRPORTS WHERE AirportName = \"Alton\""}, {"prompt": "Convert text to SQL: [Question]: What is the airport name for airport 'AKO'?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT AirportName FROM AIRPORTS WHERE AirportCode = \"AKO\""}, {"prompt": "Convert text to SQL: [Question]: Return the name of the airport with code 'AKO'.\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT AirportName FROM AIRPORTS WHERE AirportCode = \"AKO\""}, {"prompt": "Convert text to SQL: [Question]: What are airport names at City 'Aberdeen'?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT AirportName FROM AIRPORTS WHERE City = \"Aberdeen\""}, {"prompt": "Convert text to SQL: [Question]: What are the names of airports in Aberdeen?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT AirportName FROM AIRPORTS WHERE City = \"Aberdeen\""}, {"prompt": "Convert text to SQL: [Question]: How many flights depart from 'APG'?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT count(*) FROM FLIGHTS WHERE SourceAirport = \"APG\""}, {"prompt": "Convert text to SQL: [Question]: Count the number of flights departing from 'APG'.\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT count(*) FROM FLIGHTS WHERE SourceAirport = \"APG\""}, {"prompt": "Convert text to SQL: [Question]: How many flights have destination ATO?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT count(*) FROM FLIGHTS WHERE DestAirport = \"ATO\""}, {"prompt": "Convert text to SQL: [Question]: Count the number of flights into ATO.\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT count(*) FROM FLIGHTS WHERE DestAirport = \"ATO\""}, {"prompt": "Convert text to SQL: [Question]: How many flights depart from City Aberdeen?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\""}, {"prompt": "Convert text to SQL: [Question]: Return the number of flights departing from Aberdeen.\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\""}, {"prompt": "Convert text to SQL: [Question]: How many flights arriving in Aberdeen city?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\""}, {"prompt": "Convert text to SQL: [Question]: Return the number of flights arriving in Aberdeen.\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\""}, {"prompt": "Convert text to SQL: [Question]: How many flights depart from City 'Aberdeen' and have destination City 'Ashley'?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City = \"Ashley\" AND T3.City = \"Aberdeen\""}, {"prompt": "Convert text to SQL: [Question]: How many flights fly from Aberdeen to Ashley?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City = \"Ashley\" AND T3.City = \"Aberdeen\""}, {"prompt": "Convert text to SQL: [Question]: How many flights does airline 'JetBlue Airways' have?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = \"JetBlue Airways\""}, {"prompt": "Convert text to SQL: [Question]: Give the number of Jetblue Airways flights.\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = \"JetBlue Airways\""}, {"prompt": "Convert text to SQL: [Question]: How many 'United Airlines' flights go to Airport 'ASY'?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.DestAirport = \"ASY\""}, {"prompt": "Convert text to SQL: [Question]: Count the number of United Airlines flights arriving in ASY Airport.\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.DestAirport = \"ASY\""}, {"prompt": "Convert text to SQL: [Question]: How many 'United Airlines' flights depart from Airport 'AHD'?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.SourceAirport = \"AHD\""}, {"prompt": "Convert text to SQL: [Question]: Return the number of United Airlines flights leaving from AHD Airport.\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.SourceAirport = \"AHD\""}, {"prompt": "Convert text to SQL: [Question]: How many United Airlines flights go to City 'Aberdeen'?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid = T1.Airline WHERE T2.City = \"Aberdeen\" AND T3.Airline = \"United Airlines\""}, {"prompt": "Convert text to SQL: [Question]: Count the number of United Airlines flights that arrive in Aberdeen.\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid = T1.Airline WHERE T2.City = \"Aberdeen\" AND T3.Airline = \"United Airlines\""}, {"prompt": "Convert text to SQL: [Question]: Which city has most number of arriving flights?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Which city has the most frequent destination airport?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Which city has most number of departing flights?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.SourceAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Which city is the most frequent source airport?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.SourceAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the code of airport that has the highest number of flights?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the airport code of the airport with the most flights?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the code of airport that has fewest number of flights?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Give the code of the airport with the least flights.\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Which airline has most number of flights?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What airline serves the most flights?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Find the abbreviation and country of the airline that has fewest number of flights?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT T1.Abbreviation , T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the abbreviation of the airilne has the fewest flights and what country is it in?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT T1.Abbreviation , T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What are airlines that have some flight departing from airport 'AHD'?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"AHD\""}, {"prompt": "Convert text to SQL: [Question]: Which airlines have a flight with source airport AHD?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"AHD\""}, {"prompt": "Convert text to SQL: [Question]: What are airlines that have flights arriving at airport 'AHD'?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = \"AHD\""}, {"prompt": "Convert text to SQL: [Question]: Which airlines have a flight with destination airport AHD?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = \"AHD\""}, {"prompt": "Convert text to SQL: [Question]: Find all airlines that have flights from both airports 'APG' and 'CVO'.\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"APG\" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"CVO\""}, {"prompt": "Convert text to SQL: [Question]: Which airlines have departing flights from both APG and CVO airports?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"APG\" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"CVO\""}, {"prompt": "Convert text to SQL: [Question]: Find all airlines that have flights from airport 'CVO' but not from 'APG'.\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"CVO\" EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"APG\""}, {"prompt": "Convert text to SQL: [Question]: Which airlines have departures from CVO but not from APG airports?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"CVO\" EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"APG\""}, {"prompt": "Convert text to SQL: [Question]: Find all airlines that have at least 10 flights.\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) > 10"}, {"prompt": "Convert text to SQL: [Question]: Which airlines have at least 10 flights?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) > 10"}, {"prompt": "Convert text to SQL: [Question]: Find all airlines that have fewer than 200 flights.\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) < 200"}, {"prompt": "Convert text to SQL: [Question]: Which airlines have less than 200 flights?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) < 200"}, {"prompt": "Convert text to SQL: [Question]: What are flight numbers of Airline \"United Airlines\"?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline = \"United Airlines\""}, {"prompt": "Convert text to SQL: [Question]: Which flight numbers correspond to United Airlines flights?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline = \"United Airlines\""}, {"prompt": "Convert text to SQL: [Question]: What are flight numbers of flights departing from Airport \"APG\"?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = \"APG\""}, {"prompt": "Convert text to SQL: [Question]: Give the flight numbers of flights leaving from APG.\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = \"APG\""}, {"prompt": "Convert text to SQL: [Question]: What are flight numbers of flights arriving at Airport \"APG\"?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = \"APG\""}, {"prompt": "Convert text to SQL: [Question]: Give the flight numbers of flights landing at APG.\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = \"APG\""}, {"prompt": "Convert text to SQL: [Question]: What are flight numbers of flights departing from City \"Aberdeen \"?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\""}, {"prompt": "Convert text to SQL: [Question]: Give the flight numbers of flights leaving from Aberdeen.\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\""}, {"prompt": "Convert text to SQL: [Question]: What are flight numbers of flights arriving at City \"Aberdeen\"?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\""}, {"prompt": "Convert text to SQL: [Question]: Give the flight numbers of flights arriving in Aberdeen.\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = \"Aberdeen\""}, {"prompt": "Convert text to SQL: [Question]: Find the number of flights landing in the city of Aberdeen or Abilene.\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT count(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = \"Aberdeen\" OR T2.city = \"Abilene\""}, {"prompt": "Convert text to SQL: [Question]: How many flights land in Aberdeen or Abilene?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT count(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = \"Aberdeen\" OR T2.city = \"Abilene\""}, {"prompt": "Convert text to SQL: [Question]: Find the name of airports which do not have any flight in and out.\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT AirportName FROM Airports WHERE AirportCode NOT IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights)"}, {"prompt": "Convert text to SQL: [Question]: Which airports do not have departing or arriving flights?\n[Database Information]:[Schema (values)]: airlines : uid , Airline , Abbreviation , Country | airports : City , AirportCode , AirportName , Country , CountryAbbrev | flights : Airline , FlightNo , SourceAirport , DestAirport\n[Column names (type)]: flights : * (text) | airlines : uid (number) | airlines : Airline (text) | airlines : Abbreviation (text) | airlines : Country (text) | airports : City (text) | airports : AirportCode (text) | airports : AirportName (text) | airports : Country (text) | airports : CountryAbbrev (text) | flights : Airline (number) | flights : FlightNo (number) | flights : SourceAirport (text) | flights : DestAirport (text)\n[Primary Keys]: airlines : uid | airports : AirportCode | flights : Airline\n[Foreign Keys]: flights : DestAirport equals airports : AirportCode | flights : SourceAirport equals airports : AirportCode", "ground_truth": "SELECT AirportName FROM Airports WHERE AirportCode NOT IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights)"}, {"prompt": "Convert text to SQL: [Question]: How many employees are there?\n[Database Information]:[Schema (values)]: employee : Employee_ID , Name , Age , City | shop : Shop_ID , Name , Location , District , Number_products , Manager_name | hiring : Shop_ID , Employee_ID , Start_from , Is_full_time | evaluation : Employee_ID , Year_awarded , Bonus\n[Column names (type)]: evaluation : * (text) | employee : Employee_ID (number) | employee : Name (text) | employee : Age (number) | employee : City (text) | shop : Shop_ID (number) | shop : Name (text) | shop : Location (text) | shop : District (text) | shop : Number_products (number) | shop : Manager_name (text) | hiring : Shop_ID (number) | hiring : Employee_ID (number) | hiring : Start_from (text) | hiring : Is_full_time (others) | evaluation : Employee_ID (text) | evaluation : Year_awarded (text) | evaluation : Bonus (number)\n[Primary Keys]: employee : Employee_ID | shop : Shop_ID | hiring : Employee_ID | evaluation : Employee_ID\n[Foreign Keys]: hiring : Employee_ID equals employee : Employee_ID | hiring : Shop_ID equals shop : Shop_ID | evaluation : Employee_ID equals employee : Employee_ID", "ground_truth": "SELECT count(*) FROM employee"}, {"prompt": "Convert text to SQL: [Question]: Count the number of employees\n[Database Information]:[Schema (values)]: employee : Employee_ID , Name , Age , City | shop : Shop_ID , Name , Location , District , Number_products , Manager_name | hiring : Shop_ID , Employee_ID , Start_from , Is_full_time | evaluation : Employee_ID , Year_awarded , Bonus\n[Column names (type)]: evaluation : * (text) | employee : Employee_ID (number) | employee : Name (text) | employee : Age (number) | employee : City (text) | shop : Shop_ID (number) | shop : Name (text) | shop : Location (text) | shop : District (text) | shop : Number_products (number) | shop : Manager_name (text) | hiring : Shop_ID (number) | hiring : Employee_ID (number) | hiring : Start_from (text) | hiring : Is_full_time (others) | evaluation : Employee_ID (text) | evaluation : Year_awarded (text) | evaluation : Bonus (number)\n[Primary Keys]: employee : Employee_ID | shop : Shop_ID | hiring : Employee_ID | evaluation : Employee_ID\n[Foreign Keys]: hiring : Employee_ID equals employee : Employee_ID | hiring : Shop_ID equals shop : Shop_ID | evaluation : Employee_ID equals employee : Employee_ID", "ground_truth": "SELECT count(*) FROM employee"}, {"prompt": "Convert text to SQL: [Question]: Sort employee names by their age in ascending order.\n[Database Information]:[Schema (values)]: employee : Employee_ID , Name , Age , City | shop : Shop_ID , Name , Location , District , Number_products , Manager_name | hiring : Shop_ID , Employee_ID , Start_from , Is_full_time | evaluation : Employee_ID , Year_awarded , Bonus\n[Column names (type)]: evaluation : * (text) | employee : Employee_ID (number) | employee : Name (text) | employee : Age (number) | employee : City (text) | shop : Shop_ID (number) | shop : Name (text) | shop : Location (text) | shop : District (text) | shop : Number_products (number) | shop : Manager_name (text) | hiring : Shop_ID (number) | hiring : Employee_ID (number) | hiring : Start_from (text) | hiring : Is_full_time (others) | evaluation : Employee_ID (text) | evaluation : Year_awarded (text) | evaluation : Bonus (number)\n[Primary Keys]: employee : Employee_ID | shop : Shop_ID | hiring : Employee_ID | evaluation : Employee_ID\n[Foreign Keys]: hiring : Employee_ID equals employee : Employee_ID | hiring : Shop_ID equals shop : Shop_ID | evaluation : Employee_ID equals employee : Employee_ID", "ground_truth": "SELECT name FROM employee ORDER BY age"}, {"prompt": "Convert text to SQL: [Question]: List the names of employees and sort in ascending order of age.\n[Database Information]:[Schema (values)]: employee : Employee_ID , Name , Age , City | shop : Shop_ID , Name , Location , District , Number_products , Manager_name | hiring : Shop_ID , Employee_ID , Start_from , Is_full_time | evaluation : Employee_ID , Year_awarded , Bonus\n[Column names (type)]: evaluation : * (text) | employee : Employee_ID (number) | employee : Name (text) | employee : Age (number) | employee : City (text) | shop : Shop_ID (number) | shop : Name (text) | shop : Location (text) | shop : District (text) | shop : Number_products (number) | shop : Manager_name (text) | hiring : Shop_ID (number) | hiring : Employee_ID (number) | hiring : Start_from (text) | hiring : Is_full_time (others) | evaluation : Employee_ID (text) | evaluation : Year_awarded (text) | evaluation : Bonus (number)\n[Primary Keys]: employee : Employee_ID | shop : Shop_ID | hiring : Employee_ID | evaluation : Employee_ID\n[Foreign Keys]: hiring : Employee_ID equals employee : Employee_ID | hiring : Shop_ID equals shop : Shop_ID | evaluation : Employee_ID equals employee : Employee_ID", "ground_truth": "SELECT name FROM employee ORDER BY age"}, {"prompt": "Convert text to SQL: [Question]: What is the number of employees from each city?\n[Database Information]:[Schema (values)]: employee : Employee_ID , Name , Age , City | shop : Shop_ID , Name , Location , District , Number_products , Manager_name | hiring : Shop_ID , Employee_ID , Start_from , Is_full_time | evaluation : Employee_ID , Year_awarded , Bonus\n[Column names (type)]: evaluation : * (text) | employee : Employee_ID (number) | employee : Name (text) | employee : Age (number) | employee : City (text) | shop : Shop_ID (number) | shop : Name (text) | shop : Location (text) | shop : District (text) | shop : Number_products (number) | shop : Manager_name (text) | hiring : Shop_ID (number) | hiring : Employee_ID (number) | hiring : Start_from (text) | hiring : Is_full_time (others) | evaluation : Employee_ID (text) | evaluation : Year_awarded (text) | evaluation : Bonus (number)\n[Primary Keys]: employee : Employee_ID | shop : Shop_ID | hiring : Employee_ID | evaluation : Employee_ID\n[Foreign Keys]: hiring : Employee_ID equals employee : Employee_ID | hiring : Shop_ID equals shop : Shop_ID | evaluation : Employee_ID equals employee : Employee_ID", "ground_truth": "SELECT count(*) , city FROM employee GROUP BY city"}, {"prompt": "Convert text to SQL: [Question]: Count the number of employees for each city.\n[Database Information]:[Schema (values)]: employee : Employee_ID , Name , Age , City | shop : Shop_ID , Name , Location , District , Number_products , Manager_name | hiring : Shop_ID , Employee_ID , Start_from , Is_full_time | evaluation : Employee_ID , Year_awarded , Bonus\n[Column names (type)]: evaluation : * (text) | employee : Employee_ID (number) | employee : Name (text) | employee : Age (number) | employee : City (text) | shop : Shop_ID (number) | shop : Name (text) | shop : Location (text) | shop : District (text) | shop : Number_products (number) | shop : Manager_name (text) | hiring : Shop_ID (number) | hiring : Employee_ID (number) | hiring : Start_from (text) | hiring : Is_full_time (others) | evaluation : Employee_ID (text) | evaluation : Year_awarded (text) | evaluation : Bonus (number)\n[Primary Keys]: employee : Employee_ID | shop : Shop_ID | hiring : Employee_ID | evaluation : Employee_ID\n[Foreign Keys]: hiring : Employee_ID equals employee : Employee_ID | hiring : Shop_ID equals shop : Shop_ID | evaluation : Employee_ID equals employee : Employee_ID", "ground_truth": "SELECT count(*) , city FROM employee GROUP BY city"}, {"prompt": "Convert text to SQL: [Question]: Which cities do more than one employee under age 30 come from?\n[Database Information]:[Schema (values)]: employee : Employee_ID , Name , Age , City | shop : Shop_ID , Name , Location , District , Number_products , Manager_name | hiring : Shop_ID , Employee_ID , Start_from , Is_full_time | evaluation : Employee_ID , Year_awarded , Bonus\n[Column names (type)]: evaluation : * (text) | employee : Employee_ID (number) | employee : Name (text) | employee : Age (number) | employee : City (text) | shop : Shop_ID (number) | shop : Name (text) | shop : Location (text) | shop : District (text) | shop : Number_products (number) | shop : Manager_name (text) | hiring : Shop_ID (number) | hiring : Employee_ID (number) | hiring : Start_from (text) | hiring : Is_full_time (others) | evaluation : Employee_ID (text) | evaluation : Year_awarded (text) | evaluation : Bonus (number)\n[Primary Keys]: employee : Employee_ID | shop : Shop_ID | hiring : Employee_ID | evaluation : Employee_ID\n[Foreign Keys]: hiring : Employee_ID equals employee : Employee_ID | hiring : Shop_ID equals shop : Shop_ID | evaluation : Employee_ID equals employee : Employee_ID", "ground_truth": "SELECT city FROM employee WHERE age < 30 GROUP BY city HAVING count(*) > 1"}, {"prompt": "Convert text to SQL: [Question]: Find the cities that have more than one employee under age 30.\n[Database Information]:[Schema (values)]: employee : Employee_ID , Name , Age , City | shop : Shop_ID , Name , Location , District , Number_products , Manager_name | hiring : Shop_ID , Employee_ID , Start_from , Is_full_time | evaluation : Employee_ID , Year_awarded , Bonus\n[Column names (type)]: evaluation : * (text) | employee : Employee_ID (number) | employee : Name (text) | employee : Age (number) | employee : City (text) | shop : Shop_ID (number) | shop : Name (text) | shop : Location (text) | shop : District (text) | shop : Number_products (number) | shop : Manager_name (text) | hiring : Shop_ID (number) | hiring : Employee_ID (number) | hiring : Start_from (text) | hiring : Is_full_time (others) | evaluation : Employee_ID (text) | evaluation : Year_awarded (text) | evaluation : Bonus (number)\n[Primary Keys]: employee : Employee_ID | shop : Shop_ID | hiring : Employee_ID | evaluation : Employee_ID\n[Foreign Keys]: hiring : Employee_ID equals employee : Employee_ID | hiring : Shop_ID equals shop : Shop_ID | evaluation : Employee_ID equals employee : Employee_ID", "ground_truth": "SELECT city FROM employee WHERE age < 30 GROUP BY city HAVING count(*) > 1"}, {"prompt": "Convert text to SQL: [Question]: Find the number of shops in each location.\n[Database Information]:[Schema (values)]: employee : Employee_ID , Name , Age , City | shop : Shop_ID , Name , Location , District , Number_products , Manager_name | hiring : Shop_ID , Employee_ID , Start_from , Is_full_time | evaluation : Employee_ID , Year_awarded , Bonus\n[Column names (type)]: evaluation : * (text) | employee : Employee_ID (number) | employee : Name (text) | employee : Age (number) | employee : City (text) | shop : Shop_ID (number) | shop : Name (text) | shop : Location (text) | shop : District (text) | shop : Number_products (number) | shop : Manager_name (text) | hiring : Shop_ID (number) | hiring : Employee_ID (number) | hiring : Start_from (text) | hiring : Is_full_time (others) | evaluation : Employee_ID (text) | evaluation : Year_awarded (text) | evaluation : Bonus (number)\n[Primary Keys]: employee : Employee_ID | shop : Shop_ID | hiring : Employee_ID | evaluation : Employee_ID\n[Foreign Keys]: hiring : Employee_ID equals employee : Employee_ID | hiring : Shop_ID equals shop : Shop_ID | evaluation : Employee_ID equals employee : Employee_ID", "ground_truth": "SELECT count(*) , LOCATION FROM shop GROUP BY LOCATION"}, {"prompt": "Convert text to SQL: [Question]: How many shops are there in each location?\n[Database Information]:[Schema (values)]: employee : Employee_ID , Name , Age , City | shop : Shop_ID , Name , Location , District , Number_products , Manager_name | hiring : Shop_ID , Employee_ID , Start_from , Is_full_time | evaluation : Employee_ID , Year_awarded , Bonus\n[Column names (type)]: evaluation : * (text) | employee : Employee_ID (number) | employee : Name (text) | employee : Age (number) | employee : City (text) | shop : Shop_ID (number) | shop : Name (text) | shop : Location (text) | shop : District (text) | shop : Number_products (number) | shop : Manager_name (text) | hiring : Shop_ID (number) | hiring : Employee_ID (number) | hiring : Start_from (text) | hiring : Is_full_time (others) | evaluation : Employee_ID (text) | evaluation : Year_awarded (text) | evaluation : Bonus (number)\n[Primary Keys]: employee : Employee_ID | shop : Shop_ID | hiring : Employee_ID | evaluation : Employee_ID\n[Foreign Keys]: hiring : Employee_ID equals employee : Employee_ID | hiring : Shop_ID equals shop : Shop_ID | evaluation : Employee_ID equals employee : Employee_ID", "ground_truth": "SELECT count(*) , LOCATION FROM shop GROUP BY LOCATION"}, {"prompt": "Convert text to SQL: [Question]: Find the manager name and district of the shop whose number of products is the largest.\n[Database Information]:[Schema (values)]: employee : Employee_ID , Name , Age , City | shop : Shop_ID , Name , Location , District , Number_products , Manager_name | hiring : Shop_ID , Employee_ID , Start_from , Is_full_time | evaluation : Employee_ID , Year_awarded , Bonus\n[Column names (type)]: evaluation : * (text) | employee : Employee_ID (number) | employee : Name (text) | employee : Age (number) | employee : City (text) | shop : Shop_ID (number) | shop : Name (text) | shop : Location (text) | shop : District (text) | shop : Number_products (number) | shop : Manager_name (text) | hiring : Shop_ID (number) | hiring : Employee_ID (number) | hiring : Start_from (text) | hiring : Is_full_time (others) | evaluation : Employee_ID (text) | evaluation : Year_awarded (text) | evaluation : Bonus (number)\n[Primary Keys]: employee : Employee_ID | shop : Shop_ID | hiring : Employee_ID | evaluation : Employee_ID\n[Foreign Keys]: hiring : Employee_ID equals employee : Employee_ID | hiring : Shop_ID equals shop : Shop_ID | evaluation : Employee_ID equals employee : Employee_ID", "ground_truth": "SELECT manager_name , district FROM shop ORDER BY number_products DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What are the manager name and district of the shop that sells the largest number of products?\n[Database Information]:[Schema (values)]: employee : Employee_ID , Name , Age , City | shop : Shop_ID , Name , Location , District , Number_products , Manager_name | hiring : Shop_ID , Employee_ID , Start_from , Is_full_time | evaluation : Employee_ID , Year_awarded , Bonus\n[Column names (type)]: evaluation : * (text) | employee : Employee_ID (number) | employee : Name (text) | employee : Age (number) | employee : City (text) | shop : Shop_ID (number) | shop : Name (text) | shop : Location (text) | shop : District (text) | shop : Number_products (number) | shop : Manager_name (text) | hiring : Shop_ID (number) | hiring : Employee_ID (number) | hiring : Start_from (text) | hiring : Is_full_time (others) | evaluation : Employee_ID (text) | evaluation : Year_awarded (text) | evaluation : Bonus (number)\n[Primary Keys]: employee : Employee_ID | shop : Shop_ID | hiring : Employee_ID | evaluation : Employee_ID\n[Foreign Keys]: hiring : Employee_ID equals employee : Employee_ID | hiring : Shop_ID equals shop : Shop_ID | evaluation : Employee_ID equals employee : Employee_ID", "ground_truth": "SELECT manager_name , district FROM shop ORDER BY number_products DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: find the minimum and maximum number of products of all stores.\n[Database Information]:[Schema (values)]: employee : Employee_ID , Name , Age , City | shop : Shop_ID , Name , Location , District , Number_products , Manager_name | hiring : Shop_ID , Employee_ID , Start_from , Is_full_time | evaluation : Employee_ID , Year_awarded , Bonus\n[Column names (type)]: evaluation : * (text) | employee : Employee_ID (number) | employee : Name (text) | employee : Age (number) | employee : City (text) | shop : Shop_ID (number) | shop : Name (text) | shop : Location (text) | shop : District (text) | shop : Number_products (number) | shop : Manager_name (text) | hiring : Shop_ID (number) | hiring : Employee_ID (number) | hiring : Start_from (text) | hiring : Is_full_time (others) | evaluation : Employee_ID (text) | evaluation : Year_awarded (text) | evaluation : Bonus (number)\n[Primary Keys]: employee : Employee_ID | shop : Shop_ID | hiring : Employee_ID | evaluation : Employee_ID\n[Foreign Keys]: hiring : Employee_ID equals employee : Employee_ID | hiring : Shop_ID equals shop : Shop_ID | evaluation : Employee_ID equals employee : Employee_ID", "ground_truth": "SELECT min(Number_products) , max(Number_products) FROM shop"}, {"prompt": "Convert text to SQL: [Question]: What are the minimum and maximum number of products across all the shops?\n[Database Information]:[Schema (values)]: employee : Employee_ID , Name , Age , City | shop : Shop_ID , Name , Location , District , Number_products , Manager_name | hiring : Shop_ID , Employee_ID , Start_from , Is_full_time | evaluation : Employee_ID , Year_awarded , Bonus\n[Column names (type)]: evaluation : * (text) | employee : Employee_ID (number) | employee : Name (text) | employee : Age (number) | employee : City (text) | shop : Shop_ID (number) | shop : Name (text) | shop : Location (text) | shop : District (text) | shop : Number_products (number) | shop : Manager_name (text) | hiring : Shop_ID (number) | hiring : Employee_ID (number) | hiring : Start_from (text) | hiring : Is_full_time (others) | evaluation : Employee_ID (text) | evaluation : Year_awarded (text) | evaluation : Bonus (number)\n[Primary Keys]: employee : Employee_ID | shop : Shop_ID | hiring : Employee_ID | evaluation : Employee_ID\n[Foreign Keys]: hiring : Employee_ID equals employee : Employee_ID | hiring : Shop_ID equals shop : Shop_ID | evaluation : Employee_ID equals employee : Employee_ID", "ground_truth": "SELECT min(Number_products) , max(Number_products) FROM shop"}, {"prompt": "Convert text to SQL: [Question]: Return the name, location and district of all shops in descending order of number of products.\n[Database Information]:[Schema (values)]: employee : Employee_ID , Name , Age , City | shop : Shop_ID , Name , Location , District , Number_products , Manager_name | hiring : Shop_ID , Employee_ID , Start_from , Is_full_time | evaluation : Employee_ID , Year_awarded , Bonus\n[Column names (type)]: evaluation : * (text) | employee : Employee_ID (number) | employee : Name (text) | employee : Age (number) | employee : City (text) | shop : Shop_ID (number) | shop : Name (text) | shop : Location (text) | shop : District (text) | shop : Number_products (number) | shop : Manager_name (text) | hiring : Shop_ID (number) | hiring : Employee_ID (number) | hiring : Start_from (text) | hiring : Is_full_time (others) | evaluation : Employee_ID (text) | evaluation : Year_awarded (text) | evaluation : Bonus (number)\n[Primary Keys]: employee : Employee_ID | shop : Shop_ID | hiring : Employee_ID | evaluation : Employee_ID\n[Foreign Keys]: hiring : Employee_ID equals employee : Employee_ID | hiring : Shop_ID equals shop : Shop_ID | evaluation : Employee_ID equals employee : Employee_ID", "ground_truth": "SELECT name , LOCATION , district FROM shop ORDER BY number_products DESC"}, {"prompt": "Convert text to SQL: [Question]: Sort all the shops by number products in descending order, and return the name, location and district of each shop.\n[Database Information]:[Schema (values)]: employee : Employee_ID , Name , Age , City | shop : Shop_ID , Name , Location , District , Number_products , Manager_name | hiring : Shop_ID , Employee_ID , Start_from , Is_full_time | evaluation : Employee_ID , Year_awarded , Bonus\n[Column names (type)]: evaluation : * (text) | employee : Employee_ID (number) | employee : Name (text) | employee : Age (number) | employee : City (text) | shop : Shop_ID (number) | shop : Name (text) | shop : Location (text) | shop : District (text) | shop : Number_products (number) | shop : Manager_name (text) | hiring : Shop_ID (number) | hiring : Employee_ID (number) | hiring : Start_from (text) | hiring : Is_full_time (others) | evaluation : Employee_ID (text) | evaluation : Year_awarded (text) | evaluation : Bonus (number)\n[Primary Keys]: employee : Employee_ID | shop : Shop_ID | hiring : Employee_ID | evaluation : Employee_ID\n[Foreign Keys]: hiring : Employee_ID equals employee : Employee_ID | hiring : Shop_ID equals shop : Shop_ID | evaluation : Employee_ID equals employee : Employee_ID", "ground_truth": "SELECT name , LOCATION , district FROM shop ORDER BY number_products DESC"}, {"prompt": "Convert text to SQL: [Question]: Find the names of stores whose number products is more than the average number of products.\n[Database Information]:[Schema (values)]: employee : Employee_ID , Name , Age , City | shop : Shop_ID , Name , Location , District , Number_products , Manager_name | hiring : Shop_ID , Employee_ID , Start_from , Is_full_time | evaluation : Employee_ID , Year_awarded , Bonus\n[Column names (type)]: evaluation : * (text) | employee : Employee_ID (number) | employee : Name (text) | employee : Age (number) | employee : City (text) | shop : Shop_ID (number) | shop : Name (text) | shop : Location (text) | shop : District (text) | shop : Number_products (number) | shop : Manager_name (text) | hiring : Shop_ID (number) | hiring : Employee_ID (number) | hiring : Start_from (text) | hiring : Is_full_time (others) | evaluation : Employee_ID (text) | evaluation : Year_awarded (text) | evaluation : Bonus (number)\n[Primary Keys]: employee : Employee_ID | shop : Shop_ID | hiring : Employee_ID | evaluation : Employee_ID\n[Foreign Keys]: hiring : Employee_ID equals employee : Employee_ID | hiring : Shop_ID equals shop : Shop_ID | evaluation : Employee_ID equals employee : Employee_ID", "ground_truth": "SELECT name FROM shop WHERE number_products > (SELECT avg(number_products) FROM shop)"}, {"prompt": "Convert text to SQL: [Question]: Which shops' number products is above the average? Give me the shop names.\n[Database Information]:[Schema (values)]: employee : Employee_ID , Name , Age , City | shop : Shop_ID , Name , Location , District , Number_products , Manager_name | hiring : Shop_ID , Employee_ID , Start_from , Is_full_time | evaluation : Employee_ID , Year_awarded , Bonus\n[Column names (type)]: evaluation : * (text) | employee : Employee_ID (number) | employee : Name (text) | employee : Age (number) | employee : City (text) | shop : Shop_ID (number) | shop : Name (text) | shop : Location (text) | shop : District (text) | shop : Number_products (number) | shop : Manager_name (text) | hiring : Shop_ID (number) | hiring : Employee_ID (number) | hiring : Start_from (text) | hiring : Is_full_time (others) | evaluation : Employee_ID (text) | evaluation : Year_awarded (text) | evaluation : Bonus (number)\n[Primary Keys]: employee : Employee_ID | shop : Shop_ID | hiring : Employee_ID | evaluation : Employee_ID\n[Foreign Keys]: hiring : Employee_ID equals employee : Employee_ID | hiring : Shop_ID equals shop : Shop_ID | evaluation : Employee_ID equals employee : Employee_ID", "ground_truth": "SELECT name FROM shop WHERE number_products > (SELECT avg(number_products) FROM shop)"}, {"prompt": "Convert text to SQL: [Question]: find the name of employee who was awarded the most times in the evaluation.\n[Database Information]:[Schema (values)]: employee : Employee_ID , Name , Age , City | shop : Shop_ID , Name , Location , District , Number_products , Manager_name | hiring : Shop_ID , Employee_ID , Start_from , Is_full_time | evaluation : Employee_ID , Year_awarded , Bonus\n[Column names (type)]: evaluation : * (text) | employee : Employee_ID (number) | employee : Name (text) | employee : Age (number) | employee : City (text) | shop : Shop_ID (number) | shop : Name (text) | shop : Location (text) | shop : District (text) | shop : Number_products (number) | shop : Manager_name (text) | hiring : Shop_ID (number) | hiring : Employee_ID (number) | hiring : Start_from (text) | hiring : Is_full_time (others) | evaluation : Employee_ID (text) | evaluation : Year_awarded (text) | evaluation : Bonus (number)\n[Primary Keys]: employee : Employee_ID | shop : Shop_ID | hiring : Employee_ID | evaluation : Employee_ID\n[Foreign Keys]: hiring : Employee_ID equals employee : Employee_ID | hiring : Shop_ID equals shop : Shop_ID | evaluation : Employee_ID equals employee : Employee_ID", "ground_truth": "SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID GROUP BY t2.Employee_ID ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Which employee received the most awards in evaluations? Give me the employee name.\n[Database Information]:[Schema (values)]: employee : Employee_ID , Name , Age , City | shop : Shop_ID , Name , Location , District , Number_products , Manager_name | hiring : Shop_ID , Employee_ID , Start_from , Is_full_time | evaluation : Employee_ID , Year_awarded , Bonus\n[Column names (type)]: evaluation : * (text) | employee : Employee_ID (number) | employee : Name (text) | employee : Age (number) | employee : City (text) | shop : Shop_ID (number) | shop : Name (text) | shop : Location (text) | shop : District (text) | shop : Number_products (number) | shop : Manager_name (text) | hiring : Shop_ID (number) | hiring : Employee_ID (number) | hiring : Start_from (text) | hiring : Is_full_time (others) | evaluation : Employee_ID (text) | evaluation : Year_awarded (text) | evaluation : Bonus (number)\n[Primary Keys]: employee : Employee_ID | shop : Shop_ID | hiring : Employee_ID | evaluation : Employee_ID\n[Foreign Keys]: hiring : Employee_ID equals employee : Employee_ID | hiring : Shop_ID equals shop : Shop_ID | evaluation : Employee_ID equals employee : Employee_ID", "ground_truth": "SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID GROUP BY t2.Employee_ID ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Find the name of the employee who got the highest one time bonus.\n[Database Information]:[Schema (values)]: employee : Employee_ID , Name , Age , City | shop : Shop_ID , Name , Location , District , Number_products , Manager_name | hiring : Shop_ID , Employee_ID , Start_from , Is_full_time | evaluation : Employee_ID , Year_awarded , Bonus\n[Column names (type)]: evaluation : * (text) | employee : Employee_ID (number) | employee : Name (text) | employee : Age (number) | employee : City (text) | shop : Shop_ID (number) | shop : Name (text) | shop : Location (text) | shop : District (text) | shop : Number_products (number) | shop : Manager_name (text) | hiring : Shop_ID (number) | hiring : Employee_ID (number) | hiring : Start_from (text) | hiring : Is_full_time (others) | evaluation : Employee_ID (text) | evaluation : Year_awarded (text) | evaluation : Bonus (number)\n[Primary Keys]: employee : Employee_ID | shop : Shop_ID | hiring : Employee_ID | evaluation : Employee_ID\n[Foreign Keys]: hiring : Employee_ID equals employee : Employee_ID | hiring : Shop_ID equals shop : Shop_ID | evaluation : Employee_ID equals employee : Employee_ID", "ground_truth": "SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID ORDER BY t2.bonus DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Which employee received the biggest bonus? Give me the employee name.\n[Database Information]:[Schema (values)]: employee : Employee_ID , Name , Age , City | shop : Shop_ID , Name , Location , District , Number_products , Manager_name | hiring : Shop_ID , Employee_ID , Start_from , Is_full_time | evaluation : Employee_ID , Year_awarded , Bonus\n[Column names (type)]: evaluation : * (text) | employee : Employee_ID (number) | employee : Name (text) | employee : Age (number) | employee : City (text) | shop : Shop_ID (number) | shop : Name (text) | shop : Location (text) | shop : District (text) | shop : Number_products (number) | shop : Manager_name (text) | hiring : Shop_ID (number) | hiring : Employee_ID (number) | hiring : Start_from (text) | hiring : Is_full_time (others) | evaluation : Employee_ID (text) | evaluation : Year_awarded (text) | evaluation : Bonus (number)\n[Primary Keys]: employee : Employee_ID | shop : Shop_ID | hiring : Employee_ID | evaluation : Employee_ID\n[Foreign Keys]: hiring : Employee_ID equals employee : Employee_ID | hiring : Shop_ID equals shop : Shop_ID | evaluation : Employee_ID equals employee : Employee_ID", "ground_truth": "SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID ORDER BY t2.bonus DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Find the names of employees who never won any award in the evaluation.\n[Database Information]:[Schema (values)]: employee : Employee_ID , Name , Age , City | shop : Shop_ID , Name , Location , District , Number_products , Manager_name | hiring : Shop_ID , Employee_ID , Start_from , Is_full_time | evaluation : Employee_ID , Year_awarded , Bonus\n[Column names (type)]: evaluation : * (text) | employee : Employee_ID (number) | employee : Name (text) | employee : Age (number) | employee : City (text) | shop : Shop_ID (number) | shop : Name (text) | shop : Location (text) | shop : District (text) | shop : Number_products (number) | shop : Manager_name (text) | hiring : Shop_ID (number) | hiring : Employee_ID (number) | hiring : Start_from (text) | hiring : Is_full_time (others) | evaluation : Employee_ID (text) | evaluation : Year_awarded (text) | evaluation : Bonus (number)\n[Primary Keys]: employee : Employee_ID | shop : Shop_ID | hiring : Employee_ID | evaluation : Employee_ID\n[Foreign Keys]: hiring : Employee_ID equals employee : Employee_ID | hiring : Shop_ID equals shop : Shop_ID | evaluation : Employee_ID equals employee : Employee_ID", "ground_truth": "SELECT name FROM employee WHERE Employee_ID NOT IN (SELECT Employee_ID FROM evaluation)"}, {"prompt": "Convert text to SQL: [Question]: What are the names of the employees who never received any evaluation?\n[Database Information]:[Schema (values)]: employee : Employee_ID , Name , Age , City | shop : Shop_ID , Name , Location , District , Number_products , Manager_name | hiring : Shop_ID , Employee_ID , Start_from , Is_full_time | evaluation : Employee_ID , Year_awarded , Bonus\n[Column names (type)]: evaluation : * (text) | employee : Employee_ID (number) | employee : Name (text) | employee : Age (number) | employee : City (text) | shop : Shop_ID (number) | shop : Name (text) | shop : Location (text) | shop : District (text) | shop : Number_products (number) | shop : Manager_name (text) | hiring : Shop_ID (number) | hiring : Employee_ID (number) | hiring : Start_from (text) | hiring : Is_full_time (others) | evaluation : Employee_ID (text) | evaluation : Year_awarded (text) | evaluation : Bonus (number)\n[Primary Keys]: employee : Employee_ID | shop : Shop_ID | hiring : Employee_ID | evaluation : Employee_ID\n[Foreign Keys]: hiring : Employee_ID equals employee : Employee_ID | hiring : Shop_ID equals shop : Shop_ID | evaluation : Employee_ID equals employee : Employee_ID", "ground_truth": "SELECT name FROM employee WHERE Employee_ID NOT IN (SELECT Employee_ID FROM evaluation)"}, {"prompt": "Convert text to SQL: [Question]: What is the name of the shop that is hiring the largest number of employees?\n[Database Information]:[Schema (values)]: employee : Employee_ID , Name , Age , City | shop : Shop_ID , Name , Location , District , Number_products , Manager_name | hiring : Shop_ID , Employee_ID , Start_from , Is_full_time | evaluation : Employee_ID , Year_awarded , Bonus\n[Column names (type)]: evaluation : * (text) | employee : Employee_ID (number) | employee : Name (text) | employee : Age (number) | employee : City (text) | shop : Shop_ID (number) | shop : Name (text) | shop : Location (text) | shop : District (text) | shop : Number_products (number) | shop : Manager_name (text) | hiring : Shop_ID (number) | hiring : Employee_ID (number) | hiring : Start_from (text) | hiring : Is_full_time (others) | evaluation : Employee_ID (text) | evaluation : Year_awarded (text) | evaluation : Bonus (number)\n[Primary Keys]: employee : Employee_ID | shop : Shop_ID | hiring : Employee_ID | evaluation : Employee_ID\n[Foreign Keys]: hiring : Employee_ID equals employee : Employee_ID | hiring : Shop_ID equals shop : Shop_ID | evaluation : Employee_ID equals employee : Employee_ID", "ground_truth": "SELECT t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t1.shop_id ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Which shop has the most employees? Give me the shop name.\n[Database Information]:[Schema (values)]: employee : Employee_ID , Name , Age , City | shop : Shop_ID , Name , Location , District , Number_products , Manager_name | hiring : Shop_ID , Employee_ID , Start_from , Is_full_time | evaluation : Employee_ID , Year_awarded , Bonus\n[Column names (type)]: evaluation : * (text) | employee : Employee_ID (number) | employee : Name (text) | employee : Age (number) | employee : City (text) | shop : Shop_ID (number) | shop : Name (text) | shop : Location (text) | shop : District (text) | shop : Number_products (number) | shop : Manager_name (text) | hiring : Shop_ID (number) | hiring : Employee_ID (number) | hiring : Start_from (text) | hiring : Is_full_time (others) | evaluation : Employee_ID (text) | evaluation : Year_awarded (text) | evaluation : Bonus (number)\n[Primary Keys]: employee : Employee_ID | shop : Shop_ID | hiring : Employee_ID | evaluation : Employee_ID\n[Foreign Keys]: hiring : Employee_ID equals employee : Employee_ID | hiring : Shop_ID equals shop : Shop_ID | evaluation : Employee_ID equals employee : Employee_ID", "ground_truth": "SELECT t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t1.shop_id ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Find the name of the shops that do not hire any employee.\n[Database Information]:[Schema (values)]: employee : Employee_ID , Name , Age , City | shop : Shop_ID , Name , Location , District , Number_products , Manager_name | hiring : Shop_ID , Employee_ID , Start_from , Is_full_time | evaluation : Employee_ID , Year_awarded , Bonus\n[Column names (type)]: evaluation : * (text) | employee : Employee_ID (number) | employee : Name (text) | employee : Age (number) | employee : City (text) | shop : Shop_ID (number) | shop : Name (text) | shop : Location (text) | shop : District (text) | shop : Number_products (number) | shop : Manager_name (text) | hiring : Shop_ID (number) | hiring : Employee_ID (number) | hiring : Start_from (text) | hiring : Is_full_time (others) | evaluation : Employee_ID (text) | evaluation : Year_awarded (text) | evaluation : Bonus (number)\n[Primary Keys]: employee : Employee_ID | shop : Shop_ID | hiring : Employee_ID | evaluation : Employee_ID\n[Foreign Keys]: hiring : Employee_ID equals employee : Employee_ID | hiring : Shop_ID equals shop : Shop_ID | evaluation : Employee_ID equals employee : Employee_ID", "ground_truth": "SELECT name FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM hiring)"}, {"prompt": "Convert text to SQL: [Question]: Which shops run with no employees? Find the shop names\n[Database Information]:[Schema (values)]: employee : Employee_ID , Name , Age , City | shop : Shop_ID , Name , Location , District , Number_products , Manager_name | hiring : Shop_ID , Employee_ID , Start_from , Is_full_time | evaluation : Employee_ID , Year_awarded , Bonus\n[Column names (type)]: evaluation : * (text) | employee : Employee_ID (number) | employee : Name (text) | employee : Age (number) | employee : City (text) | shop : Shop_ID (number) | shop : Name (text) | shop : Location (text) | shop : District (text) | shop : Number_products (number) | shop : Manager_name (text) | hiring : Shop_ID (number) | hiring : Employee_ID (number) | hiring : Start_from (text) | hiring : Is_full_time (others) | evaluation : Employee_ID (text) | evaluation : Year_awarded (text) | evaluation : Bonus (number)\n[Primary Keys]: employee : Employee_ID | shop : Shop_ID | hiring : Employee_ID | evaluation : Employee_ID\n[Foreign Keys]: hiring : Employee_ID equals employee : Employee_ID | hiring : Shop_ID equals shop : Shop_ID | evaluation : Employee_ID equals employee : Employee_ID", "ground_truth": "SELECT name FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM hiring)"}, {"prompt": "Convert text to SQL: [Question]: Find the number of employees hired in each shop; show the shop name as well.\n[Database Information]:[Schema (values)]: employee : Employee_ID , Name , Age , City | shop : Shop_ID , Name , Location , District , Number_products , Manager_name | hiring : Shop_ID , Employee_ID , Start_from , Is_full_time | evaluation : Employee_ID , Year_awarded , Bonus\n[Column names (type)]: evaluation : * (text) | employee : Employee_ID (number) | employee : Name (text) | employee : Age (number) | employee : City (text) | shop : Shop_ID (number) | shop : Name (text) | shop : Location (text) | shop : District (text) | shop : Number_products (number) | shop : Manager_name (text) | hiring : Shop_ID (number) | hiring : Employee_ID (number) | hiring : Start_from (text) | hiring : Is_full_time (others) | evaluation : Employee_ID (text) | evaluation : Year_awarded (text) | evaluation : Bonus (number)\n[Primary Keys]: employee : Employee_ID | shop : Shop_ID | hiring : Employee_ID | evaluation : Employee_ID\n[Foreign Keys]: hiring : Employee_ID equals employee : Employee_ID | hiring : Shop_ID equals shop : Shop_ID | evaluation : Employee_ID equals employee : Employee_ID", "ground_truth": "SELECT count(*) , t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t2.name"}, {"prompt": "Convert text to SQL: [Question]: For each shop, return the number of employees working there and the name of the shop.\n[Database Information]:[Schema (values)]: employee : Employee_ID , Name , Age , City | shop : Shop_ID , Name , Location , District , Number_products , Manager_name | hiring : Shop_ID , Employee_ID , Start_from , Is_full_time | evaluation : Employee_ID , Year_awarded , Bonus\n[Column names (type)]: evaluation : * (text) | employee : Employee_ID (number) | employee : Name (text) | employee : Age (number) | employee : City (text) | shop : Shop_ID (number) | shop : Name (text) | shop : Location (text) | shop : District (text) | shop : Number_products (number) | shop : Manager_name (text) | hiring : Shop_ID (number) | hiring : Employee_ID (number) | hiring : Start_from (text) | hiring : Is_full_time (others) | evaluation : Employee_ID (text) | evaluation : Year_awarded (text) | evaluation : Bonus (number)\n[Primary Keys]: employee : Employee_ID | shop : Shop_ID | hiring : Employee_ID | evaluation : Employee_ID\n[Foreign Keys]: hiring : Employee_ID equals employee : Employee_ID | hiring : Shop_ID equals shop : Shop_ID | evaluation : Employee_ID equals employee : Employee_ID", "ground_truth": "SELECT count(*) , t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t2.name"}, {"prompt": "Convert text to SQL: [Question]: What is total bonus given in all evaluations?\n[Database Information]:[Schema (values)]: employee : Employee_ID , Name , Age , City | shop : Shop_ID , Name , Location , District , Number_products , Manager_name | hiring : Shop_ID , Employee_ID , Start_from , Is_full_time | evaluation : Employee_ID , Year_awarded , Bonus\n[Column names (type)]: evaluation : * (text) | employee : Employee_ID (number) | employee : Name (text) | employee : Age (number) | employee : City (text) | shop : Shop_ID (number) | shop : Name (text) | shop : Location (text) | shop : District (text) | shop : Number_products (number) | shop : Manager_name (text) | hiring : Shop_ID (number) | hiring : Employee_ID (number) | hiring : Start_from (text) | hiring : Is_full_time (others) | evaluation : Employee_ID (text) | evaluation : Year_awarded (text) | evaluation : Bonus (number)\n[Primary Keys]: employee : Employee_ID | shop : Shop_ID | hiring : Employee_ID | evaluation : Employee_ID\n[Foreign Keys]: hiring : Employee_ID equals employee : Employee_ID | hiring : Shop_ID equals shop : Shop_ID | evaluation : Employee_ID equals employee : Employee_ID", "ground_truth": "SELECT sum(bonus) FROM evaluation"}, {"prompt": "Convert text to SQL: [Question]: Find the total amount of bonus given in all the evaluations.\n[Database Information]:[Schema (values)]: employee : Employee_ID , Name , Age , City | shop : Shop_ID , Name , Location , District , Number_products , Manager_name | hiring : Shop_ID , Employee_ID , Start_from , Is_full_time | evaluation : Employee_ID , Year_awarded , Bonus\n[Column names (type)]: evaluation : * (text) | employee : Employee_ID (number) | employee : Name (text) | employee : Age (number) | employee : City (text) | shop : Shop_ID (number) | shop : Name (text) | shop : Location (text) | shop : District (text) | shop : Number_products (number) | shop : Manager_name (text) | hiring : Shop_ID (number) | hiring : Employee_ID (number) | hiring : Start_from (text) | hiring : Is_full_time (others) | evaluation : Employee_ID (text) | evaluation : Year_awarded (text) | evaluation : Bonus (number)\n[Primary Keys]: employee : Employee_ID | shop : Shop_ID | hiring : Employee_ID | evaluation : Employee_ID\n[Foreign Keys]: hiring : Employee_ID equals employee : Employee_ID | hiring : Shop_ID equals shop : Shop_ID | evaluation : Employee_ID equals employee : Employee_ID", "ground_truth": "SELECT sum(bonus) FROM evaluation"}, {"prompt": "Convert text to SQL: [Question]: Give me all the information about hiring.\n[Database Information]:[Schema (values)]: employee : Employee_ID , Name , Age , City | shop : Shop_ID , Name , Location , District , Number_products , Manager_name | hiring : Shop_ID , Employee_ID , Start_from , Is_full_time | evaluation : Employee_ID , Year_awarded , Bonus\n[Column names (type)]: evaluation : * (text) | employee : Employee_ID (number) | employee : Name (text) | employee : Age (number) | employee : City (text) | shop : Shop_ID (number) | shop : Name (text) | shop : Location (text) | shop : District (text) | shop : Number_products (number) | shop : Manager_name (text) | hiring : Shop_ID (number) | hiring : Employee_ID (number) | hiring : Start_from (text) | hiring : Is_full_time (others) | evaluation : Employee_ID (text) | evaluation : Year_awarded (text) | evaluation : Bonus (number)\n[Primary Keys]: employee : Employee_ID | shop : Shop_ID | hiring : Employee_ID | evaluation : Employee_ID\n[Foreign Keys]: hiring : Employee_ID equals employee : Employee_ID | hiring : Shop_ID equals shop : Shop_ID | evaluation : Employee_ID equals employee : Employee_ID", "ground_truth": "SELECT * FROM hiring"}, {"prompt": "Convert text to SQL: [Question]: What is all the information about hiring?\n[Database Information]:[Schema (values)]: employee : Employee_ID , Name , Age , City | shop : Shop_ID , Name , Location , District , Number_products , Manager_name | hiring : Shop_ID , Employee_ID , Start_from , Is_full_time | evaluation : Employee_ID , Year_awarded , Bonus\n[Column names (type)]: evaluation : * (text) | employee : Employee_ID (number) | employee : Name (text) | employee : Age (number) | employee : City (text) | shop : Shop_ID (number) | shop : Name (text) | shop : Location (text) | shop : District (text) | shop : Number_products (number) | shop : Manager_name (text) | hiring : Shop_ID (number) | hiring : Employee_ID (number) | hiring : Start_from (text) | hiring : Is_full_time (others) | evaluation : Employee_ID (text) | evaluation : Year_awarded (text) | evaluation : Bonus (number)\n[Primary Keys]: employee : Employee_ID | shop : Shop_ID | hiring : Employee_ID | evaluation : Employee_ID\n[Foreign Keys]: hiring : Employee_ID equals employee : Employee_ID | hiring : Shop_ID equals shop : Shop_ID | evaluation : Employee_ID equals employee : Employee_ID", "ground_truth": "SELECT * FROM hiring"}, {"prompt": "Convert text to SQL: [Question]: Which district has both stores with less than 3000 products and stores with more than 10000 products?\n[Database Information]:[Schema (values)]: employee : Employee_ID , Name , Age , City | shop : Shop_ID , Name , Location , District , Number_products , Manager_name | hiring : Shop_ID , Employee_ID , Start_from , Is_full_time | evaluation : Employee_ID , Year_awarded , Bonus\n[Column names (type)]: evaluation : * (text) | employee : Employee_ID (number) | employee : Name (text) | employee : Age (number) | employee : City (text) | shop : Shop_ID (number) | shop : Name (text) | shop : Location (text) | shop : District (text) | shop : Number_products (number) | shop : Manager_name (text) | hiring : Shop_ID (number) | hiring : Employee_ID (number) | hiring : Start_from (text) | hiring : Is_full_time (others) | evaluation : Employee_ID (text) | evaluation : Year_awarded (text) | evaluation : Bonus (number)\n[Primary Keys]: employee : Employee_ID | shop : Shop_ID | hiring : Employee_ID | evaluation : Employee_ID\n[Foreign Keys]: hiring : Employee_ID equals employee : Employee_ID | hiring : Shop_ID equals shop : Shop_ID | evaluation : Employee_ID equals employee : Employee_ID", "ground_truth": "SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000"}, {"prompt": "Convert text to SQL: [Question]: Find the districts in which there are both shops selling less than 3000 products and shops selling more than 10000 products.\n[Database Information]:[Schema (values)]: employee : Employee_ID , Name , Age , City | shop : Shop_ID , Name , Location , District , Number_products , Manager_name | hiring : Shop_ID , Employee_ID , Start_from , Is_full_time | evaluation : Employee_ID , Year_awarded , Bonus\n[Column names (type)]: evaluation : * (text) | employee : Employee_ID (number) | employee : Name (text) | employee : Age (number) | employee : City (text) | shop : Shop_ID (number) | shop : Name (text) | shop : Location (text) | shop : District (text) | shop : Number_products (number) | shop : Manager_name (text) | hiring : Shop_ID (number) | hiring : Employee_ID (number) | hiring : Start_from (text) | hiring : Is_full_time (others) | evaluation : Employee_ID (text) | evaluation : Year_awarded (text) | evaluation : Bonus (number)\n[Primary Keys]: employee : Employee_ID | shop : Shop_ID | hiring : Employee_ID | evaluation : Employee_ID\n[Foreign Keys]: hiring : Employee_ID equals employee : Employee_ID | hiring : Shop_ID equals shop : Shop_ID | evaluation : Employee_ID equals employee : Employee_ID", "ground_truth": "SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000"}, {"prompt": "Convert text to SQL: [Question]: How many different store locations are there?\n[Database Information]:[Schema (values)]: employee : Employee_ID , Name , Age , City | shop : Shop_ID , Name , Location , District , Number_products , Manager_name | hiring : Shop_ID , Employee_ID , Start_from , Is_full_time | evaluation : Employee_ID , Year_awarded , Bonus\n[Column names (type)]: evaluation : * (text) | employee : Employee_ID (number) | employee : Name (text) | employee : Age (number) | employee : City (text) | shop : Shop_ID (number) | shop : Name (text) | shop : Location (text) | shop : District (text) | shop : Number_products (number) | shop : Manager_name (text) | hiring : Shop_ID (number) | hiring : Employee_ID (number) | hiring : Start_from (text) | hiring : Is_full_time (others) | evaluation : Employee_ID (text) | evaluation : Year_awarded (text) | evaluation : Bonus (number)\n[Primary Keys]: employee : Employee_ID | shop : Shop_ID | hiring : Employee_ID | evaluation : Employee_ID\n[Foreign Keys]: hiring : Employee_ID equals employee : Employee_ID | hiring : Shop_ID equals shop : Shop_ID | evaluation : Employee_ID equals employee : Employee_ID", "ground_truth": "SELECT count(DISTINCT LOCATION) FROM shop"}, {"prompt": "Convert text to SQL: [Question]: Count the number of distinct store locations.\n[Database Information]:[Schema (values)]: employee : Employee_ID , Name , Age , City | shop : Shop_ID , Name , Location , District , Number_products , Manager_name | hiring : Shop_ID , Employee_ID , Start_from , Is_full_time | evaluation : Employee_ID , Year_awarded , Bonus\n[Column names (type)]: evaluation : * (text) | employee : Employee_ID (number) | employee : Name (text) | employee : Age (number) | employee : City (text) | shop : Shop_ID (number) | shop : Name (text) | shop : Location (text) | shop : District (text) | shop : Number_products (number) | shop : Manager_name (text) | hiring : Shop_ID (number) | hiring : Employee_ID (number) | hiring : Start_from (text) | hiring : Is_full_time (others) | evaluation : Employee_ID (text) | evaluation : Year_awarded (text) | evaluation : Bonus (number)\n[Primary Keys]: employee : Employee_ID | shop : Shop_ID | hiring : Employee_ID | evaluation : Employee_ID\n[Foreign Keys]: hiring : Employee_ID equals employee : Employee_ID | hiring : Shop_ID equals shop : Shop_ID | evaluation : Employee_ID equals employee : Employee_ID", "ground_truth": "SELECT count(DISTINCT LOCATION) FROM shop"}, {"prompt": "Convert text to SQL: [Question]: How many documents do we have?\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT count(*) FROM Documents"}, {"prompt": "Convert text to SQL: [Question]: Count the number of documents.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT count(*) FROM Documents"}, {"prompt": "Convert text to SQL: [Question]: List document IDs, document names, and document descriptions for all documents.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT document_id , document_name , document_description FROM Documents"}, {"prompt": "Convert text to SQL: [Question]: What are the ids, names, and descriptions for all documents?\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT document_id , document_name , document_description FROM Documents"}, {"prompt": "Convert text to SQL: [Question]: What is the document name and template id for document with description with the letter 'w' in it?\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT document_name , template_id FROM Documents WHERE Document_Description LIKE \"%w%\""}, {"prompt": "Convert text to SQL: [Question]: Return the names and template ids for documents that contain the letter w in their description.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT document_name , template_id FROM Documents WHERE Document_Description LIKE \"%w%\""}, {"prompt": "Convert text to SQL: [Question]: What is the document id, template id and description for document named \"Robbin CV\"?\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT document_id , template_id , Document_Description FROM Documents WHERE document_name = \"Robbin CV\""}, {"prompt": "Convert text to SQL: [Question]: Return the document id, template id, and description for the document with the name Robbin CV.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT document_id , template_id , Document_Description FROM Documents WHERE document_name = \"Robbin CV\""}, {"prompt": "Convert text to SQL: [Question]: How many different templates do all document use?\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT count(DISTINCT template_id) FROM Documents"}, {"prompt": "Convert text to SQL: [Question]: Count the number of different templates used for documents.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT count(DISTINCT template_id) FROM Documents"}, {"prompt": "Convert text to SQL: [Question]: How many documents are using the template with type code 'PPT'?\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT count(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = 'PPT'"}, {"prompt": "Convert text to SQL: [Question]: Count the number of documents that use the PPT template type.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT count(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = 'PPT'"}, {"prompt": "Convert text to SQL: [Question]: Show all template ids and number of documents using each template.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT template_id , count(*) FROM Documents GROUP BY template_id"}, {"prompt": "Convert text to SQL: [Question]: What are all different template ids used for documents, and how many times were each of them used?\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT template_id , count(*) FROM Documents GROUP BY template_id"}, {"prompt": "Convert text to SQL: [Question]: What is the id and type code for the template used by the most documents?\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT T1.template_id , T2.Template_Type_Code FROM Documents AS T1 JOIN Templates AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_id ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Return the id and type code of the template that is used for the greatest number of documents.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT T1.template_id , T2.Template_Type_Code FROM Documents AS T1 JOIN Templates AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_id ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Show ids for all templates that are used by more than one document.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT template_id FROM Documents GROUP BY template_id HAVING count(*) > 1"}, {"prompt": "Convert text to SQL: [Question]: What are the template ids of any templates used in more than a single document?\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT template_id FROM Documents GROUP BY template_id HAVING count(*) > 1"}, {"prompt": "Convert text to SQL: [Question]: Show ids for all templates not used by any document.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents"}, {"prompt": "Convert text to SQL: [Question]: What are the ids for templates that are not used in any documents?\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents"}, {"prompt": "Convert text to SQL: [Question]: How many templates do we have?\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT count(*) FROM Templates"}, {"prompt": "Convert text to SQL: [Question]: Count the number of templates.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT count(*) FROM Templates"}, {"prompt": "Convert text to SQL: [Question]: Show template ids, version numbers, and template type codes for all templates.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT template_id , version_number , template_type_code FROM Templates"}, {"prompt": "Convert text to SQL: [Question]: What are the ids, version numbers, and type codes for each template?\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT template_id , version_number , template_type_code FROM Templates"}, {"prompt": "Convert text to SQL: [Question]: Show all distinct template type codes for all templates.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT DISTINCT template_type_code FROM Templates"}, {"prompt": "Convert text to SQL: [Question]: What are the different template type codes?\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT DISTINCT template_type_code FROM Templates"}, {"prompt": "Convert text to SQL: [Question]: What are the ids of templates with template type code PP or PPT?\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT template_id FROM Templates WHERE template_type_code = \"PP\" OR template_type_code = \"PPT\""}, {"prompt": "Convert text to SQL: [Question]: Return the ids of templates that have the code PP or PPT.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT template_id FROM Templates WHERE template_type_code = \"PP\" OR template_type_code = \"PPT\""}, {"prompt": "Convert text to SQL: [Question]: How many templates have template type code CV?\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT count(*) FROM Templates WHERE template_type_code = \"CV\""}, {"prompt": "Convert text to SQL: [Question]: Count the number of templates of the type CV.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT count(*) FROM Templates WHERE template_type_code = \"CV\""}, {"prompt": "Convert text to SQL: [Question]: What is the version number and template type code for the template with version number later than 5?\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT version_number , template_type_code FROM Templates WHERE version_number > 5"}, {"prompt": "Convert text to SQL: [Question]: Return the version numbers and template type codes of templates with a version number greater than 5.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT version_number , template_type_code FROM Templates WHERE version_number > 5"}, {"prompt": "Convert text to SQL: [Question]: Show all template type codes and number of templates for each.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT template_type_code , count(*) FROM Templates GROUP BY template_type_code"}, {"prompt": "Convert text to SQL: [Question]: What are the different template type codes, and how many templates correspond to each?\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT template_type_code , count(*) FROM Templates GROUP BY template_type_code"}, {"prompt": "Convert text to SQL: [Question]: Which template type code has most number of templates?\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Return the type code of the template type that the most templates belong to.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Show all template type codes with less than three templates.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING count(*) < 3"}, {"prompt": "Convert text to SQL: [Question]: What are the codes of template types that have fewer than 3 templates?\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING count(*) < 3"}, {"prompt": "Convert text to SQL: [Question]: What the smallest version number and its template type code?\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT min(Version_Number) , template_type_code FROM Templates"}, {"prompt": "Convert text to SQL: [Question]: Return the lowest version number, along with its corresponding template type code.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT min(Version_Number) , template_type_code FROM Templates"}, {"prompt": "Convert text to SQL: [Question]: What is the template type code of the template used by document with the name \"Data base\"?\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T2.document_name = \"Data base\""}, {"prompt": "Convert text to SQL: [Question]: Return the template type code of the template that is used by a document named Data base.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T2.document_name = \"Data base\""}, {"prompt": "Convert text to SQL: [Question]: Show all document names using templates with template type code BK.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT T2.document_name FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T1.template_type_code = \"BK\""}, {"prompt": "Convert text to SQL: [Question]: What are the names of documents that use templates with the code BK?\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT T2.document_name FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T1.template_type_code = \"BK\""}, {"prompt": "Convert text to SQL: [Question]: Show all template type codes and the number of documents using each type.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT T1.template_type_code , count(*) FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code"}, {"prompt": "Convert text to SQL: [Question]: What are the different template type codes, and how many documents use each type?\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT T1.template_type_code , count(*) FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code"}, {"prompt": "Convert text to SQL: [Question]: Which template type code is used by most number of documents?\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Return the code of the template type that is most commonly used in documents.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Show all template type codes that are not used by any document.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT template_type_code FROM Templates EXCEPT SELECT template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id"}, {"prompt": "Convert text to SQL: [Question]: What are the codes of template types that are not used for any document?\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT template_type_code FROM Templates EXCEPT SELECT template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id"}, {"prompt": "Convert text to SQL: [Question]: Show all template type codes and descriptions.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT template_type_code , template_type_description FROM Ref_template_types"}, {"prompt": "Convert text to SQL: [Question]: What are the type codes and descriptions for all template types?\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT template_type_code , template_type_description FROM Ref_template_types"}, {"prompt": "Convert text to SQL: [Question]: What is the template type descriptions for template type code \"AD\".\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT template_type_description FROM Ref_template_types WHERE template_type_code = \"AD\""}, {"prompt": "Convert text to SQL: [Question]: Return the template type description of the template type with the code AD.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT template_type_description FROM Ref_template_types WHERE template_type_code = \"AD\""}, {"prompt": "Convert text to SQL: [Question]: What is the template type code for template type description \"Book\".\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT template_type_code FROM Ref_template_types WHERE template_type_description = \"Book\""}, {"prompt": "Convert text to SQL: [Question]: Return the type code of the template type with the description \"Book\".\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT template_type_code FROM Ref_template_types WHERE template_type_description = \"Book\""}, {"prompt": "Convert text to SQL: [Question]: What are the distinct template type descriptions for the templates ever used by any document?\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT DISTINCT T1.template_type_description FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code JOIN Documents AS T3 ON T2.Template_ID = T3.template_ID"}, {"prompt": "Convert text to SQL: [Question]: Return the different descriptions for templates that have been used in a document.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT DISTINCT T1.template_type_description FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code JOIN Documents AS T3 ON T2.Template_ID = T3.template_ID"}, {"prompt": "Convert text to SQL: [Question]: What are the template ids with template type description \"Presentation\".\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT T2.template_id FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code WHERE T1.template_type_description = \"Presentation\""}, {"prompt": "Convert text to SQL: [Question]: Return the ids corresponding to templates with the description 'Presentation'.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT T2.template_id FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code WHERE T1.template_type_description = \"Presentation\""}, {"prompt": "Convert text to SQL: [Question]: How many paragraphs in total?\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT count(*) FROM Paragraphs"}, {"prompt": "Convert text to SQL: [Question]: Count the number of paragraphs.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT count(*) FROM Paragraphs"}, {"prompt": "Convert text to SQL: [Question]: How many paragraphs for the document with name 'Summer Show'?\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_ID = T2.document_ID WHERE T2.document_name = 'Summer Show'"}, {"prompt": "Convert text to SQL: [Question]: Count the number of paragraphs in the document named 'Summer Show'.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_ID = T2.document_ID WHERE T2.document_name = 'Summer Show'"}, {"prompt": "Convert text to SQL: [Question]: Show paragraph details for paragraph with text 'Korea ' .\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "select other_details from paragraphs where paragraph_text like 'korea'"}, {"prompt": "Convert text to SQL: [Question]: What are the details for the paragraph that includes the text 'Korea ' ?\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "select other_details from paragraphs where paragraph_text like 'korea'"}, {"prompt": "Convert text to SQL: [Question]: Show all paragraph ids and texts for the document with name 'Welcome to NY'.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT T1.paragraph_id , T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.Document_Name = 'Welcome to NY'"}, {"prompt": "Convert text to SQL: [Question]: What are the ids and texts of paragraphs in the document titled 'Welcome to NY'?\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT T1.paragraph_id , T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.Document_Name = 'Welcome to NY'"}, {"prompt": "Convert text to SQL: [Question]: Show all paragraph texts for the document \"Customer reviews\".\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = \"Customer reviews\""}, {"prompt": "Convert text to SQL: [Question]: What are the paragraph texts for the document with the name 'Customer reviews'?\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = \"Customer reviews\""}, {"prompt": "Convert text to SQL: [Question]: Show all document ids and the number of paragraphs in each document. Order by document id.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT document_id , count(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id"}, {"prompt": "Convert text to SQL: [Question]: Return the different document ids along with the number of paragraphs corresponding to each, ordered by id.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT document_id , count(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id"}, {"prompt": "Convert text to SQL: [Question]: Show all document ids, names and the number of paragraphs in each document.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT T1.document_id , T2.document_name , count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id"}, {"prompt": "Convert text to SQL: [Question]: What are the ids and names of each document, as well as the number of paragraphs in each?\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT T1.document_id , T2.document_name , count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id"}, {"prompt": "Convert text to SQL: [Question]: List all document ids with at least two paragraphs.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) >= 2"}, {"prompt": "Convert text to SQL: [Question]: What are the ids of documents that have 2 or more paragraphs?\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) >= 2"}, {"prompt": "Convert text to SQL: [Question]: What is the document id and name with greatest number of paragraphs?\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT T1.document_id , T2.document_name FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Return the id and name of the document with the most paragraphs.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT T1.document_id , T2.document_name FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the document id with least number of paragraphs?\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY count(*) ASC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Return the id of the document with the fewest paragraphs.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY count(*) ASC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the document id with 1 to 2 paragraphs?\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) BETWEEN 1 AND 2"}, {"prompt": "Convert text to SQL: [Question]: Give the ids of documents that have between one and two paragraphs.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) BETWEEN 1 AND 2"}, {"prompt": "Convert text to SQL: [Question]: Show the document id with paragraph text 'Brazil' and 'Ireland'.\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Ireland'"}, {"prompt": "Convert text to SQL: [Question]: What are the ids of documents that contain the paragraph text 'Brazil' and 'Ireland'?\n[Database Information]:[Schema (values)]: Ref_Template_Types : Template_Type_Code , Template_Type_Description | Templates : Template_ID , Version_Number , Template_Type_Code , Date_Effective_From , Date_Effective_To , Template_Details | Documents : Document_ID , Template_ID , Document_Name , Document_Description , Other_Details | Paragraphs : Paragraph_ID , Document_ID , Paragraph_Text , Other_Details\n[Column names (type)]: Paragraphs : * (text) | Ref_Template_Types : Template_Type_Code (text) | Ref_Template_Types : Template_Type_Description (text) | Templates : Template_ID (number) | Templates : Version_Number (number) | Templates : Template_Type_Code (text) | Templates : Date_Effective_From (time) | Templates : Date_Effective_To (time) | Templates : Template_Details (text) | Documents : Document_ID (number) | Documents : Template_ID (number) | Documents : Document_Name (text) | Documents : Document_Description (text) | Documents : Other_Details (text) | Paragraphs : Paragraph_ID (number) | Paragraphs : Document_ID (number) | Paragraphs : Paragraph_Text (text) | Paragraphs : Other_Details (text)\n[Primary Keys]: Ref_Template_Types : Template_Type_Code | Templates : Template_ID | Documents : Document_ID | Paragraphs : Paragraph_ID\n[Foreign Keys]: Templates : Template_Type_Code equals Ref_Template_Types : Template_Type_Code | Documents : Template_ID equals Templates : Template_ID | Paragraphs : Document_ID equals Documents : Document_ID", "ground_truth": "SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Ireland'"}, {"prompt": "Convert text to SQL: [Question]: How many teachers are there?\n[Database Information]:[Schema (values)]: course : Course_ID , Staring_Date , Course | teacher : Teacher_ID , Name , Age , Hometown | course_arrange : Course_ID , Teacher_ID , Grade\n[Column names (type)]: course_arrange : * (text) | course : Course_ID (number) | course : Staring_Date (text) | course : Course (text) | teacher : Teacher_ID (number) | teacher : Name (text) | teacher : Age (text) | teacher : Hometown (text) | course_arrange : Course_ID (number) | course_arrange : Teacher_ID (number) | course_arrange : Grade (number)\n[Primary Keys]: course : Course_ID | teacher : Teacher_ID | course_arrange : Course_ID\n[Foreign Keys]: course_arrange : Teacher_ID equals teacher : Teacher_ID | course_arrange : Course_ID equals course : Course_ID", "ground_truth": "SELECT count(*) FROM teacher"}, {"prompt": "Convert text to SQL: [Question]: What is the total count of teachers?\n[Database Information]:[Schema (values)]: course : Course_ID , Staring_Date , Course | teacher : Teacher_ID , Name , Age , Hometown | course_arrange : Course_ID , Teacher_ID , Grade\n[Column names (type)]: course_arrange : * (text) | course : Course_ID (number) | course : Staring_Date (text) | course : Course (text) | teacher : Teacher_ID (number) | teacher : Name (text) | teacher : Age (text) | teacher : Hometown (text) | course_arrange : Course_ID (number) | course_arrange : Teacher_ID (number) | course_arrange : Grade (number)\n[Primary Keys]: course : Course_ID | teacher : Teacher_ID | course_arrange : Course_ID\n[Foreign Keys]: course_arrange : Teacher_ID equals teacher : Teacher_ID | course_arrange : Course_ID equals course : Course_ID", "ground_truth": "SELECT count(*) FROM teacher"}, {"prompt": "Convert text to SQL: [Question]: List the names of teachers in ascending order of age.\n[Database Information]:[Schema (values)]: course : Course_ID , Staring_Date , Course | teacher : Teacher_ID , Name , Age , Hometown | course_arrange : Course_ID , Teacher_ID , Grade\n[Column names (type)]: course_arrange : * (text) | course : Course_ID (number) | course : Staring_Date (text) | course : Course (text) | teacher : Teacher_ID (number) | teacher : Name (text) | teacher : Age (text) | teacher : Hometown (text) | course_arrange : Course_ID (number) | course_arrange : Teacher_ID (number) | course_arrange : Grade (number)\n[Primary Keys]: course : Course_ID | teacher : Teacher_ID | course_arrange : Course_ID\n[Foreign Keys]: course_arrange : Teacher_ID equals teacher : Teacher_ID | course_arrange : Course_ID equals course : Course_ID", "ground_truth": "SELECT Name FROM teacher ORDER BY Age ASC"}, {"prompt": "Convert text to SQL: [Question]: What are the names of the teachers ordered by ascending age?\n[Database Information]:[Schema (values)]: course : Course_ID , Staring_Date , Course | teacher : Teacher_ID , Name , Age , Hometown | course_arrange : Course_ID , Teacher_ID , Grade\n[Column names (type)]: course_arrange : * (text) | course : Course_ID (number) | course : Staring_Date (text) | course : Course (text) | teacher : Teacher_ID (number) | teacher : Name (text) | teacher : Age (text) | teacher : Hometown (text) | course_arrange : Course_ID (number) | course_arrange : Teacher_ID (number) | course_arrange : Grade (number)\n[Primary Keys]: course : Course_ID | teacher : Teacher_ID | course_arrange : Course_ID\n[Foreign Keys]: course_arrange : Teacher_ID equals teacher : Teacher_ID | course_arrange : Course_ID equals course : Course_ID", "ground_truth": "SELECT Name FROM teacher ORDER BY Age ASC"}, {"prompt": "Convert text to SQL: [Question]: What are the age and hometown of teachers?\n[Database Information]:[Schema (values)]: course : Course_ID , Staring_Date , Course | teacher : Teacher_ID , Name , Age , Hometown | course_arrange : Course_ID , Teacher_ID , Grade\n[Column names (type)]: course_arrange : * (text) | course : Course_ID (number) | course : Staring_Date (text) | course : Course (text) | teacher : Teacher_ID (number) | teacher : Name (text) | teacher : Age (text) | teacher : Hometown (text) | course_arrange : Course_ID (number) | course_arrange : Teacher_ID (number) | course_arrange : Grade (number)\n[Primary Keys]: course : Course_ID | teacher : Teacher_ID | course_arrange : Course_ID\n[Foreign Keys]: course_arrange : Teacher_ID equals teacher : Teacher_ID | course_arrange : Course_ID equals course : Course_ID", "ground_truth": "SELECT Age , Hometown FROM teacher"}, {"prompt": "Convert text to SQL: [Question]: What is the age and hometown of every teacher?\n[Database Information]:[Schema (values)]: course : Course_ID , Staring_Date , Course | teacher : Teacher_ID , Name , Age , Hometown | course_arrange : Course_ID , Teacher_ID , Grade\n[Column names (type)]: course_arrange : * (text) | course : Course_ID (number) | course : Staring_Date (text) | course : Course (text) | teacher : Teacher_ID (number) | teacher : Name (text) | teacher : Age (text) | teacher : Hometown (text) | course_arrange : Course_ID (number) | course_arrange : Teacher_ID (number) | course_arrange : Grade (number)\n[Primary Keys]: course : Course_ID | teacher : Teacher_ID | course_arrange : Course_ID\n[Foreign Keys]: course_arrange : Teacher_ID equals teacher : Teacher_ID | course_arrange : Course_ID equals course : Course_ID", "ground_truth": "SELECT Age , Hometown FROM teacher"}, {"prompt": "Convert text to SQL: [Question]: List the name of teachers whose hometown is not `` Little Lever Urban District '' .\n[Database Information]:[Schema (values)]: course : Course_ID , Staring_Date , Course | teacher : Teacher_ID , Name , Age , Hometown | course_arrange : Course_ID , Teacher_ID , Grade\n[Column names (type)]: course_arrange : * (text) | course : Course_ID (number) | course : Staring_Date (text) | course : Course (text) | teacher : Teacher_ID (number) | teacher : Name (text) | teacher : Age (text) | teacher : Hometown (text) | course_arrange : Course_ID (number) | course_arrange : Teacher_ID (number) | course_arrange : Grade (number)\n[Primary Keys]: course : Course_ID | teacher : Teacher_ID | course_arrange : Course_ID\n[Foreign Keys]: course_arrange : Teacher_ID equals teacher : Teacher_ID | course_arrange : Course_ID equals course : Course_ID", "ground_truth": "select name from teacher where hometown != \"little lever urban district\""}, {"prompt": "Convert text to SQL: [Question]: What are the names of the teachers whose hometown is not `` Little Lever Urban District '' ?\n[Database Information]:[Schema (values)]: course : Course_ID , Staring_Date , Course | teacher : Teacher_ID , Name , Age , Hometown | course_arrange : Course_ID , Teacher_ID , Grade\n[Column names (type)]: course_arrange : * (text) | course : Course_ID (number) | course : Staring_Date (text) | course : Course (text) | teacher : Teacher_ID (number) | teacher : Name (text) | teacher : Age (text) | teacher : Hometown (text) | course_arrange : Course_ID (number) | course_arrange : Teacher_ID (number) | course_arrange : Grade (number)\n[Primary Keys]: course : Course_ID | teacher : Teacher_ID | course_arrange : Course_ID\n[Foreign Keys]: course_arrange : Teacher_ID equals teacher : Teacher_ID | course_arrange : Course_ID equals course : Course_ID", "ground_truth": "select name from teacher where hometown != \"little lever urban district\""}, {"prompt": "Convert text to SQL: [Question]: Show the name of teachers aged either 32 or 33?\n[Database Information]:[Schema (values)]: course : Course_ID , Staring_Date , Course | teacher : Teacher_ID , Name , Age , Hometown | course_arrange : Course_ID , Teacher_ID , Grade\n[Column names (type)]: course_arrange : * (text) | course : Course_ID (number) | course : Staring_Date (text) | course : Course (text) | teacher : Teacher_ID (number) | teacher : Name (text) | teacher : Age (text) | teacher : Hometown (text) | course_arrange : Course_ID (number) | course_arrange : Teacher_ID (number) | course_arrange : Grade (number)\n[Primary Keys]: course : Course_ID | teacher : Teacher_ID | course_arrange : Course_ID\n[Foreign Keys]: course_arrange : Teacher_ID equals teacher : Teacher_ID | course_arrange : Course_ID equals course : Course_ID", "ground_truth": "SELECT Name FROM teacher WHERE Age = 32 OR Age = 33"}, {"prompt": "Convert text to SQL: [Question]: What are the names of the teachers who are aged either 32 or 33?\n[Database Information]:[Schema (values)]: course : Course_ID , Staring_Date , Course | teacher : Teacher_ID , Name , Age , Hometown | course_arrange : Course_ID , Teacher_ID , Grade\n[Column names (type)]: course_arrange : * (text) | course : Course_ID (number) | course : Staring_Date (text) | course : Course (text) | teacher : Teacher_ID (number) | teacher : Name (text) | teacher : Age (text) | teacher : Hometown (text) | course_arrange : Course_ID (number) | course_arrange : Teacher_ID (number) | course_arrange : Grade (number)\n[Primary Keys]: course : Course_ID | teacher : Teacher_ID | course_arrange : Course_ID\n[Foreign Keys]: course_arrange : Teacher_ID equals teacher : Teacher_ID | course_arrange : Course_ID equals course : Course_ID", "ground_truth": "SELECT Name FROM teacher WHERE Age = 32 OR Age = 33"}, {"prompt": "Convert text to SQL: [Question]: What is the hometown of the youngest teacher?\n[Database Information]:[Schema (values)]: course : Course_ID , Staring_Date , Course | teacher : Teacher_ID , Name , Age , Hometown | course_arrange : Course_ID , Teacher_ID , Grade\n[Column names (type)]: course_arrange : * (text) | course : Course_ID (number) | course : Staring_Date (text) | course : Course (text) | teacher : Teacher_ID (number) | teacher : Name (text) | teacher : Age (text) | teacher : Hometown (text) | course_arrange : Course_ID (number) | course_arrange : Teacher_ID (number) | course_arrange : Grade (number)\n[Primary Keys]: course : Course_ID | teacher : Teacher_ID | course_arrange : Course_ID\n[Foreign Keys]: course_arrange : Teacher_ID equals teacher : Teacher_ID | course_arrange : Course_ID equals course : Course_ID", "ground_truth": "SELECT Hometown FROM teacher ORDER BY Age ASC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Where is the youngest teacher from?\n[Database Information]:[Schema (values)]: course : Course_ID , Staring_Date , Course | teacher : Teacher_ID , Name , Age , Hometown | course_arrange : Course_ID , Teacher_ID , Grade\n[Column names (type)]: course_arrange : * (text) | course : Course_ID (number) | course : Staring_Date (text) | course : Course (text) | teacher : Teacher_ID (number) | teacher : Name (text) | teacher : Age (text) | teacher : Hometown (text) | course_arrange : Course_ID (number) | course_arrange : Teacher_ID (number) | course_arrange : Grade (number)\n[Primary Keys]: course : Course_ID | teacher : Teacher_ID | course_arrange : Course_ID\n[Foreign Keys]: course_arrange : Teacher_ID equals teacher : Teacher_ID | course_arrange : Course_ID equals course : Course_ID", "ground_truth": "SELECT Hometown FROM teacher ORDER BY Age ASC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Show different hometown of teachers and the number of teachers from each hometown.\n[Database Information]:[Schema (values)]: course : Course_ID , Staring_Date , Course | teacher : Teacher_ID , Name , Age , Hometown | course_arrange : Course_ID , Teacher_ID , Grade\n[Column names (type)]: course_arrange : * (text) | course : Course_ID (number) | course : Staring_Date (text) | course : Course (text) | teacher : Teacher_ID (number) | teacher : Name (text) | teacher : Age (text) | teacher : Hometown (text) | course_arrange : Course_ID (number) | course_arrange : Teacher_ID (number) | course_arrange : Grade (number)\n[Primary Keys]: course : Course_ID | teacher : Teacher_ID | course_arrange : Course_ID\n[Foreign Keys]: course_arrange : Teacher_ID equals teacher : Teacher_ID | course_arrange : Course_ID equals course : Course_ID", "ground_truth": "SELECT Hometown , COUNT(*) FROM teacher GROUP BY Hometown"}, {"prompt": "Convert text to SQL: [Question]: For each hometown, how many teachers are there?\n[Database Information]:[Schema (values)]: course : Course_ID , Staring_Date , Course | teacher : Teacher_ID , Name , Age , Hometown | course_arrange : Course_ID , Teacher_ID , Grade\n[Column names (type)]: course_arrange : * (text) | course : Course_ID (number) | course : Staring_Date (text) | course : Course (text) | teacher : Teacher_ID (number) | teacher : Name (text) | teacher : Age (text) | teacher : Hometown (text) | course_arrange : Course_ID (number) | course_arrange : Teacher_ID (number) | course_arrange : Grade (number)\n[Primary Keys]: course : Course_ID | teacher : Teacher_ID | course_arrange : Course_ID\n[Foreign Keys]: course_arrange : Teacher_ID equals teacher : Teacher_ID | course_arrange : Course_ID equals course : Course_ID", "ground_truth": "SELECT Hometown , COUNT(*) FROM teacher GROUP BY Hometown"}, {"prompt": "Convert text to SQL: [Question]: List the most common hometown of teachers.\n[Database Information]:[Schema (values)]: course : Course_ID , Staring_Date , Course | teacher : Teacher_ID , Name , Age , Hometown | course_arrange : Course_ID , Teacher_ID , Grade\n[Column names (type)]: course_arrange : * (text) | course : Course_ID (number) | course : Staring_Date (text) | course : Course (text) | teacher : Teacher_ID (number) | teacher : Name (text) | teacher : Age (text) | teacher : Hometown (text) | course_arrange : Course_ID (number) | course_arrange : Teacher_ID (number) | course_arrange : Grade (number)\n[Primary Keys]: course : Course_ID | teacher : Teacher_ID | course_arrange : Course_ID\n[Foreign Keys]: course_arrange : Teacher_ID equals teacher : Teacher_ID | course_arrange : Course_ID equals course : Course_ID", "ground_truth": "SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the most commmon hometowns for teachers?\n[Database Information]:[Schema (values)]: course : Course_ID , Staring_Date , Course | teacher : Teacher_ID , Name , Age , Hometown | course_arrange : Course_ID , Teacher_ID , Grade\n[Column names (type)]: course_arrange : * (text) | course : Course_ID (number) | course : Staring_Date (text) | course : Course (text) | teacher : Teacher_ID (number) | teacher : Name (text) | teacher : Age (text) | teacher : Hometown (text) | course_arrange : Course_ID (number) | course_arrange : Teacher_ID (number) | course_arrange : Grade (number)\n[Primary Keys]: course : Course_ID | teacher : Teacher_ID | course_arrange : Course_ID\n[Foreign Keys]: course_arrange : Teacher_ID equals teacher : Teacher_ID | course_arrange : Course_ID equals course : Course_ID", "ground_truth": "SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Show the hometowns shared by at least two teachers.\n[Database Information]:[Schema (values)]: course : Course_ID , Staring_Date , Course | teacher : Teacher_ID , Name , Age , Hometown | course_arrange : Course_ID , Teacher_ID , Grade\n[Column names (type)]: course_arrange : * (text) | course : Course_ID (number) | course : Staring_Date (text) | course : Course (text) | teacher : Teacher_ID (number) | teacher : Name (text) | teacher : Age (text) | teacher : Hometown (text) | course_arrange : Course_ID (number) | course_arrange : Teacher_ID (number) | course_arrange : Grade (number)\n[Primary Keys]: course : Course_ID | teacher : Teacher_ID | course_arrange : Course_ID\n[Foreign Keys]: course_arrange : Teacher_ID equals teacher : Teacher_ID | course_arrange : Course_ID equals course : Course_ID", "ground_truth": "SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*) >= 2"}, {"prompt": "Convert text to SQL: [Question]: What are the towns from which at least two teachers come from?\n[Database Information]:[Schema (values)]: course : Course_ID , Staring_Date , Course | teacher : Teacher_ID , Name , Age , Hometown | course_arrange : Course_ID , Teacher_ID , Grade\n[Column names (type)]: course_arrange : * (text) | course : Course_ID (number) | course : Staring_Date (text) | course : Course (text) | teacher : Teacher_ID (number) | teacher : Name (text) | teacher : Age (text) | teacher : Hometown (text) | course_arrange : Course_ID (number) | course_arrange : Teacher_ID (number) | course_arrange : Grade (number)\n[Primary Keys]: course : Course_ID | teacher : Teacher_ID | course_arrange : Course_ID\n[Foreign Keys]: course_arrange : Teacher_ID equals teacher : Teacher_ID | course_arrange : Course_ID equals course : Course_ID", "ground_truth": "SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*) >= 2"}, {"prompt": "Convert text to SQL: [Question]: Show names of teachers and the courses they are arranged to teach.\n[Database Information]:[Schema (values)]: course : Course_ID , Staring_Date , Course | teacher : Teacher_ID , Name , Age , Hometown | course_arrange : Course_ID , Teacher_ID , Grade\n[Column names (type)]: course_arrange : * (text) | course : Course_ID (number) | course : Staring_Date (text) | course : Course (text) | teacher : Teacher_ID (number) | teacher : Name (text) | teacher : Age (text) | teacher : Hometown (text) | course_arrange : Course_ID (number) | course_arrange : Teacher_ID (number) | course_arrange : Grade (number)\n[Primary Keys]: course : Course_ID | teacher : Teacher_ID | course_arrange : Course_ID\n[Foreign Keys]: course_arrange : Teacher_ID equals teacher : Teacher_ID | course_arrange : Course_ID equals course : Course_ID", "ground_truth": "SELECT T3.Name , T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID"}, {"prompt": "Convert text to SQL: [Question]: What is the name of each teacher and what course they teach?\n[Database Information]:[Schema (values)]: course : Course_ID , Staring_Date , Course | teacher : Teacher_ID , Name , Age , Hometown | course_arrange : Course_ID , Teacher_ID , Grade\n[Column names (type)]: course_arrange : * (text) | course : Course_ID (number) | course : Staring_Date (text) | course : Course (text) | teacher : Teacher_ID (number) | teacher : Name (text) | teacher : Age (text) | teacher : Hometown (text) | course_arrange : Course_ID (number) | course_arrange : Teacher_ID (number) | course_arrange : Grade (number)\n[Primary Keys]: course : Course_ID | teacher : Teacher_ID | course_arrange : Course_ID\n[Foreign Keys]: course_arrange : Teacher_ID equals teacher : Teacher_ID | course_arrange : Course_ID equals course : Course_ID", "ground_truth": "SELECT T3.Name , T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID"}, {"prompt": "Convert text to SQL: [Question]: Show names of teachers and the courses they are arranged to teach in ascending alphabetical order of the teacher's name.\n[Database Information]:[Schema (values)]: course : Course_ID , Staring_Date , Course | teacher : Teacher_ID , Name , Age , Hometown | course_arrange : Course_ID , Teacher_ID , Grade\n[Column names (type)]: course_arrange : * (text) | course : Course_ID (number) | course : Staring_Date (text) | course : Course (text) | teacher : Teacher_ID (number) | teacher : Name (text) | teacher : Age (text) | teacher : Hometown (text) | course_arrange : Course_ID (number) | course_arrange : Teacher_ID (number) | course_arrange : Grade (number)\n[Primary Keys]: course : Course_ID | teacher : Teacher_ID | course_arrange : Course_ID\n[Foreign Keys]: course_arrange : Teacher_ID equals teacher : Teacher_ID | course_arrange : Course_ID equals course : Course_ID", "ground_truth": "SELECT T3.Name , T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID ORDER BY T3.Name"}, {"prompt": "Convert text to SQL: [Question]: What are the names of the teachers and the courses they teach in ascending alphabetical order by the name of the teacher?\n[Database Information]:[Schema (values)]: course : Course_ID , Staring_Date , Course | teacher : Teacher_ID , Name , Age , Hometown | course_arrange : Course_ID , Teacher_ID , Grade\n[Column names (type)]: course_arrange : * (text) | course : Course_ID (number) | course : Staring_Date (text) | course : Course (text) | teacher : Teacher_ID (number) | teacher : Name (text) | teacher : Age (text) | teacher : Hometown (text) | course_arrange : Course_ID (number) | course_arrange : Teacher_ID (number) | course_arrange : Grade (number)\n[Primary Keys]: course : Course_ID | teacher : Teacher_ID | course_arrange : Course_ID\n[Foreign Keys]: course_arrange : Teacher_ID equals teacher : Teacher_ID | course_arrange : Course_ID equals course : Course_ID", "ground_truth": "SELECT T3.Name , T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID ORDER BY T3.Name"}, {"prompt": "Convert text to SQL: [Question]: Show the name of the teacher for the math course.\n[Database Information]:[Schema (values)]: course : Course_ID , Staring_Date , Course | teacher : Teacher_ID , Name , Age , Hometown | course_arrange : Course_ID , Teacher_ID , Grade\n[Column names (type)]: course_arrange : * (text) | course : Course_ID (number) | course : Staring_Date (text) | course : Course (text) | teacher : Teacher_ID (number) | teacher : Name (text) | teacher : Age (text) | teacher : Hometown (text) | course_arrange : Course_ID (number) | course_arrange : Teacher_ID (number) | course_arrange : Grade (number)\n[Primary Keys]: course : Course_ID | teacher : Teacher_ID | course_arrange : Course_ID\n[Foreign Keys]: course_arrange : Teacher_ID equals teacher : Teacher_ID | course_arrange : Course_ID equals course : Course_ID", "ground_truth": "SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course = \"Math\""}, {"prompt": "Convert text to SQL: [Question]: What are the names of the people who teach math courses?\n[Database Information]:[Schema (values)]: course : Course_ID , Staring_Date , Course | teacher : Teacher_ID , Name , Age , Hometown | course_arrange : Course_ID , Teacher_ID , Grade\n[Column names (type)]: course_arrange : * (text) | course : Course_ID (number) | course : Staring_Date (text) | course : Course (text) | teacher : Teacher_ID (number) | teacher : Name (text) | teacher : Age (text) | teacher : Hometown (text) | course_arrange : Course_ID (number) | course_arrange : Teacher_ID (number) | course_arrange : Grade (number)\n[Primary Keys]: course : Course_ID | teacher : Teacher_ID | course_arrange : Course_ID\n[Foreign Keys]: course_arrange : Teacher_ID equals teacher : Teacher_ID | course_arrange : Course_ID equals course : Course_ID", "ground_truth": "SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course = \"Math\""}, {"prompt": "Convert text to SQL: [Question]: Show names of teachers and the number of courses they teach.\n[Database Information]:[Schema (values)]: course : Course_ID , Staring_Date , Course | teacher : Teacher_ID , Name , Age , Hometown | course_arrange : Course_ID , Teacher_ID , Grade\n[Column names (type)]: course_arrange : * (text) | course : Course_ID (number) | course : Staring_Date (text) | course : Course (text) | teacher : Teacher_ID (number) | teacher : Name (text) | teacher : Age (text) | teacher : Hometown (text) | course_arrange : Course_ID (number) | course_arrange : Teacher_ID (number) | course_arrange : Grade (number)\n[Primary Keys]: course : Course_ID | teacher : Teacher_ID | course_arrange : Course_ID\n[Foreign Keys]: course_arrange : Teacher_ID equals teacher : Teacher_ID | course_arrange : Course_ID equals course : Course_ID", "ground_truth": "SELECT T2.Name , COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name"}, {"prompt": "Convert text to SQL: [Question]: What are the names of the teachers and how many courses do they teach?\n[Database Information]:[Schema (values)]: course : Course_ID , Staring_Date , Course | teacher : Teacher_ID , Name , Age , Hometown | course_arrange : Course_ID , Teacher_ID , Grade\n[Column names (type)]: course_arrange : * (text) | course : Course_ID (number) | course : Staring_Date (text) | course : Course (text) | teacher : Teacher_ID (number) | teacher : Name (text) | teacher : Age (text) | teacher : Hometown (text) | course_arrange : Course_ID (number) | course_arrange : Teacher_ID (number) | course_arrange : Grade (number)\n[Primary Keys]: course : Course_ID | teacher : Teacher_ID | course_arrange : Course_ID\n[Foreign Keys]: course_arrange : Teacher_ID equals teacher : Teacher_ID | course_arrange : Course_ID equals course : Course_ID", "ground_truth": "SELECT T2.Name , COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name"}, {"prompt": "Convert text to SQL: [Question]: Show names of teachers that teach at least two courses.\n[Database Information]:[Schema (values)]: course : Course_ID , Staring_Date , Course | teacher : Teacher_ID , Name , Age , Hometown | course_arrange : Course_ID , Teacher_ID , Grade\n[Column names (type)]: course_arrange : * (text) | course : Course_ID (number) | course : Staring_Date (text) | course : Course (text) | teacher : Teacher_ID (number) | teacher : Name (text) | teacher : Age (text) | teacher : Hometown (text) | course_arrange : Course_ID (number) | course_arrange : Teacher_ID (number) | course_arrange : Grade (number)\n[Primary Keys]: course : Course_ID | teacher : Teacher_ID | course_arrange : Course_ID\n[Foreign Keys]: course_arrange : Teacher_ID equals teacher : Teacher_ID | course_arrange : Course_ID equals course : Course_ID", "ground_truth": "SELECT T2.Name FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name HAVING COUNT(*) >= 2"}, {"prompt": "Convert text to SQL: [Question]: What are the names of the teachers who teach at least two courses?\n[Database Information]:[Schema (values)]: course : Course_ID , Staring_Date , Course | teacher : Teacher_ID , Name , Age , Hometown | course_arrange : Course_ID , Teacher_ID , Grade\n[Column names (type)]: course_arrange : * (text) | course : Course_ID (number) | course : Staring_Date (text) | course : Course (text) | teacher : Teacher_ID (number) | teacher : Name (text) | teacher : Age (text) | teacher : Hometown (text) | course_arrange : Course_ID (number) | course_arrange : Teacher_ID (number) | course_arrange : Grade (number)\n[Primary Keys]: course : Course_ID | teacher : Teacher_ID | course_arrange : Course_ID\n[Foreign Keys]: course_arrange : Teacher_ID equals teacher : Teacher_ID | course_arrange : Course_ID equals course : Course_ID", "ground_truth": "SELECT T2.Name FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name HAVING COUNT(*) >= 2"}, {"prompt": "Convert text to SQL: [Question]: List the names of teachers who have not been arranged to teach courses.\n[Database Information]:[Schema (values)]: course : Course_ID , Staring_Date , Course | teacher : Teacher_ID , Name , Age , Hometown | course_arrange : Course_ID , Teacher_ID , Grade\n[Column names (type)]: course_arrange : * (text) | course : Course_ID (number) | course : Staring_Date (text) | course : Course (text) | teacher : Teacher_ID (number) | teacher : Name (text) | teacher : Age (text) | teacher : Hometown (text) | course_arrange : Course_ID (number) | course_arrange : Teacher_ID (number) | course_arrange : Grade (number)\n[Primary Keys]: course : Course_ID | teacher : Teacher_ID | course_arrange : Course_ID\n[Foreign Keys]: course_arrange : Teacher_ID equals teacher : Teacher_ID | course_arrange : Course_ID equals course : Course_ID", "ground_truth": "SELECT Name FROM teacher WHERE Teacher_id NOT IN (SELECT Teacher_id FROM course_arrange)"}, {"prompt": "Convert text to SQL: [Question]: What are the names of the teachers whose courses have not been arranged?\n[Database Information]:[Schema (values)]: course : Course_ID , Staring_Date , Course | teacher : Teacher_ID , Name , Age , Hometown | course_arrange : Course_ID , Teacher_ID , Grade\n[Column names (type)]: course_arrange : * (text) | course : Course_ID (number) | course : Staring_Date (text) | course : Course (text) | teacher : Teacher_ID (number) | teacher : Name (text) | teacher : Age (text) | teacher : Hometown (text) | course_arrange : Course_ID (number) | course_arrange : Teacher_ID (number) | course_arrange : Grade (number)\n[Primary Keys]: course : Course_ID | teacher : Teacher_ID | course_arrange : Course_ID\n[Foreign Keys]: course_arrange : Teacher_ID equals teacher : Teacher_ID | course_arrange : Course_ID equals course : Course_ID", "ground_truth": "SELECT Name FROM teacher WHERE Teacher_id NOT IN (SELECT Teacher_id FROM course_arrange)"}, {"prompt": "Convert text to SQL: [Question]: How many visitors below age 30 are there?\n[Database Information]:[Schema (values)]: museum : Museum_ID , Name , Num_of_Staff , Open_Year | visitor : ID , Name , Level_of_membership , Age | visit : Museum_ID , visitor_ID , Num_of_Ticket , Total_spent\n[Column names (type)]: visit : * (text) | museum : Museum_ID (number) | museum : Name (text) | museum : Num_of_Staff (number) | museum : Open_Year (text) | visitor : ID (number) | visitor : Name (text) | visitor : Level_of_membership (number) | visitor : Age (number) | visit : Museum_ID (number) | visit : visitor_ID (text) | visit : Num_of_Ticket (number) | visit : Total_spent (number)\n[Primary Keys]: museum : Museum_ID | visitor : ID | visit : Museum_ID\n[Foreign Keys]: visit : visitor_ID equals visitor : ID | visit : Museum_ID equals museum : Museum_ID", "ground_truth": "SELECT count(*) FROM visitor WHERE age < 30"}, {"prompt": "Convert text to SQL: [Question]: Find the names of the visitors whose membership level is higher than 4, and order the results by the level from high to low.\n[Database Information]:[Schema (values)]: museum : Museum_ID , Name , Num_of_Staff , Open_Year | visitor : ID , Name , Level_of_membership , Age | visit : Museum_ID , visitor_ID , Num_of_Ticket , Total_spent\n[Column names (type)]: visit : * (text) | museum : Museum_ID (number) | museum : Name (text) | museum : Num_of_Staff (number) | museum : Open_Year (text) | visitor : ID (number) | visitor : Name (text) | visitor : Level_of_membership (number) | visitor : Age (number) | visit : Museum_ID (number) | visit : visitor_ID (text) | visit : Num_of_Ticket (number) | visit : Total_spent (number)\n[Primary Keys]: museum : Museum_ID | visitor : ID | visit : Museum_ID\n[Foreign Keys]: visit : visitor_ID equals visitor : ID | visit : Museum_ID equals museum : Museum_ID", "ground_truth": "SELECT name FROM visitor WHERE Level_of_membership > 4 ORDER BY Level_of_membership DESC"}, {"prompt": "Convert text to SQL: [Question]: What is the average age of the visitors whose membership level is not higher than 4?\n[Database Information]:[Schema (values)]: museum : Museum_ID , Name , Num_of_Staff , Open_Year | visitor : ID , Name , Level_of_membership , Age | visit : Museum_ID , visitor_ID , Num_of_Ticket , Total_spent\n[Column names (type)]: visit : * (text) | museum : Museum_ID (number) | museum : Name (text) | museum : Num_of_Staff (number) | museum : Open_Year (text) | visitor : ID (number) | visitor : Name (text) | visitor : Level_of_membership (number) | visitor : Age (number) | visit : Museum_ID (number) | visit : visitor_ID (text) | visit : Num_of_Ticket (number) | visit : Total_spent (number)\n[Primary Keys]: museum : Museum_ID | visitor : ID | visit : Museum_ID\n[Foreign Keys]: visit : visitor_ID equals visitor : ID | visit : Museum_ID equals museum : Museum_ID", "ground_truth": "SELECT avg(age) FROM visitor WHERE Level_of_membership <= 4"}, {"prompt": "Convert text to SQL: [Question]: Find the name and membership level of the visitors whose membership level is higher than 4, and sort by their age from old to young.\n[Database Information]:[Schema (values)]: museum : Museum_ID , Name , Num_of_Staff , Open_Year | visitor : ID , Name , Level_of_membership , Age | visit : Museum_ID , visitor_ID , Num_of_Ticket , Total_spent\n[Column names (type)]: visit : * (text) | museum : Museum_ID (number) | museum : Name (text) | museum : Num_of_Staff (number) | museum : Open_Year (text) | visitor : ID (number) | visitor : Name (text) | visitor : Level_of_membership (number) | visitor : Age (number) | visit : Museum_ID (number) | visit : visitor_ID (text) | visit : Num_of_Ticket (number) | visit : Total_spent (number)\n[Primary Keys]: museum : Museum_ID | visitor : ID | visit : Museum_ID\n[Foreign Keys]: visit : visitor_ID equals visitor : ID | visit : Museum_ID equals museum : Museum_ID", "ground_truth": "SELECT name , Level_of_membership FROM visitor WHERE Level_of_membership > 4 ORDER BY age DESC"}, {"prompt": "Convert text to SQL: [Question]: Find the id and name of the museum that has the most staff members?\n[Database Information]:[Schema (values)]: museum : Museum_ID , Name , Num_of_Staff , Open_Year | visitor : ID , Name , Level_of_membership , Age | visit : Museum_ID , visitor_ID , Num_of_Ticket , Total_spent\n[Column names (type)]: visit : * (text) | museum : Museum_ID (number) | museum : Name (text) | museum : Num_of_Staff (number) | museum : Open_Year (text) | visitor : ID (number) | visitor : Name (text) | visitor : Level_of_membership (number) | visitor : Age (number) | visit : Museum_ID (number) | visit : visitor_ID (text) | visit : Num_of_Ticket (number) | visit : Total_spent (number)\n[Primary Keys]: museum : Museum_ID | visitor : ID | visit : Museum_ID\n[Foreign Keys]: visit : visitor_ID equals visitor : ID | visit : Museum_ID equals museum : Museum_ID", "ground_truth": "SELECT museum_id , name FROM museum ORDER BY num_of_staff DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Find the average number of staff working for the museums that were open before 2009.\n[Database Information]:[Schema (values)]: museum : Museum_ID , Name , Num_of_Staff , Open_Year | visitor : ID , Name , Level_of_membership , Age | visit : Museum_ID , visitor_ID , Num_of_Ticket , Total_spent\n[Column names (type)]: visit : * (text) | museum : Museum_ID (number) | museum : Name (text) | museum : Num_of_Staff (number) | museum : Open_Year (text) | visitor : ID (number) | visitor : Name (text) | visitor : Level_of_membership (number) | visitor : Age (number) | visit : Museum_ID (number) | visit : visitor_ID (text) | visit : Num_of_Ticket (number) | visit : Total_spent (number)\n[Primary Keys]: museum : Museum_ID | visitor : ID | visit : Museum_ID\n[Foreign Keys]: visit : visitor_ID equals visitor : ID | visit : Museum_ID equals museum : Museum_ID", "ground_truth": "SELECT avg(num_of_staff) FROM museum WHERE open_year < 2009"}, {"prompt": "Convert text to SQL: [Question]: What are the opening year and staff number of the museum named Plaza Museum?\n[Database Information]:[Schema (values)]: museum : Museum_ID , Name , Num_of_Staff , Open_Year | visitor : ID , Name , Level_of_membership , Age | visit : Museum_ID , visitor_ID , Num_of_Ticket , Total_spent\n[Column names (type)]: visit : * (text) | museum : Museum_ID (number) | museum : Name (text) | museum : Num_of_Staff (number) | museum : Open_Year (text) | visitor : ID (number) | visitor : Name (text) | visitor : Level_of_membership (number) | visitor : Age (number) | visit : Museum_ID (number) | visit : visitor_ID (text) | visit : Num_of_Ticket (number) | visit : Total_spent (number)\n[Primary Keys]: museum : Museum_ID | visitor : ID | visit : Museum_ID\n[Foreign Keys]: visit : visitor_ID equals visitor : ID | visit : Museum_ID equals museum : Museum_ID", "ground_truth": "SELECT Num_of_Staff , Open_Year FROM museum WHERE name = 'Plaza Museum'"}, {"prompt": "Convert text to SQL: [Question]: find the names of museums which have more staff than the minimum staff number of all museums opened after 2010.\n[Database Information]:[Schema (values)]: museum : Museum_ID , Name , Num_of_Staff , Open_Year | visitor : ID , Name , Level_of_membership , Age | visit : Museum_ID , visitor_ID , Num_of_Ticket , Total_spent\n[Column names (type)]: visit : * (text) | museum : Museum_ID (number) | museum : Name (text) | museum : Num_of_Staff (number) | museum : Open_Year (text) | visitor : ID (number) | visitor : Name (text) | visitor : Level_of_membership (number) | visitor : Age (number) | visit : Museum_ID (number) | visit : visitor_ID (text) | visit : Num_of_Ticket (number) | visit : Total_spent (number)\n[Primary Keys]: museum : Museum_ID | visitor : ID | visit : Museum_ID\n[Foreign Keys]: visit : visitor_ID equals visitor : ID | visit : Museum_ID equals museum : Museum_ID", "ground_truth": "SELECT name FROM museum WHERE num_of_staff > (SELECT min(num_of_staff) FROM museum WHERE open_year > 2010)"}, {"prompt": "Convert text to SQL: [Question]: find the id, name and age for visitors who visited some museums more than once.\n[Database Information]:[Schema (values)]: museum : Museum_ID , Name , Num_of_Staff , Open_Year | visitor : ID , Name , Level_of_membership , Age | visit : Museum_ID , visitor_ID , Num_of_Ticket , Total_spent\n[Column names (type)]: visit : * (text) | museum : Museum_ID (number) | museum : Name (text) | museum : Num_of_Staff (number) | museum : Open_Year (text) | visitor : ID (number) | visitor : Name (text) | visitor : Level_of_membership (number) | visitor : Age (number) | visit : Museum_ID (number) | visit : visitor_ID (text) | visit : Num_of_Ticket (number) | visit : Total_spent (number)\n[Primary Keys]: museum : Museum_ID | visitor : ID | visit : Museum_ID\n[Foreign Keys]: visit : visitor_ID equals visitor : ID | visit : Museum_ID equals museum : Museum_ID", "ground_truth": "SELECT t1.id , t1.name , t1.age FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id GROUP BY t1.id HAVING count(*) > 1"}, {"prompt": "Convert text to SQL: [Question]: What are the id, name and membership level of visitors who have spent the largest amount of money in total in all museum tickets?\n[Database Information]:[Schema (values)]: museum : Museum_ID , Name , Num_of_Staff , Open_Year | visitor : ID , Name , Level_of_membership , Age | visit : Museum_ID , visitor_ID , Num_of_Ticket , Total_spent\n[Column names (type)]: visit : * (text) | museum : Museum_ID (number) | museum : Name (text) | museum : Num_of_Staff (number) | museum : Open_Year (text) | visitor : ID (number) | visitor : Name (text) | visitor : Level_of_membership (number) | visitor : Age (number) | visit : Museum_ID (number) | visit : visitor_ID (text) | visit : Num_of_Ticket (number) | visit : Total_spent (number)\n[Primary Keys]: museum : Museum_ID | visitor : ID | visit : Museum_ID\n[Foreign Keys]: visit : visitor_ID equals visitor : ID | visit : Museum_ID equals museum : Museum_ID", "ground_truth": "SELECT t2.visitor_id , t1.name , t1.Level_of_membership FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id GROUP BY t2.visitor_id ORDER BY sum(t2.Total_spent) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What are the id and name of the museum visited most times?\n[Database Information]:[Schema (values)]: museum : Museum_ID , Name , Num_of_Staff , Open_Year | visitor : ID , Name , Level_of_membership , Age | visit : Museum_ID , visitor_ID , Num_of_Ticket , Total_spent\n[Column names (type)]: visit : * (text) | museum : Museum_ID (number) | museum : Name (text) | museum : Num_of_Staff (number) | museum : Open_Year (text) | visitor : ID (number) | visitor : Name (text) | visitor : Level_of_membership (number) | visitor : Age (number) | visit : Museum_ID (number) | visit : visitor_ID (text) | visit : Num_of_Ticket (number) | visit : Total_spent (number)\n[Primary Keys]: museum : Museum_ID | visitor : ID | visit : Museum_ID\n[Foreign Keys]: visit : visitor_ID equals visitor : ID | visit : Museum_ID equals museum : Museum_ID", "ground_truth": "SELECT t2.Museum_ID , t1.name FROM museum AS t1 JOIN visit AS t2 ON t1.Museum_ID = t2.Museum_ID GROUP BY t2.Museum_ID ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the name of the museum that had no visitor yet?\n[Database Information]:[Schema (values)]: museum : Museum_ID , Name , Num_of_Staff , Open_Year | visitor : ID , Name , Level_of_membership , Age | visit : Museum_ID , visitor_ID , Num_of_Ticket , Total_spent\n[Column names (type)]: visit : * (text) | museum : Museum_ID (number) | museum : Name (text) | museum : Num_of_Staff (number) | museum : Open_Year (text) | visitor : ID (number) | visitor : Name (text) | visitor : Level_of_membership (number) | visitor : Age (number) | visit : Museum_ID (number) | visit : visitor_ID (text) | visit : Num_of_Ticket (number) | visit : Total_spent (number)\n[Primary Keys]: museum : Museum_ID | visitor : ID | visit : Museum_ID\n[Foreign Keys]: visit : visitor_ID equals visitor : ID | visit : Museum_ID equals museum : Museum_ID", "ground_truth": "SELECT name FROM museum WHERE Museum_ID NOT IN (SELECT museum_id FROM visit)"}, {"prompt": "Convert text to SQL: [Question]: Find the name and age of the visitor who bought the most tickets at once.\n[Database Information]:[Schema (values)]: museum : Museum_ID , Name , Num_of_Staff , Open_Year | visitor : ID , Name , Level_of_membership , Age | visit : Museum_ID , visitor_ID , Num_of_Ticket , Total_spent\n[Column names (type)]: visit : * (text) | museum : Museum_ID (number) | museum : Name (text) | museum : Num_of_Staff (number) | museum : Open_Year (text) | visitor : ID (number) | visitor : Name (text) | visitor : Level_of_membership (number) | visitor : Age (number) | visit : Museum_ID (number) | visit : visitor_ID (text) | visit : Num_of_Ticket (number) | visit : Total_spent (number)\n[Primary Keys]: museum : Museum_ID | visitor : ID | visit : Museum_ID\n[Foreign Keys]: visit : visitor_ID equals visitor : ID | visit : Museum_ID equals museum : Museum_ID", "ground_truth": "SELECT t1.name , t1.age FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id ORDER BY t2.num_of_ticket DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What are the average and maximum number of tickets bought in all visits?\n[Database Information]:[Schema (values)]: museum : Museum_ID , Name , Num_of_Staff , Open_Year | visitor : ID , Name , Level_of_membership , Age | visit : Museum_ID , visitor_ID , Num_of_Ticket , Total_spent\n[Column names (type)]: visit : * (text) | museum : Museum_ID (number) | museum : Name (text) | museum : Num_of_Staff (number) | museum : Open_Year (text) | visitor : ID (number) | visitor : Name (text) | visitor : Level_of_membership (number) | visitor : Age (number) | visit : Museum_ID (number) | visit : visitor_ID (text) | visit : Num_of_Ticket (number) | visit : Total_spent (number)\n[Primary Keys]: museum : Museum_ID | visitor : ID | visit : Museum_ID\n[Foreign Keys]: visit : visitor_ID equals visitor : ID | visit : Museum_ID equals museum : Museum_ID", "ground_truth": "SELECT avg(num_of_ticket) , max(num_of_ticket) FROM visit"}, {"prompt": "Convert text to SQL: [Question]: What is the total ticket expense of the visitors whose membership level is 1?\n[Database Information]:[Schema (values)]: museum : Museum_ID , Name , Num_of_Staff , Open_Year | visitor : ID , Name , Level_of_membership , Age | visit : Museum_ID , visitor_ID , Num_of_Ticket , Total_spent\n[Column names (type)]: visit : * (text) | museum : Museum_ID (number) | museum : Name (text) | museum : Num_of_Staff (number) | museum : Open_Year (text) | visitor : ID (number) | visitor : Name (text) | visitor : Level_of_membership (number) | visitor : Age (number) | visit : Museum_ID (number) | visit : visitor_ID (text) | visit : Num_of_Ticket (number) | visit : Total_spent (number)\n[Primary Keys]: museum : Museum_ID | visitor : ID | visit : Museum_ID\n[Foreign Keys]: visit : visitor_ID equals visitor : ID | visit : Museum_ID equals museum : Museum_ID", "ground_truth": "SELECT sum(t2.Total_spent) FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id WHERE t1.Level_of_membership = 1"}, {"prompt": "Convert text to SQL: [Question]: What is the name of the visitor who visited both a museum opened before 2009 and a museum opened after 2011?\n[Database Information]:[Schema (values)]: museum : Museum_ID , Name , Num_of_Staff , Open_Year | visitor : ID , Name , Level_of_membership , Age | visit : Museum_ID , visitor_ID , Num_of_Ticket , Total_spent\n[Column names (type)]: visit : * (text) | museum : Museum_ID (number) | museum : Name (text) | museum : Num_of_Staff (number) | museum : Open_Year (text) | visitor : ID (number) | visitor : Name (text) | visitor : Level_of_membership (number) | visitor : Age (number) | visit : Museum_ID (number) | visit : visitor_ID (text) | visit : Num_of_Ticket (number) | visit : Total_spent (number)\n[Primary Keys]: museum : Museum_ID | visitor : ID | visit : Museum_ID\n[Foreign Keys]: visit : visitor_ID equals visitor : ID | visit : Museum_ID equals museum : Museum_ID", "ground_truth": "SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID = t2.Museum_ID WHERE t3.open_year < 2009 INTERSECT SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID = t2.Museum_ID WHERE t3.open_year > 2011"}, {"prompt": "Convert text to SQL: [Question]: Find the number of visitors who did not visit any museum opened after 2010.\n[Database Information]:[Schema (values)]: museum : Museum_ID , Name , Num_of_Staff , Open_Year | visitor : ID , Name , Level_of_membership , Age | visit : Museum_ID , visitor_ID , Num_of_Ticket , Total_spent\n[Column names (type)]: visit : * (text) | museum : Museum_ID (number) | museum : Name (text) | museum : Num_of_Staff (number) | museum : Open_Year (text) | visitor : ID (number) | visitor : Name (text) | visitor : Level_of_membership (number) | visitor : Age (number) | visit : Museum_ID (number) | visit : visitor_ID (text) | visit : Num_of_Ticket (number) | visit : Total_spent (number)\n[Primary Keys]: museum : Museum_ID | visitor : ID | visit : Museum_ID\n[Foreign Keys]: visit : visitor_ID equals visitor : ID | visit : Museum_ID equals museum : Museum_ID", "ground_truth": "SELECT count(*) FROM visitor WHERE id NOT IN (SELECT t2.visitor_id FROM museum AS t1 JOIN visit AS t2 ON t1.Museum_ID = t2.Museum_ID WHERE t1.open_year > 2010)"}, {"prompt": "Convert text to SQL: [Question]: How many museums were opened after 2013 or before 2008?\n[Database Information]:[Schema (values)]: museum : Museum_ID , Name , Num_of_Staff , Open_Year | visitor : ID , Name , Level_of_membership , Age | visit : Museum_ID , visitor_ID , Num_of_Ticket , Total_spent\n[Column names (type)]: visit : * (text) | museum : Museum_ID (number) | museum : Name (text) | museum : Num_of_Staff (number) | museum : Open_Year (text) | visitor : ID (number) | visitor : Name (text) | visitor : Level_of_membership (number) | visitor : Age (number) | visit : Museum_ID (number) | visit : visitor_ID (text) | visit : Num_of_Ticket (number) | visit : Total_spent (number)\n[Primary Keys]: museum : Museum_ID | visitor : ID | visit : Museum_ID\n[Foreign Keys]: visit : visitor_ID equals visitor : ID | visit : Museum_ID equals museum : Museum_ID", "ground_truth": "SELECT count(*) FROM museum WHERE open_year > 2013 OR open_year < 2008"}, {"prompt": "Convert text to SQL: [Question]: Find the total number of players.\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT count(*) FROM players"}, {"prompt": "Convert text to SQL: [Question]: How many players are there?\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT count(*) FROM players"}, {"prompt": "Convert text to SQL: [Question]: Find the total number of matches.\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT count(*) FROM matches"}, {"prompt": "Convert text to SQL: [Question]: Count the number of matches.\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT count(*) FROM matches"}, {"prompt": "Convert text to SQL: [Question]: List the first name and birth date of all players from the country with code USA.\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT first_name , birth_date FROM players WHERE country_code = 'USA'"}, {"prompt": "Convert text to SQL: [Question]: What are the first names and birth dates of players from the USA?\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT first_name , birth_date FROM players WHERE country_code = 'USA'"}, {"prompt": "Convert text to SQL: [Question]: Find the average age of losers and winners of all matches.\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT avg(loser_age) , avg(winner_age) FROM matches"}, {"prompt": "Convert text to SQL: [Question]: What are the average ages of losers and winners across matches?\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT avg(loser_age) , avg(winner_age) FROM matches"}, {"prompt": "Convert text to SQL: [Question]: Find the average rank of winners in all matches.\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT avg(winner_rank) FROM matches"}, {"prompt": "Convert text to SQL: [Question]: What is the average rank for winners in all matches?\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT avg(winner_rank) FROM matches"}, {"prompt": "Convert text to SQL: [Question]: Find the highest rank of losers in all matches.\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT min(loser_rank) FROM matches"}, {"prompt": "Convert text to SQL: [Question]: What is the best rank of losers across all matches?\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT min(loser_rank) FROM matches"}, {"prompt": "Convert text to SQL: [Question]: find the number of distinct country codes of all players.\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT count(DISTINCT country_code) FROM players"}, {"prompt": "Convert text to SQL: [Question]: How many distinct countries do players come from?\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT count(DISTINCT country_code) FROM players"}, {"prompt": "Convert text to SQL: [Question]: Find the number of distinct name of losers.\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT count(DISTINCT loser_name) FROM matches"}, {"prompt": "Convert text to SQL: [Question]: How many different loser names are there?\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT count(DISTINCT loser_name) FROM matches"}, {"prompt": "Convert text to SQL: [Question]: Find the name of tourney that has more than 10 matches.\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT tourney_name FROM matches GROUP BY tourney_name HAVING count(*) > 10"}, {"prompt": "Convert text to SQL: [Question]: What are the names of tournaments that have more than 10 matches?\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT tourney_name FROM matches GROUP BY tourney_name HAVING count(*) > 10"}, {"prompt": "Convert text to SQL: [Question]: List the names of all winners who played in both 2013 and 2016.\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT winner_name FROM matches WHERE YEAR = 2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR = 2016"}, {"prompt": "Convert text to SQL: [Question]: What are the names of players who won in both 2013 and 2016?\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT winner_name FROM matches WHERE YEAR = 2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR = 2016"}, {"prompt": "Convert text to SQL: [Question]: List the number of all matches who played in years of 2013 or 2016.\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT count(*) FROM matches WHERE YEAR = 2013 OR YEAR = 2016"}, {"prompt": "Convert text to SQL: [Question]: How many matches were played in 2013 or 2016?\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT count(*) FROM matches WHERE YEAR = 2013 OR YEAR = 2016"}, {"prompt": "Convert text to SQL: [Question]: What are the country code and first name of the players who won in both tourney WTA Championships and Australian Open?\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'WTA Championships' INTERSECT SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'Australian Open'"}, {"prompt": "Convert text to SQL: [Question]: What are the first names and country codes for players who won both the WTA Championships and the Australian Open?\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'WTA Championships' INTERSECT SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'Australian Open'"}, {"prompt": "Convert text to SQL: [Question]: Find the first name and country code of the oldest player.\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT first_name , country_code FROM players ORDER BY birth_date LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the first name and country code of the oldest player?\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT first_name , country_code FROM players ORDER BY birth_date LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: List the first and last name of all players in the order of birth date.\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT first_name , last_name FROM players ORDER BY birth_date"}, {"prompt": "Convert text to SQL: [Question]: What are the full names of all players, sorted by birth date?\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT first_name , last_name FROM players ORDER BY birth_date"}, {"prompt": "Convert text to SQL: [Question]: List the first and last name of all players who are left / L hand in the order of birth date.\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT first_name , last_name FROM players WHERE hand = 'L' ORDER BY birth_date"}, {"prompt": "Convert text to SQL: [Question]: What are the full names of all left handed players, in order of birth date?\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT first_name , last_name FROM players WHERE hand = 'L' ORDER BY birth_date"}, {"prompt": "Convert text to SQL: [Question]: Find the first name and country code of the player who did the most number of tours.\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.tours DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the first name and country code of the player with the most tours?\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.tours DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Find the year that has the most number of matches.\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT YEAR FROM matches GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Which year had the most matches?\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT YEAR FROM matches GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Find the name and rank points of the winner who won the most times.\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT winner_name , winner_rank_points FROM matches GROUP BY winner_name ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the name of the winner who has won the most matches, and how many rank points does this player have?\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT winner_name , winner_rank_points FROM matches GROUP BY winner_name ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Find the name of the winner who has the highest rank points and participated in the Australian Open tourney.\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT winner_name FROM matches WHERE tourney_name = 'Australian Open' ORDER BY winner_rank_points DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the name of the winner with the most rank points who participated in the Australian Open tournament?\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT winner_name FROM matches WHERE tourney_name = 'Australian Open' ORDER BY winner_rank_points DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: find the names of loser and winner who played in the match with greatest number of minutes.\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT winner_name , loser_name FROM matches ORDER BY minutes DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What are the names of the winner and loser who played in the longest match?\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT winner_name , loser_name FROM matches ORDER BY minutes DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Find the average ranking for each player and their first name.\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT avg(ranking) , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name"}, {"prompt": "Convert text to SQL: [Question]: What are the first names of all players, and their average rankings?\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT avg(ranking) , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name"}, {"prompt": "Convert text to SQL: [Question]: Find the total ranking points for each player and their first name.\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT sum(ranking_points) , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name"}, {"prompt": "Convert text to SQL: [Question]: What are the first names of all players, and their total ranking points?\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT sum(ranking_points) , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name"}, {"prompt": "Convert text to SQL: [Question]: find the number of players for each country.\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT count(*) , country_code FROM players GROUP BY country_code"}, {"prompt": "Convert text to SQL: [Question]: How many players are from each country?\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT count(*) , country_code FROM players GROUP BY country_code"}, {"prompt": "Convert text to SQL: [Question]: find the code of the country where has the greatest number of players.\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT country_code FROM players GROUP BY country_code ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the code of the country with the most players?\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT country_code FROM players GROUP BY country_code ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Find the codes of countries that have more than 50 players.\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT country_code FROM players GROUP BY country_code HAVING count(*) > 50"}, {"prompt": "Convert text to SQL: [Question]: What are the codes of countries with more than 50 players?\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT country_code FROM players GROUP BY country_code HAVING count(*) > 50"}, {"prompt": "Convert text to SQL: [Question]: Find the total number of tours for each ranking date.\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT sum(tours) , ranking_date FROM rankings GROUP BY ranking_date"}, {"prompt": "Convert text to SQL: [Question]: How many total tours were there for each ranking date?\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT sum(tours) , ranking_date FROM rankings GROUP BY ranking_date"}, {"prompt": "Convert text to SQL: [Question]: Find the number of matches happened in each year.\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT count(*) , YEAR FROM matches GROUP BY YEAR"}, {"prompt": "Convert text to SQL: [Question]: How many matches were played in each year?\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT count(*) , YEAR FROM matches GROUP BY YEAR"}, {"prompt": "Convert text to SQL: [Question]: Find the name and rank of the 3 youngest winners across all matches.\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT DISTINCT winner_name , winner_rank FROM matches ORDER BY winner_age LIMIT 3"}, {"prompt": "Convert text to SQL: [Question]: What are the names and ranks of the three youngest winners across all matches?\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT DISTINCT winner_name , winner_rank FROM matches ORDER BY winner_age LIMIT 3"}, {"prompt": "Convert text to SQL: [Question]: How many different winners both participated in the WTA Championships and were left handed?\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT count(DISTINCT winner_name) FROM matches WHERE tourney_name = 'WTA Championships' AND winner_hand = 'L'"}, {"prompt": "Convert text to SQL: [Question]: Find the number of left handed winners who participated in the WTA Championships.\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT count(DISTINCT winner_name) FROM matches WHERE tourney_name = 'WTA Championships' AND winner_hand = 'L'"}, {"prompt": "Convert text to SQL: [Question]: Find the first name, country code and birth date of the winner who has the highest rank points in all matches.\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT T1.first_name , T1.country_code , T1.birth_date FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id ORDER BY T2.winner_rank_points DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the first name, country code, and birth date of the player with the most winner rank points across all matches?\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT T1.first_name , T1.country_code , T1.birth_date FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id ORDER BY T2.winner_rank_points DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Find the number of players for each hand type.\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT count(*) , hand FROM players GROUP BY hand"}, {"prompt": "Convert text to SQL: [Question]: How many players are there for each hand type?\n[Database Information]:[Schema (values)]: players : player_id , first_name , last_name , hand , birth_date , country_code | matches : best_of , draw_size , loser_age , loser_entry , loser_hand , loser_ht , loser_id , loser_ioc , loser_name , loser_rank , loser_rank_points , loser_seed , match_num , minutes , round , score , surface , tourney_date , tourney_id , tourney_level , tourney_name , winner_age , winner_entry , winner_hand , winner_ht , winner_id , winner_ioc , winner_name , winner_rank , winner_rank_points , winner_seed , year | rankings : ranking_date , ranking , player_id , ranking_points , tours\n[Column names (type)]: rankings : * (text) | players : player_id (number) | players : first_name (text) | players : last_name (text) | players : hand (text) | players : birth_date (time) | players : country_code (text) | matches : best_of (number) | matches : draw_size (number) | matches : loser_age (number) | matches : loser_entry (text) | matches : loser_hand (text) | matches : loser_ht (number) | matches : loser_id (number) | matches : loser_ioc (text) | matches : loser_name (text) | matches : loser_rank (number) | matches : loser_rank_points (number) | matches : loser_seed (number) | matches : match_num (number) | matches : minutes (number) | matches : round (text) | matches : score (text) | matches : surface (text) | matches : tourney_date (time) | matches : tourney_id (text) | matches : tourney_level (text) | matches : tourney_name (text) | matches : winner_age (number) | matches : winner_entry (text) | matches : winner_hand (text) | matches : winner_ht (number) | matches : winner_id (number) | matches : winner_ioc (text) | matches : winner_name (text) | matches : winner_rank (number) | matches : winner_rank_points (number) | matches : winner_seed (number) | matches : year (number) | rankings : ranking_date (time) | rankings : ranking (number) | rankings : player_id (number) | rankings : ranking_points (number) | rankings : tours (number)\n[Primary Keys]: players : player_id\n[Foreign Keys]: matches : winner_id equals players : player_id | matches : loser_id equals players : player_id | rankings : player_id equals players : player_id", "ground_truth": "SELECT count(*) , hand FROM players GROUP BY hand"}, {"prompt": "Convert text to SQL: [Question]: How many ships ended up being 'Captured'?\n[Database Information]:[Schema (values)]: battle : id , name , date , bulgarian_commander , latin_commander , result | ship : lost_in_battle , id , name , tonnage , ship_type , location , disposition_of_ship | death : caused_by_ship_id , id , note , killed , injured\n[Column names (type)]: death : * (text) | battle : id (number) | battle : name (text) | battle : date (text) | battle : bulgarian_commander (text) | battle : latin_commander (text) | battle : result (text) | ship : lost_in_battle (number) | ship : id (number) | ship : name (text) | ship : tonnage (text) | ship : ship_type (text) | ship : location (text) | ship : disposition_of_ship (text) | death : caused_by_ship_id (number) | death : id (number) | death : note (text) | death : killed (number) | death : injured (number)\n[Primary Keys]: battle : id | ship : id | death : id\n[Foreign Keys]: ship : lost_in_battle equals battle : id | death : caused_by_ship_id equals ship : id", "ground_truth": "SELECT count(*) FROM ship WHERE disposition_of_ship = 'Captured'"}, {"prompt": "Convert text to SQL: [Question]: List the name and tonnage ordered by in descending alphaetical order for the names.\n[Database Information]:[Schema (values)]: battle : id , name , date , bulgarian_commander , latin_commander , result | ship : lost_in_battle , id , name , tonnage , ship_type , location , disposition_of_ship | death : caused_by_ship_id , id , note , killed , injured\n[Column names (type)]: death : * (text) | battle : id (number) | battle : name (text) | battle : date (text) | battle : bulgarian_commander (text) | battle : latin_commander (text) | battle : result (text) | ship : lost_in_battle (number) | ship : id (number) | ship : name (text) | ship : tonnage (text) | ship : ship_type (text) | ship : location (text) | ship : disposition_of_ship (text) | death : caused_by_ship_id (number) | death : id (number) | death : note (text) | death : killed (number) | death : injured (number)\n[Primary Keys]: battle : id | ship : id | death : id\n[Foreign Keys]: ship : lost_in_battle equals battle : id | death : caused_by_ship_id equals ship : id", "ground_truth": "SELECT name , tonnage FROM ship ORDER BY name DESC"}, {"prompt": "Convert text to SQL: [Question]: List the name, date and result of each battle.\n[Database Information]:[Schema (values)]: battle : id , name , date , bulgarian_commander , latin_commander , result | ship : lost_in_battle , id , name , tonnage , ship_type , location , disposition_of_ship | death : caused_by_ship_id , id , note , killed , injured\n[Column names (type)]: death : * (text) | battle : id (number) | battle : name (text) | battle : date (text) | battle : bulgarian_commander (text) | battle : latin_commander (text) | battle : result (text) | ship : lost_in_battle (number) | ship : id (number) | ship : name (text) | ship : tonnage (text) | ship : ship_type (text) | ship : location (text) | ship : disposition_of_ship (text) | death : caused_by_ship_id (number) | death : id (number) | death : note (text) | death : killed (number) | death : injured (number)\n[Primary Keys]: battle : id | ship : id | death : id\n[Foreign Keys]: ship : lost_in_battle equals battle : id | death : caused_by_ship_id equals ship : id", "ground_truth": "SELECT name , date FROM battle"}, {"prompt": "Convert text to SQL: [Question]: What is maximum and minimum death toll caused each time?\n[Database Information]:[Schema (values)]: battle : id , name , date , bulgarian_commander , latin_commander , result | ship : lost_in_battle , id , name , tonnage , ship_type , location , disposition_of_ship | death : caused_by_ship_id , id , note , killed , injured\n[Column names (type)]: death : * (text) | battle : id (number) | battle : name (text) | battle : date (text) | battle : bulgarian_commander (text) | battle : latin_commander (text) | battle : result (text) | ship : lost_in_battle (number) | ship : id (number) | ship : name (text) | ship : tonnage (text) | ship : ship_type (text) | ship : location (text) | ship : disposition_of_ship (text) | death : caused_by_ship_id (number) | death : id (number) | death : note (text) | death : killed (number) | death : injured (number)\n[Primary Keys]: battle : id | ship : id | death : id\n[Foreign Keys]: ship : lost_in_battle equals battle : id | death : caused_by_ship_id equals ship : id", "ground_truth": "SELECT max(killed) , min(killed) FROM death"}, {"prompt": "Convert text to SQL: [Question]: What is the average number of injuries caused each time?\n[Database Information]:[Schema (values)]: battle : id , name , date , bulgarian_commander , latin_commander , result | ship : lost_in_battle , id , name , tonnage , ship_type , location , disposition_of_ship | death : caused_by_ship_id , id , note , killed , injured\n[Column names (type)]: death : * (text) | battle : id (number) | battle : name (text) | battle : date (text) | battle : bulgarian_commander (text) | battle : latin_commander (text) | battle : result (text) | ship : lost_in_battle (number) | ship : id (number) | ship : name (text) | ship : tonnage (text) | ship : ship_type (text) | ship : location (text) | ship : disposition_of_ship (text) | death : caused_by_ship_id (number) | death : id (number) | death : note (text) | death : killed (number) | death : injured (number)\n[Primary Keys]: battle : id | ship : id | death : id\n[Foreign Keys]: ship : lost_in_battle equals battle : id | death : caused_by_ship_id equals ship : id", "ground_truth": "SELECT avg(injured) FROM death"}, {"prompt": "Convert text to SQL: [Question]: What are the death and injury situations caused by the ship with tonnage 't'?\n[Database Information]:[Schema (values)]: battle : id , name , date , bulgarian_commander , latin_commander , result | ship : lost_in_battle , id , name , tonnage , ship_type , location , disposition_of_ship | death : caused_by_ship_id , id , note , killed , injured\n[Column names (type)]: death : * (text) | battle : id (number) | battle : name (text) | battle : date (text) | battle : bulgarian_commander (text) | battle : latin_commander (text) | battle : result (text) | ship : lost_in_battle (number) | ship : id (number) | ship : name (text) | ship : tonnage (text) | ship : ship_type (text) | ship : location (text) | ship : disposition_of_ship (text) | death : caused_by_ship_id (number) | death : id (number) | death : note (text) | death : killed (number) | death : injured (number)\n[Primary Keys]: battle : id | ship : id | death : id\n[Foreign Keys]: ship : lost_in_battle equals battle : id | death : caused_by_ship_id equals ship : id", "ground_truth": "SELECT T1.killed , T1.injured FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id WHERE T2.tonnage = 't'"}, {"prompt": "Convert text to SQL: [Question]: What are the name and results of the battles when the bulgarian commander is not 'Boril'\n[Database Information]:[Schema (values)]: battle : id , name , date , bulgarian_commander , latin_commander , result | ship : lost_in_battle , id , name , tonnage , ship_type , location , disposition_of_ship | death : caused_by_ship_id , id , note , killed , injured\n[Column names (type)]: death : * (text) | battle : id (number) | battle : name (text) | battle : date (text) | battle : bulgarian_commander (text) | battle : latin_commander (text) | battle : result (text) | ship : lost_in_battle (number) | ship : id (number) | ship : name (text) | ship : tonnage (text) | ship : ship_type (text) | ship : location (text) | ship : disposition_of_ship (text) | death : caused_by_ship_id (number) | death : id (number) | death : note (text) | death : killed (number) | death : injured (number)\n[Primary Keys]: battle : id | ship : id | death : id\n[Foreign Keys]: ship : lost_in_battle equals battle : id | death : caused_by_ship_id equals ship : id", "ground_truth": "SELECT name , RESULT FROM battle WHERE bulgarian_commander != 'Boril'"}, {"prompt": "Convert text to SQL: [Question]: What are the different ids and names of the battles that lost any 'Brig' type shipes?\n[Database Information]:[Schema (values)]: battle : id , name , date , bulgarian_commander , latin_commander , result | ship : lost_in_battle , id , name , tonnage , ship_type , location , disposition_of_ship | death : caused_by_ship_id , id , note , killed , injured\n[Column names (type)]: death : * (text) | battle : id (number) | battle : name (text) | battle : date (text) | battle : bulgarian_commander (text) | battle : latin_commander (text) | battle : result (text) | ship : lost_in_battle (number) | ship : id (number) | ship : name (text) | ship : tonnage (text) | ship : ship_type (text) | ship : location (text) | ship : disposition_of_ship (text) | death : caused_by_ship_id (number) | death : id (number) | death : note (text) | death : killed (number) | death : injured (number)\n[Primary Keys]: battle : id | ship : id | death : id\n[Foreign Keys]: ship : lost_in_battle equals battle : id | death : caused_by_ship_id equals ship : id", "ground_truth": "SELECT DISTINCT T1.id , T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.ship_type = 'Brig'"}, {"prompt": "Convert text to SQL: [Question]: What are the ids and names of the battles that led to more than 10 people killed in total.\n[Database Information]:[Schema (values)]: battle : id , name , date , bulgarian_commander , latin_commander , result | ship : lost_in_battle , id , name , tonnage , ship_type , location , disposition_of_ship | death : caused_by_ship_id , id , note , killed , injured\n[Column names (type)]: death : * (text) | battle : id (number) | battle : name (text) | battle : date (text) | battle : bulgarian_commander (text) | battle : latin_commander (text) | battle : result (text) | ship : lost_in_battle (number) | ship : id (number) | ship : name (text) | ship : tonnage (text) | ship : ship_type (text) | ship : location (text) | ship : disposition_of_ship (text) | death : caused_by_ship_id (number) | death : id (number) | death : note (text) | death : killed (number) | death : injured (number)\n[Primary Keys]: battle : id | ship : id | death : id\n[Foreign Keys]: ship : lost_in_battle equals battle : id | death : caused_by_ship_id equals ship : id", "ground_truth": "SELECT T1.id , T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle JOIN death AS T3 ON T2.id = T3.caused_by_ship_id GROUP BY T1.id HAVING sum(T3.killed) > 10"}, {"prompt": "Convert text to SQL: [Question]: What is the ship id and name that caused most total injuries?\n[Database Information]:[Schema (values)]: battle : id , name , date , bulgarian_commander , latin_commander , result | ship : lost_in_battle , id , name , tonnage , ship_type , location , disposition_of_ship | death : caused_by_ship_id , id , note , killed , injured\n[Column names (type)]: death : * (text) | battle : id (number) | battle : name (text) | battle : date (text) | battle : bulgarian_commander (text) | battle : latin_commander (text) | battle : result (text) | ship : lost_in_battle (number) | ship : id (number) | ship : name (text) | ship : tonnage (text) | ship : ship_type (text) | ship : location (text) | ship : disposition_of_ship (text) | death : caused_by_ship_id (number) | death : id (number) | death : note (text) | death : killed (number) | death : injured (number)\n[Primary Keys]: battle : id | ship : id | death : id\n[Foreign Keys]: ship : lost_in_battle equals battle : id | death : caused_by_ship_id equals ship : id", "ground_truth": "SELECT T2.id , T2.name FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id GROUP BY T2.id ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What are the distinct battle names which are between bulgarian commander 'Kaloyan' and latin commander 'Baldwin I'?\n[Database Information]:[Schema (values)]: battle : id , name , date , bulgarian_commander , latin_commander , result | ship : lost_in_battle , id , name , tonnage , ship_type , location , disposition_of_ship | death : caused_by_ship_id , id , note , killed , injured\n[Column names (type)]: death : * (text) | battle : id (number) | battle : name (text) | battle : date (text) | battle : bulgarian_commander (text) | battle : latin_commander (text) | battle : result (text) | ship : lost_in_battle (number) | ship : id (number) | ship : name (text) | ship : tonnage (text) | ship : ship_type (text) | ship : location (text) | ship : disposition_of_ship (text) | death : caused_by_ship_id (number) | death : id (number) | death : note (text) | death : killed (number) | death : injured (number)\n[Primary Keys]: battle : id | ship : id | death : id\n[Foreign Keys]: ship : lost_in_battle equals battle : id | death : caused_by_ship_id equals ship : id", "ground_truth": "SELECT name FROM battle WHERE bulgarian_commander = 'Kaloyan' AND latin_commander = 'Baldwin I'"}, {"prompt": "Convert text to SQL: [Question]: How many different results are there for the battles?\n[Database Information]:[Schema (values)]: battle : id , name , date , bulgarian_commander , latin_commander , result | ship : lost_in_battle , id , name , tonnage , ship_type , location , disposition_of_ship | death : caused_by_ship_id , id , note , killed , injured\n[Column names (type)]: death : * (text) | battle : id (number) | battle : name (text) | battle : date (text) | battle : bulgarian_commander (text) | battle : latin_commander (text) | battle : result (text) | ship : lost_in_battle (number) | ship : id (number) | ship : name (text) | ship : tonnage (text) | ship : ship_type (text) | ship : location (text) | ship : disposition_of_ship (text) | death : caused_by_ship_id (number) | death : id (number) | death : note (text) | death : killed (number) | death : injured (number)\n[Primary Keys]: battle : id | ship : id | death : id\n[Foreign Keys]: ship : lost_in_battle equals battle : id | death : caused_by_ship_id equals ship : id", "ground_truth": "SELECT count(DISTINCT RESULT) FROM battle"}, {"prompt": "Convert text to SQL: [Question]: How many battles did not lose any ship with tonnage '225'?\n[Database Information]:[Schema (values)]: battle : id , name , date , bulgarian_commander , latin_commander , result | ship : lost_in_battle , id , name , tonnage , ship_type , location , disposition_of_ship | death : caused_by_ship_id , id , note , killed , injured\n[Column names (type)]: death : * (text) | battle : id (number) | battle : name (text) | battle : date (text) | battle : bulgarian_commander (text) | battle : latin_commander (text) | battle : result (text) | ship : lost_in_battle (number) | ship : id (number) | ship : name (text) | ship : tonnage (text) | ship : ship_type (text) | ship : location (text) | ship : disposition_of_ship (text) | death : caused_by_ship_id (number) | death : id (number) | death : note (text) | death : killed (number) | death : injured (number)\n[Primary Keys]: battle : id | ship : id | death : id\n[Foreign Keys]: ship : lost_in_battle equals battle : id | death : caused_by_ship_id equals ship : id", "ground_truth": "SELECT count(*) FROM battle WHERE id NOT IN ( SELECT lost_in_battle FROM ship WHERE tonnage = '225' );"}, {"prompt": "Convert text to SQL: [Question]: List the name and date the battle that has lost the ship named 'Lettice' and the ship named 'HMS Atalanta'\n[Database Information]:[Schema (values)]: battle : id , name , date , bulgarian_commander , latin_commander , result | ship : lost_in_battle , id , name , tonnage , ship_type , location , disposition_of_ship | death : caused_by_ship_id , id , note , killed , injured\n[Column names (type)]: death : * (text) | battle : id (number) | battle : name (text) | battle : date (text) | battle : bulgarian_commander (text) | battle : latin_commander (text) | battle : result (text) | ship : lost_in_battle (number) | ship : id (number) | ship : name (text) | ship : tonnage (text) | ship : ship_type (text) | ship : location (text) | ship : disposition_of_ship (text) | death : caused_by_ship_id (number) | death : id (number) | death : note (text) | death : killed (number) | death : injured (number)\n[Primary Keys]: battle : id | ship : id | death : id\n[Foreign Keys]: ship : lost_in_battle equals battle : id | death : caused_by_ship_id equals ship : id", "ground_truth": "SELECT T1.name , T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.name = 'Lettice' INTERSECT SELECT T1.name , T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.name = 'HMS Atalanta'"}, {"prompt": "Convert text to SQL: [Question]: Show names, results and bulgarian commanders of the battles with no ships lost in the 'English Channel'.\n[Database Information]:[Schema (values)]: battle : id , name , date , bulgarian_commander , latin_commander , result | ship : lost_in_battle , id , name , tonnage , ship_type , location , disposition_of_ship | death : caused_by_ship_id , id , note , killed , injured\n[Column names (type)]: death : * (text) | battle : id (number) | battle : name (text) | battle : date (text) | battle : bulgarian_commander (text) | battle : latin_commander (text) | battle : result (text) | ship : lost_in_battle (number) | ship : id (number) | ship : name (text) | ship : tonnage (text) | ship : ship_type (text) | ship : location (text) | ship : disposition_of_ship (text) | death : caused_by_ship_id (number) | death : id (number) | death : note (text) | death : killed (number) | death : injured (number)\n[Primary Keys]: battle : id | ship : id | death : id\n[Foreign Keys]: ship : lost_in_battle equals battle : id | death : caused_by_ship_id equals ship : id", "ground_truth": "SELECT name , RESULT , bulgarian_commander FROM battle EXCEPT SELECT T1.name , T1.result , T1.bulgarian_commander FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.location = 'English Channel'"}, {"prompt": "Convert text to SQL: [Question]: What are the notes of the death events which has substring 'East'?\n[Database Information]:[Schema (values)]: battle : id , name , date , bulgarian_commander , latin_commander , result | ship : lost_in_battle , id , name , tonnage , ship_type , location , disposition_of_ship | death : caused_by_ship_id , id , note , killed , injured\n[Column names (type)]: death : * (text) | battle : id (number) | battle : name (text) | battle : date (text) | battle : bulgarian_commander (text) | battle : latin_commander (text) | battle : result (text) | ship : lost_in_battle (number) | ship : id (number) | ship : name (text) | ship : tonnage (text) | ship : ship_type (text) | ship : location (text) | ship : disposition_of_ship (text) | death : caused_by_ship_id (number) | death : id (number) | death : note (text) | death : killed (number) | death : injured (number)\n[Primary Keys]: battle : id | ship : id | death : id\n[Foreign Keys]: ship : lost_in_battle equals battle : id | death : caused_by_ship_id equals ship : id", "ground_truth": "SELECT note FROM death WHERE note LIKE '%East%'"}, {"prompt": "Convert text to SQL: [Question]: what are all the addresses including line 1 and line 2?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT line_1 , line_2 FROM addresses"}, {"prompt": "Convert text to SQL: [Question]: What is the first and second line for all addresses?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT line_1 , line_2 FROM addresses"}, {"prompt": "Convert text to SQL: [Question]: How many courses in total are listed?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT count(*) FROM Courses"}, {"prompt": "Convert text to SQL: [Question]: How many courses are there?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT count(*) FROM Courses"}, {"prompt": "Convert text to SQL: [Question]: How is the math course described?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT course_description FROM Courses WHERE course_name = 'math'"}, {"prompt": "Convert text to SQL: [Question]: What are the descriptions for all the math courses?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT course_description FROM Courses WHERE course_name = 'math'"}, {"prompt": "Convert text to SQL: [Question]: What is the zip code of the address in the city Port Chelsea?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT zip_postcode FROM Addresses WHERE city = 'Port Chelsea'"}, {"prompt": "Convert text to SQL: [Question]: What is the zip code for Port Chelsea?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT zip_postcode FROM Addresses WHERE city = 'Port Chelsea'"}, {"prompt": "Convert text to SQL: [Question]: Which department offers the most number of degrees? List department name and id.\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT T2.department_name , T1.department_id FROM Degree_Programs AS T1 JOIN Departments AS T2 ON T1.department_id = T2.department_id GROUP BY T1.department_id ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the name and id of the department with the most number of degrees ?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "select t2.department_name , t1.department_id from degree_programs as t1 join departments as t2 on t1.department_id = t2.department_id group by t1.department_id order by count(*) desc limit 1"}, {"prompt": "Convert text to SQL: [Question]: How many departments offer any degree?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT count(DISTINCT department_id) FROM Degree_Programs"}, {"prompt": "Convert text to SQL: [Question]: How many different departments offer degrees?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT count(DISTINCT department_id) FROM Degree_Programs"}, {"prompt": "Convert text to SQL: [Question]: How many different degree names are offered?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT count(DISTINCT degree_summary_name) FROM Degree_Programs"}, {"prompt": "Convert text to SQL: [Question]: How many different degrees are offered?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT count(DISTINCT degree_summary_name) FROM Degree_Programs"}, {"prompt": "Convert text to SQL: [Question]: How many degrees does the engineering department offer?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT count(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id = T2.department_id WHERE T1.department_name = 'engineer'"}, {"prompt": "Convert text to SQL: [Question]: How many degrees does the engineering department have?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT count(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id = T2.department_id WHERE T1.department_name = 'engineer'"}, {"prompt": "Convert text to SQL: [Question]: What are the names and descriptions of all the sections?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT section_name , section_description FROM Sections"}, {"prompt": "Convert text to SQL: [Question]: What are the names and descriptions for all the sections?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT section_name , section_description FROM Sections"}, {"prompt": "Convert text to SQL: [Question]: What are the names and id of courses having at most 2 sections?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT T1.course_name , T1.course_id FROM Courses AS T1 JOIN Sections AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_id HAVING count(*) <= 2"}, {"prompt": "Convert text to SQL: [Question]: What are the names and ids of every course with less than 2 sections?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT T1.course_name , T1.course_id FROM Courses AS T1 JOIN Sections AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_id HAVING count(*) <= 2"}, {"prompt": "Convert text to SQL: [Question]: List the section_name in reversed lexicographical order.\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT section_name FROM Sections ORDER BY section_name DESC"}, {"prompt": "Convert text to SQL: [Question]: What are the names of the sections in reverse alphabetical order?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT section_name FROM Sections ORDER BY section_name DESC"}, {"prompt": "Convert text to SQL: [Question]: What is the semester which most student registered in? Show both the name and the id.\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT T1.semester_name , T1.semester_id FROM Semesters AS T1 JOIN Student_Enrolment AS T2 ON T1.semester_id = T2.semester_id GROUP BY T1.semester_id ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: For each semester, what is the name and id of the one with the most students registered?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT T1.semester_name , T1.semester_id FROM Semesters AS T1 JOIN Student_Enrolment AS T2 ON T1.semester_id = T2.semester_id GROUP BY T1.semester_id ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the description of the department whose name has the substring the computer?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT department_description FROM Departments WHERE department_name LIKE '%computer%'"}, {"prompt": "Convert text to SQL: [Question]: What is the department description for the one whose name has the word computer?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT department_description FROM Departments WHERE department_name LIKE '%computer%'"}, {"prompt": "Convert text to SQL: [Question]: Who are enrolled in 2 degree programs in one semester? List the first name, middle name and last name and the id.\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT T1.first_name , T1.middle_name , T1.last_name , T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING count(*) = 2"}, {"prompt": "Convert text to SQL: [Question]: What are the first, middle, and last names, along with the ids, of all students who enrolled in 2 degree programs in one semester?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT T1.first_name , T1.middle_name , T1.last_name , T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING count(*) = 2"}, {"prompt": "Convert text to SQL: [Question]: Who is enrolled in a Bachelor degree program? List the first name, middle name, last name.\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT DISTINCT T1.first_name , T1.middle_name , T1.last_name FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id JOIN Degree_Programs AS T3 ON T2.degree_program_id = T3.degree_program_id WHERE T3.degree_summary_name = 'Bachelor'"}, {"prompt": "Convert text to SQL: [Question]: What are the first, middle, and last names for everybody enrolled in a Bachelors program?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT DISTINCT T1.first_name , T1.middle_name , T1.last_name FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id JOIN Degree_Programs AS T3 ON T2.degree_program_id = T3.degree_program_id WHERE T3.degree_summary_name = 'Bachelor'"}, {"prompt": "Convert text to SQL: [Question]: Find the kind of program which most number of students are enrolled in?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_summary_name ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the degree summary name that has the most number of students enrolled?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_summary_name ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Find the program which most number of students are enrolled in. List both the id and the summary.\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT T1.degree_program_id , T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_program_id ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the program id and the summary of the degree that has the most students enrolled?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT T1.degree_program_id , T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_program_id ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Which student has enrolled for the most times in any program? List the id, first name, middle name, last name, the number of enrollments and student id.\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT T1.student_id , T1.first_name , T1.middle_name , T1.last_name , count(*) , T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the first, middle, and last name, along with the id and number of enrollments, for the student who enrolled the most in any program?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT T1.student_id , T1.first_name , T1.middle_name , T1.last_name , count(*) , T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Which semesters do not have any student enrolled? List the semester name.\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT semester_name FROM Semesters WHERE semester_id NOT IN( SELECT semester_id FROM Student_Enrolment )"}, {"prompt": "Convert text to SQL: [Question]: What is the name of the semester with no students enrolled?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT semester_name FROM Semesters WHERE semester_id NOT IN( SELECT semester_id FROM Student_Enrolment )"}, {"prompt": "Convert text to SQL: [Question]: What are all the course names of the courses which ever have students enrolled in?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT DISTINCT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id"}, {"prompt": "Convert text to SQL: [Question]: What are the names of all courses that have some students enrolled?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT DISTINCT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id"}, {"prompt": "Convert text to SQL: [Question]: What's the name of the course with most number of enrollments?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the name of the course with the most students enrolled?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Find the last name of the students who currently live in the state of North Carolina but have not registered in any degree program.\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT T1.last_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.current_address_id = T2.address_id WHERE T2.state_province_county = 'NorthCarolina' EXCEPT SELECT DISTINCT T3.last_name FROM Students AS T3 JOIN Student_Enrolment AS T4 ON T3.student_id = T4.student_id"}, {"prompt": "Convert text to SQL: [Question]: What are the last name of the students who live in North Carolina but have not registered in any degree programs?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT T1.last_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.current_address_id = T2.address_id WHERE T2.state_province_county = 'NorthCarolina' EXCEPT SELECT DISTINCT T3.last_name FROM Students AS T3 JOIN Student_Enrolment AS T4 ON T3.student_id = T4.student_id"}, {"prompt": "Convert text to SQL: [Question]: Show the date and id of the transcript with at least 2 course results.\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT T2.transcript_date , T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id HAVING count(*) >= 2"}, {"prompt": "Convert text to SQL: [Question]: What is the date and id of the transcript with at least 2 courses listed?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT T2.transcript_date , T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id HAVING count(*) >= 2"}, {"prompt": "Convert text to SQL: [Question]: What is the phone number of the man with the first name Timmothy and the last name Ward?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT cell_mobile_number FROM Students WHERE first_name = 'Timmothy' AND last_name = 'Ward'"}, {"prompt": "Convert text to SQL: [Question]: What is the mobile phone number of the student named Timmothy Ward ?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "select cell_mobile_number from students where first_name = 'timmothy' and last_name = 'ward'"}, {"prompt": "Convert text to SQL: [Question]: Who is the first student to register? List the first name, middle name and last name.\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT first_name , middle_name , last_name FROM Students ORDER BY date_first_registered ASC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the first, middle, and last name of the first student to register?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT first_name , middle_name , last_name FROM Students ORDER BY date_first_registered ASC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Who is the earliest graduate of the school? List the first name, middle name and last name.\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT first_name , middle_name , last_name FROM Students ORDER BY date_left ASC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the first, middle, and last name of the earliest school graduate?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT first_name , middle_name , last_name FROM Students ORDER BY date_left ASC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Whose permanent address is different from his or her current address? List his or her first name.\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT first_name FROM Students WHERE current_address_id != permanent_address_id"}, {"prompt": "Convert text to SQL: [Question]: What is the first name of the student whose permanent address is different from his or her current one?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT first_name FROM Students WHERE current_address_id != permanent_address_id"}, {"prompt": "Convert text to SQL: [Question]: Which address holds the most number of students currently? List the address id and all lines.\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT T1.address_id , T1.line_1 , T1.line_2 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.current_address_id GROUP BY T1.address_id ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the id, line 1, and line 2 of the address with the most students?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT T1.address_id , T1.line_1 , T1.line_2 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.current_address_id GROUP BY T1.address_id ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: On average, when were the transcripts printed?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT avg(transcript_date) FROM Transcripts"}, {"prompt": "Convert text to SQL: [Question]: What is the average transcript date?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT avg(transcript_date) FROM Transcripts"}, {"prompt": "Convert text to SQL: [Question]: When is the first transcript released? List the date and details.\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT transcript_date , other_details FROM Transcripts ORDER BY transcript_date ASC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the earliest date of a transcript release, and what details can you tell me?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT transcript_date , other_details FROM Transcripts ORDER BY transcript_date ASC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: How many transcripts are released?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT count(*) FROM Transcripts"}, {"prompt": "Convert text to SQL: [Question]: How many transcripts are listed?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT count(*) FROM Transcripts"}, {"prompt": "Convert text to SQL: [Question]: What is the last transcript release date?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: When was the last transcript released?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: How many times at most can a course enrollment result show in different transcripts? Also show the course enrollment id.\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT count(*) , student_course_id FROM Transcript_Contents GROUP BY student_course_id ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the maximum number of times that a course shows up in different transcripts and what is that course's enrollment id?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT count(*) , student_course_id FROM Transcript_Contents GROUP BY student_course_id ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Show the date of the transcript which shows the least number of results, also list the id.\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT T2.transcript_date , T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id ORDER BY count(*) ASC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the date and id of the transcript with the least number of results?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT T2.transcript_date , T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id ORDER BY count(*) ASC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Find the semester when both Master students and Bachelor students got enrolled in.\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Master' INTERSECT SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Bachelor'"}, {"prompt": "Convert text to SQL: [Question]: What is the id of the semester that had both Masters and Bachelors students enrolled?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Master' INTERSECT SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Bachelor'"}, {"prompt": "Convert text to SQL: [Question]: How many different addresses do the students currently live?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT count(DISTINCT current_address_id) FROM Students"}, {"prompt": "Convert text to SQL: [Question]: What are the different addresses that have students living there?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT count(DISTINCT current_address_id) FROM Students"}, {"prompt": "Convert text to SQL: [Question]: List all the student details in reversed lexicographical order.\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT other_student_details FROM Students ORDER BY other_student_details DESC"}, {"prompt": "Convert text to SQL: [Question]: What other details can you tell me about students in reverse alphabetical order?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT other_student_details FROM Students ORDER BY other_student_details DESC"}, {"prompt": "Convert text to SQL: [Question]: Describe the section h.\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT section_description FROM Sections WHERE section_name = 'h'"}, {"prompt": "Convert text to SQL: [Question]: What is the description for the section named h?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "SELECT section_description FROM Sections WHERE section_name = 'h'"}, {"prompt": "Convert text to SQL: [Question]: Find the first name of the students who permanently live in the country Haiti or have the cell phone number 09700166582 .\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "select t1.first_name from students as t1 join addresses as t2 on t1.permanent_address_id = t2.address_id where t2.country = 'haiti' or t1.cell_mobile_number = '09700166582'"}, {"prompt": "Convert text to SQL: [Question]: What are the first names of the students who live in Haiti permanently or have the cell phone number 09700166582 ?\n[Database Information]:[Schema (values)]: Addresses : address_id , line_1 , line_2 , line_3 , city , zip_postcode , state_province_county , country , other_address_details | Courses : course_id , course_name , course_description , other_details | Departments : department_id , department_name , department_description , other_details | Degree_Programs : degree_program_id , department_id , degree_summary_name , degree_summary_description , other_details | Sections : section_id , course_id , section_name , section_description , other_details | Semesters : semester_id , semester_name , semester_description , other_details | Students : student_id , current_address_id , permanent_address_id , first_name , middle_name , last_name , cell_mobile_number , email_address , ssn , date_first_registered , date_left , other_student_details | Student_Enrolment : student_enrolment_id , degree_program_id , semester_id , student_id , other_details | Student_Enrolment_Courses : student_course_id , course_id , student_enrolment_id | Transcripts : transcript_id , transcript_date , other_details | Transcript_Contents : student_course_id , transcript_id\n[Column names (type)]: Transcript_Contents : * (text) | Addresses : address_id (number) | Addresses : line_1 (text) | Addresses : line_2 (text) | Addresses : line_3 (text) | Addresses : city (text) | Addresses : zip_postcode (text) | Addresses : state_province_county (text) | Addresses : country (text) | Addresses : other_address_details (text) | Courses : course_id (number) | Courses : course_name (text) | Courses : course_description (text) | Courses : other_details (text) | Departments : department_id (number) | Departments : department_name (text) | Departments : department_description (text) | Departments : other_details (text) | Degree_Programs : degree_program_id (number) | Degree_Programs : department_id (number) | Degree_Programs : degree_summary_name (text) | Degree_Programs : degree_summary_description (text) | Degree_Programs : other_details (text) | Sections : section_id (number) | Sections : course_id (number) | Sections : section_name (text) | Sections : section_description (text) | Sections : other_details (text) | Semesters : semester_id (number) | Semesters : semester_name (text) | Semesters : semester_description (text) | Semesters : other_details (text) | Students : student_id (number) | Students : current_address_id (number) | Students : permanent_address_id (number) | Students : first_name (text) | Students : middle_name (text) | Students : last_name (text) | Students : cell_mobile_number (text) | Students : email_address (text) | Students : ssn (text) | Students : date_first_registered (time) | Students : date_left (time) | Students : other_student_details (text) | Student_Enrolment : student_enrolment_id (number) | Student_Enrolment : degree_program_id (number) | Student_Enrolment : semester_id (number) | Student_Enrolment : student_id (number) | Student_Enrolment : other_details (text) | Student_Enrolment_Courses : student_course_id (number) | Student_Enrolment_Courses : course_id (number) | Student_Enrolment_Courses : student_enrolment_id (number) | Transcripts : transcript_id (number) | Transcripts : transcript_date (time) | Transcripts : other_details (text) | Transcript_Contents : student_course_id (number) | Transcript_Contents : transcript_id (number)\n[Primary Keys]: Addresses : address_id | Courses : course_id | Departments : department_id | Degree_Programs : degree_program_id | Sections : section_id | Semesters : semester_id | Students : student_id | Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : student_course_id | Transcripts : transcript_id\n[Foreign Keys]: Degree_Programs : department_id equals Departments : department_id | Sections : course_id equals Courses : course_id | Students : permanent_address_id equals Addresses : address_id | Students : current_address_id equals Addresses : address_id | Student_Enrolment : student_id equals Students : student_id | Student_Enrolment : semester_id equals Semesters : semester_id | Student_Enrolment : degree_program_id equals Degree_Programs : degree_program_id | Student_Enrolment_Courses : student_enrolment_id equals Student_Enrolment : student_enrolment_id | Student_Enrolment_Courses : course_id equals Courses : course_id | Transcript_Contents : transcript_id equals Transcripts : transcript_id | Transcript_Contents : student_course_id equals Student_Enrolment_Courses : student_course_id", "ground_truth": "select t1.first_name from students as t1 join addresses as t2 on t1.permanent_address_id = t2.address_id where t2.country = 'haiti' or t1.cell_mobile_number = '09700166582'"}, {"prompt": "Convert text to SQL: [Question]: List the title of all cartoons in alphabetical order.\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT Title FROM Cartoon ORDER BY title"}, {"prompt": "Convert text to SQL: [Question]: What are the titles of the cartoons sorted alphabetically?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT Title FROM Cartoon ORDER BY title"}, {"prompt": "Convert text to SQL: [Question]: List all cartoon directed by \"Ben Jones\".\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT Title FROM Cartoon WHERE Directed_by = \"Ben Jones\";"}, {"prompt": "Convert text to SQL: [Question]: What are the names of all cartoons directed by Ben Jones?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT Title FROM Cartoon WHERE Directed_by = \"Ben Jones\";"}, {"prompt": "Convert text to SQL: [Question]: How many cartoons were written by \"Joseph Kuhr\"?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT count(*) FROM Cartoon WHERE Written_by = \"Joseph Kuhr\";"}, {"prompt": "Convert text to SQL: [Question]: What is the number of cartoones written by Joseph Kuhr?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT count(*) FROM Cartoon WHERE Written_by = \"Joseph Kuhr\";"}, {"prompt": "Convert text to SQL: [Question]: list all cartoon titles and their directors ordered by their air date\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT title , Directed_by FROM Cartoon ORDER BY Original_air_date"}, {"prompt": "Convert text to SQL: [Question]: What is the name and directors of all the cartoons that are ordered by air date?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT title , Directed_by FROM Cartoon ORDER BY Original_air_date"}, {"prompt": "Convert text to SQL: [Question]: List the title of all cartoon directed by \"Ben Jones\" or \"Brandon Vietti\".\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT Title FROM Cartoon WHERE Directed_by = \"Ben Jones\" OR Directed_by = \"Brandon Vietti\";"}, {"prompt": "Convert text to SQL: [Question]: What are the titles of all cartoons directed by Ben Jones or Brandon Vietti?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT Title FROM Cartoon WHERE Directed_by = \"Ben Jones\" OR Directed_by = \"Brandon Vietti\";"}, {"prompt": "Convert text to SQL: [Question]: Which country has the most of TV Channels? List the country and number of TV Channels it has.\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT Country , count(*) FROM TV_Channel GROUP BY Country ORDER BY count(*) DESC LIMIT 1;"}, {"prompt": "Convert text to SQL: [Question]: What is the country with the most number of TV Channels and how many does it have?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT Country , count(*) FROM TV_Channel GROUP BY Country ORDER BY count(*) DESC LIMIT 1;"}, {"prompt": "Convert text to SQL: [Question]: List the number of different series names and contents in the TV Channel table.\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT count(DISTINCT series_name) , count(DISTINCT content) FROM TV_Channel;"}, {"prompt": "Convert text to SQL: [Question]: How many different series and contents are listed in the TV Channel table?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT count(DISTINCT series_name) , count(DISTINCT content) FROM TV_Channel;"}, {"prompt": "Convert text to SQL: [Question]: What is the content of TV Channel with serial name \"Sky Radio\"?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT Content FROM TV_Channel WHERE series_name = \"Sky Radio\";"}, {"prompt": "Convert text to SQL: [Question]: What is the content of the series Sky Radio?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT Content FROM TV_Channel WHERE series_name = \"Sky Radio\";"}, {"prompt": "Convert text to SQL: [Question]: What is the Package Option of TV Channel with serial name \"Sky Radio\"?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT Package_Option FROM TV_Channel WHERE series_name = \"Sky Radio\";"}, {"prompt": "Convert text to SQL: [Question]: What are the Package Options of the TV Channels whose series names are Sky Radio?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT Package_Option FROM TV_Channel WHERE series_name = \"Sky Radio\";"}, {"prompt": "Convert text to SQL: [Question]: How many TV Channel using language English?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT count(*) FROM TV_Channel WHERE LANGUAGE = \"English\";"}, {"prompt": "Convert text to SQL: [Question]: How many TV Channels use the English language?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT count(*) FROM TV_Channel WHERE LANGUAGE = \"English\";"}, {"prompt": "Convert text to SQL: [Question]: List the language used least number of TV Channel. List language and number of TV Channel.\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT LANGUAGE , count(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY count(*) ASC LIMIT 1;"}, {"prompt": "Convert text to SQL: [Question]: What are the languages used by the least number of TV Channels and how many channels use it?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT LANGUAGE , count(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY count(*) ASC LIMIT 1;"}, {"prompt": "Convert text to SQL: [Question]: List each language and the number of TV Channels using it.\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT LANGUAGE , count(*) FROM TV_Channel GROUP BY LANGUAGE"}, {"prompt": "Convert text to SQL: [Question]: For each language, list the number of TV Channels that use it.\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT LANGUAGE , count(*) FROM TV_Channel GROUP BY LANGUAGE"}, {"prompt": "Convert text to SQL: [Question]: What is the TV Channel that shows the cartoon \"The Rise of the Blue Beetle!\"? List the TV Channel's series name.\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT T1.series_name FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Title = \"The Rise of the Blue Beetle!\";"}, {"prompt": "Convert text to SQL: [Question]: What is the series name of the TV Channel that shows the cartoon \"The Rise of the Blue Beetle\"?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT T1.series_name FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Title = \"The Rise of the Blue Beetle!\";"}, {"prompt": "Convert text to SQL: [Question]: List the title of all Cartoons showed on TV Channel with series name \"Sky Radio\".\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = \"Sky Radio\";"}, {"prompt": "Convert text to SQL: [Question]: What is the title of all the cartools that are on the TV Channel with the series name \"Sky Radio\"?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = \"Sky Radio\";"}, {"prompt": "Convert text to SQL: [Question]: List the Episode of all TV series sorted by rating.\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT Episode FROM TV_series ORDER BY rating"}, {"prompt": "Convert text to SQL: [Question]: What are all of the episodes ordered by ratings?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT Episode FROM TV_series ORDER BY rating"}, {"prompt": "Convert text to SQL: [Question]: List top 3 highest Rating TV series. List the TV series's Episode and Rating.\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT Episode , Rating FROM TV_series ORDER BY Rating DESC LIMIT 3;"}, {"prompt": "Convert text to SQL: [Question]: What are 3 most highly rated episodes in the TV series table and what were those ratings?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT Episode , Rating FROM TV_series ORDER BY Rating DESC LIMIT 3;"}, {"prompt": "Convert text to SQL: [Question]: What is minimum and maximum share of TV series?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT max(SHARE) , min(SHARE) FROM TV_series;"}, {"prompt": "Convert text to SQL: [Question]: What is the maximum and minimum share for the TV series?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT max(SHARE) , min(SHARE) FROM TV_series;"}, {"prompt": "Convert text to SQL: [Question]: What is the air date of TV series with Episode \"A Love of a Lifetime\"?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT Air_Date FROM TV_series WHERE Episode = \"A Love of a Lifetime\";"}, {"prompt": "Convert text to SQL: [Question]: When did the episode \"A Love of a Lifetime\" air?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT Air_Date FROM TV_series WHERE Episode = \"A Love of a Lifetime\";"}, {"prompt": "Convert text to SQL: [Question]: What is Weekly Rank of TV series with Episode \"A Love of a Lifetime\"?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT Weekly_Rank FROM TV_series WHERE Episode = \"A Love of a Lifetime\";"}, {"prompt": "Convert text to SQL: [Question]: What is the weekly rank for the episode \"A Love of a Lifetime\"?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT Weekly_Rank FROM TV_series WHERE Episode = \"A Love of a Lifetime\";"}, {"prompt": "Convert text to SQL: [Question]: What is the TV Channel of TV series with Episode \"A Love of a Lifetime\"? List the TV Channel's series name.\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT T1.series_name FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T2.Episode = \"A Love of a Lifetime\";"}, {"prompt": "Convert text to SQL: [Question]: What is the name of the series that has the episode \"A Love of a Lifetime\"?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT T1.series_name FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T2.Episode = \"A Love of a Lifetime\";"}, {"prompt": "Convert text to SQL: [Question]: List the Episode of all TV series showed on TV Channel with series name \"Sky Radio\".\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = \"Sky Radio\";"}, {"prompt": "Convert text to SQL: [Question]: What is the episode for the TV series named \"Sky Radio\"?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = \"Sky Radio\";"}, {"prompt": "Convert text to SQL: [Question]: Find the number of cartoons directed by each of the listed directors.\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT count(*) , Directed_by FROM cartoon GROUP BY Directed_by"}, {"prompt": "Convert text to SQL: [Question]: How many cartoons did each director create?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT count(*) , Directed_by FROM cartoon GROUP BY Directed_by"}, {"prompt": "Convert text to SQL: [Question]: Find the production code and channel of the most recently aired cartoon .\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "select production_code , channel from cartoon order by original_air_date desc limit 1"}, {"prompt": "Convert text to SQL: [Question]: What is the produdction code and channel of the most recent cartoon ?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "select production_code , channel from cartoon order by original_air_date desc limit 1"}, {"prompt": "Convert text to SQL: [Question]: Find the package choice and series name of the TV channel that has high definition TV.\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT package_option , series_name FROM TV_Channel WHERE hight_definition_TV = \"yes\""}, {"prompt": "Convert text to SQL: [Question]: What are the package options and the name of the series for the TV Channel that supports high definition TV?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT package_option , series_name FROM TV_Channel WHERE hight_definition_TV = \"yes\""}, {"prompt": "Convert text to SQL: [Question]: which countries' tv channels are playing some cartoon written by Todd Casey?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'"}, {"prompt": "Convert text to SQL: [Question]: What are the countries that have cartoons on TV that were written by Todd Casey?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'"}, {"prompt": "Convert text to SQL: [Question]: which countries' tv channels are not playing any cartoon written by Todd Casey?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT country FROM TV_Channel EXCEPT SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'"}, {"prompt": "Convert text to SQL: [Question]: What are the countries that are not playing cartoons written by Todd Casey?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT country FROM TV_Channel EXCEPT SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'"}, {"prompt": "Convert text to SQL: [Question]: Find the series name and country of the tv channel that is playing some cartoons directed by Ben Jones and Michael Chang?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT T1.series_name , T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Michael Chang' INTERSECT SELECT T1.series_name , T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Ben Jones'"}, {"prompt": "Convert text to SQL: [Question]: What is the series name and country of all TV channels that are playing cartoons directed by Ben Jones and cartoons directed by Michael Chang?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT T1.series_name , T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Michael Chang' INTERSECT SELECT T1.series_name , T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Ben Jones'"}, {"prompt": "Convert text to SQL: [Question]: find the pixel aspect ratio and nation of the tv channels that do not use English.\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT Pixel_aspect_ratio_PAR , country FROM tv_channel WHERE LANGUAGE != 'English'"}, {"prompt": "Convert text to SQL: [Question]: What is the pixel aspect ratio and country of origin for all TV channels that do not use English?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT Pixel_aspect_ratio_PAR , country FROM tv_channel WHERE LANGUAGE != 'English'"}, {"prompt": "Convert text to SQL: [Question]: find id of the tv channels that from the countries where have more than two tv channels.\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT id FROM tv_channel GROUP BY country HAVING count(*) > 2"}, {"prompt": "Convert text to SQL: [Question]: What are the ids of all tv channels that have more than 2 TV channels?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT id FROM tv_channel GROUP BY country HAVING count(*) > 2"}, {"prompt": "Convert text to SQL: [Question]: find the id of tv channels that do not play any cartoon directed by Ben Jones.\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones'"}, {"prompt": "Convert text to SQL: [Question]: What are the ids of the TV channels that do not have any cartoons directed by Ben Jones?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones'"}, {"prompt": "Convert text to SQL: [Question]: find the package option of the tv channel that do not have any cartoon directed by Ben Jones.\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT package_option FROM TV_Channel WHERE id NOT IN (SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones')"}, {"prompt": "Convert text to SQL: [Question]: What are the package options of all tv channels that are not playing any cartoons directed by Ben Jones?\n[Database Information]:[Schema (values)]: TV_Channel : id , series_name , Country , Language , Content , Pixel_aspect_ratio_PAR , Hight_definition_TV , Pay_per_view_PPV , Package_Option | TV_series : id , Episode , Air_Date , Rating , Share , 18_49_Rating_Share , Viewers_m , Weekly_Rank , Channel | Cartoon : id , Title , Directed_by , Written_by , Original_air_date , Production_code , Channel\n[Column names (type)]: Cartoon : * (text) | TV_Channel : id (text) | TV_Channel : series_name (text) | TV_Channel : Country (text) | TV_Channel : Language (text) | TV_Channel : Content (text) | TV_Channel : Pixel_aspect_ratio_PAR (text) | TV_Channel : Hight_definition_TV (text) | TV_Channel : Pay_per_view_PPV (text) | TV_Channel : Package_Option (text) | TV_series : id (number) | TV_series : Episode (text) | TV_series : Air_Date (text) | TV_series : Rating (text) | TV_series : Share (number) | TV_series : 18_49_Rating_Share (text) | TV_series : Viewers_m (text) | TV_series : Weekly_Rank (number) | TV_series : Channel (text) | Cartoon : id (number) | Cartoon : Title (text) | Cartoon : Directed_by (text) | Cartoon : Written_by (text) | Cartoon : Original_air_date (text) | Cartoon : Production_code (number) | Cartoon : Channel (text)\n[Primary Keys]: TV_Channel : id | TV_series : id | Cartoon : id\n[Foreign Keys]: TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id", "ground_truth": "SELECT package_option FROM TV_Channel WHERE id NOT IN (SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones')"}, {"prompt": "Convert text to SQL: [Question]: How many poker players are there?\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT count(*) FROM poker_player"}, {"prompt": "Convert text to SQL: [Question]: Count the number of poker players.\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT count(*) FROM poker_player"}, {"prompt": "Convert text to SQL: [Question]: List the earnings of poker players in descending order.\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT Earnings FROM poker_player ORDER BY Earnings DESC"}, {"prompt": "Convert text to SQL: [Question]: What are the earnings of poker players, ordered descending by value?\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT Earnings FROM poker_player ORDER BY Earnings DESC"}, {"prompt": "Convert text to SQL: [Question]: List the final tables made and the best finishes of poker players.\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT Final_Table_Made , Best_Finish FROM poker_player"}, {"prompt": "Convert text to SQL: [Question]: What are the final tables made and best finishes for all poker players?\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT Final_Table_Made , Best_Finish FROM poker_player"}, {"prompt": "Convert text to SQL: [Question]: What is the average earnings of poker players?\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT avg(Earnings) FROM poker_player"}, {"prompt": "Convert text to SQL: [Question]: Return the average earnings across all poker players.\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT avg(Earnings) FROM poker_player"}, {"prompt": "Convert text to SQL: [Question]: What is the money rank of the poker player with the highest earnings?\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Return the money rank of the player with the greatest earnings.\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the maximum number of final tables made among poker players with earnings less than 200000?\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT max(Final_Table_Made) FROM poker_player WHERE Earnings < 200000"}, {"prompt": "Convert text to SQL: [Question]: Return the maximum final tables made across all poker players who have earnings below 200000.\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT max(Final_Table_Made) FROM poker_player WHERE Earnings < 200000"}, {"prompt": "Convert text to SQL: [Question]: What are the names of poker players?\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID"}, {"prompt": "Convert text to SQL: [Question]: Return the names of all the poker players.\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID"}, {"prompt": "Convert text to SQL: [Question]: What are the names of poker players whose earnings is higher than 300000?\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Earnings > 300000"}, {"prompt": "Convert text to SQL: [Question]: Give the names of poker players who have earnings above 300000.\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Earnings > 300000"}, {"prompt": "Convert text to SQL: [Question]: List the names of poker players ordered by the final tables made in ascending order.\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Final_Table_Made"}, {"prompt": "Convert text to SQL: [Question]: What are the names of poker players, ordered ascending by the number of final tables they have made?\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Final_Table_Made"}, {"prompt": "Convert text to SQL: [Question]: What is the birth date of the poker player with the lowest earnings?\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT T1.Birth_Date FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings ASC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Return the birth date of the poker player with the lowest earnings.\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT T1.Birth_Date FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings ASC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the money rank of the tallest poker player?\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT T2.Money_Rank FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Height DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Return the money rank of the poker player with the greatest height.\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT T2.Money_Rank FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Height DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the average earnings of poker players with height higher than 200?\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT avg(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 200"}, {"prompt": "Convert text to SQL: [Question]: Give average earnings of poker players who are taller than 200.\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT avg(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 200"}, {"prompt": "Convert text to SQL: [Question]: What are the names of poker players in descending order of earnings?\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings DESC"}, {"prompt": "Convert text to SQL: [Question]: Return the names of poker players sorted by their earnings descending.\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings DESC"}, {"prompt": "Convert text to SQL: [Question]: What are different nationalities of people and the corresponding number of people from each nation?\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT Nationality , COUNT(*) FROM people GROUP BY Nationality"}, {"prompt": "Convert text to SQL: [Question]: How many people are there of each nationality?\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT Nationality , COUNT(*) FROM people GROUP BY Nationality"}, {"prompt": "Convert text to SQL: [Question]: What is the most common nationality of people?\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Give the nationality that is most common across all people.\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What are the nationalities that are shared by at least two people?\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*) >= 2"}, {"prompt": "Convert text to SQL: [Question]: Return the nationalities for which there are two or more people.\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*) >= 2"}, {"prompt": "Convert text to SQL: [Question]: List the names and birth dates of people in ascending alphabetical order of name.\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT Name , Birth_Date FROM people ORDER BY Name ASC"}, {"prompt": "Convert text to SQL: [Question]: What are the names and birth dates of people, ordered by their names in alphabetical order?\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT Name , Birth_Date FROM people ORDER BY Name ASC"}, {"prompt": "Convert text to SQL: [Question]: Show names of people whose nationality is not \"Russia\".\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT Name FROM people WHERE Nationality != \"Russia\""}, {"prompt": "Convert text to SQL: [Question]: What are the names of people who are not from Russia?\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT Name FROM people WHERE Nationality != \"Russia\""}, {"prompt": "Convert text to SQL: [Question]: List the names of people that are not poker players.\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM poker_player)"}, {"prompt": "Convert text to SQL: [Question]: What are the names of people who do not play poker?\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM poker_player)"}, {"prompt": "Convert text to SQL: [Question]: How many distinct nationalities are there?\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT count(DISTINCT Nationality) FROM people"}, {"prompt": "Convert text to SQL: [Question]: Count the number of different nationalities.\n[Database Information]:[Schema (values)]: poker_player : Poker_Player_ID , People_ID , Final_Table_Made , Best_Finish , Money_Rank , Earnings | people : People_ID , Nationality , Name , Birth_Date , Height\n[Column names (type)]: people : * (text) | poker_player : Poker_Player_ID (number) | poker_player : People_ID (number) | poker_player : Final_Table_Made (number) | poker_player : Best_Finish (number) | poker_player : Money_Rank (number) | poker_player : Earnings (number) | people : People_ID (number) | people : Nationality (text) | people : Name (text) | people : Birth_Date (text) | people : Height (number)\n[Primary Keys]: poker_player : Poker_Player_ID | people : People_ID\n[Foreign Keys]: poker_player : People_ID equals people : People_ID", "ground_truth": "SELECT count(DISTINCT Nationality) FROM people"}, {"prompt": "Convert text to SQL: [Question]: How many states are there?\n[Database Information]:[Schema (values)]: AREA_CODE_STATE : area_code , state | CONTESTANTS : contestant_number , contestant_name | VOTES : vote_id , phone_number , state , contestant_number , created\n[Column names (type)]: VOTES : * (text) | AREA_CODE_STATE : area_code (number) | AREA_CODE_STATE : state (text) | CONTESTANTS : contestant_number (number) | CONTESTANTS : contestant_name (text) | VOTES : vote_id (number) | VOTES : phone_number (number) | VOTES : state (text) | VOTES : contestant_number (number) | VOTES : created (time)\n[Primary Keys]: AREA_CODE_STATE : area_code | CONTESTANTS : contestant_number | VOTES : vote_id\n[Foreign Keys]: VOTES : contestant_number equals CONTESTANTS : contestant_number | VOTES : state equals AREA_CODE_STATE : state", "ground_truth": "SELECT count(*) FROM area_code_state"}, {"prompt": "Convert text to SQL: [Question]: List the contestant numbers and names, ordered by contestant name descending.\n[Database Information]:[Schema (values)]: AREA_CODE_STATE : area_code , state | CONTESTANTS : contestant_number , contestant_name | VOTES : vote_id , phone_number , state , contestant_number , created\n[Column names (type)]: VOTES : * (text) | AREA_CODE_STATE : area_code (number) | AREA_CODE_STATE : state (text) | CONTESTANTS : contestant_number (number) | CONTESTANTS : contestant_name (text) | VOTES : vote_id (number) | VOTES : phone_number (number) | VOTES : state (text) | VOTES : contestant_number (number) | VOTES : created (time)\n[Primary Keys]: AREA_CODE_STATE : area_code | CONTESTANTS : contestant_number | VOTES : vote_id\n[Foreign Keys]: VOTES : contestant_number equals CONTESTANTS : contestant_number | VOTES : state equals AREA_CODE_STATE : state", "ground_truth": "SELECT contestant_number , contestant_name FROM contestants ORDER BY contestant_name DESC"}, {"prompt": "Convert text to SQL: [Question]: List the vote ids, phone numbers and states of all votes.\n[Database Information]:[Schema (values)]: AREA_CODE_STATE : area_code , state | CONTESTANTS : contestant_number , contestant_name | VOTES : vote_id , phone_number , state , contestant_number , created\n[Column names (type)]: VOTES : * (text) | AREA_CODE_STATE : area_code (number) | AREA_CODE_STATE : state (text) | CONTESTANTS : contestant_number (number) | CONTESTANTS : contestant_name (text) | VOTES : vote_id (number) | VOTES : phone_number (number) | VOTES : state (text) | VOTES : contestant_number (number) | VOTES : created (time)\n[Primary Keys]: AREA_CODE_STATE : area_code | CONTESTANTS : contestant_number | VOTES : vote_id\n[Foreign Keys]: VOTES : contestant_number equals CONTESTANTS : contestant_number | VOTES : state equals AREA_CODE_STATE : state", "ground_truth": "SELECT vote_id , phone_number , state FROM votes"}, {"prompt": "Convert text to SQL: [Question]: What are the maximum and minimum values of area codes?\n[Database Information]:[Schema (values)]: AREA_CODE_STATE : area_code , state | CONTESTANTS : contestant_number , contestant_name | VOTES : vote_id , phone_number , state , contestant_number , created\n[Column names (type)]: VOTES : * (text) | AREA_CODE_STATE : area_code (number) | AREA_CODE_STATE : state (text) | CONTESTANTS : contestant_number (number) | CONTESTANTS : contestant_name (text) | VOTES : vote_id (number) | VOTES : phone_number (number) | VOTES : state (text) | VOTES : contestant_number (number) | VOTES : created (time)\n[Primary Keys]: AREA_CODE_STATE : area_code | CONTESTANTS : contestant_number | VOTES : vote_id\n[Foreign Keys]: VOTES : contestant_number equals CONTESTANTS : contestant_number | VOTES : state equals AREA_CODE_STATE : state", "ground_truth": "SELECT max(area_code) , min(area_code) FROM area_code_state"}, {"prompt": "Convert text to SQL: [Question]: What is last date created of votes from the state 'CA'?\n[Database Information]:[Schema (values)]: AREA_CODE_STATE : area_code , state | CONTESTANTS : contestant_number , contestant_name | VOTES : vote_id , phone_number , state , contestant_number , created\n[Column names (type)]: VOTES : * (text) | AREA_CODE_STATE : area_code (number) | AREA_CODE_STATE : state (text) | CONTESTANTS : contestant_number (number) | CONTESTANTS : contestant_name (text) | VOTES : vote_id (number) | VOTES : phone_number (number) | VOTES : state (text) | VOTES : contestant_number (number) | VOTES : created (time)\n[Primary Keys]: AREA_CODE_STATE : area_code | CONTESTANTS : contestant_number | VOTES : vote_id\n[Foreign Keys]: VOTES : contestant_number equals CONTESTANTS : contestant_number | VOTES : state equals AREA_CODE_STATE : state", "ground_truth": "SELECT max(created) FROM votes WHERE state = 'CA'"}, {"prompt": "Convert text to SQL: [Question]: What are the names of the contestants whose names are not 'Jessie Alloway'\n[Database Information]:[Schema (values)]: AREA_CODE_STATE : area_code , state | CONTESTANTS : contestant_number , contestant_name | VOTES : vote_id , phone_number , state , contestant_number , created\n[Column names (type)]: VOTES : * (text) | AREA_CODE_STATE : area_code (number) | AREA_CODE_STATE : state (text) | CONTESTANTS : contestant_number (number) | CONTESTANTS : contestant_name (text) | VOTES : vote_id (number) | VOTES : phone_number (number) | VOTES : state (text) | VOTES : contestant_number (number) | VOTES : created (time)\n[Primary Keys]: AREA_CODE_STATE : area_code | CONTESTANTS : contestant_number | VOTES : vote_id\n[Foreign Keys]: VOTES : contestant_number equals CONTESTANTS : contestant_number | VOTES : state equals AREA_CODE_STATE : state", "ground_truth": "SELECT contestant_name FROM contestants WHERE contestant_name != 'Jessie Alloway'"}, {"prompt": "Convert text to SQL: [Question]: What are the distinct states and create time of all votes?\n[Database Information]:[Schema (values)]: AREA_CODE_STATE : area_code , state | CONTESTANTS : contestant_number , contestant_name | VOTES : vote_id , phone_number , state , contestant_number , created\n[Column names (type)]: VOTES : * (text) | AREA_CODE_STATE : area_code (number) | AREA_CODE_STATE : state (text) | CONTESTANTS : contestant_number (number) | CONTESTANTS : contestant_name (text) | VOTES : vote_id (number) | VOTES : phone_number (number) | VOTES : state (text) | VOTES : contestant_number (number) | VOTES : created (time)\n[Primary Keys]: AREA_CODE_STATE : area_code | CONTESTANTS : contestant_number | VOTES : vote_id\n[Foreign Keys]: VOTES : contestant_number equals CONTESTANTS : contestant_number | VOTES : state equals AREA_CODE_STATE : state", "ground_truth": "SELECT DISTINCT state , created FROM votes"}, {"prompt": "Convert text to SQL: [Question]: What are the contestant numbers and names of the contestants who had at least two votes?\n[Database Information]:[Schema (values)]: AREA_CODE_STATE : area_code , state | CONTESTANTS : contestant_number , contestant_name | VOTES : vote_id , phone_number , state , contestant_number , created\n[Column names (type)]: VOTES : * (text) | AREA_CODE_STATE : area_code (number) | AREA_CODE_STATE : state (text) | CONTESTANTS : contestant_number (number) | CONTESTANTS : contestant_name (text) | VOTES : vote_id (number) | VOTES : phone_number (number) | VOTES : state (text) | VOTES : contestant_number (number) | VOTES : created (time)\n[Primary Keys]: AREA_CODE_STATE : area_code | CONTESTANTS : contestant_number | VOTES : vote_id\n[Foreign Keys]: VOTES : contestant_number equals CONTESTANTS : contestant_number | VOTES : state equals AREA_CODE_STATE : state", "ground_truth": "SELECT T1.contestant_number , T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number GROUP BY T1.contestant_number HAVING count(*) >= 2"}, {"prompt": "Convert text to SQL: [Question]: Of all the contestants who got voted, what is the contestant number and name of the contestant who got least votes?\n[Database Information]:[Schema (values)]: AREA_CODE_STATE : area_code , state | CONTESTANTS : contestant_number , contestant_name | VOTES : vote_id , phone_number , state , contestant_number , created\n[Column names (type)]: VOTES : * (text) | AREA_CODE_STATE : area_code (number) | AREA_CODE_STATE : state (text) | CONTESTANTS : contestant_number (number) | CONTESTANTS : contestant_name (text) | VOTES : vote_id (number) | VOTES : phone_number (number) | VOTES : state (text) | VOTES : contestant_number (number) | VOTES : created (time)\n[Primary Keys]: AREA_CODE_STATE : area_code | CONTESTANTS : contestant_number | VOTES : vote_id\n[Foreign Keys]: VOTES : contestant_number equals CONTESTANTS : contestant_number | VOTES : state equals AREA_CODE_STATE : state", "ground_truth": "SELECT T1.contestant_number , T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number GROUP BY T1.contestant_number ORDER BY count(*) ASC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What are the number of votes from state 'NY' or 'CA'?\n[Database Information]:[Schema (values)]: AREA_CODE_STATE : area_code , state | CONTESTANTS : contestant_number , contestant_name | VOTES : vote_id , phone_number , state , contestant_number , created\n[Column names (type)]: VOTES : * (text) | AREA_CODE_STATE : area_code (number) | AREA_CODE_STATE : state (text) | CONTESTANTS : contestant_number (number) | CONTESTANTS : contestant_name (text) | VOTES : vote_id (number) | VOTES : phone_number (number) | VOTES : state (text) | VOTES : contestant_number (number) | VOTES : created (time)\n[Primary Keys]: AREA_CODE_STATE : area_code | CONTESTANTS : contestant_number | VOTES : vote_id\n[Foreign Keys]: VOTES : contestant_number equals CONTESTANTS : contestant_number | VOTES : state equals AREA_CODE_STATE : state", "ground_truth": "SELECT count(*) FROM votes WHERE state = 'NY' OR state = 'CA'"}, {"prompt": "Convert text to SQL: [Question]: How many contestants did not get voted?\n[Database Information]:[Schema (values)]: AREA_CODE_STATE : area_code , state | CONTESTANTS : contestant_number , contestant_name | VOTES : vote_id , phone_number , state , contestant_number , created\n[Column names (type)]: VOTES : * (text) | AREA_CODE_STATE : area_code (number) | AREA_CODE_STATE : state (text) | CONTESTANTS : contestant_number (number) | CONTESTANTS : contestant_name (text) | VOTES : vote_id (number) | VOTES : phone_number (number) | VOTES : state (text) | VOTES : contestant_number (number) | VOTES : created (time)\n[Primary Keys]: AREA_CODE_STATE : area_code | CONTESTANTS : contestant_number | VOTES : vote_id\n[Foreign Keys]: VOTES : contestant_number equals CONTESTANTS : contestant_number | VOTES : state equals AREA_CODE_STATE : state", "ground_truth": "SELECT count(*) FROM contestants WHERE contestant_number NOT IN ( SELECT contestant_number FROM votes )"}, {"prompt": "Convert text to SQL: [Question]: What is the area code in which the most voters voted?\n[Database Information]:[Schema (values)]: AREA_CODE_STATE : area_code , state | CONTESTANTS : contestant_number , contestant_name | VOTES : vote_id , phone_number , state , contestant_number , created\n[Column names (type)]: VOTES : * (text) | AREA_CODE_STATE : area_code (number) | AREA_CODE_STATE : state (text) | CONTESTANTS : contestant_number (number) | CONTESTANTS : contestant_name (text) | VOTES : vote_id (number) | VOTES : phone_number (number) | VOTES : state (text) | VOTES : contestant_number (number) | VOTES : created (time)\n[Primary Keys]: AREA_CODE_STATE : area_code | CONTESTANTS : contestant_number | VOTES : vote_id\n[Foreign Keys]: VOTES : contestant_number equals CONTESTANTS : contestant_number | VOTES : state equals AREA_CODE_STATE : state", "ground_truth": "SELECT T1.area_code FROM area_code_state AS T1 JOIN votes AS T2 ON T1.state = T2.state GROUP BY T1.area_code ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What are the create dates, states, and phone numbers of the votes that were for the contestant named 'Tabatha Gehling'?\n[Database Information]:[Schema (values)]: AREA_CODE_STATE : area_code , state | CONTESTANTS : contestant_number , contestant_name | VOTES : vote_id , phone_number , state , contestant_number , created\n[Column names (type)]: VOTES : * (text) | AREA_CODE_STATE : area_code (number) | AREA_CODE_STATE : state (text) | CONTESTANTS : contestant_number (number) | CONTESTANTS : contestant_name (text) | VOTES : vote_id (number) | VOTES : phone_number (number) | VOTES : state (text) | VOTES : contestant_number (number) | VOTES : created (time)\n[Primary Keys]: AREA_CODE_STATE : area_code | CONTESTANTS : contestant_number | VOTES : vote_id\n[Foreign Keys]: VOTES : contestant_number equals CONTESTANTS : contestant_number | VOTES : state equals AREA_CODE_STATE : state", "ground_truth": "SELECT T2.created , T2.state , T2.phone_number FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number WHERE T1.contestant_name = 'Tabatha Gehling'"}, {"prompt": "Convert text to SQL: [Question]: List the area codes in which voters voted both for the contestant 'Tabatha Gehling' and the contestant 'Kelly Clauss'.\n[Database Information]:[Schema (values)]: AREA_CODE_STATE : area_code , state | CONTESTANTS : contestant_number , contestant_name | VOTES : vote_id , phone_number , state , contestant_number , created\n[Column names (type)]: VOTES : * (text) | AREA_CODE_STATE : area_code (number) | AREA_CODE_STATE : state (text) | CONTESTANTS : contestant_number (number) | CONTESTANTS : contestant_name (text) | VOTES : vote_id (number) | VOTES : phone_number (number) | VOTES : state (text) | VOTES : contestant_number (number) | VOTES : created (time)\n[Primary Keys]: AREA_CODE_STATE : area_code | CONTESTANTS : contestant_number | VOTES : vote_id\n[Foreign Keys]: VOTES : contestant_number equals CONTESTANTS : contestant_number | VOTES : state equals AREA_CODE_STATE : state", "ground_truth": "SELECT T3.area_code FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number JOIN area_code_state AS T3 ON T2.state = T3.state WHERE T1.contestant_name = 'Tabatha Gehling' INTERSECT SELECT T3.area_code FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number JOIN area_code_state AS T3 ON T2.state = T3.state WHERE T1.contestant_name = 'Kelly Clauss'"}, {"prompt": "Convert text to SQL: [Question]: Return the names of the contestants whose names contain the substring 'Al' .\n[Database Information]:[Schema (values)]: AREA_CODE_STATE : area_code , state | CONTESTANTS : contestant_number , contestant_name | VOTES : vote_id , phone_number , state , contestant_number , created\n[Column names (type)]: VOTES : * (text) | AREA_CODE_STATE : area_code (number) | AREA_CODE_STATE : state (text) | CONTESTANTS : contestant_number (number) | CONTESTANTS : contestant_name (text) | VOTES : vote_id (number) | VOTES : phone_number (number) | VOTES : state (text) | VOTES : contestant_number (number) | VOTES : created (time)\n[Primary Keys]: AREA_CODE_STATE : area_code | CONTESTANTS : contestant_number | VOTES : vote_id\n[Foreign Keys]: VOTES : contestant_number equals CONTESTANTS : contestant_number | VOTES : state equals AREA_CODE_STATE : state", "ground_truth": "select contestant_name from contestants where contestant_name like \"%al%\""}, {"prompt": "Convert text to SQL: [Question]: What are the names of all the countries that became independent after 1950?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT Name FROM country WHERE IndepYear > 1950"}, {"prompt": "Convert text to SQL: [Question]: Give the names of the nations that were founded after 1950.\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT Name FROM country WHERE IndepYear > 1950"}, {"prompt": "Convert text to SQL: [Question]: How many countries have a republic as their form of government?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT count(*) FROM country WHERE GovernmentForm = \"Republic\""}, {"prompt": "Convert text to SQL: [Question]: How many countries have governments that are republics?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT count(*) FROM country WHERE GovernmentForm = \"Republic\""}, {"prompt": "Convert text to SQL: [Question]: What is the total surface area of the countries in the Caribbean region?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT sum(SurfaceArea) FROM country WHERE Region = \"Caribbean\""}, {"prompt": "Convert text to SQL: [Question]: How much surface area do the countires in the Carribean cover together?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT sum(SurfaceArea) FROM country WHERE Region = \"Caribbean\""}, {"prompt": "Convert text to SQL: [Question]: Which continent is Anguilla in?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT Continent FROM country WHERE Name = \"Anguilla\""}, {"prompt": "Convert text to SQL: [Question]: What is the continent name which Anguilla belongs to?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT Continent FROM country WHERE Name = \"Anguilla\""}, {"prompt": "Convert text to SQL: [Question]: Which region is the city Kabul located in?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT Region FROM country AS T1 JOIN city AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = \"Kabul\""}, {"prompt": "Convert text to SQL: [Question]: What region is Kabul in?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT Region FROM country AS T1 JOIN city AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = \"Kabul\""}, {"prompt": "Convert text to SQL: [Question]: Which language is the most popular in Aruba?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Aruba\" ORDER BY Percentage DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What language is predominantly spoken in Aruba?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Aruba\" ORDER BY Percentage DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What are the population and life expectancies in Brazil?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT Population , LifeExpectancy FROM country WHERE Name = \"Brazil\""}, {"prompt": "Convert text to SQL: [Question]: Give me Brazil\u2019s population and life expectancies.\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT Population , LifeExpectancy FROM country WHERE Name = \"Brazil\""}, {"prompt": "Convert text to SQL: [Question]: What are the region and population of Angola?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT Population , Region FROM country WHERE Name = \"Angola\""}, {"prompt": "Convert text to SQL: [Question]: What region does Angola belong to and what is its population?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT Population , Region FROM country WHERE Name = \"Angola\""}, {"prompt": "Convert text to SQL: [Question]: What is the average expected life expectancy for countries in the region of Central Africa?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT avg(LifeExpectancy) FROM country WHERE Region = \"Central Africa\""}, {"prompt": "Convert text to SQL: [Question]: How long is the people\u2019s average life expectancy in Central Africa?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT avg(LifeExpectancy) FROM country WHERE Region = \"Central Africa\""}, {"prompt": "Convert text to SQL: [Question]: What is the name of country that has the shortest life expectancy in Asia?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT Name FROM country WHERE Continent = \"Asia\" ORDER BY LifeExpectancy LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Give the name of the country in Asia with the lowest life expectancy.\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT Name FROM country WHERE Continent = \"Asia\" ORDER BY LifeExpectancy LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the total population and maximum GNP in Asia?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT sum(Population) , max(GNP) FROM country WHERE Continent = \"Asia\""}, {"prompt": "Convert text to SQL: [Question]: How many people live in Asia, and what is the largest GNP among them?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT sum(Population) , max(GNP) FROM country WHERE Continent = \"Asia\""}, {"prompt": "Convert text to SQL: [Question]: What is the average life expectancy in African countries that are republics?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT avg(LifeExpectancy) FROM country WHERE Continent = \"Africa\" AND GovernmentForm = \"Republic\""}, {"prompt": "Convert text to SQL: [Question]: Give the average life expectancy for countries in Africa which are republics?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT avg(LifeExpectancy) FROM country WHERE Continent = \"Africa\" AND GovernmentForm = \"Republic\""}, {"prompt": "Convert text to SQL: [Question]: What is the total surface area of the continents Asia and Europe?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT sum(SurfaceArea) FROM country WHERE Continent = \"Asia\" OR Continent = \"Europe\""}, {"prompt": "Convert text to SQL: [Question]: Give the total surface area covered by countries in Asia or Europe.\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT sum(SurfaceArea) FROM country WHERE Continent = \"Asia\" OR Continent = \"Europe\""}, {"prompt": "Convert text to SQL: [Question]: How many people live in Gelderland district?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT sum(Population) FROM city WHERE District = \"Gelderland\""}, {"prompt": "Convert text to SQL: [Question]: What is the total population of Gelderland district?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT sum(Population) FROM city WHERE District = \"Gelderland\""}, {"prompt": "Convert text to SQL: [Question]: What is the average GNP and total population in all nations whose government is US territory?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT avg(GNP) , sum(population) FROM country WHERE GovernmentForm = \"US Territory\""}, {"prompt": "Convert text to SQL: [Question]: Give the mean GNP and total population of nations which are considered US territory.\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT avg(GNP) , sum(population) FROM country WHERE GovernmentForm = \"US Territory\""}, {"prompt": "Convert text to SQL: [Question]: How many unique languages are spoken in the world?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT count(DISTINCT LANGUAGE) FROM countrylanguage"}, {"prompt": "Convert text to SQL: [Question]: What is the number of distinct languages used around the world?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT count(DISTINCT LANGUAGE) FROM countrylanguage"}, {"prompt": "Convert text to SQL: [Question]: How many type of governments are in Africa?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT count(DISTINCT GovernmentForm) FROM country WHERE Continent = \"Africa\""}, {"prompt": "Convert text to SQL: [Question]: How many different forms of governments are there in Africa?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT count(DISTINCT GovernmentForm) FROM country WHERE Continent = \"Africa\""}, {"prompt": "Convert text to SQL: [Question]: What is the total number of languages used in Aruba?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Aruba\""}, {"prompt": "Convert text to SQL: [Question]: How many languages are spoken in Aruba?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Aruba\""}, {"prompt": "Convert text to SQL: [Question]: How many official languages does Afghanistan have?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Afghanistan\" AND IsOfficial = \"T\""}, {"prompt": "Convert text to SQL: [Question]: How many official languages are spoken in Afghanistan?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Afghanistan\" AND IsOfficial = \"T\""}, {"prompt": "Convert text to SQL: [Question]: What is name of the country that speaks the largest number of languages?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name ORDER BY COUNT(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Give the name of the nation that uses the greatest amount of languages.\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name ORDER BY COUNT(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Which continent has the most diverse languages?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT T1.Continent FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Continent ORDER BY COUNT(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Which continent speaks the most languages?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT T1.Continent FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Continent ORDER BY COUNT(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: How many countries speak both English and Dutch?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Dutch\")"}, {"prompt": "Convert text to SQL: [Question]: What is the number of nations that use English and Dutch?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Dutch\")"}, {"prompt": "Convert text to SQL: [Question]: What are the names of nations speak both English and French?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"French\""}, {"prompt": "Convert text to SQL: [Question]: Give the names of nations that speak both English and French.\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"French\""}, {"prompt": "Convert text to SQL: [Question]: What are the names of nations where both English and French are official languages?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" AND T2.IsOfficial = \"T\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"French\" AND T2.IsOfficial = \"T\""}, {"prompt": "Convert text to SQL: [Question]: Give the names of countries with English and French as official languages.\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" AND T2.IsOfficial = \"T\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"French\" AND T2.IsOfficial = \"T\""}, {"prompt": "Convert text to SQL: [Question]: What is the number of distinct continents where Chinese is spoken?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT COUNT( DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Chinese\""}, {"prompt": "Convert text to SQL: [Question]: How many continents speak Chinese?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT COUNT( DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Chinese\""}, {"prompt": "Convert text to SQL: [Question]: What are the regions that use English or Dutch?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" OR T2.Language = \"Dutch\""}, {"prompt": "Convert text to SQL: [Question]: Which regions speak Dutch or English?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" OR T2.Language = \"Dutch\""}, {"prompt": "Convert text to SQL: [Question]: What are the countries where either English or Dutch is the official language ?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"english\" and isofficial = \"t\" union select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"dutch\" and isofficial = \"t\""}, {"prompt": "Convert text to SQL: [Question]: Which countries have either English or Dutch as an official language?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" AND IsOfficial = \"T\" UNION SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Dutch\" AND IsOfficial = \"T\""}, {"prompt": "Convert text to SQL: [Question]: Which language is the most popular on the Asian continent?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = \"Asia\" GROUP BY T2.Language ORDER BY COUNT (*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the language that is used by the largest number of Asian nations?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = \"Asia\" GROUP BY T2.Language ORDER BY COUNT (*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Which languages are spoken by only one country in republic governments?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm = \"Republic\" GROUP BY T2.Language HAVING COUNT(*) = 1"}, {"prompt": "Convert text to SQL: [Question]: What languages are only used by a single country with a republic government?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm = \"Republic\" GROUP BY T2.Language HAVING COUNT(*) = 1"}, {"prompt": "Convert text to SQL: [Question]: Find the city with the largest population that uses English.\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT T1.Name , T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = \"English\" ORDER BY T1.Population DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the most populace city that speaks English?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT T1.Name , T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = \"English\" ORDER BY T1.Population DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Find the name, population and expected life length of asian country with the largest area?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT Name , Population , LifeExpectancy FROM country WHERE Continent = \"Asia\" ORDER BY SurfaceArea DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What are the name, population, and life expectancy of the largest Asian country by land?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT Name , Population , LifeExpectancy FROM country WHERE Continent = \"Asia\" ORDER BY SurfaceArea DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is average life expectancy in the countries where English is not the official language?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT avg(LifeExpectancy) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" AND T2.IsOfficial = \"T\")"}, {"prompt": "Convert text to SQL: [Question]: Give the mean life expectancy of countries in which English is not the official language.\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT avg(LifeExpectancy) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" AND T2.IsOfficial = \"T\")"}, {"prompt": "Convert text to SQL: [Question]: What is the total number of people living in the nations that do not use English?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT sum(Population) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\")"}, {"prompt": "Convert text to SQL: [Question]: How many people live in countries that do not speak English?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT sum(Population) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\")"}, {"prompt": "Convert text to SQL: [Question]: What is the official language spoken in the country whose head of state is Beatrix?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = \"Beatrix\" AND T2.IsOfficial = \"T\""}, {"prompt": "Convert text to SQL: [Question]: What is the official language used in the country the name of whose head of state is Beatrix.\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = \"Beatrix\" AND T2.IsOfficial = \"T\""}, {"prompt": "Convert text to SQL: [Question]: What is the total number of unique official languages spoken in the countries that are founded before 1930?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT count(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE IndepYear < 1930 AND T2.IsOfficial = \"T\""}, {"prompt": "Convert text to SQL: [Question]: For the countries founded before 1930, what is the total number of distinct official languages?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT count(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE IndepYear < 1930 AND T2.IsOfficial = \"T\""}, {"prompt": "Convert text to SQL: [Question]: What are the countries that have greater surface area than any country in Europe?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT Name FROM country WHERE SurfaceArea > (SELECT min(SurfaceArea) FROM country WHERE Continent = \"Europe\")"}, {"prompt": "Convert text to SQL: [Question]: Which countries have greater area than that of any country in Europe?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT Name FROM country WHERE SurfaceArea > (SELECT min(SurfaceArea) FROM country WHERE Continent = \"Europe\")"}, {"prompt": "Convert text to SQL: [Question]: What are the African countries that have a population less than any country in Asia?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT Name FROM country WHERE Continent = \"Africa\" AND population < (SELECT max(population) FROM country WHERE Continent = \"Asia\")"}, {"prompt": "Convert text to SQL: [Question]: Which African countries have a smaller population than that of any country in Asia?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT Name FROM country WHERE Continent = \"Africa\" AND population < (SELECT min(population) FROM country WHERE Continent = \"Asia\")"}, {"prompt": "Convert text to SQL: [Question]: Which Asian countries have a population that is larger than any country in Africa?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT Name FROM country WHERE Continent = \"Asia\" AND population > (SELECT max(population) FROM country WHERE Continent = \"Africa\")"}, {"prompt": "Convert text to SQL: [Question]: What are the Asian countries which have a population larger than that of any country in Africa?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT Name FROM country WHERE Continent = \"Asia\" AND population > (SELECT min(population) FROM country WHERE Continent = \"Africa\")"}, {"prompt": "Convert text to SQL: [Question]: What are the country codes for countries that do not speak English?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\""}, {"prompt": "Convert text to SQL: [Question]: Return the country codes for countries that do not speak English.\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\""}, {"prompt": "Convert text to SQL: [Question]: What are the country codes of countries where people use languages other than English?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE != \"English\""}, {"prompt": "Convert text to SQL: [Question]: Give the country codes for countries in which people speak langauges that are not English.\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE != \"English\""}, {"prompt": "Convert text to SQL: [Question]: What are the codes of the countries that do not speak English and whose government forms are not Republic?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT Code FROM country WHERE GovernmentForm != \"Republic\" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\""}, {"prompt": "Convert text to SQL: [Question]: Return the codes of countries that do not speak English and do not have Republics for governments.\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT Code FROM country WHERE GovernmentForm != \"Republic\" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\""}, {"prompt": "Convert text to SQL: [Question]: Which cities are in European countries where English is not the official language?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT DISTINCT T2.Name FROM country AS T1 JOIN city AS T2 ON T2.CountryCode = T1.Code WHERE T1.Continent = 'Europe' AND T1.Name NOT IN (SELECT T3.Name FROM country AS T3 JOIN countrylanguage AS T4 ON T3.Code = T4.CountryCode WHERE T4.IsOfficial = 'T' AND T4.Language = 'English')"}, {"prompt": "Convert text to SQL: [Question]: What are the names of cities in Europe for which English is not the official language?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT DISTINCT T2.Name FROM country AS T1 JOIN city AS T2 ON T2.CountryCode = T1.Code WHERE T1.Continent = 'Europe' AND T1.Name NOT IN (SELECT T3.Name FROM country AS T3 JOIN countrylanguage AS T4 ON T3.Code = T4.CountryCode WHERE T4.IsOfficial = 'T' AND T4.Language = 'English')"}, {"prompt": "Convert text to SQL: [Question]: Which unique cities are in Asian countries where Chinese is the official language ?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "select distinct t3.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode join city as t3 on t1.code = t3.countrycode where t2.isofficial = 't' and t2.language = 'chinese' and t1.continent = \"asia\""}, {"prompt": "Convert text to SQL: [Question]: Return the different names of cities that are in Asia and for which Chinese is the official language.\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT DISTINCT T3.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode JOIN city AS T3 ON T1.Code = T3.CountryCode WHERE T2.IsOfficial = 'T' AND T2.Language = 'Chinese' AND T1.Continent = \"Asia\""}, {"prompt": "Convert text to SQL: [Question]: What are the name, independence year, and surface area of the country with the smallest population?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT Name , SurfaceArea , IndepYear FROM country ORDER BY Population LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Give the name, year of independence, and surface area of the country that has the lowest population.\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT Name , SurfaceArea , IndepYear FROM country ORDER BY Population LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What are the population, name and leader of the country with the largest area?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT Name , population , HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Give the name, population, and head of state for the country that has the largest area.\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT Name , population , HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Return the country name and the numbers of languages spoken for each country that speaks at least 3 languages.\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT COUNT(T2.Language) , T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name HAVING COUNT(*) > 2"}, {"prompt": "Convert text to SQL: [Question]: What are the names of countries that speak more than 2 languages, as well as how many languages they speak?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT COUNT(T2.Language) , T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name HAVING COUNT(*) > 2"}, {"prompt": "Convert text to SQL: [Question]: Find the number of cities in each district whose population is greater than the average population of cities?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT count(*) , District FROM city WHERE Population > (SELECT avg(Population) FROM city) GROUP BY District"}, {"prompt": "Convert text to SQL: [Question]: How many cities in each district have a population that is above the average population across all cities?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT count(*) , District FROM city WHERE Population > (SELECT avg(Population) FROM city) GROUP BY District"}, {"prompt": "Convert text to SQL: [Question]: Find the government form name and total population for each government form whose average life expectancy is longer than 72.\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT sum(Population) , GovernmentForm FROM country GROUP BY GovernmentForm HAVING avg(LifeExpectancy) > 72"}, {"prompt": "Convert text to SQL: [Question]: What are the different government forms and what is the total population of each for government forms that have an average life expectancy greater than 72?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT sum(Population) , GovernmentForm FROM country GROUP BY GovernmentForm HAVING avg(LifeExpectancy) > 72"}, {"prompt": "Convert text to SQL: [Question]: Find the average life expectancy and total population for each continent where the average life expectancy is shorter than 72?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT sum(Population) , avg(LifeExpectancy) , Continent FROM country GROUP BY Continent HAVING avg(LifeExpectancy) < 72"}, {"prompt": "Convert text to SQL: [Question]: What are the different continents and the total popuation and average life expectancy corresponding to each, for continents that have an average life expectancy less than 72?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT sum(Population) , avg(LifeExpectancy) , Continent FROM country GROUP BY Continent HAVING avg(LifeExpectancy) < 72"}, {"prompt": "Convert text to SQL: [Question]: What are the names and areas of countries with the top 5 largest area?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT Name , SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5"}, {"prompt": "Convert text to SQL: [Question]: Return the names and surface areas of the 5 largest countries.\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT Name , SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5"}, {"prompt": "Convert text to SQL: [Question]: What are names of countries with the top 3 largest population?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT Name FROM country ORDER BY Population DESC LIMIT 3"}, {"prompt": "Convert text to SQL: [Question]: Return the names of the 3 most populated countries.\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT Name FROM country ORDER BY Population DESC LIMIT 3"}, {"prompt": "Convert text to SQL: [Question]: What are the names of the nations with the 3 lowest populations?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT Name FROM country ORDER BY Population ASC LIMIT 3"}, {"prompt": "Convert text to SQL: [Question]: Return the names of the 3 countries with the fewest people.\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT Name FROM country ORDER BY Population ASC LIMIT 3"}, {"prompt": "Convert text to SQL: [Question]: how many countries are in Asia?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT count(*) FROM country WHERE continent = \"Asia\""}, {"prompt": "Convert text to SQL: [Question]: Count the number of countries in Asia.\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT count(*) FROM country WHERE continent = \"Asia\""}, {"prompt": "Convert text to SQL: [Question]: What are the names of the countries that are in the continent of Europe and have a population of 80000?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT Name FROM country WHERE continent = \"Europe\" AND Population = \"80000\""}, {"prompt": "Convert text to SQL: [Question]: Give the names of countries that are in Europe and have a population equal to 80000.\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT Name FROM country WHERE continent = \"Europe\" AND Population = \"80000\""}, {"prompt": "Convert text to SQL: [Question]: What is the total population and average area of countries in the continent of North America whose area is bigger than 3000 ?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "select sum(population) , avg(surfacearea) from country where continent = \"north america\" and surfacearea > 3000"}, {"prompt": "Convert text to SQL: [Question]: Give the total population and average surface area corresponding to countries in North America that have a surface area greater than 3000 .\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "select sum(population) , avg(surfacearea) from country where continent = \"north america\" and surfacearea > 3000"}, {"prompt": "Convert text to SQL: [Question]: What are the cities whose population is between 160000 and 900000?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT name FROM city WHERE Population BETWEEN 160000 AND 900000"}, {"prompt": "Convert text to SQL: [Question]: Return the names of cities that have a population between 160000 and 900000 .\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "select name from city where population between 160000 and 900000"}, {"prompt": "Convert text to SQL: [Question]: Which language is spoken by the largest number of countries?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Give the language that is spoken in the most countries.\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the language spoken by the largest percentage of people in each country?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT LANGUAGE , CountryCode , max(Percentage) FROM countrylanguage GROUP BY CountryCode"}, {"prompt": "Convert text to SQL: [Question]: What are the country codes of the different countries, and what are the languages spoken by the greatest percentage of people for each?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT LANGUAGE , CountryCode , max(Percentage) FROM countrylanguage GROUP BY CountryCode"}, {"prompt": "Convert text to SQL: [Question]: What is the total number of countries where Spanish is spoken by the largest percentage of people?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT count(*) , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode"}, {"prompt": "Convert text to SQL: [Question]: Count the number of countries for which Spanish is the predominantly spoken language.\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT count(*) , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode"}, {"prompt": "Convert text to SQL: [Question]: What are the codes of countries where Spanish is spoken by the largest percentage of people?\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT CountryCode , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode"}, {"prompt": "Convert text to SQL: [Question]: Return the codes of countries for which Spanish is the predominantly spoken language.\n[Database Information]:[Schema (values)]: city : ID , Name , CountryCode , District , Population | sqlite_sequence : name , seq | country : Code , Name , Continent , Region , SurfaceArea , IndepYear , Population , LifeExpectancy , GNP , GNPOld , LocalName , GovernmentForm , HeadOfState , Capital , Code2 | countrylanguage : CountryCode , Language , IsOfficial , Percentage\n[Column names (type)]: countrylanguage : * (text) | city : ID (number) | city : Name (text) | city : CountryCode (text) | city : District (text) | city : Population (number) | sqlite_sequence : name (text) | sqlite_sequence : seq (text) | country : Code (text) | country : Name (text) | country : Continent (text) | country : Region (text) | country : SurfaceArea (number) | country : IndepYear (number) | country : Population (number) | country : LifeExpectancy (number) | country : GNP (number) | country : GNPOld (number) | country : LocalName (text) | country : GovernmentForm (text) | country : HeadOfState (text) | country : Capital (number) | country : Code2 (text) | countrylanguage : CountryCode (text) | countrylanguage : Language (text) | countrylanguage : IsOfficial (text) | countrylanguage : Percentage (number)\n[Primary Keys]: city : ID | country : Code | countrylanguage : CountryCode\n[Foreign Keys]: city : CountryCode equals country : Code | countrylanguage : CountryCode equals country : Code", "ground_truth": "SELECT CountryCode , max(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode"}, {"prompt": "Convert text to SQL: [Question]: How many conductors are there?\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT count(*) FROM conductor"}, {"prompt": "Convert text to SQL: [Question]: Count the number of conductors.\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT count(*) FROM conductor"}, {"prompt": "Convert text to SQL: [Question]: List the names of conductors in ascending order of age.\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT Name FROM conductor ORDER BY Age ASC"}, {"prompt": "Convert text to SQL: [Question]: What are the names of conductors, ordered by age?\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT Name FROM conductor ORDER BY Age ASC"}, {"prompt": "Convert text to SQL: [Question]: What are the names of conductors whose nationalities are not \"USA\"?\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT Name FROM conductor WHERE Nationality != 'USA'"}, {"prompt": "Convert text to SQL: [Question]: Return the names of conductors that do not have the nationality \"USA\".\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT Name FROM conductor WHERE Nationality != 'USA'"}, {"prompt": "Convert text to SQL: [Question]: What are the record companies of orchestras in descending order of years in which they were founded?\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC"}, {"prompt": "Convert text to SQL: [Question]: Return the record companies of orchestras, sorted descending by the years in which they were founded.\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC"}, {"prompt": "Convert text to SQL: [Question]: What is the average attendance of shows?\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT avg(Attendance) FROM SHOW"}, {"prompt": "Convert text to SQL: [Question]: Return the average attendance across all shows.\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT avg(Attendance) FROM SHOW"}, {"prompt": "Convert text to SQL: [Question]: What are the maximum and minimum share of performances whose type is not \"Live final\".\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT max(SHARE) , min(SHARE) FROM performance WHERE TYPE != \"Live final\""}, {"prompt": "Convert text to SQL: [Question]: Return the maximum and minimum shares for performances that do not have the type \"Live final\".\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT max(SHARE) , min(SHARE) FROM performance WHERE TYPE != \"Live final\""}, {"prompt": "Convert text to SQL: [Question]: How many different nationalities do conductors have?\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT count(DISTINCT Nationality) FROM conductor"}, {"prompt": "Convert text to SQL: [Question]: Count the number of different nationalities of conductors.\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT count(DISTINCT Nationality) FROM conductor"}, {"prompt": "Convert text to SQL: [Question]: List names of conductors in descending order of years of work.\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC"}, {"prompt": "Convert text to SQL: [Question]: What are the names of conductors, sorted descending by the number of years they have worked?\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC"}, {"prompt": "Convert text to SQL: [Question]: List the name of the conductor with the most years of work.\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the name of the conductor who has worked the greatest number of years?\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Show the names of conductors and the orchestras they have conducted.\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT T1.Name , T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID"}, {"prompt": "Convert text to SQL: [Question]: What are the names of conductors as well as the corresonding orchestras that they have conducted?\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT T1.Name , T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID"}, {"prompt": "Convert text to SQL: [Question]: Show the names of conductors that have conducted more than one orchestras.\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID HAVING COUNT(*) > 1"}, {"prompt": "Convert text to SQL: [Question]: What are the names of conductors who have conducted at more than one orchestra?\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID HAVING COUNT(*) > 1"}, {"prompt": "Convert text to SQL: [Question]: Show the name of the conductor that has conducted the most number of orchestras.\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID ORDER BY COUNT(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the name of the conductor who has conducted the most orchestras?\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID ORDER BY COUNT(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Please show the name of the conductor that has conducted orchestras founded after 2008.\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE Year_of_Founded > 2008"}, {"prompt": "Convert text to SQL: [Question]: What are the names of conductors who have conducted orchestras founded after the year 2008?\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE Year_of_Founded > 2008"}, {"prompt": "Convert text to SQL: [Question]: Please show the different record companies and the corresponding number of orchestras.\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT Record_Company , COUNT(*) FROM orchestra GROUP BY Record_Company"}, {"prompt": "Convert text to SQL: [Question]: How many orchestras does each record company manage?\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT Record_Company , COUNT(*) FROM orchestra GROUP BY Record_Company"}, {"prompt": "Convert text to SQL: [Question]: Please show the record formats of orchestras in ascending order of count.\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC"}, {"prompt": "Convert text to SQL: [Question]: What are the major record formats of orchestras, sorted by their frequency?\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC"}, {"prompt": "Convert text to SQL: [Question]: List the record company shared by the most number of orchestras.\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the record company used by the greatest number of orchestras?\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: List the names of orchestras that have no performance.\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT Orchestra FROM orchestra WHERE Orchestra_ID NOT IN (SELECT Orchestra_ID FROM performance)"}, {"prompt": "Convert text to SQL: [Question]: What are the orchestras that do not have any performances?\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT Orchestra FROM orchestra WHERE Orchestra_ID NOT IN (SELECT Orchestra_ID FROM performance)"}, {"prompt": "Convert text to SQL: [Question]: Show the record companies shared by orchestras founded before 2003 and after 2003.\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT Record_Company FROM orchestra WHERE Year_of_Founded < 2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded > 2003"}, {"prompt": "Convert text to SQL: [Question]: What are the record companies that are used by both orchestras founded before 2003 and those founded after 2003?\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT Record_Company FROM orchestra WHERE Year_of_Founded < 2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded > 2003"}, {"prompt": "Convert text to SQL: [Question]: Find the number of orchestras whose record format is \"CD\" or \"DVD\".\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format = \"CD\" OR Major_Record_Format = \"DVD\""}, {"prompt": "Convert text to SQL: [Question]: Count the number of orchestras that have CD or DVD as their record format.\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format = \"CD\" OR Major_Record_Format = \"DVD\""}, {"prompt": "Convert text to SQL: [Question]: Show the years in which orchestras that have given more than one performance are founded.\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT Year_of_Founded FROM orchestra AS T1 JOIN performance AS T2 ON T1.Orchestra_ID = T2.Orchestra_ID GROUP BY T2.Orchestra_ID HAVING COUNT(*) > 1"}, {"prompt": "Convert text to SQL: [Question]: What are years of founding for orchestras that have had more than a single performance?\n[Database Information]:[Schema (values)]: conductor : Conductor_ID , Name , Age , Nationality , Year_of_Work | orchestra : Orchestra_ID , Orchestra , Conductor_ID , Record_Company , Year_of_Founded , Major_Record_Format | performance : Performance_ID , Orchestra_ID , Type , Date , Official_ratings_(millions) , Weekly_rank , Share | show : Show_ID , Performance_ID , If_first_show , Result , Attendance\n[Column names (type)]: show : * (text) | conductor : Conductor_ID (number) | conductor : Name (text) | conductor : Age (number) | conductor : Nationality (text) | conductor : Year_of_Work (number) | orchestra : Orchestra_ID (number) | orchestra : Orchestra (text) | orchestra : Conductor_ID (number) | orchestra : Record_Company (text) | orchestra : Year_of_Founded (number) | orchestra : Major_Record_Format (text) | performance : Performance_ID (number) | performance : Orchestra_ID (number) | performance : Type (text) | performance : Date (text) | performance : Official_ratings_(millions) (number) | performance : Weekly_rank (text) | performance : Share (text) | show : Show_ID (number) | show : Performance_ID (number) | show : If_first_show (others) | show : Result (text) | show : Attendance (number)\n[Primary Keys]: conductor : Conductor_ID | orchestra : Orchestra_ID | performance : Performance_ID\n[Foreign Keys]: orchestra : Conductor_ID equals conductor : Conductor_ID | performance : Orchestra_ID equals orchestra : Orchestra_ID | show : Performance_ID equals performance : Performance_ID", "ground_truth": "SELECT Year_of_Founded FROM orchestra AS T1 JOIN performance AS T2 ON T1.Orchestra_ID = T2.Orchestra_ID GROUP BY T2.Orchestra_ID HAVING COUNT(*) > 1"}, {"prompt": "Convert text to SQL: [Question]: How many high schoolers are there?\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT count(*) FROM Highschooler"}, {"prompt": "Convert text to SQL: [Question]: Count the number of high schoolers.\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT count(*) FROM Highschooler"}, {"prompt": "Convert text to SQL: [Question]: Show the names and grades of each high schooler.\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT name , grade FROM Highschooler"}, {"prompt": "Convert text to SQL: [Question]: What are the names and grades for each high schooler?\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT name , grade FROM Highschooler"}, {"prompt": "Convert text to SQL: [Question]: Show all the grades of the high schoolers.\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT grade FROM Highschooler"}, {"prompt": "Convert text to SQL: [Question]: What is the grade of each high schooler?\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT grade FROM Highschooler"}, {"prompt": "Convert text to SQL: [Question]: What grade is Kyle in?\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT grade FROM Highschooler WHERE name = \"Kyle\""}, {"prompt": "Convert text to SQL: [Question]: Return the grade for the high schooler named Kyle.\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT grade FROM Highschooler WHERE name = \"Kyle\""}, {"prompt": "Convert text to SQL: [Question]: Show the names of all high schoolers in grade 10.\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT name FROM Highschooler WHERE grade = 10"}, {"prompt": "Convert text to SQL: [Question]: What are the names of all high schoolers in grade 10?\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT name FROM Highschooler WHERE grade = 10"}, {"prompt": "Convert text to SQL: [Question]: Show the ID of the high schooler named Kyle.\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT ID FROM Highschooler WHERE name = \"Kyle\""}, {"prompt": "Convert text to SQL: [Question]: What is Kyle's id?\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT ID FROM Highschooler WHERE name = \"Kyle\""}, {"prompt": "Convert text to SQL: [Question]: How many high schoolers are there in grade 9 or 10?\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT count(*) FROM Highschooler WHERE grade = 9 OR grade = 10"}, {"prompt": "Convert text to SQL: [Question]: Count the number of high schoolers in grades 9 or 10.\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT count(*) FROM Highschooler WHERE grade = 9 OR grade = 10"}, {"prompt": "Convert text to SQL: [Question]: Show the number of high schoolers for each grade.\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT grade , count(*) FROM Highschooler GROUP BY grade"}, {"prompt": "Convert text to SQL: [Question]: How many high schoolers are in each grade?\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT grade , count(*) FROM Highschooler GROUP BY grade"}, {"prompt": "Convert text to SQL: [Question]: Which grade has the most high schoolers?\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT grade FROM Highschooler GROUP BY grade ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Return the grade that has the greatest number of high schoolers.\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT grade FROM Highschooler GROUP BY grade ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Show me all grades that have at least 4 students.\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT grade FROM Highschooler GROUP BY grade HAVING count(*) >= 4"}, {"prompt": "Convert text to SQL: [Question]: Which grades have 4 or more high schoolers?\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT grade FROM Highschooler GROUP BY grade HAVING count(*) >= 4"}, {"prompt": "Convert text to SQL: [Question]: Show the student IDs and numbers of friends corresponding to each.\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT student_id , count(*) FROM Friend GROUP BY student_id"}, {"prompt": "Convert text to SQL: [Question]: How many friends does each student have?\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT student_id , count(*) FROM Friend GROUP BY student_id"}, {"prompt": "Convert text to SQL: [Question]: Show the names of high school students and their corresponding number of friends.\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT T2.name , count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id"}, {"prompt": "Convert text to SQL: [Question]: What are the names of the high schoolers and how many friends does each have?\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT T2.name , count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id"}, {"prompt": "Convert text to SQL: [Question]: What is the name of the high schooler who has the greatest number of friends?\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Return the name of the high school student with the most friends.\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Show the names of high schoolers who have at least 3 friends.\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING count(*) >= 3"}, {"prompt": "Convert text to SQL: [Question]: What are the names of high schoolers who have 3 or more friends?\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING count(*) >= 3"}, {"prompt": "Convert text to SQL: [Question]: Show the names of all of the high schooler Kyle's friends.\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id JOIN Highschooler AS T3 ON T1.friend_id = T3.id WHERE T2.name = \"Kyle\""}, {"prompt": "Convert text to SQL: [Question]: Return the names of friends of the high school student Kyle.\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id JOIN Highschooler AS T3 ON T1.friend_id = T3.id WHERE T2.name = \"Kyle\""}, {"prompt": "Convert text to SQL: [Question]: How many friends does the high school student Kyle have?\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = \"Kyle\""}, {"prompt": "Convert text to SQL: [Question]: Count the number of friends Kyle has.\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = \"Kyle\""}, {"prompt": "Convert text to SQL: [Question]: Show ids of all students who do not have any friends.\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT id FROM Highschooler EXCEPT SELECT student_id FROM Friend"}, {"prompt": "Convert text to SQL: [Question]: What are the ids of high school students who do not have friends?\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT id FROM Highschooler EXCEPT SELECT student_id FROM Friend"}, {"prompt": "Convert text to SQL: [Question]: Show names of all high school students who do not have any friends.\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id"}, {"prompt": "Convert text to SQL: [Question]: What are the names of students who have no friends?\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id"}, {"prompt": "Convert text to SQL: [Question]: Show the ids of high schoolers who have friends and are also liked by someone else.\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes"}, {"prompt": "Convert text to SQL: [Question]: What are the ids of students who both have friends and are liked?\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes"}, {"prompt": "Convert text to SQL: [Question]: Show name of all students who have some friends and also are liked by someone else.\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id INTERSECT SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.liked_id = T2.id"}, {"prompt": "Convert text to SQL: [Question]: What are the names of high schoolers who both have friends and are liked?\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id INTERSECT SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.liked_id = T2.id"}, {"prompt": "Convert text to SQL: [Question]: Count the number of likes for each student id.\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT student_id , count(*) FROM Likes GROUP BY student_id"}, {"prompt": "Convert text to SQL: [Question]: How many likes correspond to each student id?\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT student_id , count(*) FROM Likes GROUP BY student_id"}, {"prompt": "Convert text to SQL: [Question]: Show the names of high schoolers who have likes, and numbers of likes for each.\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT T2.name , count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id"}, {"prompt": "Convert text to SQL: [Question]: What are the names of high schoolers who have likes, and how many likes does each have?\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT T2.name , count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id"}, {"prompt": "Convert text to SQL: [Question]: What is the name of the high schooler who has the greatest number of likes?\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Give the name of the student with the most likes.\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Show the names of students who have at least 2 likes.\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING count(*) >= 2"}, {"prompt": "Convert text to SQL: [Question]: What are the names of students who have 2 or more likes?\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING count(*) >= 2"}, {"prompt": "Convert text to SQL: [Question]: Show the names of students who have a grade higher than 5 and have at least 2 friends.\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.grade > 5 GROUP BY T1.student_id HAVING count(*) >= 2"}, {"prompt": "Convert text to SQL: [Question]: What are the names of high schoolers who have a grade of over 5 and have 2 or more friends?\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.grade > 5 GROUP BY T1.student_id HAVING count(*) >= 2"}, {"prompt": "Convert text to SQL: [Question]: How many likes does Kyle have?\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = \"Kyle\""}, {"prompt": "Convert text to SQL: [Question]: Return the number of likes that the high schooler named Kyle has.\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = \"Kyle\""}, {"prompt": "Convert text to SQL: [Question]: Find the average grade of all students who have some friends.\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT avg(grade) FROM Highschooler WHERE id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id)"}, {"prompt": "Convert text to SQL: [Question]: What is the average grade of students who have friends?\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT avg(grade) FROM Highschooler WHERE id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id)"}, {"prompt": "Convert text to SQL: [Question]: Find the minimum grade of students who have no friends.\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT min(grade) FROM Highschooler WHERE id NOT IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id)"}, {"prompt": "Convert text to SQL: [Question]: What is the lowest grade of students who do not have any friends?\n[Database Information]:[Schema (values)]: Highschooler : ID , name , grade | Friend : student_id , friend_id | Likes : student_id , liked_id\n[Column names (type)]: Likes : * (text) | Highschooler : ID (number) | Highschooler : name (text) | Highschooler : grade (number) | Friend : student_id (number) | Friend : friend_id (number) | Likes : student_id (number) | Likes : liked_id (number)\n[Primary Keys]: Highschooler : ID | Friend : student_id | Likes : student_id\n[Foreign Keys]: Friend : friend_id equals Highschooler : ID | Friend : student_id equals Highschooler : ID | Likes : student_id equals Highschooler : ID | Likes : liked_id equals Highschooler : ID", "ground_truth": "SELECT min(grade) FROM Highschooler WHERE id NOT IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id)"}, {"prompt": "Convert text to SQL: [Question]: Which states have both owners and professionals living there?\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT state FROM Owners INTERSECT SELECT state FROM Professionals"}, {"prompt": "Convert text to SQL: [Question]: Find the states where both owners and professionals live.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT state FROM Owners INTERSECT SELECT state FROM Professionals"}, {"prompt": "Convert text to SQL: [Question]: What is the average age of the dogs who have gone through any treatments?\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT avg(age) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments )"}, {"prompt": "Convert text to SQL: [Question]: Find the average age of the dogs who went through treatments.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT avg(age) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments )"}, {"prompt": "Convert text to SQL: [Question]: Which professionals live in the state of Indiana or have done treatment on more than 2 treatments? List his or her id, last name and cell phone.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT professional_id , last_name , cell_number FROM Professionals WHERE state = 'Indiana' UNION SELECT T1.professional_id , T1.last_name , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) > 2"}, {"prompt": "Convert text to SQL: [Question]: Find the id, last name and cell phone of the professionals who live in the state of Indiana or have performed more than two treatments.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT professional_id , last_name , cell_number FROM Professionals WHERE state = 'Indiana' UNION SELECT T1.professional_id , T1.last_name , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) > 2"}, {"prompt": "Convert text to SQL: [Question]: Which dogs have not cost their owner more than 1000 for treatment ? List the dog names .\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "select name from dogs where dog_id not in ( select dog_id from treatments group by dog_id having sum(cost_of_treatment) > 1000 )"}, {"prompt": "Convert text to SQL: [Question]: What are the names of the dogs for which the owner has not spend more than 1000 for treatment ?\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "select name from dogs where dog_id not in ( select dog_id from treatments group by dog_id having sum(cost_of_treatment) > 1000 )"}, {"prompt": "Convert text to SQL: [Question]: Which first names are used for professionals or owners but are not used as dog names?\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs"}, {"prompt": "Convert text to SQL: [Question]: Find the first names that are used for professionals or owners but are not used as dog names.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs"}, {"prompt": "Convert text to SQL: [Question]: Which professional did not operate any treatment on dogs? List the professional's id, role and email.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT professional_id , role_code , email_address FROM Professionals EXCEPT SELECT T1.professional_id , T1.role_code , T1.email_address FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id"}, {"prompt": "Convert text to SQL: [Question]: Give me the id, role and email of the professionals who did not perform any treatment on dogs.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT professional_id , role_code , email_address FROM Professionals EXCEPT SELECT T1.professional_id , T1.role_code , T1.email_address FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id"}, {"prompt": "Convert text to SQL: [Question]: Which owner owns the most dogs? List the owner id, first name and last name.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT T1.owner_id , T2.first_name , T2.last_name FROM Dogs AS T1 JOIN Owners AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Return the owner id, first name and last name of the owner who has the most dogs.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT T1.owner_id , T2.first_name , T2.last_name FROM Dogs AS T1 JOIN Owners AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Which professionals have done at least two treatments? List the professional's id, role, and first name.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT T1.professional_id , T1.role_code , T1.first_name FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) >= 2"}, {"prompt": "Convert text to SQL: [Question]: What are the id, role, and first name of the professionals who have performed two or more treatments?\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT T1.professional_id , T1.role_code , T1.first_name FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) >= 2"}, {"prompt": "Convert text to SQL: [Question]: What is the name of the breed with the most dogs?\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT T1.breed_name FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code = T2.breed_code GROUP BY T1.breed_name ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Which breed do the most dogs have? Give me the breed name.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT T1.breed_name FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code = T2.breed_code GROUP BY T1.breed_name ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Which owner has paid for the most treatments on his or her dogs? List the owner id and last name.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT T1.owner_id , T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Tell me the owner id and last name of the owner who spent the most on treatments of his or her dogs.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT T1.owner_id , T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the description of the treatment type that costs the least money in total?\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT T1.treatment_type_description FROM Treatment_types AS T1 JOIN Treatments AS T2 ON T1.treatment_type_code = T2.treatment_type_code GROUP BY T1.treatment_type_code ORDER BY sum(cost_of_treatment) ASC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Give me the description of the treatment type whose total cost is the lowest.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT T1.treatment_type_description FROM Treatment_types AS T1 JOIN Treatments AS T2 ON T1.treatment_type_code = T2.treatment_type_code GROUP BY T1.treatment_type_code ORDER BY sum(cost_of_treatment) ASC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Which owner has paid the largest amount of money in total for their dogs? Show the owner id and zip code.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT T1.owner_id , T1.zip_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY sum(T3.cost_of_treatment) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Find the owner id and zip code of the owner who spent the most money in total for his or her dogs.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT T1.owner_id , T1.zip_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY sum(T3.cost_of_treatment) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Which professionals have done at least two types of treatments? List the professional id and cell phone.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT T1.professional_id , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) >= 2"}, {"prompt": "Convert text to SQL: [Question]: Find the id and cell phone of the professionals who operate two or more types of treatments.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT T1.professional_id , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) >= 2"}, {"prompt": "Convert text to SQL: [Question]: What are the first name and last name of the professionals who have done treatment with cost below average?\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT DISTINCT T1.first_name , T1.last_name FROM Professionals AS T1 JOIN Treatments AS T2 WHERE cost_of_treatment < ( SELECT avg(cost_of_treatment) FROM Treatments )"}, {"prompt": "Convert text to SQL: [Question]: Which professionals have operated a treatment that costs less than the average? Give me theor first names and last names.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT DISTINCT T1.first_name , T1.last_name FROM Professionals AS T1 JOIN Treatments AS T2 WHERE cost_of_treatment < ( SELECT avg(cost_of_treatment) FROM Treatments )"}, {"prompt": "Convert text to SQL: [Question]: List the date of each treatment, together with the first name of the professional who operated it.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT T1.date_of_treatment , T2.first_name FROM Treatments AS T1 JOIN Professionals AS T2 ON T1.professional_id = T2.professional_id"}, {"prompt": "Convert text to SQL: [Question]: What are the date and the operating professional's first name of each treatment?\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT T1.date_of_treatment , T2.first_name FROM Treatments AS T1 JOIN Professionals AS T2 ON T1.professional_id = T2.professional_id"}, {"prompt": "Convert text to SQL: [Question]: List the cost of each treatment and the corresponding treatment type description.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT T1.cost_of_treatment , T2.treatment_type_description FROM Treatments AS T1 JOIN treatment_types AS T2 ON T1.treatment_type_code = T2.treatment_type_code"}, {"prompt": "Convert text to SQL: [Question]: What are the cost and treatment type description of each treatment?\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT T1.cost_of_treatment , T2.treatment_type_description FROM Treatments AS T1 JOIN treatment_types AS T2 ON T1.treatment_type_code = T2.treatment_type_code"}, {"prompt": "Convert text to SQL: [Question]: List each owner's first name, last name, and the size of his for her dog.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT T1.first_name , T1.last_name , T2.size_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id"}, {"prompt": "Convert text to SQL: [Question]: What are each owner's first name, last name, and the size of their dog?\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT T1.first_name , T1.last_name , T2.size_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id"}, {"prompt": "Convert text to SQL: [Question]: List pairs of the owner's first name and the dogs's name.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id"}, {"prompt": "Convert text to SQL: [Question]: What are each owner's first name and their dogs's name?\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id"}, {"prompt": "Convert text to SQL: [Question]: List the names of the dogs of the rarest breed and the treatment dates of them.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT T1.name , T2.date_of_treatment FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id WHERE T1.breed_code = ( SELECT breed_code FROM Dogs GROUP BY breed_code ORDER BY count(*) ASC LIMIT 1 )"}, {"prompt": "Convert text to SQL: [Question]: Which dogs are of the rarest breed? Show their names and treatment dates.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT T1.name , T2.date_of_treatment FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id WHERE T1.breed_code = ( SELECT breed_code FROM Dogs GROUP BY breed_code ORDER BY count(*) ASC LIMIT 1 )"}, {"prompt": "Convert text to SQL: [Question]: Which dogs are owned by someone who lives in Virginia? List the owner's first name and the dog's name.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T1.state = 'Virginia'"}, {"prompt": "Convert text to SQL: [Question]: Find the first names of owners living in Virginia and the names of dogs they own.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T1.state = 'Virginia'"}, {"prompt": "Convert text to SQL: [Question]: What are the arriving date and the departing date of the dogs who have gone through a treatment?\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT DISTINCT T1.date_arrived , T1.date_departed FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id"}, {"prompt": "Convert text to SQL: [Question]: Find the arriving date and the departing date of the dogs that received a treatment.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT DISTINCT T1.date_arrived , T1.date_departed FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id"}, {"prompt": "Convert text to SQL: [Question]: List the last name of the owner owning the youngest dog.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T2.age = ( SELECT max(age) FROM Dogs )"}, {"prompt": "Convert text to SQL: [Question]: Who owns the youngest dog? Give me his or her last name.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T2.age = ( SELECT max(age) FROM Dogs )"}, {"prompt": "Convert text to SQL: [Question]: List the emails of the professionals who live in the state of Hawaii or the state of Wisconsin.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT email_address FROM Professionals WHERE state = 'Hawaii' OR state = 'Wisconsin'"}, {"prompt": "Convert text to SQL: [Question]: What are the emails of the professionals living in either the state of Hawaii or the state of Wisconsin?\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT email_address FROM Professionals WHERE state = 'Hawaii' OR state = 'Wisconsin'"}, {"prompt": "Convert text to SQL: [Question]: What are the arriving date and the departing date of all the dogs?\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT date_arrived , date_departed FROM Dogs"}, {"prompt": "Convert text to SQL: [Question]: List the arrival date and the departure date for all the dogs.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT date_arrived , date_departed FROM Dogs"}, {"prompt": "Convert text to SQL: [Question]: How many dogs went through any treatments?\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT count(DISTINCT dog_id) FROM Treatments"}, {"prompt": "Convert text to SQL: [Question]: Count the number of dogs that went through a treatment.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT count(DISTINCT dog_id) FROM Treatments"}, {"prompt": "Convert text to SQL: [Question]: How many professionals have performed any treatment to dogs?\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT count(DISTINCT professional_id) FROM Treatments"}, {"prompt": "Convert text to SQL: [Question]: Find the number of professionals who have ever treated dogs.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT count(DISTINCT professional_id) FROM Treatments"}, {"prompt": "Convert text to SQL: [Question]: Which professionals live in a city containing the substring 'West'? List his or her role, street, city and state.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT role_code , street , city , state FROM professionals WHERE city LIKE '%West%'"}, {"prompt": "Convert text to SQL: [Question]: Find the role, street, city and state of the professionals living in a city that contains the substring 'West'.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT role_code , street , city , state FROM professionals WHERE city LIKE '%West%'"}, {"prompt": "Convert text to SQL: [Question]: Which owners live in the state whose name contains the substring 'North'? List his first name, last name and email.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT first_name , last_name , email_address FROM Owners WHERE state LIKE '%North%'"}, {"prompt": "Convert text to SQL: [Question]: Return the first name, last name and email of the owners living in a state whose name contains the substring 'North'.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT first_name , last_name , email_address FROM Owners WHERE state LIKE '%North%'"}, {"prompt": "Convert text to SQL: [Question]: How many dogs have an age below the average?\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT count(*) FROM Dogs WHERE age < ( SELECT avg(age) FROM Dogs )"}, {"prompt": "Convert text to SQL: [Question]: Count the number of dogs of an age below the average.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT count(*) FROM Dogs WHERE age < ( SELECT avg(age) FROM Dogs )"}, {"prompt": "Convert text to SQL: [Question]: How much does the most recent treatment cost?\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT cost_of_treatment FROM Treatments ORDER BY date_of_treatment DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Show me the cost of the most recently performed treatment.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT cost_of_treatment FROM Treatments ORDER BY date_of_treatment DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: How many dogs have not gone through any treatment?\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT count(*) FROM Dogs WHERE dog_id NOT IN ( SELECT dog_id FROM Treatments )"}, {"prompt": "Convert text to SQL: [Question]: Tell me the number of dogs that have not received any treatment .\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "select count(*) from dogs where dog_id not in ( select dog_id from treatments )"}, {"prompt": "Convert text to SQL: [Question]: How many owners temporarily do not have any dogs?\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT count(*) FROM Owners WHERE owner_id NOT IN ( SELECT owner_id FROM Dogs )"}, {"prompt": "Convert text to SQL: [Question]: Find the number of owners who do not own any dogs at this moment.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT count(*) FROM Owners WHERE owner_id NOT IN ( SELECT owner_id FROM Dogs )"}, {"prompt": "Convert text to SQL: [Question]: How many professionals did not operate any treatment on dogs?\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT count(*) FROM Professionals WHERE professional_id NOT IN ( SELECT professional_id FROM Treatments )"}, {"prompt": "Convert text to SQL: [Question]: Find the number of professionals who have not treated any dogs.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT count(*) FROM Professionals WHERE professional_id NOT IN ( SELECT professional_id FROM Treatments )"}, {"prompt": "Convert text to SQL: [Question]: List the dog name, age and weight of the dogs who have been abandoned? 1 stands for yes, and 0 stands for no.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT name , age , weight FROM Dogs WHERE abandoned_yn = 1"}, {"prompt": "Convert text to SQL: [Question]: What are the dog name, age and weight of the dogs that were abandoned? Note that 1 stands for yes, and 0 stands for no in the tables.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT name , age , weight FROM Dogs WHERE abandoned_yn = 1"}, {"prompt": "Convert text to SQL: [Question]: What is the average age of all the dogs?\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT avg(age) FROM Dogs"}, {"prompt": "Convert text to SQL: [Question]: Compute the average age of all the dogs.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT avg(age) FROM Dogs"}, {"prompt": "Convert text to SQL: [Question]: What is the age of the oldest dog?\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT max(age) FROM Dogs"}, {"prompt": "Convert text to SQL: [Question]: Tell me the age of the oldest dog.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT max(age) FROM Dogs"}, {"prompt": "Convert text to SQL: [Question]: How much does each charge type costs? List both charge type and amount.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT charge_type , charge_amount FROM Charges"}, {"prompt": "Convert text to SQL: [Question]: List each charge type and its amount.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT charge_type , charge_amount FROM Charges"}, {"prompt": "Convert text to SQL: [Question]: How much does the most expensive charge type costs?\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT max(charge_amount) FROM Charges"}, {"prompt": "Convert text to SQL: [Question]: What is the charge amount of the most expensive charge type?\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT max(charge_amount) FROM Charges"}, {"prompt": "Convert text to SQL: [Question]: List the email, cell phone and home phone of all the professionals.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT email_address , cell_number , home_phone FROM professionals"}, {"prompt": "Convert text to SQL: [Question]: What are the email, cell phone and home phone of each professional?\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT email_address , cell_number , home_phone FROM professionals"}, {"prompt": "Convert text to SQL: [Question]: What are all the possible breed type and size type combinations?\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT DISTINCT breed_code , size_code FROM dogs"}, {"prompt": "Convert text to SQL: [Question]: Find the distinct breed type and size type combinations for dogs.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT DISTINCT breed_code , size_code FROM dogs"}, {"prompt": "Convert text to SQL: [Question]: List the first name of all the professionals along with the description of the treatment they have done.\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT DISTINCT T1.first_name , T3.treatment_type_description FROM professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id JOIN Treatment_types AS T3 ON T2.treatment_type_code = T3.treatment_type_code"}, {"prompt": "Convert text to SQL: [Question]: What are each professional's first name and description of the treatment they have performed?\n[Database Information]:[Schema (values)]: Breeds : breed_code , breed_name | Charges : charge_id , charge_type , charge_amount | Sizes : size_code , size_description | Treatment_Types : treatment_type_code , treatment_type_description | Owners : owner_id , first_name , last_name , street , city , state , zip_code , email_address , home_phone , cell_number | Dogs : dog_id , owner_id , abandoned_yn , breed_code , size_code , name , age , date_of_birth , gender , weight , date_arrived , date_adopted , date_departed | Professionals : professional_id , role_code , first_name , street , city , state , zip_code , last_name , email_address , home_phone , cell_number | Treatments : treatment_id , dog_id , professional_id , treatment_type_code , date_of_treatment , cost_of_treatment\n[Column names (type)]: Treatments : * (text) | Breeds : breed_code (text) | Breeds : breed_name (text) | Charges : charge_id (number) | Charges : charge_type (text) | Charges : charge_amount (number) | Sizes : size_code (text) | Sizes : size_description (text) | Treatment_Types : treatment_type_code (text) | Treatment_Types : treatment_type_description (text) | Owners : owner_id (number) | Owners : first_name (text) | Owners : last_name (text) | Owners : street (text) | Owners : city (text) | Owners : state (text) | Owners : zip_code (text) | Owners : email_address (text) | Owners : home_phone (text) | Owners : cell_number (text) | Dogs : dog_id (number) | Dogs : owner_id (number) | Dogs : abandoned_yn (text) | Dogs : breed_code (text) | Dogs : size_code (text) | Dogs : name (text) | Dogs : age (text) | Dogs : date_of_birth (time) | Dogs : gender (text) | Dogs : weight (text) | Dogs : date_arrived (time) | Dogs : date_adopted (time) | Dogs : date_departed (time) | Professionals : professional_id (number) | Professionals : role_code (text) | Professionals : first_name (text) | Professionals : street (text) | Professionals : city (text) | Professionals : state (text) | Professionals : zip_code (text) | Professionals : last_name (text) | Professionals : email_address (text) | Professionals : home_phone (text) | Professionals : cell_number (text) | Treatments : treatment_id (number) | Treatments : dog_id (number) | Treatments : professional_id (number) | Treatments : treatment_type_code (text) | Treatments : date_of_treatment (time) | Treatments : cost_of_treatment (number)\n[Primary Keys]: Breeds : breed_code | Charges : charge_id | Sizes : size_code | Treatment_Types : treatment_type_code | Owners : owner_id | Dogs : dog_id | Professionals : professional_id | Treatments : treatment_id\n[Foreign Keys]: Dogs : owner_id equals Owners : owner_id | Dogs : owner_id equals Owners : owner_id | Dogs : size_code equals Sizes : size_code | Dogs : breed_code equals Breeds : breed_code | Treatments : dog_id equals Dogs : dog_id | Treatments : professional_id equals Professionals : professional_id | Treatments : treatment_type_code equals Treatment_Types : treatment_type_code", "ground_truth": "SELECT DISTINCT T1.first_name , T3.treatment_type_description FROM professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id JOIN Treatment_types AS T3 ON T2.treatment_type_code = T3.treatment_type_code"}, {"prompt": "Convert text to SQL: [Question]: How many singers are there?\n[Database Information]:[Schema (values)]: singer : Singer_ID , Name , Birth_Year , Net_Worth_Millions , Citizenship | song : Song_ID , Title , Singer_ID , Sales , Highest_Position\n[Column names (type)]: song : * (text) | singer : Singer_ID (number) | singer : Name (text) | singer : Birth_Year (number) | singer : Net_Worth_Millions (number) | singer : Citizenship (text) | song : Song_ID (number) | song : Title (text) | song : Singer_ID (number) | song : Sales (number) | song : Highest_Position (number)\n[Primary Keys]: singer : Singer_ID | song : Song_ID\n[Foreign Keys]: song : Singer_ID equals singer : Singer_ID", "ground_truth": "SELECT count(*) FROM singer"}, {"prompt": "Convert text to SQL: [Question]: What is the count of singers?\n[Database Information]:[Schema (values)]: singer : Singer_ID , Name , Birth_Year , Net_Worth_Millions , Citizenship | song : Song_ID , Title , Singer_ID , Sales , Highest_Position\n[Column names (type)]: song : * (text) | singer : Singer_ID (number) | singer : Name (text) | singer : Birth_Year (number) | singer : Net_Worth_Millions (number) | singer : Citizenship (text) | song : Song_ID (number) | song : Title (text) | song : Singer_ID (number) | song : Sales (number) | song : Highest_Position (number)\n[Primary Keys]: singer : Singer_ID | song : Song_ID\n[Foreign Keys]: song : Singer_ID equals singer : Singer_ID", "ground_truth": "SELECT count(*) FROM singer"}, {"prompt": "Convert text to SQL: [Question]: List the name of singers in ascending order of net worth.\n[Database Information]:[Schema (values)]: singer : Singer_ID , Name , Birth_Year , Net_Worth_Millions , Citizenship | song : Song_ID , Title , Singer_ID , Sales , Highest_Position\n[Column names (type)]: song : * (text) | singer : Singer_ID (number) | singer : Name (text) | singer : Birth_Year (number) | singer : Net_Worth_Millions (number) | singer : Citizenship (text) | song : Song_ID (number) | song : Title (text) | song : Singer_ID (number) | song : Sales (number) | song : Highest_Position (number)\n[Primary Keys]: singer : Singer_ID | song : Song_ID\n[Foreign Keys]: song : Singer_ID equals singer : Singer_ID", "ground_truth": "SELECT Name FROM singer ORDER BY Net_Worth_Millions ASC"}, {"prompt": "Convert text to SQL: [Question]: What are the names of singers ordered by ascending net worth?\n[Database Information]:[Schema (values)]: singer : Singer_ID , Name , Birth_Year , Net_Worth_Millions , Citizenship | song : Song_ID , Title , Singer_ID , Sales , Highest_Position\n[Column names (type)]: song : * (text) | singer : Singer_ID (number) | singer : Name (text) | singer : Birth_Year (number) | singer : Net_Worth_Millions (number) | singer : Citizenship (text) | song : Song_ID (number) | song : Title (text) | song : Singer_ID (number) | song : Sales (number) | song : Highest_Position (number)\n[Primary Keys]: singer : Singer_ID | song : Song_ID\n[Foreign Keys]: song : Singer_ID equals singer : Singer_ID", "ground_truth": "SELECT Name FROM singer ORDER BY Net_Worth_Millions ASC"}, {"prompt": "Convert text to SQL: [Question]: What are the birth year and citizenship of singers?\n[Database Information]:[Schema (values)]: singer : Singer_ID , Name , Birth_Year , Net_Worth_Millions , Citizenship | song : Song_ID , Title , Singer_ID , Sales , Highest_Position\n[Column names (type)]: song : * (text) | singer : Singer_ID (number) | singer : Name (text) | singer : Birth_Year (number) | singer : Net_Worth_Millions (number) | singer : Citizenship (text) | song : Song_ID (number) | song : Title (text) | song : Singer_ID (number) | song : Sales (number) | song : Highest_Position (number)\n[Primary Keys]: singer : Singer_ID | song : Song_ID\n[Foreign Keys]: song : Singer_ID equals singer : Singer_ID", "ground_truth": "SELECT Birth_Year , Citizenship FROM singer"}, {"prompt": "Convert text to SQL: [Question]: What are the birth years and citizenships of the singers?\n[Database Information]:[Schema (values)]: singer : Singer_ID , Name , Birth_Year , Net_Worth_Millions , Citizenship | song : Song_ID , Title , Singer_ID , Sales , Highest_Position\n[Column names (type)]: song : * (text) | singer : Singer_ID (number) | singer : Name (text) | singer : Birth_Year (number) | singer : Net_Worth_Millions (number) | singer : Citizenship (text) | song : Song_ID (number) | song : Title (text) | song : Singer_ID (number) | song : Sales (number) | song : Highest_Position (number)\n[Primary Keys]: singer : Singer_ID | song : Song_ID\n[Foreign Keys]: song : Singer_ID equals singer : Singer_ID", "ground_truth": "SELECT Birth_Year , Citizenship FROM singer"}, {"prompt": "Convert text to SQL: [Question]: List the name of singers whose citizenship is not \"France\".\n[Database Information]:[Schema (values)]: singer : Singer_ID , Name , Birth_Year , Net_Worth_Millions , Citizenship | song : Song_ID , Title , Singer_ID , Sales , Highest_Position\n[Column names (type)]: song : * (text) | singer : Singer_ID (number) | singer : Name (text) | singer : Birth_Year (number) | singer : Net_Worth_Millions (number) | singer : Citizenship (text) | song : Song_ID (number) | song : Title (text) | song : Singer_ID (number) | song : Sales (number) | song : Highest_Position (number)\n[Primary Keys]: singer : Singer_ID | song : Song_ID\n[Foreign Keys]: song : Singer_ID equals singer : Singer_ID", "ground_truth": "SELECT Name FROM singer WHERE Citizenship != \"France\""}, {"prompt": "Convert text to SQL: [Question]: What are the names of the singers who are not French citizens?\n[Database Information]:[Schema (values)]: singer : Singer_ID , Name , Birth_Year , Net_Worth_Millions , Citizenship | song : Song_ID , Title , Singer_ID , Sales , Highest_Position\n[Column names (type)]: song : * (text) | singer : Singer_ID (number) | singer : Name (text) | singer : Birth_Year (number) | singer : Net_Worth_Millions (number) | singer : Citizenship (text) | song : Song_ID (number) | song : Title (text) | song : Singer_ID (number) | song : Sales (number) | song : Highest_Position (number)\n[Primary Keys]: singer : Singer_ID | song : Song_ID\n[Foreign Keys]: song : Singer_ID equals singer : Singer_ID", "ground_truth": "SELECT Name FROM singer WHERE Citizenship != \"France\""}, {"prompt": "Convert text to SQL: [Question]: Show the name of singers whose birth year is either 1948 or 1949?\n[Database Information]:[Schema (values)]: singer : Singer_ID , Name , Birth_Year , Net_Worth_Millions , Citizenship | song : Song_ID , Title , Singer_ID , Sales , Highest_Position\n[Column names (type)]: song : * (text) | singer : Singer_ID (number) | singer : Name (text) | singer : Birth_Year (number) | singer : Net_Worth_Millions (number) | singer : Citizenship (text) | song : Song_ID (number) | song : Title (text) | song : Singer_ID (number) | song : Sales (number) | song : Highest_Position (number)\n[Primary Keys]: singer : Singer_ID | song : Song_ID\n[Foreign Keys]: song : Singer_ID equals singer : Singer_ID", "ground_truth": "SELECT Name FROM singer WHERE Birth_Year = 1948 OR Birth_Year = 1949"}, {"prompt": "Convert text to SQL: [Question]: What are the names of the singers whose birth years are either 1948 or 1949?\n[Database Information]:[Schema (values)]: singer : Singer_ID , Name , Birth_Year , Net_Worth_Millions , Citizenship | song : Song_ID , Title , Singer_ID , Sales , Highest_Position\n[Column names (type)]: song : * (text) | singer : Singer_ID (number) | singer : Name (text) | singer : Birth_Year (number) | singer : Net_Worth_Millions (number) | singer : Citizenship (text) | song : Song_ID (number) | song : Title (text) | song : Singer_ID (number) | song : Sales (number) | song : Highest_Position (number)\n[Primary Keys]: singer : Singer_ID | song : Song_ID\n[Foreign Keys]: song : Singer_ID equals singer : Singer_ID", "ground_truth": "SELECT Name FROM singer WHERE Birth_Year = 1948 OR Birth_Year = 1949"}, {"prompt": "Convert text to SQL: [Question]: What is the name of the singer with the largest net worth?\n[Database Information]:[Schema (values)]: singer : Singer_ID , Name , Birth_Year , Net_Worth_Millions , Citizenship | song : Song_ID , Title , Singer_ID , Sales , Highest_Position\n[Column names (type)]: song : * (text) | singer : Singer_ID (number) | singer : Name (text) | singer : Birth_Year (number) | singer : Net_Worth_Millions (number) | singer : Citizenship (text) | song : Song_ID (number) | song : Title (text) | song : Singer_ID (number) | song : Sales (number) | song : Highest_Position (number)\n[Primary Keys]: singer : Singer_ID | song : Song_ID\n[Foreign Keys]: song : Singer_ID equals singer : Singer_ID", "ground_truth": "SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the name of the singer who is worth the most?\n[Database Information]:[Schema (values)]: singer : Singer_ID , Name , Birth_Year , Net_Worth_Millions , Citizenship | song : Song_ID , Title , Singer_ID , Sales , Highest_Position\n[Column names (type)]: song : * (text) | singer : Singer_ID (number) | singer : Name (text) | singer : Birth_Year (number) | singer : Net_Worth_Millions (number) | singer : Citizenship (text) | song : Song_ID (number) | song : Title (text) | song : Singer_ID (number) | song : Sales (number) | song : Highest_Position (number)\n[Primary Keys]: singer : Singer_ID | song : Song_ID\n[Foreign Keys]: song : Singer_ID equals singer : Singer_ID", "ground_truth": "SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: Show different citizenship of singers and the number of singers of each citizenship.\n[Database Information]:[Schema (values)]: singer : Singer_ID , Name , Birth_Year , Net_Worth_Millions , Citizenship | song : Song_ID , Title , Singer_ID , Sales , Highest_Position\n[Column names (type)]: song : * (text) | singer : Singer_ID (number) | singer : Name (text) | singer : Birth_Year (number) | singer : Net_Worth_Millions (number) | singer : Citizenship (text) | song : Song_ID (number) | song : Title (text) | song : Singer_ID (number) | song : Sales (number) | song : Highest_Position (number)\n[Primary Keys]: singer : Singer_ID | song : Song_ID\n[Foreign Keys]: song : Singer_ID equals singer : Singer_ID", "ground_truth": "SELECT Citizenship , COUNT(*) FROM singer GROUP BY Citizenship"}, {"prompt": "Convert text to SQL: [Question]: For each citizenship, how many singers are from that country?\n[Database Information]:[Schema (values)]: singer : Singer_ID , Name , Birth_Year , Net_Worth_Millions , Citizenship | song : Song_ID , Title , Singer_ID , Sales , Highest_Position\n[Column names (type)]: song : * (text) | singer : Singer_ID (number) | singer : Name (text) | singer : Birth_Year (number) | singer : Net_Worth_Millions (number) | singer : Citizenship (text) | song : Song_ID (number) | song : Title (text) | song : Singer_ID (number) | song : Sales (number) | song : Highest_Position (number)\n[Primary Keys]: singer : Singer_ID | song : Song_ID\n[Foreign Keys]: song : Singer_ID equals singer : Singer_ID", "ground_truth": "SELECT Citizenship , COUNT(*) FROM singer GROUP BY Citizenship"}, {"prompt": "Convert text to SQL: [Question]: Please show the most common citizenship of singers.\n[Database Information]:[Schema (values)]: singer : Singer_ID , Name , Birth_Year , Net_Worth_Millions , Citizenship | song : Song_ID , Title , Singer_ID , Sales , Highest_Position\n[Column names (type)]: song : * (text) | singer : Singer_ID (number) | singer : Name (text) | singer : Birth_Year (number) | singer : Net_Worth_Millions (number) | singer : Citizenship (text) | song : Song_ID (number) | song : Title (text) | song : Singer_ID (number) | song : Sales (number) | song : Highest_Position (number)\n[Primary Keys]: singer : Singer_ID | song : Song_ID\n[Foreign Keys]: song : Singer_ID equals singer : Singer_ID", "ground_truth": "SELECT Citizenship FROM singer GROUP BY Citizenship ORDER BY COUNT(*) DESC LIMIT 1"}, {"prompt": "Convert text to SQL: [Question]: What is the most common singer citizenship ?\n[Database Information]:[Schema (values)]: singer : Singer_ID , Name , Birth_Year , Net_Worth_Millions , Citizenship | song : Song_ID , Title , Singer_ID , Sales , Highest_Position\n[Column names (type)]: song : * (text) | singer : Singer_ID (number) | singer : Name (text) | singer : Birth_Year (number) | singer : Net_Worth_Millions (number) | singer : Citizenship (text) | song : Song_ID (number) | song : Title (text) | song : Singer_ID (number) | song : Sales (number) | song : Highest_Position (number)\n[Primary Keys]: singer : Singer_ID | song : Song_ID\n[Foreign Keys]: song : Singer_ID equals singer : Singer_ID", "ground_truth": "select citizenship from singer group by citizenship order by count(*) desc limit 1"}, {"prompt": "Convert text to SQL: [Question]: Show different citizenships and the maximum net worth of singers of each citizenship.\n[Database Information]:[Schema (values)]: singer : Singer_ID , Name , Birth_Year , Net_Worth_Millions , Citizenship | song : Song_ID , Title , Singer_ID , Sales , Highest_Position\n[Column names (type)]: song : * (text) | singer : Singer_ID (number) | singer : Name (text) | singer : Birth_Year (number) | singer : Net_Worth_Millions (number) | singer : Citizenship (text) | song : Song_ID (number) | song : Title (text) | song : Singer_ID (number) | song : Sales (number) | song : Highest_Position (number)\n[Primary Keys]: singer : Singer_ID | song : Song_ID\n[Foreign Keys]: song : Singer_ID equals singer : Singer_ID", "ground_truth": "SELECT Citizenship , max(Net_Worth_Millions) FROM singer GROUP BY Citizenship"}, {"prompt": "Convert text to SQL: [Question]: For each citizenship, what is the maximum net worth?\n[Database Information]:[Schema (values)]: singer : Singer_ID , Name , Birth_Year , Net_Worth_Millions , Citizenship | song : Song_ID , Title , Singer_ID , Sales , Highest_Position\n[Column names (type)]: song : * (text) | singer : Singer_ID (number) | singer : Name (text) | singer : Birth_Year (number) | singer : Net_Worth_Millions (number) | singer : Citizenship (text) | song : Song_ID (number) | song : Title (text) | song : Singer_ID (number) | song : Sales (number) | song : Highest_Position (number)\n[Primary Keys]: singer : Singer_ID | song : Song_ID\n[Foreign Keys]: song : Singer_ID equals singer : Singer_ID", "ground_truth": "SELECT Citizenship , max(Net_Worth_Millions) FROM singer GROUP BY Citizenship"}, {"prompt": "Convert text to SQL: [Question]: Show titles of songs and names of singers.\n[Database Information]:[Schema (values)]: singer : Singer_ID , Name , Birth_Year , Net_Worth_Millions , Citizenship | song : Song_ID , Title , Singer_ID , Sales , Highest_Position\n[Column names (type)]: song : * (text) | singer : Singer_ID (number) | singer : Name (text) | singer : Birth_Year (number) | singer : Net_Worth_Millions (number) | singer : Citizenship (text) | song : Song_ID (number) | song : Title (text) | song : Singer_ID (number) | song : Sales (number) | song : Highest_Position (number)\n[Primary Keys]: singer : Singer_ID | song : Song_ID\n[Foreign Keys]: song : Singer_ID equals singer : Singer_ID", "ground_truth": "SELECT T2.Title , T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID"}, {"prompt": "Convert text to SQL: [Question]: What are the song titles and singer names?\n[Database Information]:[Schema (values)]: singer : Singer_ID , Name , Birth_Year , Net_Worth_Millions , Citizenship | song : Song_ID , Title , Singer_ID , Sales , Highest_Position\n[Column names (type)]: song : * (text) | singer : Singer_ID (number) | singer : Name (text) | singer : Birth_Year (number) | singer : Net_Worth_Millions (number) | singer : Citizenship (text) | song : Song_ID (number) | song : Title (text) | song : Singer_ID (number) | song : Sales (number) | song : Highest_Position (number)\n[Primary Keys]: singer : Singer_ID | song : Song_ID\n[Foreign Keys]: song : Singer_ID equals singer : Singer_ID", "ground_truth": "SELECT T2.Title , T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID"}, {"prompt": "Convert text to SQL: [Question]: Show distinct names of singers that have songs with sales more than 300000.\n[Database Information]:[Schema (values)]: singer : Singer_ID , Name , Birth_Year , Net_Worth_Millions , Citizenship | song : Song_ID , Title , Singer_ID , Sales , Highest_Position\n[Column names (type)]: song : * (text) | singer : Singer_ID (number) | singer : Name (text) | singer : Birth_Year (number) | singer : Net_Worth_Millions (number) | singer : Citizenship (text) | song : Song_ID (number) | song : Title (text) | song : Singer_ID (number) | song : Sales (number) | song : Highest_Position (number)\n[Primary Keys]: singer : Singer_ID | song : Song_ID\n[Foreign Keys]: song : Singer_ID equals singer : Singer_ID", "ground_truth": "SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.Sales > 300000"}, {"prompt": "Convert text to SQL: [Question]: what are the different names of the singers that have sales more than 300000?\n[Database Information]:[Schema (values)]: singer : Singer_ID , Name , Birth_Year , Net_Worth_Millions , Citizenship | song : Song_ID , Title , Singer_ID , Sales , Highest_Position\n[Column names (type)]: song : * (text) | singer : Singer_ID (number) | singer : Name (text) | singer : Birth_Year (number) | singer : Net_Worth_Millions (number) | singer : Citizenship (text) | song : Song_ID (number) | song : Title (text) | song : Singer_ID (number) | song : Sales (number) | song : Highest_Position (number)\n[Primary Keys]: singer : Singer_ID | song : Song_ID\n[Foreign Keys]: song : Singer_ID equals singer : Singer_ID", "ground_truth": "SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.Sales > 300000"}, {"prompt": "Convert text to SQL: [Question]: Show the names of singers that have more than one song.\n[Database Information]:[Schema (values)]: singer : Singer_ID , Name , Birth_Year , Net_Worth_Millions , Citizenship | song : Song_ID , Title , Singer_ID , Sales , Highest_Position\n[Column names (type)]: song : * (text) | singer : Singer_ID (number) | singer : Name (text) | singer : Birth_Year (number) | singer : Net_Worth_Millions (number) | singer : Citizenship (text) | song : Song_ID (number) | song : Title (text) | song : Singer_ID (number) | song : Sales (number) | song : Highest_Position (number)\n[Primary Keys]: singer : Singer_ID | song : Song_ID\n[Foreign Keys]: song : Singer_ID equals singer : Singer_ID", "ground_truth": "SELECT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name HAVING COUNT(*) > 1"}, {"prompt": "Convert text to SQL: [Question]: What are the names of the singers that have more than one songs?\n[Database Information]:[Schema (values)]: singer : Singer_ID , Name , Birth_Year , Net_Worth_Millions , Citizenship | song : Song_ID , Title , Singer_ID , Sales , Highest_Position\n[Column names (type)]: song : * (text) | singer : Singer_ID (number) | singer : Name (text) | singer : Birth_Year (number) | singer : Net_Worth_Millions (number) | singer : Citizenship (text) | song : Song_ID (number) | song : Title (text) | song : Singer_ID (number) | song : Sales (number) | song : Highest_Position (number)\n[Primary Keys]: singer : Singer_ID | song : Song_ID\n[Foreign Keys]: song : Singer_ID equals singer : Singer_ID", "ground_truth": "SELECT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name HAVING COUNT(*) > 1"}, {"prompt": "Convert text to SQL: [Question]: Show the names of singers and the total sales of their songs.\n[Database Information]:[Schema (values)]: singer : Singer_ID , Name , Birth_Year , Net_Worth_Millions , Citizenship | song : Song_ID , Title , Singer_ID , Sales , Highest_Position\n[Column names (type)]: song : * (text) | singer : Singer_ID (number) | singer : Name (text) | singer : Birth_Year (number) | singer : Net_Worth_Millions (number) | singer : Citizenship (text) | song : Song_ID (number) | song : Title (text) | song : Singer_ID (number) | song : Sales (number) | song : Highest_Position (number)\n[Primary Keys]: singer : Singer_ID | song : Song_ID\n[Foreign Keys]: song : Singer_ID equals singer : Singer_ID", "ground_truth": "SELECT T1.Name , sum(T2.Sales) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name"}, {"prompt": "Convert text to SQL: [Question]: For each singer name, what is the total sales for their songs?\n[Database Information]:[Schema (values)]: singer : Singer_ID , Name , Birth_Year , Net_Worth_Millions , Citizenship | song : Song_ID , Title , Singer_ID , Sales , Highest_Position\n[Column names (type)]: song : * (text) | singer : Singer_ID (number) | singer : Name (text) | singer : Birth_Year (number) | singer : Net_Worth_Millions (number) | singer : Citizenship (text) | song : Song_ID (number) | song : Title (text) | song : Singer_ID (number) | song : Sales (number) | song : Highest_Position (number)\n[Primary Keys]: singer : Singer_ID | song : Song_ID\n[Foreign Keys]: song : Singer_ID equals singer : Singer_ID", "ground_truth": "SELECT T1.Name , sum(T2.Sales) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name"}, {"prompt": "Convert text to SQL: [Question]: List the name of singers that do not have any song.\n[Database Information]:[Schema (values)]: singer : Singer_ID , Name , Birth_Year , Net_Worth_Millions , Citizenship | song : Song_ID , Title , Singer_ID , Sales , Highest_Position\n[Column names (type)]: song : * (text) | singer : Singer_ID (number) | singer : Name (text) | singer : Birth_Year (number) | singer : Net_Worth_Millions (number) | singer : Citizenship (text) | song : Song_ID (number) | song : Title (text) | song : Singer_ID (number) | song : Sales (number) | song : Highest_Position (number)\n[Primary Keys]: singer : Singer_ID | song : Song_ID\n[Foreign Keys]: song : Singer_ID equals singer : Singer_ID", "ground_truth": "SELECT Name FROM singer WHERE Singer_ID NOT IN (SELECT Singer_ID FROM song)"}, {"prompt": "Convert text to SQL: [Question]: What is the sname of every sing that does not have any song?\n[Database Information]:[Schema (values)]: singer : Singer_ID , Name , Birth_Year , Net_Worth_Millions , Citizenship | song : Song_ID , Title , Singer_ID , Sales , Highest_Position\n[Column names (type)]: song : * (text) | singer : Singer_ID (number) | singer : Name (text) | singer : Birth_Year (number) | singer : Net_Worth_Millions (number) | singer : Citizenship (text) | song : Song_ID (number) | song : Title (text) | song : Singer_ID (number) | song : Sales (number) | song : Highest_Position (number)\n[Primary Keys]: singer : Singer_ID | song : Song_ID\n[Foreign Keys]: song : Singer_ID equals singer : Singer_ID", "ground_truth": "SELECT Name FROM singer WHERE Singer_ID NOT IN (SELECT Singer_ID FROM song)"}, {"prompt": "Convert text to SQL: [Question]: Show the citizenship shared by singers with birth year before 1945 and after 1955.\n[Database Information]:[Schema (values)]: singer : Singer_ID , Name , Birth_Year , Net_Worth_Millions , Citizenship | song : Song_ID , Title , Singer_ID , Sales , Highest_Position\n[Column names (type)]: song : * (text) | singer : Singer_ID (number) | singer : Name (text) | singer : Birth_Year (number) | singer : Net_Worth_Millions (number) | singer : Citizenship (text) | song : Song_ID (number) | song : Title (text) | song : Singer_ID (number) | song : Sales (number) | song : Highest_Position (number)\n[Primary Keys]: singer : Singer_ID | song : Song_ID\n[Foreign Keys]: song : Singer_ID equals singer : Singer_ID", "ground_truth": "SELECT Citizenship FROM singer WHERE Birth_Year < 1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year > 1955"}, {"prompt": "Convert text to SQL: [Question]: What are the citizenships that are shared by singers with a birth year before 1945 and after 1955?\n[Database Information]:[Schema (values)]: singer : Singer_ID , Name , Birth_Year , Net_Worth_Millions , Citizenship | song : Song_ID , Title , Singer_ID , Sales , Highest_Position\n[Column names (type)]: song : * (text) | singer : Singer_ID (number) | singer : Name (text) | singer : Birth_Year (number) | singer : Net_Worth_Millions (number) | singer : Citizenship (text) | song : Song_ID (number) | song : Title (text) | song : Singer_ID (number) | song : Sales (number) | song : Highest_Position (number)\n[Primary Keys]: singer : Singer_ID | song : Song_ID\n[Foreign Keys]: song : Singer_ID equals singer : Singer_ID", "ground_truth": "SELECT Citizenship FROM singer WHERE Birth_Year < 1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year > 1955"}, {"prompt": "Convert text to SQL: [Question]: How many available features are there in total?\n[Database Information]:[Schema (values)]: Ref_Feature_Types : feature_type_code , feature_type_name | Ref_Property_Types : property_type_code , property_type_description | Other_Available_Features : feature_id , feature_type_code , feature_name , feature_description | Properties : property_id , property_type_code , date_on_market , date_sold , property_name , property_address , room_count , vendor_requested_price , buyer_offered_price , agreed_selling_price , apt_feature_1 , apt_feature_2 , apt_feature_3 , fld_feature_1 , fld_feature_2 , fld_feature_3 , hse_feature_1 , hse_feature_2 , hse_feature_3 , oth_feature_1 , oth_feature_2 , oth_feature_3 , shp_feature_1 , shp_feature_2 , shp_feature_3 , other_property_details | Other_Property_Features : property_id , feature_id , property_feature_description\n[Column names (type)]: Other_Property_Features : * (text) | Ref_Feature_Types : feature_type_code (text) | Ref_Feature_Types : feature_type_name (text) | Ref_Property_Types : property_type_code (text) | Ref_Property_Types : property_type_description (text) | Other_Available_Features : feature_id (number) | Other_Available_Features : feature_type_code (text) | Other_Available_Features : feature_name (text) | Other_Available_Features : feature_description (text) | Properties : property_id (number) | Properties : property_type_code (text) | Properties : date_on_market (time) | Properties : date_sold (time) | Properties : property_name (text) | Properties : property_address (text) | Properties : room_count (number) | Properties : vendor_requested_price (number) | Properties : buyer_offered_price (number) | Properties : agreed_selling_price (number) | Properties : apt_feature_1 (text) | Properties : apt_feature_2 (text) | Properties : apt_feature_3 (text) | Properties : fld_feature_1 (text) | Properties : fld_feature_2 (text) | Properties : fld_feature_3 (text) | Properties : hse_feature_1 (text) | Properties : hse_feature_2 (text) | Properties : hse_feature_3 (text) | Properties : oth_feature_1 (text) | Properties : oth_feature_2 (text) | Properties : oth_feature_3 (text) | Properties : shp_feature_1 (text) | Properties : shp_feature_2 (text) | Properties : shp_feature_3 (text) | Properties : other_property_details (text) | Other_Property_Features : property_id (number) | Other_Property_Features : feature_id (number) | Other_Property_Features : property_feature_description (text)\n[Primary Keys]: Ref_Feature_Types : feature_type_code | Ref_Property_Types : property_type_code | Other_Available_Features : feature_id | Properties : property_id\n[Foreign Keys]: Other_Available_Features : feature_type_code equals Ref_Feature_Types : feature_type_code | Properties : property_type_code equals Ref_Property_Types : property_type_code | Other_Property_Features : property_id equals Properties : property_id | Other_Property_Features : feature_id equals Other_Available_Features : feature_id", "ground_truth": "SELECT count(*) FROM Other_Available_Features"}, {"prompt": "Convert text to SQL: [Question]: What is the feature type name of feature AirCon?\n[Database Information]:[Schema (values)]: Ref_Feature_Types : feature_type_code , feature_type_name | Ref_Property_Types : property_type_code , property_type_description | Other_Available_Features : feature_id , feature_type_code , feature_name , feature_description | Properties : property_id , property_type_code , date_on_market , date_sold , property_name , property_address , room_count , vendor_requested_price , buyer_offered_price , agreed_selling_price , apt_feature_1 , apt_feature_2 , apt_feature_3 , fld_feature_1 , fld_feature_2 , fld_feature_3 , hse_feature_1 , hse_feature_2 , hse_feature_3 , oth_feature_1 , oth_feature_2 , oth_feature_3 , shp_feature_1 , shp_feature_2 , shp_feature_3 , other_property_details | Other_Property_Features : property_id , feature_id , property_feature_description\n[Column names (type)]: Other_Property_Features : * (text) | Ref_Feature_Types : feature_type_code (text) | Ref_Feature_Types : feature_type_name (text) | Ref_Property_Types : property_type_code (text) | Ref_Property_Types : property_type_description (text) | Other_Available_Features : feature_id (number) | Other_Available_Features : feature_type_code (text) | Other_Available_Features : feature_name (text) | Other_Available_Features : feature_description (text) | Properties : property_id (number) | Properties : property_type_code (text) | Properties : date_on_market (time) | Properties : date_sold (time) | Properties : property_name (text) | Properties : property_address (text) | Properties : room_count (number) | Properties : vendor_requested_price (number) | Properties : buyer_offered_price (number) | Properties : agreed_selling_price (number) | Properties : apt_feature_1 (text) | Properties : apt_feature_2 (text) | Properties : apt_feature_3 (text) | Properties : fld_feature_1 (text) | Properties : fld_feature_2 (text) | Properties : fld_feature_3 (text) | Properties : hse_feature_1 (text) | Properties : hse_feature_2 (text) | Properties : hse_feature_3 (text) | Properties : oth_feature_1 (text) | Properties : oth_feature_2 (text) | Properties : oth_feature_3 (text) | Properties : shp_feature_1 (text) | Properties : shp_feature_2 (text) | Properties : shp_feature_3 (text) | Properties : other_property_details (text) | Other_Property_Features : property_id (number) | Other_Property_Features : feature_id (number) | Other_Property_Features : property_feature_description (text)\n[Primary Keys]: Ref_Feature_Types : feature_type_code | Ref_Property_Types : property_type_code | Other_Available_Features : feature_id | Properties : property_id\n[Foreign Keys]: Other_Available_Features : feature_type_code equals Ref_Feature_Types : feature_type_code | Properties : property_type_code equals Ref_Property_Types : property_type_code | Other_Property_Features : property_id equals Properties : property_id | Other_Property_Features : feature_id equals Other_Available_Features : feature_id", "ground_truth": "SELECT T2.feature_type_name FROM Other_Available_Features AS T1 JOIN Ref_Feature_Types AS T2 ON T1.feature_type_code = T2.feature_type_code WHERE T1.feature_name = \"AirCon\""}, {"prompt": "Convert text to SQL: [Question]: Show the property type descriptions of properties belonging to that code.\n[Database Information]:[Schema (values)]: Ref_Feature_Types : feature_type_code , feature_type_name | Ref_Property_Types : property_type_code , property_type_description | Other_Available_Features : feature_id , feature_type_code , feature_name , feature_description | Properties : property_id , property_type_code , date_on_market , date_sold , property_name , property_address , room_count , vendor_requested_price , buyer_offered_price , agreed_selling_price , apt_feature_1 , apt_feature_2 , apt_feature_3 , fld_feature_1 , fld_feature_2 , fld_feature_3 , hse_feature_1 , hse_feature_2 , hse_feature_3 , oth_feature_1 , oth_feature_2 , oth_feature_3 , shp_feature_1 , shp_feature_2 , shp_feature_3 , other_property_details | Other_Property_Features : property_id , feature_id , property_feature_description\n[Column names (type)]: Other_Property_Features : * (text) | Ref_Feature_Types : feature_type_code (text) | Ref_Feature_Types : feature_type_name (text) | Ref_Property_Types : property_type_code (text) | Ref_Property_Types : property_type_description (text) | Other_Available_Features : feature_id (number) | Other_Available_Features : feature_type_code (text) | Other_Available_Features : feature_name (text) | Other_Available_Features : feature_description (text) | Properties : property_id (number) | Properties : property_type_code (text) | Properties : date_on_market (time) | Properties : date_sold (time) | Properties : property_name (text) | Properties : property_address (text) | Properties : room_count (number) | Properties : vendor_requested_price (number) | Properties : buyer_offered_price (number) | Properties : agreed_selling_price (number) | Properties : apt_feature_1 (text) | Properties : apt_feature_2 (text) | Properties : apt_feature_3 (text) | Properties : fld_feature_1 (text) | Properties : fld_feature_2 (text) | Properties : fld_feature_3 (text) | Properties : hse_feature_1 (text) | Properties : hse_feature_2 (text) | Properties : hse_feature_3 (text) | Properties : oth_feature_1 (text) | Properties : oth_feature_2 (text) | Properties : oth_feature_3 (text) | Properties : shp_feature_1 (text) | Properties : shp_feature_2 (text) | Properties : shp_feature_3 (text) | Properties : other_property_details (text) | Other_Property_Features : property_id (number) | Other_Property_Features : feature_id (number) | Other_Property_Features : property_feature_description (text)\n[Primary Keys]: Ref_Feature_Types : feature_type_code | Ref_Property_Types : property_type_code | Other_Available_Features : feature_id | Properties : property_id\n[Foreign Keys]: Other_Available_Features : feature_type_code equals Ref_Feature_Types : feature_type_code | Properties : property_type_code equals Ref_Property_Types : property_type_code | Other_Property_Features : property_id equals Properties : property_id | Other_Property_Features : feature_id equals Other_Available_Features : feature_id", "ground_truth": "SELECT T2.property_type_description FROM Properties AS T1 JOIN Ref_Property_Types AS T2 ON T1.property_type_code = T2.property_type_code GROUP BY T1.property_type_code"}, {"prompt": "Convert text to SQL: [Question]: What are the names of properties that are either houses or apartments with more than 1 room?\n[Database Information]:[Schema (values)]: Ref_Feature_Types : feature_type_code , feature_type_name | Ref_Property_Types : property_type_code , property_type_description | Other_Available_Features : feature_id , feature_type_code , feature_name , feature_description | Properties : property_id , property_type_code , date_on_market , date_sold , property_name , property_address , room_count , vendor_requested_price , buyer_offered_price , agreed_selling_price , apt_feature_1 , apt_feature_2 , apt_feature_3 , fld_feature_1 , fld_feature_2 , fld_feature_3 , hse_feature_1 , hse_feature_2 , hse_feature_3 , oth_feature_1 , oth_feature_2 , oth_feature_3 , shp_feature_1 , shp_feature_2 , shp_feature_3 , other_property_details | Other_Property_Features : property_id , feature_id , property_feature_description\n[Column names (type)]: Other_Property_Features : * (text) | Ref_Feature_Types : feature_type_code (text) | Ref_Feature_Types : feature_type_name (text) | Ref_Property_Types : property_type_code (text) | Ref_Property_Types : property_type_description (text) | Other_Available_Features : feature_id (number) | Other_Available_Features : feature_type_code (text) | Other_Available_Features : feature_name (text) | Other_Available_Features : feature_description (text) | Properties : property_id (number) | Properties : property_type_code (text) | Properties : date_on_market (time) | Properties : date_sold (time) | Properties : property_name (text) | Properties : property_address (text) | Properties : room_count (number) | Properties : vendor_requested_price (number) | Properties : buyer_offered_price (number) | Properties : agreed_selling_price (number) | Properties : apt_feature_1 (text) | Properties : apt_feature_2 (text) | Properties : apt_feature_3 (text) | Properties : fld_feature_1 (text) | Properties : fld_feature_2 (text) | Properties : fld_feature_3 (text) | Properties : hse_feature_1 (text) | Properties : hse_feature_2 (text) | Properties : hse_feature_3 (text) | Properties : oth_feature_1 (text) | Properties : oth_feature_2 (text) | Properties : oth_feature_3 (text) | Properties : shp_feature_1 (text) | Properties : shp_feature_2 (text) | Properties : shp_feature_3 (text) | Properties : other_property_details (text) | Other_Property_Features : property_id (number) | Other_Property_Features : feature_id (number) | Other_Property_Features : property_feature_description (text)\n[Primary Keys]: Ref_Feature_Types : feature_type_code | Ref_Property_Types : property_type_code | Other_Available_Features : feature_id | Properties : property_id\n[Foreign Keys]: Other_Available_Features : feature_type_code equals Ref_Feature_Types : feature_type_code | Properties : property_type_code equals Ref_Property_Types : property_type_code | Other_Property_Features : property_id equals Properties : property_id | Other_Property_Features : feature_id equals Other_Available_Features : feature_id", "ground_truth": "SELECT property_name FROM Properties WHERE property_type_code = \"House\" UNION SELECT property_name FROM Properties WHERE property_type_code = \"Apartment\" AND room_count > 1"}]