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 \"table1_3002894_4\" (\n \"model\" text,\n \"sonnet\" text,\n \"apple\" text,\n \"n_upowr_117\" text,\n \"n_upowr_167\" text,\n \"n_upowr_183\" text,\n \"n_upowr_g3\" text\n);\n\nQuestion: When included ram (mib) is the model what is the sonnet?" }, { "role": "assistant", "content": "SELECT \"sonnet\" FROM \"table1_3002894_4\" WHERE \"model\"='Included RAM (MiB)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_3002894_4\" (\n \"model\" text,\n \"sonnet\" text,\n \"apple\" text,\n \"n_upowr_117\" text,\n \"n_upowr_167\" text,\n \"n_upowr_183\" text,\n \"n_upowr_g3\" text\n);\n\nQuestion: When 4 mb is the sonnet what is the apple?" }, { "role": "assistant", "content": "SELECT \"apple\" FROM \"table1_3002894_4\" WHERE \"sonnet\"='4 MB';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_3002894_4\" (\n \"model\" text,\n \"sonnet\" text,\n \"apple\" text,\n \"n_upowr_117\" text,\n \"n_upowr_167\" text,\n \"n_upowr_183\" text,\n \"n_upowr_g3\" text\n);\n\nQuestion: When 0,4, or 8 mb is the nupowr 117 what is the sonnet?" }, { "role": "assistant", "content": "SELECT \"sonnet\" FROM \"table1_3002894_4\" WHERE \"n_upowr_117\"='0,4, or 8 MB';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_3002894_4\" (\n \"model\" text,\n \"sonnet\" text,\n \"apple\" text,\n \"n_upowr_117\" text,\n \"n_upowr_167\" text,\n \"n_upowr_183\" text,\n \"n_upowr_g3\" text\n);\n\nQuestion: When maker is the model what is the nupowr 167?" }, { "role": "assistant", "content": "SELECT \"n_upowr_167\" FROM \"table1_3002894_4\" WHERE \"model\"='Maker';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_3002894_4\" (\n \"model\" text,\n \"sonnet\" text,\n \"apple\" text,\n \"n_upowr_117\" text,\n \"n_upowr_167\" text,\n \"n_upowr_183\" text,\n \"n_upowr_g3\" text\n);\n\nQuestion: When 0,4, or 8 mb is the nupowr 117 what is the nupowr 183?" }, { "role": "assistant", "content": "SELECT \"n_upowr_183\" FROM \"table1_3002894_4\" WHERE \"n_upowr_117\"='0,4, or 8 MB';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30030477_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"viewers_million\" text\n);\n\nQuestion: What is the name of the episode written by glen mazzara?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_30030477_1\" WHERE \"written_by\"='Glen Mazzara';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30030477_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"viewers_million\" text\n);\n\nQuestion: How many titles are there with the original air date of august3,2010?" }, { "role": "assistant", "content": "SELECT COUNT(\"title\") FROM \"table1_30030477_1\" WHERE \"original_air_date\"='August3,2010';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30030477_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"viewers_million\" text\n);\n\nQuestion: Who directed the episdoe veiwed by 3.24 million viewers?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_30030477_1\" WHERE \"viewers_million\"='3.24';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30030477_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"viewers_million\" text\n);\n\nQuestion: What dated the episode written by is adam e. fierro & glen mazzara air?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_30030477_1\" WHERE \"written_by\"='Adam E. Fierro & Glen Mazzara';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"location_attendance\" text,\n \"series\" text,\n \"streak\" text\n);\n\nQuestion: in which date the strea was w 2" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"game_log\" WHERE \"streak\"='W 2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"location_attendance\" text,\n \"series\" text,\n \"streak\" text\n);\n\nQuestion: in april 13 what was the streak" }, { "role": "assistant", "content": "SELECT \"streak\" FROM \"game_log\" WHERE \"date\"='April 13';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"location_attendance\" text,\n \"series\" text,\n \"streak\" text\n);\n\nQuestion: in april 13 who made the high rebounds" }, { "role": "assistant", "content": "SELECT \"high_rebounds\" FROM \"game_log\" WHERE \"date\"='April 13';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Name the game for l 111\u2013126" }, { "role": "assistant", "content": "SELECT \"game\" FROM \"game_log\" WHERE \"score\"='L 111\u2013126';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Name the score for march 8" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"date\"='March 8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: in the detroit team who made the high points" }, { "role": "assistant", "content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"team\"='Detroit';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: what is the score in the philadelphia team " }, { "role": "assistant", "content": "SELECT COUNT(\"score\") FROM \"game_log\" WHERE \"team\"='Philadelphia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: in december 7 who made the high points" }, { "role": "assistant", "content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"date\"='December 7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: in how many dates the game was 2" }, { "role": "assistant", "content": "SELECT COUNT(\"date\") FROM \"game_log\" WHERE \"game\"=2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: in the milwaukee team who made the high points" }, { "role": "assistant", "content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"team\"='Milwaukee';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the location and it's corresponding attendance during the game against Los Angeles?" }, { "role": "assistant", "content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"team\"='Los Angeles';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_stations\" (\n \"station\" text,\n \"metlink_code\" text,\n \"line_s\" text,\n \"service_s\" text,\n \"serves\" text,\n \"km_from_wellington\" text,\n \"fare_zone_s\" text,\n \"opened\" text\n);\n\nQuestion: what is the km from wellington where the metlink code is mast?" }, { "role": "assistant", "content": "SELECT \"km_from_wellington\" FROM \"current_stations\" WHERE \"metlink_code\"='MAST';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_stations\" (\n \"station\" text,\n \"metlink_code\" text,\n \"line_s\" text,\n \"service_s\" text,\n \"serves\" text,\n \"km_from_wellington\" text,\n \"fare_zone_s\" text,\n \"opened\" text\n);\n\nQuestion: what is the name of the station where the metlink code is mata?" }, { "role": "assistant", "content": "SELECT \"station\" FROM \"current_stations\" WHERE \"metlink_code\"='MATA';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_stations\" (\n \"station\" text,\n \"metlink_code\" text,\n \"line_s\" text,\n \"service_s\" text,\n \"serves\" text,\n \"km_from_wellington\" text,\n \"fare_zone_s\" text,\n \"opened\" text\n);\n\nQuestion: what is the metlink code that opened in 1908?" }, { "role": "assistant", "content": "SELECT \"metlink_code\" FROM \"current_stations\" WHERE \"opened\"='1908';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: How many teams did inge \u2013 6 have the high assists with?" }, { "role": "assistant", "content": "SELECT COUNT(\"team\") FROM \"schedule\" WHERE \"high_assists\"='Inge \u2013 6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What is the record for december 3?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"schedule\" WHERE \"date\"='December 3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: How many entries are there for high rebounds when high points is inge \u2013 19?" }, { "role": "assistant", "content": "SELECT COUNT(\"high_rebounds\") FROM \"schedule\" WHERE \"high_points\"='Inge \u2013 19';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: How many games are shown when the is location attendance is phog allen fieldhouse , lawrence, ks (16,300)?" }, { "role": "assistant", "content": "SELECT COUNT(\"game\") FROM \"schedule\" WHERE \"location_attendance\"='Phog Allen Fieldhouse , Lawrence, KS (16,300)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: how many high assits have a date of february 5?" }, { "role": "assistant", "content": "SELECT \"high_assists\" FROM \"schedule\" WHERE \"date\"='February 5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2011_junior_manx_grand_prix_practice_tim\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_20_aug\" text,\n \"mon_22_aug\" text,\n \"tues_23_aug\" text,\n \"wed_24_aug\" text,\n \"thurs_25_aug\" text,\n \"fri_26_aug\" text\n);\n\nQuestion: What is shown for fri 26 aug when mon 22 aug is \u2014\u2014 no time?" }, { "role": "assistant", "content": "SELECT \"fri_26_aug\" FROM \"2011_junior_manx_grand_prix_practice_tim\" WHERE \"mon_22_aug\"='\u2014\u2014 No Time';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2011_junior_manx_grand_prix_practice_tim\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_20_aug\" text,\n \"mon_22_aug\" text,\n \"tues_23_aug\" text,\n \"wed_24_aug\" text,\n \"thurs_25_aug\" text,\n \"fri_26_aug\" text\n);\n\nQuestion: What shows for sat 20 aug when fri 26 aug is 19' 30.70 116.023mph?" }, { "role": "assistant", "content": "SELECT \"sat_20_aug\" FROM \"2011_junior_manx_grand_prix_practice_tim\" WHERE \"fri_26_aug\"='19'' 30.70 116.023mph';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2011_junior_manx_grand_prix_practice_tim\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_20_aug\" text,\n \"mon_22_aug\" text,\n \"tues_23_aug\" text,\n \"wed_24_aug\" text,\n \"thurs_25_aug\" text,\n \"fri_26_aug\" text\n);\n\nQuestion: What shows for mon 22 aug whenwed 24 aug is 19' 56.16 113.553mph?" }, { "role": "assistant", "content": "SELECT \"mon_22_aug\" FROM \"2011_junior_manx_grand_prix_practice_tim\" WHERE \"wed_24_aug\"='19'' 56.16 113.553mph';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2011_junior_manx_grand_prix_practice_tim\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_20_aug\" text,\n \"mon_22_aug\" text,\n \"tues_23_aug\" text,\n \"wed_24_aug\" text,\n \"thurs_25_aug\" text,\n \"fri_26_aug\" text\n);\n\nQuestion: What is the thurs 25 aug when wed 24 aug is 19' 59.73 113.216mph?" }, { "role": "assistant", "content": "SELECT \"thurs_25_aug\" FROM \"2011_junior_manx_grand_prix_practice_tim\" WHERE \"wed_24_aug\"='19'' 59.73 113.216mph';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2011_junior_manx_grand_prix_practice_tim\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_20_aug\" text,\n \"mon_22_aug\" text,\n \"tues_23_aug\" text,\n \"wed_24_aug\" text,\n \"thurs_25_aug\" text,\n \"fri_26_aug\" text\n);\n\nQuestion: What shows for thurs 25 aug when fri 26 aug is 19' 30.70 116.023mph?" }, { "role": "assistant", "content": "SELECT \"thurs_25_aug\" FROM \"2011_junior_manx_grand_prix_practice_tim\" WHERE \"fri_26_aug\"='19'' 30.70 116.023mph';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2011_supertwin_practice_times_and_leader\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_20_aug\" text,\n \"mon_22_aug\" text,\n \"tues_23_aug\" text,\n \"wed_24_aug\" text,\n \"thurs_25_aug\" text,\n \"fri_26_aug\" text\n);\n\nQuestion: What's the best rank possible?" }, { "role": "assistant", "content": "SELECT MIN(\"rank\") FROM \"2011_supertwin_practice_times_and_leader\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30060356_3\" (\n \"event\" real,\n \"circuit\" text,\n \"gt3_pro_cup_winner\" text,\n \"gt3_pro_am_cup_winner\" text,\n \"gt3_citation_cup_winner\" text,\n \"gt4_cup_winner\" text\n);\n\nQuestion: List all GT4 Cup winners played on the Spa-Francorchamps Report." }, { "role": "assistant", "content": "SELECT \"gt4_cup_winner\" FROM \"table1_30060356_3\" WHERE \"circuit\"='Spa-Francorchamps Report';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30060356_3\" (\n \"event\" real,\n \"circuit\" text,\n \"gt3_pro_cup_winner\" text,\n \"gt3_pro_am_cup_winner\" text,\n \"gt3_citation_cup_winner\" text,\n \"gt4_cup_winner\" text\n);\n\nQuestion: Who are the gt3 pro / am cup winners when the gt3 pro cup winner was no. 1 vita4one?" }, { "role": "assistant", "content": "SELECT \"gt3_pro_am_cup_winner\" FROM \"table1_30060356_3\" WHERE \"gt3_pro_cup_winner\"='No. 1 Vita4One';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30060356_3\" (\n \"event\" real,\n \"circuit\" text,\n \"gt3_pro_cup_winner\" text,\n \"gt3_pro_am_cup_winner\" text,\n \"gt3_citation_cup_winner\" text,\n \"gt4_cup_winner\" text\n);\n\nQuestion: What is the highest numbered event?" }, { "role": "assistant", "content": "SELECT MAX(\"event\") FROM \"table1_30060356_3\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2011_classic_superbike_practice_times_an\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_20_aug\" text,\n \"mon_22_aug\" text,\n \"tues_23_aug\" text,\n \"wed_24_aug\" text,\n \"thurs_25_aug\" text,\n \"fri_26_aug\" text,\n \"sat_27_aug\" text,\n \"mon_29_aug\" text,\n \"wed_31_aug\" text\n);\n\nQuestion: What is every entry for Tuesday August 23 if the entry for Wednesday August 24 is 22' 23.29 101.116mph?" }, { "role": "assistant", "content": "SELECT \"tues_23_aug\" FROM \"2011_classic_superbike_practice_times_an\" WHERE \"wed_24_aug\"='22'' 23.29 101.116mph';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2011_classic_superbike_practice_times_an\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_20_aug\" text,\n \"mon_22_aug\" text,\n \"tues_23_aug\" text,\n \"wed_24_aug\" text,\n \"thurs_25_aug\" text,\n \"fri_26_aug\" text,\n \"sat_27_aug\" text,\n \"mon_29_aug\" text,\n \"wed_31_aug\" text\n);\n\nQuestion: What is every entry for Saturday August 27 when the entry for Thursday August 25 is 23' 56.90 94.528mph?" }, { "role": "assistant", "content": "SELECT \"sat_27_aug\" FROM \"2011_classic_superbike_practice_times_an\" WHERE \"thurs_25_aug\"='23'' 56.90 94.528mph';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2011_classic_superbike_practice_times_an\" (\n \"rank\" real,\n \"rider\" text,\n \"sat_20_aug\" text,\n \"mon_22_aug\" text,\n \"tues_23_aug\" text,\n \"wed_24_aug\" text,\n \"thurs_25_aug\" text,\n \"fri_26_aug\" text,\n \"sat_27_aug\" text,\n \"mon_29_aug\" text,\n \"wed_31_aug\" text\n);\n\nQuestion: What is every entry for Friday August 26 when the entry for Wednesday August 24 is 23' 52.67 94.807mph?" }, { "role": "assistant", "content": "SELECT \"fri_26_aug\" FROM \"2011_classic_superbike_practice_times_an\" WHERE \"wed_24_aug\"='23'' 52.67 94.807mph';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"calendar\" (\n \"round\" real,\n \"circuit\" text,\n \"date\" text,\n \"length\" text,\n \"pole_position\" text,\n \"gt3_winner\" text,\n \"gt4_winner\" text\n);\n\nQuestion: When david ashburn richard westbrook is the gt3 winner and 1 is the round what is the length?" }, { "role": "assistant", "content": "SELECT \"length\" FROM \"calendar\" WHERE \"round\"=1 AND \"gt3_winner\"='David Ashburn Richard Westbrook';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"calendar\" (\n \"round\" real,\n \"circuit\" text,\n \"date\" text,\n \"length\" text,\n \"pole_position\" text,\n \"gt3_winner\" text,\n \"gt4_winner\" text\n);\n\nQuestion: When charles bateman michael lyons is the gt3 winner and donington park is the circuit who is the gt4 winner?" }, { "role": "assistant", "content": "SELECT \"gt4_winner\" FROM \"calendar\" WHERE \"circuit\"='Donington Park' AND \"gt3_winner\"='Charles Bateman Michael Lyons';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"calendar\" (\n \"round\" real,\n \"circuit\" text,\n \"date\" text,\n \"length\" text,\n \"pole_position\" text,\n \"gt3_winner\" text,\n \"gt4_winner\" text\n);\n\nQuestion: When charles bateman michael lyons is the gt3 winner and 9 is the round who is the gt4 winner?" }, { "role": "assistant", "content": "SELECT \"gt4_winner\" FROM \"calendar\" WHERE \"round\"=9 AND \"gt3_winner\"='Charles Bateman Michael Lyons';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"calendar\" (\n \"round\" real,\n \"circuit\" text,\n \"date\" text,\n \"length\" text,\n \"pole_position\" text,\n \"gt3_winner\" text,\n \"gt4_winner\" text\n);\n\nQuestion: When tim bridgman gregor fisken is the pole position who is the gt3 winner?" }, { "role": "assistant", "content": "SELECT \"gt3_winner\" FROM \"calendar\" WHERE \"pole_position\"='Tim Bridgman Gregor Fisken';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_09_season_as_a_three_year_old\" (\n \"result\" text,\n \"date\" text,\n \"race\" text,\n \"venue\" text,\n \"group\" text,\n \"distance\" text,\n \"weight_kg\" text,\n \"jockey\" text,\n \"winner_2nd\" text\n);\n\nQuestion: List the rider for the doncaster handicap compeition." }, { "role": "assistant", "content": "SELECT \"jockey\" FROM \"2008_09_season_as_a_three_year_old\" WHERE \"race\"='Doncaster Handicap';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30108346_1\" (\n \"country\" text,\n \"number_of_troops\" real,\n \"pct_of_total_troops\" text,\n \"troops_per_one_million_population\" text,\n \"troops_per_1_billion_usd_gdp\" text\n);\n\nQuestion: Name the number of troops for troops per $1 billion being 2.45" }, { "role": "assistant", "content": "SELECT COUNT(\"number_of_troops\") FROM \"table1_30108346_1\" WHERE \"troops_per_1_billion_usd_gdp\"='2.45';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30108346_1\" (\n \"country\" text,\n \"number_of_troops\" real,\n \"pct_of_total_troops\" text,\n \"troops_per_one_million_population\" text,\n \"troops_per_1_billion_usd_gdp\" text\n);\n\nQuestion: Name the total number of troops per one million being 2.76" }, { "role": "assistant", "content": "SELECT COUNT(\"troops_per_one_million_population\") FROM \"table1_30108346_1\" WHERE \"troops_per_1_billion_usd_gdp\"='2.76';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30108346_1\" (\n \"country\" text,\n \"number_of_troops\" real,\n \"pct_of_total_troops\" text,\n \"troops_per_one_million_population\" text,\n \"troops_per_1_billion_usd_gdp\" text\n);\n\nQuestion: Name the country for troops per one million being 54.9" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"table1_30108346_1\" WHERE \"troops_per_one_million_population\"='54.9';" } ]
[ { "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: Which player(s) played at Howard college?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"round_five\" WHERE \"college\"='Howard';" } ]
[ { "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: Which CFL team was pick #35?" }, { "role": "assistant", "content": "SELECT \"cfl_team\" FROM \"round_five\" WHERE \"pick_num\"=35;" } ]
[ { "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: Which CFL team got pick 34?" }, { "role": "assistant", "content": "SELECT \"cfl_team\" FROM \"round_five\" WHERE \"pick_num\"=34;" } ]
[ { "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 is Tyrell Francisco's player position?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"round_five\" WHERE \"player\"='Tyrell Francisco';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30120547_1\" (\n \"townland\" text,\n \"area_acres\" real,\n \"barony\" text,\n \"civil_parish\" text,\n \"poor_law_union\" text\n);\n\nQuestion: What is the barony of the Gurraghy townland?" }, { "role": "assistant", "content": "SELECT \"barony\" FROM \"table1_30120547_1\" WHERE \"townland\"='Gurraghy';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30120547_1\" (\n \"townland\" text,\n \"area_acres\" real,\n \"barony\" text,\n \"civil_parish\" text,\n \"poor_law_union\" text\n);\n\nQuestion: What is the civil parish of the cappanaboul townland?" }, { "role": "assistant", "content": "SELECT \"civil_parish\" FROM \"table1_30120547_1\" WHERE \"townland\"='Cappanaboul';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30120547_1\" (\n \"townland\" text,\n \"area_acres\" real,\n \"barony\" text,\n \"civil_parish\" text,\n \"poor_law_union\" text\n);\n\nQuestion: What are the civil parishes of the townlands with an area of 119 acres?" }, { "role": "assistant", "content": "SELECT \"civil_parish\" FROM \"table1_30120547_1\" WHERE \"area_acres\"=119;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30120556_1\" (\n \"townland\" text,\n \"area_acres\" real,\n \"barony\" text,\n \"civil_parish\" text,\n \"poor_law_union\" text\n);\n\nQuestion: What civil paris appears when Ballynamona is the townland with 126 acres?" }, { "role": "assistant", "content": "SELECT \"civil_parish\" FROM \"table1_30120556_1\" WHERE \"townland\"='Ballynamona' AND \"area_acres\"=126;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30120556_1\" (\n \"townland\" text,\n \"area_acres\" real,\n \"barony\" text,\n \"civil_parish\" text,\n \"poor_law_union\" text\n);\n\nQuestion: What is the area of the civil parish kilworth and townland monadrishane?" }, { "role": "assistant", "content": "SELECT \"area_acres\" FROM \"table1_30120556_1\" WHERE \"civil_parish\"='Kilworth' AND \"townland\"='Monadrishane';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30120556_1\" (\n \"townland\" text,\n \"area_acres\" real,\n \"barony\" text,\n \"civil_parish\" text,\n \"poor_law_union\" text\n);\n\nQuestion: How many barony's appear when Ballyvadona is the townland." }, { "role": "assistant", "content": "SELECT COUNT(\"barony\") FROM \"table1_30120556_1\" WHERE \"townland\"='Ballyvadona';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30120556_1\" (\n \"townland\" text,\n \"area_acres\" real,\n \"barony\" text,\n \"civil_parish\" text,\n \"poor_law_union\" text\n);\n\nQuestion: How many items appear in the area column when Glasvaunta is the townland?" }, { "role": "assistant", "content": "SELECT COUNT(\"area_acres\") FROM \"table1_30120556_1\" WHERE \"townland\"='Glasvaunta';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30120556_1\" (\n \"townland\" text,\n \"area_acres\" real,\n \"barony\" text,\n \"civil_parish\" text,\n \"poor_law_union\" text\n);\n\nQuestion: What is the fewest area in Derrynanool townland?" }, { "role": "assistant", "content": "SELECT MIN(\"area_acres\") FROM \"table1_30120556_1\" WHERE \"townland\"='Derrynanool';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30120566_1\" (\n \"townland\" text,\n \"area_acres\" real,\n \"barony\" text,\n \"civil_parish\" text,\n \"poor_law_union\" text\n);\n\nQuestion: What is Lisladeen poor law union?" }, { "role": "assistant", "content": "SELECT \"poor_law_union\" FROM \"table1_30120566_1\" WHERE \"townland\"='Lisladeen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30120566_1\" (\n \"townland\" text,\n \"area_acres\" real,\n \"barony\" text,\n \"civil_parish\" text,\n \"poor_law_union\" text\n);\n\nQuestion: In what barony are both the townland Dawstown and the civil parish Matehy located?" }, { "role": "assistant", "content": "SELECT \"barony\" FROM \"table1_30120566_1\" WHERE \"townland\"='Dawstown' AND \"civil_parish\"='Matehy';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30120566_1\" (\n \"townland\" text,\n \"area_acres\" real,\n \"barony\" text,\n \"civil_parish\" text,\n \"poor_law_union\" text\n);\n\nQuestion: What barony is Ballycunningham in?" }, { "role": "assistant", "content": "SELECT \"barony\" FROM \"table1_30120566_1\" WHERE \"townland\"='Ballycunningham';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30120566_1\" (\n \"townland\" text,\n \"area_acres\" real,\n \"barony\" text,\n \"civil_parish\" text,\n \"poor_law_union\" text\n);\n\nQuestion: How many different sizes (in acres) are noted for Rathcoola East?" }, { "role": "assistant", "content": "SELECT COUNT(\"area_acres\") FROM \"table1_30120566_1\" WHERE \"townland\"='Rathcoola East';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30120560_1\" (\n \"townland\" text,\n \"area_acres\" real,\n \"barony\" text,\n \"civil_parish\" text,\n \"poor_law_union\" text\n);\n\nQuestion: how many areas have townland as kilgilky north?" }, { "role": "assistant", "content": "SELECT COUNT(\"area_acres\") FROM \"table1_30120560_1\" WHERE \"townland\"='Kilgilky North';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30120560_1\" (\n \"townland\" text,\n \"area_acres\" real,\n \"barony\" text,\n \"civil_parish\" text,\n \"poor_law_union\" text\n);\n\nQuestion: which cilvil parishes have areas of 405?" }, { "role": "assistant", "content": "SELECT \"civil_parish\" FROM \"table1_30120560_1\" WHERE \"area_acres\"=405;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30120560_1\" (\n \"townland\" text,\n \"area_acres\" real,\n \"barony\" text,\n \"civil_parish\" text,\n \"poor_law_union\" text\n);\n\nQuestion: what is the barony and an area of 560?" }, { "role": "assistant", "content": "SELECT \"barony\" FROM \"table1_30120560_1\" WHERE \"area_acres\"=560;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30120560_1\" (\n \"townland\" text,\n \"area_acres\" real,\n \"barony\" text,\n \"civil_parish\" text,\n \"poor_law_union\" text\n);\n\nQuestion: what is the number of areas where the townland is brittas?" }, { "role": "assistant", "content": "SELECT COUNT(\"area_acres\") FROM \"table1_30120560_1\" WHERE \"townland\"='Brittas';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30120633_1\" (\n \"townland\" text,\n \"area_acres\" real,\n \"barony\" text,\n \"civil_parish\" text,\n \"poor_law_union\" text\n);\n\nQuestion: What is the Poor Law Union for Coolkirky?" }, { "role": "assistant", "content": "SELECT \"poor_law_union\" FROM \"table1_30120633_1\" WHERE \"townland\"='Coolkirky';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30120633_1\" (\n \"townland\" text,\n \"area_acres\" real,\n \"barony\" text,\n \"civil_parish\" text,\n \"poor_law_union\" text\n);\n\nQuestion: How few acres is the area of Clashroe?" }, { "role": "assistant", "content": "SELECT MIN(\"area_acres\") FROM \"table1_30120633_1\" WHERE \"townland\"='Clashroe';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30120633_1\" (\n \"townland\" text,\n \"area_acres\" real,\n \"barony\" text,\n \"civil_parish\" text,\n \"poor_law_union\" text\n);\n\nQuestion: Which townland has a 213 acre area?" }, { "role": "assistant", "content": "SELECT \"townland\" FROM \"table1_30120633_1\" WHERE \"area_acres\"=213;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30120633_1\" (\n \"townland\" text,\n \"area_acres\" real,\n \"barony\" text,\n \"civil_parish\" text,\n \"poor_law_union\" text\n);\n\nQuestion: How many acres does the area of Lissagroom with Bandon as its poor law union cover?" }, { "role": "assistant", "content": "SELECT \"area_acres\" FROM \"table1_30120633_1\" WHERE \"poor_law_union\"='Bandon' AND \"townland\"='Lissagroom';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30120633_1\" (\n \"townland\" text,\n \"area_acres\" real,\n \"barony\" text,\n \"civil_parish\" text,\n \"poor_law_union\" text\n);\n\nQuestion: What is Ballymurphy North's civil parish?" }, { "role": "assistant", "content": "SELECT \"civil_parish\" FROM \"table1_30120633_1\" WHERE \"townland\"='Ballymurphy North';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30120761_1\" (\n \"townland\" text,\n \"area_acres\" real,\n \"barony\" text,\n \"civil_parish\" text,\n \"poor_law_union\" text\n);\n\nQuestion: How many acres in the townland of Coomroe?" }, { "role": "assistant", "content": "SELECT COUNT(\"area_acres\") FROM \"table1_30120761_1\" WHERE \"townland\"='Coomroe';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30120761_1\" (\n \"townland\" text,\n \"area_acres\" real,\n \"barony\" text,\n \"civil_parish\" text,\n \"poor_law_union\" text\n);\n\nQuestion: What are all the acreages of the townlands in the Macroom poor law union and Macroom civil parish?" }, { "role": "assistant", "content": "SELECT \"area_acres\" FROM \"table1_30120761_1\" WHERE \"poor_law_union\"='Macroom' AND \"civil_parish\"='Macroom';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30120761_1\" (\n \"townland\" text,\n \"area_acres\" real,\n \"barony\" text,\n \"civil_parish\" text,\n \"poor_law_union\" text\n);\n\nQuestion: How many baronies is Maulnagrough a part of?" }, { "role": "assistant", "content": "SELECT COUNT(\"barony\") FROM \"table1_30120761_1\" WHERE \"townland\"='Maulnagrough';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30120761_1\" (\n \"townland\" text,\n \"area_acres\" real,\n \"barony\" text,\n \"civil_parish\" text,\n \"poor_law_union\" text\n);\n\nQuestion: What are all of the townlands that have exactly 131 acres." }, { "role": "assistant", "content": "SELECT \"townland\" FROM \"table1_30120761_1\" WHERE \"area_acres\"=131;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30120761_1\" (\n \"townland\" text,\n \"area_acres\" real,\n \"barony\" text,\n \"civil_parish\" text,\n \"poor_law_union\" text\n);\n\nQuestion: What is the acreage of the Maghereen in the civil parish of Macroom?" }, { "role": "assistant", "content": "SELECT COUNT(\"area_acres\") FROM \"table1_30120761_1\" WHERE \"civil_parish\"='Macroom' AND \"townland\"='Maghereen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30121075_1\" (\n \"townland\" text,\n \"area_acres\" real,\n \"barony\" text,\n \"civil_parish\" text,\n \"poor_law_union\" text\n);\n\nQuestion: What is the poor law union when the townland is bohonagh?" }, { "role": "assistant", "content": "SELECT \"poor_law_union\" FROM \"table1_30121075_1\" WHERE \"townland\"='Bohonagh';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30121075_1\" (\n \"townland\" text,\n \"area_acres\" real,\n \"barony\" text,\n \"civil_parish\" text,\n \"poor_law_union\" text\n);\n\nQuestion: How many entries are in barony when the townland is derrigra?" }, { "role": "assistant", "content": "SELECT COUNT(\"barony\") FROM \"table1_30121075_1\" WHERE \"townland\"='Derrigra';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30121075_1\" (\n \"townland\" text,\n \"area_acres\" real,\n \"barony\" text,\n \"civil_parish\" text,\n \"poor_law_union\" text\n);\n\nQuestion: How many entries are listed in poor law union when townland is dromidiclogh?" }, { "role": "assistant", "content": "SELECT COUNT(\"poor_law_union\") FROM \"table1_30121075_1\" WHERE \"townland\"='Dromidiclogh';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_30121075_1\" (\n \"townland\" text,\n \"area_acres\" real,\n \"barony\" text,\n \"civil_parish\" text,\n \"poor_law_union\" text\n);\n\nQuestion: What is the area when the poor law union is skibbereen and the townland is knockmore?" }, { "role": "assistant", "content": "SELECT \"area_acres\" FROM \"table1_30121075_1\" WHERE \"poor_law_union\"='Skibbereen' AND \"townland\"='Knockmore';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar_and_results\" (\n \"rnd\" real,\n \"circuit\" text,\n \"location\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"supporting\" text\n);\n\nQuestion: What is the circuit located in baltimore , maryland?" }, { "role": "assistant", "content": "SELECT \"circuit\" FROM \"race_calendar_and_results\" WHERE \"location\"='Baltimore , Maryland';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar_and_results\" (\n \"rnd\" real,\n \"circuit\" text,\n \"location\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"supporting\" text\n);\n\nQuestion: Which circuit was located in st. petersburg, florida?" }, { "role": "assistant", "content": "SELECT \"circuit\" FROM \"race_calendar_and_results\" WHERE \"location\"='St. Petersburg, Florida';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar_and_results\" (\n \"rnd\" real,\n \"circuit\" text,\n \"location\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"supporting\" text\n);\n\nQuestion: Who had the fastest lap in bowmanville, ontario?" }, { "role": "assistant", "content": "SELECT \"fastest_lap\" FROM \"race_calendar_and_results\" WHERE \"location\"='Bowmanville, Ontario';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar_and_results\" (\n \"rnd\" real,\n \"circuit\" text,\n \"location\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"supporting\" text\n);\n\nQuestion: Who had the fastest lap on september 4?" }, { "role": "assistant", "content": "SELECT \"fastest_lap\" FROM \"race_calendar_and_results\" WHERE \"date\"='September 4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"per_capita_gdp\" (\n \"economy\" text,\n \"1980\" real,\n \"gap_from_thailand_as_of_1980_times\" text,\n \"1985\" real,\n \"1990\" real,\n \"1995\" real,\n \"2000\" real,\n \"2005\" real,\n \"2010\" real,\n \"2012\" real,\n \"gap_from_thailand_as_of_2012_times\" text,\n \"gdp_as_of_2012_after_purchasing_power_parity_ppp_calculations_usd_billions\" text,\n \"gdp_per_capita_as_of_2012_ppp\" real\n);\n\nQuestion: What is the 1985 value for the year when GDP as of 2012 after PPP was 369.38?" }, { "role": "assistant", "content": "SELECT \"1985\" FROM \"per_capita_gdp\" WHERE \"gdp_as_of_2012_after_purchasing_power_parity_ppp_calculations_usd_billions\"='369.38';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"per_capita_gdp\" (\n \"economy\" text,\n \"1980\" real,\n \"gap_from_thailand_as_of_1980_times\" text,\n \"1985\" real,\n \"1990\" real,\n \"1995\" real,\n \"2000\" real,\n \"2005\" real,\n \"2010\" real,\n \"2012\" real,\n \"gap_from_thailand_as_of_2012_times\" text,\n \"gdp_as_of_2012_after_purchasing_power_parity_ppp_calculations_usd_billions\" text,\n \"gdp_per_capita_as_of_2012_ppp\" real\n);\n\nQuestion: What was the gap from Thailand as of 2012 for China?" }, { "role": "assistant", "content": "SELECT \"gap_from_thailand_as_of_2012_times\" FROM \"per_capita_gdp\" WHERE \"economy\"='China';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"per_capita_gdp\" (\n \"economy\" text,\n \"1980\" real,\n \"gap_from_thailand_as_of_1980_times\" text,\n \"1985\" real,\n \"1990\" real,\n \"1995\" real,\n \"2000\" real,\n \"2005\" real,\n \"2010\" real,\n \"2012\" real,\n \"gap_from_thailand_as_of_2012_times\" text,\n \"gdp_as_of_2012_after_purchasing_power_parity_ppp_calculations_usd_billions\" text,\n \"gdp_per_capita_as_of_2012_ppp\" real\n);\n\nQuestion: What is the maximum 2010 value for China?" }, { "role": "assistant", "content": "SELECT MAX(\"2010\") FROM \"per_capita_gdp\" WHERE \"economy\"='China';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"per_capita_gdp\" (\n \"economy\" text,\n \"1980\" real,\n \"gap_from_thailand_as_of_1980_times\" text,\n \"1985\" real,\n \"1990\" real,\n \"1995\" real,\n \"2000\" real,\n \"2005\" real,\n \"2010\" real,\n \"2012\" real,\n \"gap_from_thailand_as_of_2012_times\" text,\n \"gdp_as_of_2012_after_purchasing_power_parity_ppp_calculations_usd_billions\" text,\n \"gdp_per_capita_as_of_2012_ppp\" real\n);\n\nQuestion: What is the gap from Thailand as of 2012 for the country whose 1980 gap was 0.29?" }, { "role": "assistant", "content": "SELECT \"gap_from_thailand_as_of_2012_times\" FROM \"per_capita_gdp\" WHERE \"gap_from_thailand_as_of_1980_times\"='0.29';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"per_capita_gdp\" (\n \"economy\" text,\n \"1980\" real,\n \"gap_from_thailand_as_of_1980_times\" text,\n \"1985\" real,\n \"1990\" real,\n \"1995\" real,\n \"2000\" real,\n \"2005\" real,\n \"2010\" real,\n \"2012\" real,\n \"gap_from_thailand_as_of_2012_times\" text,\n \"gdp_as_of_2012_after_purchasing_power_parity_ppp_calculations_usd_billions\" text,\n \"gdp_per_capita_as_of_2012_ppp\" real\n);\n\nQuestion: How many GDPs as of 2012 after PPP values are associated with a 2012 value of 23113?" }, { "role": "assistant", "content": "SELECT COUNT(\"gdp_as_of_2012_after_purchasing_power_parity_ppp_calculations_usd_billions\") FROM \"per_capita_gdp\" WHERE \"2012\"=23113;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"per_capita_gdp\" (\n \"economy\" text,\n \"1980\" real,\n \"gap_from_thailand_as_of_1980_times\" text,\n \"1985\" real,\n \"1990\" real,\n \"1995\" real,\n \"2000\" real,\n \"2005\" real,\n \"2010\" real,\n \"2012\" real,\n \"gap_from_thailand_as_of_2012_times\" text,\n \"gdp_as_of_2012_after_purchasing_power_parity_ppp_calculations_usd_billions\" text,\n \"gdp_per_capita_as_of_2012_ppp\" real\n);\n\nQuestion: What is the max 2010 value for a 1980 gap value is 2.43?" }, { "role": "assistant", "content": "SELECT MAX(\"2010\") FROM \"per_capita_gdp\" WHERE \"gap_from_thailand_as_of_1980_times\"='2.43';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_1_2011\" (\n \"episode_no\" real,\n \"us_airdate\" text,\n \"us_total_viewers\" text,\n \"uk_airdate\" text,\n \"uk_total_viewers\" text\n);\n\nQuestion: How many viewers in the UK did episode 50 have?" }, { "role": "assistant", "content": "SELECT \"uk_total_viewers\" FROM \"series_1_2011\" WHERE \"episode_no\"=50;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_team\" (\n \"player\" text,\n \"current_singles_ranking\" text,\n \"current_doubles_ranking\" text,\n \"first_year_played\" real,\n \"ties_played\" real,\n \"total_w_l\" text,\n \"singles_w_l\" text,\n \"doubles_w_l\" text\n);\n\nQuestion: Tell me the doubles W-L for player of laurynas grigelis" }, { "role": "assistant", "content": "SELECT \"doubles_w_l\" FROM \"current_team\" WHERE \"player\"='laurynas grigelis';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"highest_goal_scorer\" (\n \"name\" text,\n \"career\" text,\n \"goals\" real,\n \"caps\" real,\n \"first_cap\" text,\n \"most_recent_cap\" text\n);\n\nQuestion: What is the newest Cap with a Goals stat larger than 17 and which was done by Brian Turner?" }, { "role": "assistant", "content": "SELECT \"most_recent_cap\" FROM \"highest_goal_scorer\" WHERE \"goals\">17 AND \"name\"='brian turner';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"r\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_in_toronto\" text,\n \"school_club_team\" text\n);\n\nQuestion: What is the nationality of school/club team of barton cc (ks)?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"r\" WHERE \"school_club_team\"='barton cc (ks)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"r\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_in_toronto\" text,\n \"school_club_team\" text\n);\n\nQuestion: Shawn Respert play for what school/club team?" }, { "role": "assistant", "content": "SELECT \"school_club_team\" FROM \"r\" WHERE \"player\"='shawn respert';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"r\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_in_toronto\" text,\n \"school_club_team\" text\n);\n\nQuestion: Who has position in year 1996-97 in Toronto?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"r\" WHERE \"years_in_toronto\"='1996-97';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"r\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_in_toronto\" text,\n \"school_club_team\" text\n);\n\nQuestion: Roy Rogers play for what school/club team?" }, { "role": "assistant", "content": "SELECT \"school_club_team\" FROM \"r\" WHERE \"player\"='roy rogers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"r\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_in_toronto\" text,\n \"school_club_team\" text\n);\n\nQuestion: What year is United States school/club team from Arkansas play in Toronto" }, { "role": "assistant", "content": "SELECT \"years_in_toronto\" FROM \"r\" WHERE \"nationality\"='united states' AND \"school_club_team\"='arkansas';" } ]