chat_prompt
stringlengths
438
1.53k
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"women_s_doubles_15_3_titles_5_runner_ups\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: Name the least year for evonne goolagong helen gourlay" }, { "role": "assistant", "content": "SELECT MIN(\"year\") FROM \"women_s_doubles_15_3_titles_5_runner_ups\" WHERE \"opponents\"='Evonne Goolagong Helen Gourlay';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"women_s_doubles_15_3_titles_5_runner_ups\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: Name the surface for australian open for winner" }, { "role": "assistant", "content": "SELECT \"surface\" FROM \"women_s_doubles_15_3_titles_5_runner_ups\" WHERE \"championship\"='Australian Open' AND \"outcome\"='Winner';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"races\" (\n \"round\" real,\n \"circuit_location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"highest_scoring_team\" text,\n \"winning_privateer\" text\n);\n\nQuestion: What's the highest scoring team in the round in Ring Knutstorp in which Polestar Racing is the winning team?" }, { "role": "assistant", "content": "SELECT \"highest_scoring_team\" FROM \"races\" WHERE \"circuit_location\"='Ring Knutstorp' AND \"winning_team\"='Polestar Racing';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"races\" (\n \"round\" real,\n \"circuit_location\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"highest_scoring_team\" text,\n \"winning_privateer\" text\n);\n\nQuestion: How many rounds were there in Karlskoga Motorstadion with Roger Eriksson at the pole position?" }, { "role": "assistant", "content": "SELECT COUNT(\"round\") FROM \"races\" WHERE \"circuit_location\"='Karlskoga Motorstadion' AND \"pole_position\"='Roger Eriksson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20086138_1\" (\n \"season\" text,\n \"competition\" text,\n \"round\" text,\n \"opposition\" text,\n \"first_leg\" text,\n \"second_leg\" text,\n \"aggregate\" text\n);\n\nQuestion: What was the first leg result in the round against Norchi Dinamoeli?" }, { "role": "assistant", "content": "SELECT \"first_leg\" FROM \"table1_20086138_1\" WHERE \"opposition\"='Norchi Dinamoeli';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_taupo_1_november\" (\n \"pos\" real,\n \"driver\" text,\n \"vehicle\" text,\n \"top_13_time\" text,\n \"shoot_out_time\" text,\n \"best_time_of_day\" text\n);\n\nQuestion: which vehicles got best time of day 1:17.17" }, { "role": "assistant", "content": "SELECT \"vehicle\" FROM \"2008_taupo_1_november\" WHERE \"best_time_of_day\"='1:17.17';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_taupo_1_november\" (\n \"pos\" real,\n \"driver\" text,\n \"vehicle\" text,\n \"top_13_time\" text,\n \"shoot_out_time\" text,\n \"best_time_of_day\" text\n);\n\nQuestion: how many drivers driving toyota corolla" }, { "role": "assistant", "content": "SELECT COUNT(\"driver\") FROM \"2008_taupo_1_november\" WHERE \"vehicle\"='Toyota Corolla';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_taupo_1_november\" (\n \"pos\" real,\n \"driver\" text,\n \"vehicle\" text,\n \"top_13_time\" text,\n \"shoot_out_time\" text,\n \"best_time_of_day\" text\n);\n\nQuestion: what is the lowest position of brendan sole" }, { "role": "assistant", "content": "SELECT MAX(\"pos\") FROM \"2008_taupo_1_november\" WHERE \"driver\"='Brendan Sole';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_taupo_1_november\" (\n \"pos\" real,\n \"driver\" text,\n \"vehicle\" text,\n \"top_13_time\" text,\n \"shoot_out_time\" text,\n \"best_time_of_day\" text\n);\n\nQuestion: how many vehicles where top 13 time is 1:18.72" }, { "role": "assistant", "content": "SELECT COUNT(\"vehicle\") FROM \"2008_taupo_1_november\" WHERE \"top_13_time\"='1:18.72';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_taupo_1_november\" (\n \"pos\" real,\n \"driver\" text,\n \"vehicle\" text,\n \"top_13_time\" text,\n \"shoot_out_time\" text,\n \"best_time_of_day\" text\n);\n\nQuestion: which driver got best time of day 1:16.93" }, { "role": "assistant", "content": "SELECT \"driver\" FROM \"2008_taupo_1_november\" WHERE \"best_time_of_day\"='1:16.93';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_statistics\" (\n \"year\" text,\n \"team\" text,\n \"games\" real,\n \"mins\" text,\n \"f_gpct\" text,\n \"3_ppct\" text,\n \"f_tpct\" text,\n \"rebounds\" text,\n \"assists\" text,\n \"steals\" text,\n \"blocks\" text,\n \"points\" text\n);\n\nQuestion: What is the amount of assists when mins is 744:27?" }, { "role": "assistant", "content": "SELECT \"assists\" FROM \"career_statistics\" WHERE \"mins\"='744:27';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_statistics\" (\n \"year\" text,\n \"team\" text,\n \"games\" real,\n \"mins\" text,\n \"f_gpct\" text,\n \"3_ppct\" text,\n \"f_tpct\" text,\n \"rebounds\" text,\n \"assists\" text,\n \"steals\" text,\n \"blocks\" text,\n \"points\" text\n);\n\nQuestion: What is the game number with 385:33 mins?" }, { "role": "assistant", "content": "SELECT MIN(\"games\") FROM \"career_statistics\" WHERE \"mins\"='385:33';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_statistics\" (\n \"year\" text,\n \"team\" text,\n \"games\" real,\n \"mins\" text,\n \"f_gpct\" text,\n \"3_ppct\" text,\n \"f_tpct\" text,\n \"rebounds\" text,\n \"assists\" text,\n \"steals\" text,\n \"blocks\" text,\n \"points\" text\n);\n\nQuestion: What is the points number when rebounds is 4.4?" }, { "role": "assistant", "content": "SELECT \"points\" FROM \"career_statistics\" WHERE \"rebounds\"='4.4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_statistics\" (\n \"year\" text,\n \"team\" text,\n \"games\" real,\n \"mins\" text,\n \"f_gpct\" text,\n \"3_ppct\" text,\n \"f_tpct\" text,\n \"rebounds\" text,\n \"assists\" text,\n \"steals\" text,\n \"blocks\" text,\n \"points\" text\n);\n\nQuestion: Who is the team with the ft% of 77.6?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"career_statistics\" WHERE \"f_tpct\"='77.6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nac_champions_and_runners_up\" (\n \"year\" text,\n \"winner\" text,\n \"first_runner_up\" text,\n \"third_place\" text,\n \"consolation_winner_4th\" text,\n \"finals_location\" text\n);\n\nQuestion: When did Austin Austin TX get the third place?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"nac_champions_and_runners_up\" WHERE \"third_place\"='Austin Austin TX';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nac_champions_and_runners_up\" (\n \"year\" text,\n \"winner\" text,\n \"first_runner_up\" text,\n \"third_place\" text,\n \"consolation_winner_4th\" text,\n \"finals_location\" text\n);\n\nQuestion: Who was the first runner up in the year when Mesa Mesa AZ was the consolation winner?" }, { "role": "assistant", "content": "SELECT \"first_runner_up\" FROM \"nac_champions_and_runners_up\" WHERE \"consolation_winner_4th\"='Mesa Mesa AZ';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"house_of_representatives\" (\n \"district\" text,\n \"representative\" text,\n \"party_change\" text,\n \"prior_background\" text,\n \"religion\" text,\n \"birth_year\" real\n);\n\nQuestion: Who has a religion of United Methodist and a prior background of a Congressional Aide?" }, { "role": "assistant", "content": "SELECT \"representative\" FROM \"house_of_representatives\" WHERE \"religion\"='United Methodist' AND \"prior_background\"='Congressional aide';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"runners_and_betting\" (\n \"starting_price\" text,\n \"number\" real,\n \"name\" text,\n \"age\" real,\n \"weight_st_lb\" text,\n \"jockey\" text,\n \"trainer\" text,\n \"owner\" text,\n \"colours\" text\n);\n\nQuestion: What horse had a starting price of 14/1 and weighted 10-7?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"runners_and_betting\" WHERE \"starting_price\"='14/1' AND \"weight_st_lb\"='10-7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"runners_and_betting\" (\n \"starting_price\" text,\n \"number\" real,\n \"name\" text,\n \"age\" real,\n \"weight_st_lb\" text,\n \"jockey\" text,\n \"trainer\" text,\n \"owner\" text,\n \"colours\" text\n);\n\nQuestion: What's the number of the horse weighting 10-5?" }, { "role": "assistant", "content": "SELECT MIN(\"number\") FROM \"runners_and_betting\" WHERE \"weight_st_lb\"='10-5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"runners_and_betting\" (\n \"starting_price\" text,\n \"number\" real,\n \"name\" text,\n \"age\" real,\n \"weight_st_lb\" text,\n \"jockey\" text,\n \"trainer\" text,\n \"owner\" text,\n \"colours\" text\n);\n\nQuestion: What horse has the number 25?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"runners_and_betting\" WHERE \"number\"=25;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"runners_and_betting\" (\n \"starting_price\" text,\n \"number\" real,\n \"name\" text,\n \"age\" real,\n \"weight_st_lb\" text,\n \"jockey\" text,\n \"trainer\" text,\n \"owner\" text,\n \"colours\" text\n);\n\nQuestion: How much does Point Barrow weight?" }, { "role": "assistant", "content": "SELECT \"weight_st_lb\" FROM \"runners_and_betting\" WHERE \"name\"='Point Barrow';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"runners_and_betting\" (\n \"starting_price\" text,\n \"number\" real,\n \"name\" text,\n \"age\" real,\n \"weight_st_lb\" text,\n \"jockey\" text,\n \"trainer\" text,\n \"owner\" text,\n \"colours\" text\n);\n\nQuestion: What are Andrew McNamara's colors?" }, { "role": "assistant", "content": "SELECT \"colours\" FROM \"runners_and_betting\" WHERE \"jockey\"='Andrew McNamara';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"runners_and_betting\" (\n \"starting_price\" text,\n \"number\" real,\n \"name\" text,\n \"age\" real,\n \"weight_st_lb\" text,\n \"jockey\" text,\n \"trainer\" text,\n \"owner\" text,\n \"colours\" text\n);\n\nQuestion: What's the number of the horse whose trainer is Kim Bailey?" }, { "role": "assistant", "content": "SELECT MAX(\"number\") FROM \"runners_and_betting\" WHERE \"trainer\"='Kim Bailey';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20098479_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_viewers_million\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: Who wrote episode number 48" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_20098479_1\" WHERE \"no_in_series\"=48;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20098479_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_viewers_million\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: What is the lowest production code" }, { "role": "assistant", "content": "SELECT MIN(\"production_code\") FROM \"table1_20098479_1\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20124413_3\" (\n \"num\" text,\n \"original_title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_airdate\" text,\n \"production_code\" text\n);\n\nQuestion: What was the original title of 3.19?" }, { "role": "assistant", "content": "SELECT \"original_title\" FROM \"table1_20124413_3\" WHERE \"production_code\"='3.19';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20124413_3\" (\n \"num\" text,\n \"original_title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_airdate\" text,\n \"production_code\" text\n);\n\nQuestion: What was the production code for \"down to earth\"?" }, { "role": "assistant", "content": "SELECT \"production_code\" FROM \"table1_20124413_3\" WHERE \"original_title\"='\\\"Down to Earth\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20124413_2\" (\n \"num\" text,\n \"original_title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_airdate\" text,\n \"prod_code\" text\n);\n\nQuestion: How many numbers have the product code of 2.6?" }, { "role": "assistant", "content": "SELECT \"num\" FROM \"table1_20124413_2\" WHERE \"prod_code\"='2.6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20124413_2\" (\n \"num\" text,\n \"original_title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_airdate\" text,\n \"prod_code\" text\n);\n\nQuestion: How many directed have the product code of 2.8?" }, { "role": "assistant", "content": "SELECT COUNT(\"directed_by\") FROM \"table1_20124413_2\" WHERE \"prod_code\"='2.8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20124413_1\" (\n \"num\" text,\n \"original_title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_airdate\" text,\n \"prod_code\" text,\n \"viewers\" real\n);\n\nQuestion: When \"helpful tracy\" is the original title how many numbers are there?" }, { "role": "assistant", "content": "SELECT COUNT(\"num\") FROM \"table1_20124413_1\" WHERE \"original_title\"='\\\"Helpful Tracy\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20124413_1\" (\n \"num\" text,\n \"original_title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_airdate\" text,\n \"prod_code\" text,\n \"viewers\" real\n);\n\nQuestion: When 1.12 is the production code what is the original title?" }, { "role": "assistant", "content": "SELECT \"original_title\" FROM \"table1_20124413_1\" WHERE \"prod_code\"='1.12';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20124413_1\" (\n \"num\" text,\n \"original_title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_airdate\" text,\n \"prod_code\" text,\n \"viewers\" real\n);\n\nQuestion: When \"the postcard\" is the original title what is the production code?" }, { "role": "assistant", "content": "SELECT \"prod_code\" FROM \"table1_20124413_1\" WHERE \"original_title\"='\\\"The Postcard\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20124413_1\" (\n \"num\" text,\n \"original_title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_airdate\" text,\n \"prod_code\" text,\n \"viewers\" real\n);\n\nQuestion: When 1.17 is the production code how many air dates are there?" }, { "role": "assistant", "content": "SELECT COUNT(\"original_airdate\") FROM \"table1_20124413_1\" WHERE \"prod_code\"='1.17';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nascar_sprint_cup_series\" (\n \"year\" real,\n \"starts\" real,\n \"wins\" real,\n \"top_10\" real,\n \"poles\" real,\n \"avg_start\" text,\n \"avg_finish\" text,\n \"winnings\" text,\n \"position\" text,\n \"team_s\" text\n);\n\nQuestion: state the winnings of yates racing front row motorsports where poles were 0" }, { "role": "assistant", "content": "SELECT \"winnings\" FROM \"nascar_sprint_cup_series\" WHERE \"poles\"=0 AND \"team_s\"='Yates Racing Front Row Motorsports';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nascar_sprint_cup_series\" (\n \"year\" real,\n \"starts\" real,\n \"wins\" real,\n \"top_10\" real,\n \"poles\" real,\n \"avg_start\" text,\n \"avg_finish\" text,\n \"winnings\" text,\n \"position\" text,\n \"team_s\" text\n);\n\nQuestion: which team(s) won $2,605,05" }, { "role": "assistant", "content": "SELECT \"team_s\" FROM \"nascar_sprint_cup_series\" WHERE \"winnings\"='$2,605,05';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nascar_sprint_cup_series\" (\n \"year\" real,\n \"starts\" real,\n \"wins\" real,\n \"top_10\" real,\n \"poles\" real,\n \"avg_start\" text,\n \"avg_finish\" text,\n \"winnings\" text,\n \"position\" text,\n \"team_s\" text\n);\n\nQuestion: state the wins of the team with 2 top 10" }, { "role": "assistant", "content": "SELECT COUNT(\"wins\") FROM \"nascar_sprint_cup_series\" WHERE \"top_10\"=2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nak_atra\" (\n \"num\" real,\n \"sanskrit\" text,\n \"malayalam_name\" text,\n \"tamil_name\" text,\n \"telugu_name\" text,\n \"kannada_name\" text,\n \"western_star_name\" text\n);\n\nQuestion: what is kannada name \u0c95\u0ca8\u0ccd\u0ca8\u0ca1 of tamil name \u0ba4\u0bae\u0bbf\u0bb4\u0bcd anusham \u0b85\u0ba9\u0bc1\u0bb7\u0bae\u0bcd" }, { "role": "assistant", "content": "SELECT \"kannada_name\" FROM \"nak_atra\" WHERE \"tamil_name\"='Anusham \u0b85\u0ba9\u0bc1\u0bb7\u0bae\u0bcd';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nak_atra\" (\n \"num\" real,\n \"sanskrit\" text,\n \"malayalam_name\" text,\n \"tamil_name\" text,\n \"telugu_name\" text,\n \"kannada_name\" text,\n \"western_star_name\" text\n);\n\nQuestion: what is the malayalam name \u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02 of tamil name \u0ba4\u0bae\u0bbf\u0bb4\u0bcd punarpoosam \u0baa\u0bc1\u0ba9\u0bb0\u0bcd\u0baa\u0bc2\u0b9a\u0bae\u0bcd" }, { "role": "assistant", "content": "SELECT \"malayalam_name\" FROM \"nak_atra\" WHERE \"tamil_name\"='Punarpoosam \u0baa\u0bc1\u0ba9\u0bb0\u0bcd\u0baa\u0bc2\u0b9a\u0bae\u0bcd';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nak_atra\" (\n \"num\" real,\n \"sanskrit\" text,\n \"malayalam_name\" text,\n \"tamil_name\" text,\n \"telugu_name\" text,\n \"kannada_name\" text,\n \"western_star_name\" text\n);\n\nQuestion: what is the telugu name \u0c24\u0c46\u0c32\u0c41\u0c17\u0c41 of kannada name \u0c95\u0ca8\u0ccd\u0ca8\u0ca1 utthara \u0c89\u0ca4\u0ccd\u0ca4\u0cb0" }, { "role": "assistant", "content": "SELECT \"telugu_name\" FROM \"nak_atra\" WHERE \"kannada_name\"='Utthara \u0c89\u0ca4\u0ccd\u0ca4\u0cb0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nak_atra\" (\n \"num\" real,\n \"sanskrit\" text,\n \"malayalam_name\" text,\n \"tamil_name\" text,\n \"telugu_name\" text,\n \"kannada_name\" text,\n \"western_star_name\" text\n);\n\nQuestion: what is the sanskrit of western star name arcturus" }, { "role": "assistant", "content": "SELECT \"sanskrit\" FROM \"nak_atra\" WHERE \"western_star_name\"='Arcturus';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nak_atra\" (\n \"num\" real,\n \"sanskrit\" text,\n \"malayalam_name\" text,\n \"tamil_name\" text,\n \"telugu_name\" text,\n \"kannada_name\" text,\n \"western_star_name\" text\n);\n\nQuestion: what is the malayalam name \u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02 of sanskrit uttar\u0101\u1e63\u0101\u1e0dha \u0909\u0924\u094d\u0924\u0930\u093e\u0937\u093e\u0922\u093e" }, { "role": "assistant", "content": "SELECT \"malayalam_name\" FROM \"nak_atra\" WHERE \"sanskrit\"='Uttar\u0101\u1e63\u0101\u1e0dha \u0909\u0924\u094d\u0924\u0930\u093e\u0937\u093e\u0922\u093e';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"administration\" (\n \"english_name\" text,\n \"simplified\" text,\n \"traditional\" text,\n \"pinyin\" text,\n \"foochow\" text,\n \"area\" real,\n \"population\" real,\n \"density\" real\n);\n\nQuestion: Name the traditional for area 544" }, { "role": "assistant", "content": "SELECT \"traditional\" FROM \"administration\" WHERE \"area\"=544;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"administration\" (\n \"english_name\" text,\n \"simplified\" text,\n \"traditional\" text,\n \"pinyin\" text,\n \"foochow\" text,\n \"area\" real,\n \"population\" real,\n \"density\" real\n);\n\nQuestion: Name the foochow for pingnan county" }, { "role": "assistant", "content": "SELECT \"foochow\" FROM \"administration\" WHERE \"english_name\"='Pingnan County';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"administration\" (\n \"english_name\" text,\n \"simplified\" text,\n \"traditional\" text,\n \"pinyin\" text,\n \"foochow\" text,\n \"area\" real,\n \"population\" real,\n \"density\" real\n);\n\nQuestion: Name the pinyin for ci\u00e1-\u00ecng-g\u00e2ing" }, { "role": "assistant", "content": "SELECT \"pinyin\" FROM \"administration\" WHERE \"foochow\"='Ci\u00e1-\u00ecng-g\u00e2ing';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"administration\" (\n \"english_name\" text,\n \"simplified\" text,\n \"traditional\" text,\n \"pinyin\" text,\n \"foochow\" text,\n \"area\" real,\n \"population\" real,\n \"density\" real\n);\n\nQuestion: Name the traditional for \u5c4f\u5357\u53bf" }, { "role": "assistant", "content": "SELECT \"traditional\" FROM \"administration\" WHERE \"simplified\"='\u5c4f\u5357\u53bf';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"administration\" (\n \"english_name\" text,\n \"simplified\" text,\n \"traditional\" text,\n \"pinyin\" text,\n \"foochow\" text,\n \"area\" real,\n \"population\" real,\n \"density\" real\n);\n\nQuestion: Name the density for \u53e4\u7530\u7e23" }, { "role": "assistant", "content": "SELECT \"density\" FROM \"administration\" WHERE \"traditional\"='\u53e4\u7530\u7e23';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"administration\" (\n \"english_name\" text,\n \"simplified\" text,\n \"traditional\" text,\n \"pinyin\" text,\n \"foochow\" text,\n \"area\" real,\n \"population\" real,\n \"density\" real\n);\n\nQuestion: Name the english name for \u798f\u9f0e\u5e02" }, { "role": "assistant", "content": "SELECT \"english_name\" FROM \"administration\" WHERE \"traditional\"='\u798f\u9f0e\u5e02';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_one\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What CFL team did Darcy Brown play for?" }, { "role": "assistant", "content": "SELECT \"cfl_team\" FROM \"round_one\" WHERE \"player\"='Darcy Brown';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_one\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What CFL team did simeon rottier play for?" }, { "role": "assistant", "content": "SELECT \"cfl_team\" FROM \"round_one\" WHERE \"player\"='Simeon Rottier';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_one\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What college did \u00e9tienne l\u00e9gar\u00e9 play for?" }, { "role": "assistant", "content": "SELECT \"college\" FROM \"round_one\" WHERE \"player\"='\u00c9tienne L\u00e9gar\u00e9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_one\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What team was in position OL?" }, { "role": "assistant", "content": "SELECT \"cfl_team\" FROM \"round_one\" WHERE \"position\"='OL';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_one\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Who was the player for the CFL team hamilton tiger-cats (via bc via saskatchewan )?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"round_one\" WHERE \"cfl_team\"='Hamilton Tiger-Cats (via BC via Saskatchewan )';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_one\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What number pick did the CFL team bc lions (via hamilton via winnipeg ) have?" }, { "role": "assistant", "content": "SELECT MAX(\"pick_num\") FROM \"round_one\" WHERE \"cfl_team\"='BC Lions (via Hamilton via Winnipeg )';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"novelisations\" (\n \"story_num\" real,\n \"target_num\" text,\n \"title\" text,\n \"author\" text,\n \"reader\" text,\n \"format\" text,\n \"company\" text,\n \"release_date\" text,\n \"notes\" text\n);\n\nQuestion: How many different release dates are there for the audio book with a story number 7?" }, { "role": "assistant", "content": "SELECT COUNT(\"release_date\") FROM \"novelisations\" WHERE \"story_num\"=7;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"novelisations\" (\n \"story_num\" real,\n \"target_num\" text,\n \"title\" text,\n \"author\" text,\n \"reader\" text,\n \"format\" text,\n \"company\" text,\n \"release_date\" text,\n \"notes\" text\n);\n\nQuestion: What's the title of the audio book with story number 91?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"novelisations\" WHERE \"story_num\"=91;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"novelisations\" (\n \"story_num\" real,\n \"target_num\" text,\n \"title\" text,\n \"author\" text,\n \"reader\" text,\n \"format\" text,\n \"company\" text,\n \"release_date\" text,\n \"notes\" text\n);\n\nQuestion: When was the audio book with target number 069 69 released?" }, { "role": "assistant", "content": "SELECT \"release_date\" FROM \"novelisations\" WHERE \"target_num\"='069 69';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"novelisations\" (\n \"story_num\" real,\n \"target_num\" text,\n \"title\" text,\n \"author\" text,\n \"reader\" text,\n \"format\" text,\n \"company\" text,\n \"release_date\" text,\n \"notes\" text\n);\n\nQuestion: What's the format of the audio book titled The Mind Robber?" }, { "role": "assistant", "content": "SELECT \"format\" FROM \"novelisations\" WHERE \"title\"='The Mind Robber';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"the_sarah_jane_adventures\" (\n \"title\" text,\n \"author\" text,\n \"reader\" text,\n \"format\" text,\n \"company\" text,\n \"release_date\" text,\n \"notes\" text\n);\n\nQuestion: who is the reader of the audiobook authored by cole, stephen stephen cole and released on 2008-11-13 13 november 2008" }, { "role": "assistant", "content": "SELECT \"reader\" FROM \"the_sarah_jane_adventures\" WHERE \"author\"='Cole, Stephen Stephen Cole' AND \"release_date\"='2008-11-13 13 November 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"the_sarah_jane_adventures\" (\n \"title\" text,\n \"author\" text,\n \"reader\" text,\n \"format\" text,\n \"company\" text,\n \"release_date\" text,\n \"notes\" text\n);\n\nQuestion: how many companies released an audiobook titled deadly download" }, { "role": "assistant", "content": "SELECT COUNT(\"company\") FROM \"the_sarah_jane_adventures\" WHERE \"title\"='Deadly Download';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"the_sarah_jane_adventures\" (\n \"title\" text,\n \"author\" text,\n \"reader\" text,\n \"format\" text,\n \"company\" text,\n \"release_date\" text,\n \"notes\" text\n);\n\nQuestion: which companies released on 2010-11-04 4 november 2010" }, { "role": "assistant", "content": "SELECT \"company\" FROM \"the_sarah_jane_adventures\" WHERE \"release_date\"='2010-11-04 4 November 2010';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"the_sarah_jane_adventures\" (\n \"title\" text,\n \"author\" text,\n \"reader\" text,\n \"format\" text,\n \"company\" text,\n \"release_date\" text,\n \"notes\" text\n);\n\nQuestion: which company released audiobooks authored by day, martin martin day" }, { "role": "assistant", "content": "SELECT \"company\" FROM \"the_sarah_jane_adventures\" WHERE \"author\"='Day, Martin Martin Day';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"the_sarah_jane_adventures\" (\n \"title\" text,\n \"author\" text,\n \"reader\" text,\n \"format\" text,\n \"company\" text,\n \"release_date\" text,\n \"notes\" text\n);\n\nQuestion: how many formats of books authored by day, martin martin day" }, { "role": "assistant", "content": "SELECT COUNT(\"format\") FROM \"the_sarah_jane_adventures\" WHERE \"author\"='Day, Martin Martin Day';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_five\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: How many players were drafted from laval?" }, { "role": "assistant", "content": "SELECT COUNT(\"cfl_team\") FROM \"round_five\" WHERE \"college\"='Laval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_five\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What player went to montreal college?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"round_five\" WHERE \"college\"='Montreal';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_five\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What player(s) drafted by the hamilton tiger-cats?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"round_five\" WHERE \"cfl_team\"='Hamilton Tiger-Cats';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_five\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What position(s) drafted by the montreal alouettes?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"round_five\" WHERE \"cfl_team\"='Montreal Alouettes';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"torchwood\" (\n \"title\" text,\n \"author\" text,\n \"reader\" text,\n \"format\" text,\n \"company\" text,\n \"release_date\" text,\n \"notes\" text\n);\n\nQuestion: which company uses pinborough, sarah sarah pinborough?" }, { "role": "assistant", "content": "SELECT \"company\" FROM \"torchwood\" WHERE \"author\"='Pinborough, Sarah Sarah Pinborough';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"torchwood\" (\n \"title\" text,\n \"author\" text,\n \"reader\" text,\n \"format\" text,\n \"company\" text,\n \"release_date\" text,\n \"notes\" text\n);\n\nQuestion: who the reader of title department x?" }, { "role": "assistant", "content": "SELECT \"reader\" FROM \"torchwood\" WHERE \"title\"='Department X';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"torchwood\" (\n \"title\" text,\n \"author\" text,\n \"reader\" text,\n \"format\" text,\n \"company\" text,\n \"release_date\" text,\n \"notes\" text\n);\n\nQuestion: how many notes were read by reader varma, idria indira varma?" }, { "role": "assistant", "content": "SELECT COUNT(\"notes\") FROM \"torchwood\" WHERE \"reader\"='Varma, Idria Indira Varma';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"torchwood\" (\n \"title\" text,\n \"author\" text,\n \"reader\" text,\n \"format\" text,\n \"company\" text,\n \"release_date\" text,\n \"notes\" text\n);\n\nQuestion: who is the reader on the download/cd format of the title written by author lidster, joseph joseph lidster? " }, { "role": "assistant", "content": "SELECT \"reader\" FROM \"torchwood\" WHERE \"format\"='Download/CD' AND \"author\"='Lidster, Joseph Joseph Lidster';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"three_divisions_from_1963_to_2012\" (\n \"season\" text,\n \"bayernliga\" text,\n \"landesliga_s_d\" text,\n \"landesliga_mitte\" text,\n \"landesliga_nord\" text\n);\n\nQuestion: Name the landesliga mitte for fc gundelfingen and vfl frohnlach" }, { "role": "assistant", "content": "SELECT \"landesliga_mitte\" FROM \"three_divisions_from_1963_to_2012\" WHERE \"landesliga_s_d\"='FC Gundelfingen' AND \"landesliga_nord\"='VfL Frohnlach';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"three_divisions_from_1963_to_2012\" (\n \"season\" text,\n \"bayernliga\" text,\n \"landesliga_s_d\" text,\n \"landesliga_mitte\" text,\n \"landesliga_nord\" text\n);\n\nQuestion: Name the landesliga nord for freier tus regensburg" }, { "role": "assistant", "content": "SELECT \"landesliga_nord\" FROM \"three_divisions_from_1963_to_2012\" WHERE \"landesliga_mitte\"='Freier TuS Regensburg';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"three_divisions_from_1963_to_2012\" (\n \"season\" text,\n \"bayernliga\" text,\n \"landesliga_s_d\" text,\n \"landesliga_mitte\" text,\n \"landesliga_nord\" text\n);\n\nQuestion: Name the landesliga nord for asv neumarkt" }, { "role": "assistant", "content": "SELECT \"landesliga_nord\" FROM \"three_divisions_from_1963_to_2012\" WHERE \"landesliga_mitte\"='ASV Neumarkt';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"three_divisions_from_1963_to_2012\" (\n \"season\" text,\n \"bayernliga\" text,\n \"landesliga_s_d\" text,\n \"landesliga_mitte\" text,\n \"landesliga_nord\" text\n);\n\nQuestion: Name the landesliga mitte sv t\u00fcrk g\u00fcc\u00fc m\u00fcnchen" }, { "role": "assistant", "content": "SELECT \"landesliga_mitte\" FROM \"three_divisions_from_1963_to_2012\" WHERE \"bayernliga\"='SV T\u00fcrk G\u00fcc\u00fc M\u00fcnchen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"three_divisions_from_1963_to_2012\" (\n \"season\" text,\n \"bayernliga\" text,\n \"landesliga_s_d\" text,\n \"landesliga_mitte\" text,\n \"landesliga_nord\" text\n);\n\nQuestion: Name the landesliga sud for sg quelle f\u00fcrth" }, { "role": "assistant", "content": "SELECT \"landesliga_s_d\" FROM \"three_divisions_from_1963_to_2012\" WHERE \"bayernliga\"='SG Quelle F\u00fcrth';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"national_final\" (\n \"draw\" real,\n \"artist\" text,\n \"song\" text,\n \"regions\" real,\n \"studio_audience\" real,\n \"press_jury\" real,\n \"oil_rig\" real,\n \"total_points\" real,\n \"place\" text\n);\n\nQuestion: What's the oil rig of the song that ended on 7th place?" }, { "role": "assistant", "content": "SELECT \"oil_rig\" FROM \"national_final\" WHERE \"place\"='7th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"national_final\" (\n \"draw\" real,\n \"artist\" text,\n \"song\" text,\n \"regions\" real,\n \"studio_audience\" real,\n \"press_jury\" real,\n \"oil_rig\" real,\n \"total_points\" real,\n \"place\" text\n);\n\nQuestion: What's the oil rig of the song with a draw number 9?" }, { "role": "assistant", "content": "SELECT MIN(\"oil_rig\") FROM \"national_final\" WHERE \"draw\"=9;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"national_final\" (\n \"draw\" real,\n \"artist\" text,\n \"song\" text,\n \"regions\" real,\n \"studio_audience\" real,\n \"press_jury\" real,\n \"oil_rig\" real,\n \"total_points\" real,\n \"place\" text\n);\n\nQuestion: How many points did the song \"Stille f\u00f8r stormen\" get?" }, { "role": "assistant", "content": "SELECT MIN(\"total_points\") FROM \"national_final\" WHERE \"song\"='\\\"Stille f\u00f8r stormen\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"national_final\" (\n \"draw\" real,\n \"artist\" text,\n \"song\" text,\n \"regions\" real,\n \"studio_audience\" real,\n \"press_jury\" real,\n \"oil_rig\" real,\n \"total_points\" real,\n \"place\" text\n);\n\nQuestion: How many press jury points did the song by Frank Aleksandersen get?" }, { "role": "assistant", "content": "SELECT MIN(\"press_jury\") FROM \"national_final\" WHERE \"artist\"='Frank Aleksandersen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"national_final\" (\n \"draw\" real,\n \"artist\" text,\n \"song\" text,\n \"regions\" real,\n \"studio_audience\" real,\n \"press_jury\" real,\n \"oil_rig\" real,\n \"total_points\" real,\n \"place\" text\n);\n\nQuestion: How many points did the song with a draw number 3 get?" }, { "role": "assistant", "content": "SELECT \"total_points\" FROM \"national_final\" WHERE \"draw\"=3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"eleventh_doctor_novels\" (\n \"title\" text,\n \"author\" text,\n \"reader\" text,\n \"format\" text,\n \"company\" text,\n \"release_date\" text,\n \"notes\" text\n);\n\nQuestion: If the title is Paradox Lost and the reader is Briggs, Nicholas Nicholas Briggs, what are all of the notes?" }, { "role": "assistant", "content": "SELECT \"notes\" FROM \"eleventh_doctor_novels\" WHERE \"reader\"='Briggs, Nicholas Nicholas Briggs' AND \"title\"='Paradox Lost';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"eleventh_doctor_novels\" (\n \"title\" text,\n \"author\" text,\n \"reader\" text,\n \"format\" text,\n \"company\" text,\n \"release_date\" text,\n \"notes\" text\n);\n\nQuestion: If the title is The Way Through The Woods, what is the release date?" }, { "role": "assistant", "content": "SELECT \"release_date\" FROM \"eleventh_doctor_novels\" WHERE \"title\"='The Way Through the Woods';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"eleventh_doctor_novels\" (\n \"title\" text,\n \"author\" text,\n \"reader\" text,\n \"format\" text,\n \"company\" text,\n \"release_date\" text,\n \"notes\" text\n);\n\nQuestion: If the reader is Syal, Meera Meera Syal, what was the release date?" }, { "role": "assistant", "content": "SELECT \"release_date\" FROM \"eleventh_doctor_novels\" WHERE \"reader\"='Syal, Meera Meera Syal';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current\" (\n \"institution\" text,\n \"team_name\" text,\n \"location_population\" text,\n \"team_started\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"mascot\" text,\n \"divisional_titles\" real,\n \"big_12_titles\" real,\n \"national_titles\" real\n);\n\nQuestion: What is the most divisional titles won by a school with an enrollment of 30049?" }, { "role": "assistant", "content": "SELECT MAX(\"divisional_titles\") FROM \"current\" WHERE \"enrollment\"=30049;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current\" (\n \"institution\" text,\n \"team_name\" text,\n \"location_population\" text,\n \"team_started\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"mascot\" text,\n \"divisional_titles\" real,\n \"big_12_titles\" real,\n \"national_titles\" real\n);\n\nQuestion: What is the maximum enrollment of the Sooners?" }, { "role": "assistant", "content": "SELECT MAX(\"enrollment\") FROM \"current\" WHERE \"team_name\"='Sooners';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current\" (\n \"institution\" text,\n \"team_name\" text,\n \"location_population\" text,\n \"team_started\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"mascot\" text,\n \"divisional_titles\" real,\n \"big_12_titles\" real,\n \"national_titles\" real\n);\n\nQuestion: What is the minimum enrollment of the cyclones?" }, { "role": "assistant", "content": "SELECT MIN(\"enrollment\") FROM \"current\" WHERE \"team_name\"='Cyclones';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"award_list\" (\n \"year\" real,\n \"author_s_or_editor_s\" text,\n \"book_title\" text,\n \"publisher\" text,\n \"category\" text,\n \"result\" text\n);\n\nQuestion: What is the result of the book title firelands?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"award_list\" WHERE \"book_title\"='Firelands';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"award_list\" (\n \"year\" real,\n \"author_s_or_editor_s\" text,\n \"book_title\" text,\n \"publisher\" text,\n \"category\" text,\n \"result\" text\n);\n\nQuestion: Which year is the book title the ordinary?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"award_list\" WHERE \"book_title\"='The Ordinary';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"award_list\" (\n \"year\" real,\n \"author_s_or_editor_s\" text,\n \"book_title\" text,\n \"publisher\" text,\n \"category\" text,\n \"result\" text\n);\n\nQuestion: Who is the publisher of the book titled daughters of an emerald dusk?" }, { "role": "assistant", "content": "SELECT \"publisher\" FROM \"award_list\" WHERE \"book_title\"='Daughters of an Emerald Dusk';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"award_list\" (\n \"year\" real,\n \"author_s_or_editor_s\" text,\n \"book_title\" text,\n \"publisher\" text,\n \"category\" text,\n \"result\" text\n);\n\nQuestion: In which year were the authors or editors Delia Sherman?" }, { "role": "assistant", "content": "SELECT MAX(\"year\") FROM \"award_list\" WHERE \"author_s_or_editor_s\"='Delia Sherman';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"award_list\" (\n \"year\" real,\n \"author_s_or_editor_s\" text,\n \"book_title\" text,\n \"publisher\" text,\n \"category\" text,\n \"result\" text\n);\n\nQuestion: How many authors or editors are there for the book title elf child?" }, { "role": "assistant", "content": "SELECT COUNT(\"author_s_or_editor_s\") FROM \"award_list\" WHERE \"book_title\"='Elf Child';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"award_list\" (\n \"year\" real,\n \"author_s_or_editor_s\" text,\n \"book_title\" text,\n \"publisher\" text,\n \"category\" text,\n \"result\" text\n);\n\nQuestion: What is the title of the book when the publisher is black car publishing?" }, { "role": "assistant", "content": "SELECT \"book_title\" FROM \"award_list\" WHERE \"publisher\"='Black Car Publishing';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"equinox_lottery\" (\n \"divisions\" text,\n \"prize_eur\" text,\n \"odds_of_winning_1in\" text,\n \"number_of_winning_tickets\" real,\n \"in_order_to_win\" text\n);\n\nQuestion: What are the prizes when 1 is the number of winning tickets?" }, { "role": "assistant", "content": "SELECT \"prize_eur\" FROM \"equinox_lottery\" WHERE \"number_of_winning_tickets\"=1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"equinox_lottery\" (\n \"divisions\" text,\n \"prize_eur\" text,\n \"odds_of_winning_1in\" text,\n \"number_of_winning_tickets\" real,\n \"in_order_to_win\" text\n);\n\nQuestion: What are the number of winning tickets that have 180.00 as the prize (eur)?" }, { "role": "assistant", "content": "SELECT \"number_of_winning_tickets\" FROM \"equinox_lottery\" WHERE \"prize_eur\"='180.00';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"equinox_lottery\" (\n \"divisions\" text,\n \"prize_eur\" text,\n \"odds_of_winning_1in\" text,\n \"number_of_winning_tickets\" real,\n \"in_order_to_win\" text\n);\n\nQuestion: How many odd of winning have 6th as the division?" }, { "role": "assistant", "content": "SELECT \"odds_of_winning_1in\" FROM \"equinox_lottery\" WHERE \"divisions\"='6th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"equinox_lottery\" (\n \"divisions\" text,\n \"prize_eur\" text,\n \"odds_of_winning_1in\" text,\n \"number_of_winning_tickets\" real,\n \"in_order_to_win\" text\n);\n\nQuestion: What is the prize (eur) for the 6th division?" }, { "role": "assistant", "content": "SELECT \"prize_eur\" FROM \"equinox_lottery\" WHERE \"divisions\"='6th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"equinox_lottery\" (\n \"divisions\" text,\n \"prize_eur\" text,\n \"odds_of_winning_1in\" text,\n \"number_of_winning_tickets\" real,\n \"in_order_to_win\" text\n);\n\nQuestion: Which divisions have 565 as the number of winning tickets?" }, { "role": "assistant", "content": "SELECT \"divisions\" FROM \"equinox_lottery\" WHERE \"number_of_winning_tickets\"=565;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"electorate\" text,\n \"labour\" text,\n \"national\" text,\n \"new_zealand_first\" text,\n \"green\" text,\n \"united_future\" text,\n \"maori_party\" text,\n \"act\" text,\n \"progressive\" text,\n \"other\" text\n);\n\nQuestion: Name the green for otaki" }, { "role": "assistant", "content": "SELECT \"green\" FROM \"references\" WHERE \"electorate\"='Otaki';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"electorate\" text,\n \"labour\" text,\n \"national\" text,\n \"new_zealand_first\" text,\n \"green\" text,\n \"united_future\" text,\n \"maori_party\" text,\n \"act\" text,\n \"progressive\" text,\n \"other\" text\n);\n\nQuestion: Name the national for rimutaka" }, { "role": "assistant", "content": "SELECT \"national\" FROM \"references\" WHERE \"electorate\"='Rimutaka';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"electorate\" text,\n \"labour\" text,\n \"national\" text,\n \"new_zealand_first\" text,\n \"green\" text,\n \"united_future\" text,\n \"maori_party\" text,\n \"act\" text,\n \"progressive\" text,\n \"other\" text\n);\n\nQuestion: Name the electoraate for united future being 4.47%" }, { "role": "assistant", "content": "SELECT \"electorate\" FROM \"references\" WHERE \"united_future\"='4.47%';" } ]