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 \"round_16\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text,\n \"report\" text\n);\n\nQuestion: what report was in geelong" }, { "role": "assistant", "content": "SELECT \"report\" FROM \"round_16\" WHERE \"home_team\"='geelong';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What is the date for the game played on week 8, with an attendance of more than 35,000?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"attendance\">'35,000' AND \"week\"=8;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"defunct_museums\" (\n \"name\" text,\n \"town_city\" text,\n \"borough\" text,\n \"region\" text,\n \"type\" text\n);\n\nQuestion: In what Town/City is Nana Museum of The Arctic located?" }, { "role": "assistant", "content": "SELECT \"town_city\" FROM \"defunct_museums\" WHERE \"name\"='nana museum of the arctic';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"defunct_museums\" (\n \"name\" text,\n \"town_city\" text,\n \"borough\" text,\n \"region\" text,\n \"type\" text\n);\n\nQuestion: What is the Name of the Multiple Type museum in Anchorage?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"defunct_museums\" WHERE \"town_city\"='anchorage' AND \"type\"='multiple';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"defunct_museums\" (\n \"name\" text,\n \"town_city\" text,\n \"borough\" text,\n \"region\" text,\n \"type\" text\n);\n\nQuestion: In what Borough is the Anchorage museum of Natural History?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"defunct_museums\" WHERE \"borough\"='anchorage' AND \"type\"='natural history';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"defunct_museums\" (\n \"name\" text,\n \"town_city\" text,\n \"borough\" text,\n \"region\" text,\n \"type\" text\n);\n\nQuestion: In what Region is the Native American museum in Anchorage?" }, { "role": "assistant", "content": "SELECT \"region\" FROM \"defunct_museums\" WHERE \"type\"='native american' AND \"town_city\"='anchorage';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"defunct_museums\" (\n \"name\" text,\n \"town_city\" text,\n \"borough\" text,\n \"region\" text,\n \"type\" text\n);\n\nQuestion: What Type of museum is the Valdez museum?" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"defunct_museums\" WHERE \"name\"='valdez museum';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"defunct_museums\" (\n \"name\" text,\n \"town_city\" text,\n \"borough\" text,\n \"region\" text,\n \"type\" text\n);\n\nQuestion: In what Borough is the History Type Fairbanks Community Museum?" }, { "role": "assistant", "content": "SELECT \"borough\" FROM \"defunct_museums\" WHERE \"type\"='history' AND \"name\"='fairbanks community museum';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"counties\" (\n \"in_no\" real,\n \"county_name\" text,\n \"county_seat\" text,\n \"time_zone\" text,\n \"population_2010_rank\" text,\n \"area_sq_mi_km_2_rank\" text,\n \"twps\" real,\n \"zip_code_prefix_es\" text,\n \"pct_of_boundary_by_water\" text\n);\n\nQuestion: what is the zip code of boonville" }, { "role": "assistant", "content": "SELECT \"zip_code_prefix_es\" FROM \"counties\" WHERE \"county_seat\"='boonville';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"european_tour_wins_14\" (\n \"date\" text,\n \"tournament\" text,\n \"winning_score\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text\n);\n\nQuestion: Which tournament was held on 9 Jun 2002?" }, { "role": "assistant", "content": "SELECT \"tournament\" FROM \"european_tour_wins_14\" WHERE \"date\"='9 jun 2002';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"european_tour_wins_14\" (\n \"date\" text,\n \"tournament\" text,\n \"winning_score\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text\n);\n\nQuestion: What is the winning score with a margin of victory of 4 strokes for the NEC Invitational tournament?" }, { "role": "assistant", "content": "SELECT \"winning_score\" FROM \"european_tour_wins_14\" WHERE \"margin_of_victory\"='4 strokes' AND \"tournament\"='nec invitational';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"european_tour_wins_14\" (\n \"date\" text,\n \"tournament\" text,\n \"winning_score\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text\n);\n\nQuestion: Who is the runner-up where the winning score is \u20138 (71-69-67-73=280)?" }, { "role": "assistant", "content": "SELECT \"runner_s_up\" FROM \"european_tour_wins_14\" WHERE \"winning_score\"='\u20138 (71-69-67-73=280)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"european_tour_wins_14\" (\n \"date\" text,\n \"tournament\" text,\n \"winning_score\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text\n);\n\nQuestion: What is the winning score for Tournament of linde german masters with a margin of victory of 1 stroke?" }, { "role": "assistant", "content": "SELECT \"winning_score\" FROM \"european_tour_wins_14\" WHERE \"margin_of_victory\"='1 stroke' AND \"tournament\"='linde german masters';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"european_tour_wins_14\" (\n \"date\" text,\n \"tournament\" text,\n \"winning_score\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text\n);\n\nQuestion: Who is runner-up where the winning score is \u20136 (65-70-70-69=274) and the margin of victory is 3 strokes?" }, { "role": "assistant", "content": "SELECT \"runner_s_up\" FROM \"european_tour_wins_14\" WHERE \"margin_of_victory\"='3 strokes' AND \"winning_score\"='\u20136 (65-70-70-69=274)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"european_tour_wins_14\" (\n \"date\" text,\n \"tournament\" text,\n \"winning_score\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text\n);\n\nQuestion: What is the winning score where the runner-up is Robert-Jan Derksen and the margin of victory is 1 stroke?" }, { "role": "assistant", "content": "SELECT \"winning_score\" FROM \"european_tour_wins_14\" WHERE \"margin_of_victory\"='1 stroke' AND \"runner_s_up\"='robert-jan derksen';" } ]
[ { "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 are the high rebounds of team @ Charlotte?" }, { "role": "assistant", "content": "SELECT \"high_rebounds\" FROM \"game_log\" WHERE \"team\"='@ charlotte';" } ]
[ { "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 high rebounds of game 68?" }, { "role": "assistant", "content": "SELECT \"high_rebounds\" FROM \"game_log\" WHERE \"game\"=68;" } ]
[ { "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 of New York team before game 61?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"game\"<61 AND \"team\"='new york';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_wins\" (\n \"date\" text,\n \"tournament\" text,\n \"tier\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: When David McNamara was the opponent in the final, what was the tier?" }, { "role": "assistant", "content": "SELECT \"tier\" FROM \"singles_wins\" WHERE \"opponent_in_the_final\"='david mcnamara';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"the_americas\" (\n \"rank\" real,\n \"country\" text,\n \"international_tourist_arrivals_2012\" text,\n \"international_tourist_arrivals_2011\" text,\n \"change_2011_to_2012\" text,\n \"change_2010_to_2011\" text\n);\n\nQuestion: In 2011, how many tourists visited the country that had 23.4 million tourists in 2012?" }, { "role": "assistant", "content": "SELECT \"international_tourist_arrivals_2011\" FROM \"the_americas\" WHERE \"international_tourist_arrivals_2012\"='23.4 million';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"the_americas\" (\n \"rank\" real,\n \"country\" text,\n \"international_tourist_arrivals_2012\" text,\n \"international_tourist_arrivals_2011\" text,\n \"change_2011_to_2012\" text,\n \"change_2010_to_2011\" text\n);\n\nQuestion: How many tourists visited the country that had 2.5 million tourists in 2011?" }, { "role": "assistant", "content": "SELECT \"international_tourist_arrivals_2012\" FROM \"the_americas\" WHERE \"international_tourist_arrivals_2011\"='2.5 million';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"achievements\" (\n \"year\" real,\n \"tournament\" text,\n \"venue\" text,\n \"result\" text,\n \"distance\" text\n);\n\nQuestion: How far Venue of seoul, south korea is?" }, { "role": "assistant", "content": "SELECT \"distance\" FROM \"achievements\" WHERE \"venue\"='seoul, south korea';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"achievements\" (\n \"year\" real,\n \"tournament\" text,\n \"venue\" text,\n \"result\" text,\n \"distance\" text\n);\n\nQuestion: Which Venue has a Tournament of olympic games with a Result of 4th?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"achievements\" WHERE \"tournament\"='olympic games' AND \"result\"='4th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"achievements\" (\n \"year\" real,\n \"tournament\" text,\n \"venue\" text,\n \"result\" text,\n \"distance\" text\n);\n\nQuestion: What is the Result of Venue of edmonton, canada?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"achievements\" WHERE \"venue\"='edmonton, canada';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\n \"team_1\" text,\n \"agg\" text,\n \"team_2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: What is the 1st leg of Team 2 PSV Eindhoven?" }, { "role": "assistant", "content": "SELECT \"1st_leg\" FROM \"round_of_16\" WHERE \"team_2\"='psv eindhoven';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"game_site\" text\n);\n\nQuestion: Which opponent was played at Forbes Field after week 4?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"game_site\"='forbes field' AND \"week\">4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"game_site\" text\n);\n\nQuestion: Which opponent was played on week 9?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"week\"=9;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"game_site\" text\n);\n\nQuestion: What was the date of the game played at Fenway Park?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"game_site\"='fenway park';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"inter_cities_fairs_cup_uefa_cup_uefa_eur\" (\n \"year\" text,\n \"team\" text,\n \"progress\" text,\n \"score\" text,\n \"opponents\" text\n);\n\nQuestion: Which Opponents have a Year of 1998\u201399, and a Team of aston villa?" }, { "role": "assistant", "content": "SELECT \"opponents\" FROM \"inter_cities_fairs_cup_uefa_cup_uefa_eur\" WHERE \"year\"='1998\u201399' AND \"team\"='aston villa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"inter_cities_fairs_cup_uefa_cup_uefa_eur\" (\n \"year\" text,\n \"team\" text,\n \"progress\" text,\n \"score\" text,\n \"opponents\" text\n);\n\nQuestion: Which Score has Opponents of valencia, and a Year of 2011\u201312?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"inter_cities_fairs_cup_uefa_cup_uefa_eur\" WHERE \"opponents\"='valencia' AND \"year\"='2011\u201312';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"inter_cities_fairs_cup_uefa_cup_uefa_eur\" (\n \"year\" text,\n \"team\" text,\n \"progress\" text,\n \"score\" text,\n \"opponents\" text\n);\n\nQuestion: Which Opponents have a Team of arsenal, and a Year of 1963\u201364?" }, { "role": "assistant", "content": "SELECT \"opponents\" FROM \"inter_cities_fairs_cup_uefa_cup_uefa_eur\" WHERE \"team\"='arsenal' AND \"year\"='1963\u201364';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"inter_cities_fairs_cup_uefa_cup_uefa_eur\" (\n \"year\" text,\n \"team\" text,\n \"progress\" text,\n \"score\" text,\n \"opponents\" text\n);\n\nQuestion: Which Opponents have a Year of 1999\u20132000, and a Team of leeds united?" }, { "role": "assistant", "content": "SELECT \"opponents\" FROM \"inter_cities_fairs_cup_uefa_cup_uefa_eur\" WHERE \"year\"='1999\u20132000' AND \"team\"='leeds united';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"inter_cities_fairs_cup_uefa_cup_uefa_eur\" (\n \"year\" text,\n \"team\" text,\n \"progress\" text,\n \"score\" text,\n \"opponents\" text\n);\n\nQuestion: Which Opponents have a Score of 1\u20132, and a Team of arsenal, and Progress of first round?" }, { "role": "assistant", "content": "SELECT \"opponents\" FROM \"inter_cities_fairs_cup_uefa_cup_uefa_eur\" WHERE \"score\"='1\u20132' AND \"team\"='arsenal' AND \"progress\"='first round';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bischofshofen_5_january\" (\n \"rank\" real,\n \"name\" text,\n \"nationality\" text,\n \"1st_m\" real,\n \"2nd_m\" real,\n \"points\" real,\n \"overall_fht_points\" text,\n \"overall_wc_points_rank\" text\n);\n\nQuestion: How much Rank has a Name of simon ammann, and a 2nd (m) larger than 139?" }, { "role": "assistant", "content": "SELECT COUNT(\"rank\") FROM \"bischofshofen_5_january\" WHERE \"name\"='simon ammann' AND \"2nd_m\">139;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bischofshofen_5_january\" (\n \"rank\" real,\n \"name\" text,\n \"nationality\" text,\n \"1st_m\" real,\n \"2nd_m\" real,\n \"points\" real,\n \"overall_fht_points\" text,\n \"overall_wc_points_rank\" text\n);\n\nQuestion: How much Rank has Points larger than 282.5?" }, { "role": "assistant", "content": "SELECT COUNT(\"rank\") FROM \"bischofshofen_5_january\" WHERE \"points\">282.5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bischofshofen_5_january\" (\n \"rank\" real,\n \"name\" text,\n \"nationality\" text,\n \"1st_m\" real,\n \"2nd_m\" real,\n \"points\" real,\n \"overall_fht_points\" text,\n \"overall_wc_points_rank\" text\n);\n\nQuestion: Which Rank is the highest one that has Points smaller than 256.6?" }, { "role": "assistant", "content": "SELECT MAX(\"rank\") FROM \"bischofshofen_5_january\" WHERE \"points\"<256.6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bischofshofen_5_january\" (\n \"rank\" real,\n \"name\" text,\n \"nationality\" text,\n \"1st_m\" real,\n \"2nd_m\" real,\n \"points\" real,\n \"overall_fht_points\" text,\n \"overall_wc_points_rank\" text\n);\n\nQuestion: Which 2nd (m) is the highest one that has a Nationality of sui, and a Rank smaller than 3?" }, { "role": "assistant", "content": "SELECT MAX(\"2nd_m\") FROM \"bischofshofen_5_january\" WHERE \"nationality\"='sui' AND \"rank\"<3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_3_1996\" (\n \"episode_no\" text,\n \"episode_title\" text,\n \"uk_broadcast_date\" text,\n \"presenter\" text,\n \"countries_visited\" text\n);\n\nQuestion: What is the UK broadcast date of the episode where Chris Bonington was the presenter?" }, { "role": "assistant", "content": "SELECT \"uk_broadcast_date\" FROM \"series_3_1996\" WHERE \"presenter\"='chris bonington';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_3_1996\" (\n \"episode_no\" text,\n \"episode_title\" text,\n \"uk_broadcast_date\" text,\n \"presenter\" text,\n \"countries_visited\" text\n);\n\nQuestion: What is the episode title of the episode with Ben Okri as the presenter?" }, { "role": "assistant", "content": "SELECT \"episode_title\" FROM \"series_3_1996\" WHERE \"presenter\"='ben okri';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_3_1996\" (\n \"episode_no\" text,\n \"episode_title\" text,\n \"uk_broadcast_date\" text,\n \"presenter\" text,\n \"countries_visited\" text\n);\n\nQuestion: Who is the presenter of the episode broadcast in the UK on 1996-09-25?" }, { "role": "assistant", "content": "SELECT \"presenter\" FROM \"series_3_1996\" WHERE \"uk_broadcast_date\"='1996-09-25';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_3_1996\" (\n \"episode_no\" text,\n \"episode_title\" text,\n \"uk_broadcast_date\" text,\n \"presenter\" text,\n \"countries_visited\" text\n);\n\nQuestion: What is the UK broadcast date of the episode with Ben Okri as the presenter?" }, { "role": "assistant", "content": "SELECT \"uk_broadcast_date\" FROM \"series_3_1996\" WHERE \"presenter\"='ben okri';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"february\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"leading_scorer\" text,\n \"record\" text\n);\n\nQuestion: What was the score when the team played at the bobcats?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"february\" WHERE \"home\"='bobcats';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"february\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"leading_scorer\" text,\n \"record\" text\n);\n\nQuestion: What was the score when the Spurs' record was 43-13?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"february\" WHERE \"record\"='43-13';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"gost_7_67_94\" (\n \"country_name\" text,\n \"russian_name\" text,\n \"cyrillic_code\" text,\n \"latin_3_letter_code\" text,\n \"latin_2_letter_code\" text,\n \"numeric_code\" real\n);\n\nQuestion: What is the country's name with a numeric code less than 246 and a Latin 3-letter code of slv?" }, { "role": "assistant", "content": "SELECT \"country_name\" FROM \"gost_7_67_94\" WHERE \"numeric_code\"<246 AND \"latin_3_letter_code\"='slv';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"gost_7_67_94\" (\n \"country_name\" text,\n \"russian_name\" text,\n \"cyrillic_code\" text,\n \"latin_3_letter_code\" text,\n \"latin_2_letter_code\" text,\n \"numeric_code\" real\n);\n\nQuestion: What is the Russian name with lbr as the Latin 3-letter code?" }, { "role": "assistant", "content": "SELECT \"russian_name\" FROM \"gost_7_67_94\" WHERE \"latin_3_letter_code\"='lbr';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"gost_7_67_94\" (\n \"country_name\" text,\n \"russian_name\" text,\n \"cyrillic_code\" text,\n \"latin_3_letter_code\" text,\n \"latin_2_letter_code\" text,\n \"numeric_code\" real\n);\n\nQuestion: What is the country name with a numeric code less than 580 and a dk Latin 2-letter code?" }, { "role": "assistant", "content": "SELECT \"country_name\" FROM \"gost_7_67_94\" WHERE \"numeric_code\"<580 AND \"latin_2_letter_code\"='dk';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"gost_7_67_94\" (\n \"country_name\" text,\n \"russian_name\" text,\n \"cyrillic_code\" text,\n \"latin_3_letter_code\" text,\n \"latin_2_letter_code\" text,\n \"numeric_code\" real\n);\n\nQuestion: What is the Cyrillic code with a cu Latin 2-letter code?" }, { "role": "assistant", "content": "SELECT \"cyrillic_code\" FROM \"gost_7_67_94\" WHERE \"latin_2_letter_code\"='cu';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"dansk_melodi_grand_prix_2008\" (\n \"draw\" real,\n \"artist\" text,\n \"song\" text,\n \"points\" real,\n \"place\" real\n);\n\nQuestion: Name the least place for draw more than 3 and points of 8" }, { "role": "assistant", "content": "SELECT MIN(\"place\") FROM \"dansk_melodi_grand_prix_2008\" WHERE \"draw\">3 AND \"points\"=8;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"dansk_melodi_grand_prix_2008\" (\n \"draw\" real,\n \"artist\" text,\n \"song\" text,\n \"points\" real,\n \"place\" real\n);\n\nQuestion: Name the song for points less than 16 and draw less than 3" }, { "role": "assistant", "content": "SELECT \"song\" FROM \"dansk_melodi_grand_prix_2008\" WHERE \"points\"<16 AND \"draw\"<3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"longest_run_at_number_one\" (\n \"position\" text,\n \"artist\" text,\n \"single\" text,\n \"year\" text,\n \"weeks\" text\n);\n\nQuestion: what is the single of the queen" }, { "role": "assistant", "content": "SELECT \"single\" FROM \"longest_run_at_number_one\" WHERE \"artist\"='queen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"longest_run_at_number_one\" (\n \"position\" text,\n \"artist\" text,\n \"single\" text,\n \"year\" text,\n \"weeks\" text\n);\n\nQuestion: what artist won in 1953" }, { "role": "assistant", "content": "SELECT \"artist\" FROM \"longest_run_at_number_one\" WHERE \"year\"='1953';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"longest_run_at_number_one\" (\n \"position\" text,\n \"artist\" text,\n \"single\" text,\n \"year\" text,\n \"weeks\" text\n);\n\nQuestion: what year did david whitfield win" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"longest_run_at_number_one\" WHERE \"artist\"='david whitfield';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"garmisch_partenkirchen\" (\n \"rank\" real,\n \"name\" text,\n \"nationality\" text,\n \"1st_m\" real,\n \"2nd_m\" real,\n \"points\" real,\n \"overall_fht_points\" text,\n \"overall_wc_points_rank\" text\n);\n\nQuestion: What is the average rank of Roman Koudelka, who has less than 274.4 points?" }, { "role": "assistant", "content": "SELECT AVG(\"rank\") FROM \"garmisch_partenkirchen\" WHERE \"points\"<274.4 AND \"name\"='roman koudelka';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"garmisch_partenkirchen\" (\n \"rank\" real,\n \"name\" text,\n \"nationality\" text,\n \"1st_m\" real,\n \"2nd_m\" real,\n \"points\" real,\n \"overall_fht_points\" text,\n \"overall_wc_points_rank\" text\n);\n\nQuestion: What is the lowest rank of the player from Aut with a 1st greater than 132?" }, { "role": "assistant", "content": "SELECT MIN(\"rank\") FROM \"garmisch_partenkirchen\" WHERE \"nationality\"='aut' AND \"1st_m\">132;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"garmisch_partenkirchen\" (\n \"rank\" real,\n \"name\" text,\n \"nationality\" text,\n \"1st_m\" real,\n \"2nd_m\" real,\n \"points\" real,\n \"overall_fht_points\" text,\n \"overall_wc_points_rank\" text\n);\n\nQuestion: What is the overall WC points of the player from Pol?" }, { "role": "assistant", "content": "SELECT \"overall_wc_points_rank\" FROM \"garmisch_partenkirchen\" WHERE \"nationality\"='pol';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"garmisch_partenkirchen\" (\n \"rank\" real,\n \"name\" text,\n \"nationality\" text,\n \"1st_m\" real,\n \"2nd_m\" real,\n \"points\" real,\n \"overall_fht_points\" text,\n \"overall_wc_points_rank\" text\n);\n\nQuestion: What is the average rank of Gregor Schlierenzauer, who had a 1st greater than 132?" }, { "role": "assistant", "content": "SELECT AVG(\"rank\") FROM \"garmisch_partenkirchen\" WHERE \"name\"='gregor schlierenzauer' AND \"1st_m\">132;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"winner\" text,\n \"score\" text,\n \"winner_s_share\" text\n);\n\nQuestion: What is the winners share ($) that has atlanta classic as the tournament?" }, { "role": "assistant", "content": "SELECT \"winner_s_share\" FROM \"tournament_results\" WHERE \"tournament\"='atlanta classic';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"winner\" text,\n \"score\" text,\n \"winner_s_share\" text\n);\n\nQuestion: What is the winners share ($) that has u.s. open as the tournament?" }, { "role": "assistant", "content": "SELECT \"winner_s_share\" FROM \"tournament_results\" WHERE \"tournament\"='u.s. open';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"november\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: How many points was before game 14?" }, { "role": "assistant", "content": "SELECT SUM(\"points\") FROM \"regular_season\" WHERE \"game\"<14;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"november\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: What is the average points on November 6?" }, { "role": "assistant", "content": "SELECT AVG(\"points\") FROM \"regular_season\" WHERE \"november\"=6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"torneio_rio_s_o_paulo\" (\n \"position\" real,\n \"team\" text,\n \"points\" real,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"against\" real,\n \"difference\" text\n);\n\nQuestion: Which average's against score has 2 as a difference and a lost of 5?" }, { "role": "assistant", "content": "SELECT AVG(\"against\") FROM \"torneio_rio_s_o_paulo\" WHERE \"difference\"='2' AND \"lost\"=5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"torneio_rio_s_o_paulo\" (\n \"position\" real,\n \"team\" text,\n \"points\" real,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"against\" real,\n \"difference\" text\n);\n\nQuestion: How many positions had a difference of - 4 and an against of less than 24?" }, { "role": "assistant", "content": "SELECT COUNT(\"position\") FROM \"torneio_rio_s_o_paulo\" WHERE \"difference\"='- 4' AND \"against\"<24;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"torneio_rio_s_o_paulo\" (\n \"position\" real,\n \"team\" text,\n \"points\" real,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"against\" real,\n \"difference\" text\n);\n\nQuestion: What is the smallest lost when position is larger than 6, drawn is 7, and the points stat is less than 15?" }, { "role": "assistant", "content": "SELECT MIN(\"lost\") FROM \"torneio_rio_s_o_paulo\" WHERE \"position\">6 AND \"drawn\"=7 AND \"points\"<15;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"torneio_rio_s_o_paulo\" (\n \"position\" real,\n \"team\" text,\n \"points\" real,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"against\" real,\n \"difference\" text\n);\n\nQuestion: What is the largest played number when the difference is - 8 and position is more than 8?" }, { "role": "assistant", "content": "SELECT MAX(\"played\") FROM \"torneio_rio_s_o_paulo\" WHERE \"difference\"='- 8' AND \"position\">8;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"torneio_rio_s_o_paulo\" (\n \"position\" real,\n \"team\" text,\n \"points\" real,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"against\" real,\n \"difference\" text\n);\n\nQuestion: What is the mean drawn when the difference is 0 and the against stat is more than 31?" }, { "role": "assistant", "content": "SELECT AVG(\"drawn\") FROM \"torneio_rio_s_o_paulo\" WHERE \"difference\"='0' AND \"against\">31;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winners_of_the_orchid_handicap_since_199\" (\n \"year\" real,\n \"winner\" text,\n \"jockey\" text,\n \"trainer\" text,\n \"owner\" text,\n \"time\" text\n);\n\nQuestion: what is the winner of meridiana" }, { "role": "assistant", "content": "SELECT \"owner\" FROM \"winners_of_the_orchid_handicap_since_199\" WHERE \"winner\"='meridiana';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"number\" real,\n \"name\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"class\" text,\n \"hometown\" text\n);\n\nQuestion: Number of 13 that has what highest weight?" }, { "role": "assistant", "content": "SELECT MAX(\"weight\") FROM \"roster\" WHERE \"number\"=13;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"number\" real,\n \"name\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"class\" text,\n \"hometown\" text\n);\n\nQuestion: Weight of 220 has what class?" }, { "role": "assistant", "content": "SELECT \"class\" FROM \"roster\" WHERE \"weight\"=220;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"number\" real,\n \"name\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"class\" text,\n \"hometown\" text\n);\n\nQuestion: Name of byron geis, and a Weight smaller than 195 involves what average number?" }, { "role": "assistant", "content": "SELECT AVG(\"number\") FROM \"roster\" WHERE \"name\"='byron geis' AND \"weight\"<195;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"march\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"record\" text\n);\n\nQuestion: What was the record on March 22?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"march\" WHERE \"date\"='march 22';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule_and_results\" (\n \"game\" real,\n \"february\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: What day in february was game 53?" }, { "role": "assistant", "content": "SELECT AVG(\"february\") FROM \"schedule_and_results\" WHERE \"game\"=53;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule_and_results\" (\n \"game\" real,\n \"february\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: What is the team's record on februrary 23?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"schedule_and_results\" WHERE \"february\"=23;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"malta_in_the_eurovision_song_contest_200\" (\n \"draw\" real,\n \"artist\" text,\n \"song\" text,\n \"jury\" real,\n \"televote\" real,\n \"total\" real,\n \"place\" real\n);\n\nQuestion: Which Place is the lowest one that has a Total smaller than 24, and a Draw larger than 7?" }, { "role": "assistant", "content": "SELECT MIN(\"place\") FROM \"malta_in_the_eurovision_song_contest_200\" WHERE \"total\"<24 AND \"draw\">7;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"complete_international_formula_3000_resu\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"points\" real\n);\n\nQuestion: with lola t86/50 chassis and less than 7 points what is the entrant?" }, { "role": "assistant", "content": "SELECT \"entrant\" FROM \"complete_international_formula_3000_resu\" WHERE \"points\"<7 AND \"chassis\"='lola t86/50';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"complete_international_formula_3000_resu\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"points\" real\n);\n\nQuestion: after 1987 and entrant of first racing what is the highest points?" }, { "role": "assistant", "content": "SELECT MAX(\"points\") FROM \"complete_international_formula_3000_resu\" WHERE \"entrant\"='first racing' AND \"year\">1987;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"complete_international_formula_3000_resu\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"points\" real\n);\n\nQuestion: with year greater than 1988 what is the total number of points?" }, { "role": "assistant", "content": "SELECT COUNT(\"points\") FROM \"complete_international_formula_3000_resu\" WHERE \"year\">1988;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"complete_international_formula_3000_resu\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"points\" real\n);\n\nQuestion: what is the points total for forti corse?" }, { "role": "assistant", "content": "SELECT SUM(\"points\") FROM \"complete_international_formula_3000_resu\" WHERE \"entrant\"='forti corse';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"iupap_s_uno_proposal\" (\n \"coefficient\" text,\n \"parts_per_example\" text,\n \"uno_equiv\" text,\n \"symbol_form\" text,\n \"value_of_quantity\" text\n);\n\nQuestion: What is the Parts-per example of 2\u00d710 \u22126?" }, { "role": "assistant", "content": "SELECT \"parts_per_example\" FROM \"iupap_s_uno_proposal\" WHERE \"value_of_quantity\"='2\u00d710 \u22126';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"iupap_s_uno_proposal\" (\n \"coefficient\" text,\n \"parts_per_example\" text,\n \"uno_equiv\" text,\n \"symbol_form\" text,\n \"value_of_quantity\" text\n);\n\nQuestion: What is the Coefficient of 2 ppt?" }, { "role": "assistant", "content": "SELECT \"coefficient\" FROM \"iupap_s_uno_proposal\" WHERE \"parts_per_example\"='2 ppt';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"date\" text,\n \"label\" text,\n \"region\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: what is the format of catalog 865 821-1?" }, { "role": "assistant", "content": "SELECT \"format\" FROM \"release_history\" WHERE \"catalog\"='865 821-1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"all_japan_university_rugby_championships\" (\n \"title\" text,\n \"season\" text,\n \"winner\" text,\n \"score\" text,\n \"runner_up\" text,\n \"venue\" text,\n \"attendance\" text\n);\n\nQuestion: What season had Kanto Gakuin University as the winner, with an attendance of n/a, and a title of 37th?" }, { "role": "assistant", "content": "SELECT \"season\" FROM \"all_japan_university_rugby_championships\" WHERE \"winner\"='kanto gakuin university' AND \"attendance\"='n/a' AND \"title\"='37th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"all_japan_university_rugby_championships\" (\n \"title\" text,\n \"season\" text,\n \"winner\" text,\n \"score\" text,\n \"runner_up\" text,\n \"venue\" text,\n \"attendance\" text\n);\n\nQuestion: What was the title for the game with an attendance of n/a with the runner-up being Waseda, and a season of 1995-6 details?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"all_japan_university_rugby_championships\" WHERE \"attendance\"='n/a' AND \"runner_up\"='waseda' AND \"season\"='1995-6 details';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"all_japan_university_rugby_championships\" (\n \"title\" text,\n \"season\" text,\n \"winner\" text,\n \"score\" text,\n \"runner_up\" text,\n \"venue\" text,\n \"attendance\" text\n);\n\nQuestion: What season has a runner-up of waseda, and a title of 47th?" }, { "role": "assistant", "content": "SELECT \"season\" FROM \"all_japan_university_rugby_championships\" WHERE \"runner_up\"='waseda' AND \"title\"='47th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"all_japan_university_rugby_championships\" (\n \"title\" text,\n \"season\" text,\n \"winner\" text,\n \"score\" text,\n \"runner_up\" text,\n \"venue\" text,\n \"attendance\" text\n);\n\nQuestion: Who was the winner in the game that had Teikyo as the runner-up?" }, { "role": "assistant", "content": "SELECT \"winner\" FROM \"all_japan_university_rugby_championships\" WHERE \"runner_up\"='teikyo';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"all_japan_university_rugby_championships\" (\n \"title\" text,\n \"season\" text,\n \"winner\" text,\n \"score\" text,\n \"runner_up\" text,\n \"venue\" text,\n \"attendance\" text\n);\n\nQuestion: Who was the winner in the game that had a title of 32nd, and Waseda as the runner-up?" }, { "role": "assistant", "content": "SELECT \"winner\" FROM \"all_japan_university_rugby_championships\" WHERE \"runner_up\"='waseda' AND \"title\"='32nd';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"tv_time\" text,\n \"attendance\" text\n);\n\nQuestion: what is the date on week 6" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"week\"=6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"main_transmitters\" (\n \"region_served\" text,\n \"city\" text,\n \"channels_analog_digital\" text,\n \"first_air_date\" text,\n \"erp_analog_digital\" text,\n \"haat_analog_digital_1\" text,\n \"transmitter_location\" text\n);\n\nQuestion: Which City has 600kw 500kw ERP (Analog/ Digital)?" }, { "role": "assistant", "content": "SELECT \"city\" FROM \"main_transmitters\" WHERE \"erp_analog_digital\"='600kw 500kw';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"main_transmitters\" (\n \"region_served\" text,\n \"city\" text,\n \"channels_analog_digital\" text,\n \"first_air_date\" text,\n \"erp_analog_digital\" text,\n \"haat_analog_digital_1\" text,\n \"transmitter_location\" text\n);\n\nQuestion: Which Region served has of 1176 m 1190 m HAAT (Analog/ Digital) 1?" }, { "role": "assistant", "content": "SELECT \"region_served\" FROM \"main_transmitters\" WHERE \"haat_analog_digital_1\"='1176 m 1190 m';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"main_transmitters\" (\n \"region_served\" text,\n \"city\" text,\n \"channels_analog_digital\" text,\n \"first_air_date\" text,\n \"erp_analog_digital\" text,\n \"haat_analog_digital_1\" text,\n \"transmitter_location\" text\n);\n\nQuestion: Which City has 600kw 500kw ERP ?" }, { "role": "assistant", "content": "SELECT \"city\" FROM \"main_transmitters\" WHERE \"erp_analog_digital\"='600kw 500kw';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"main_transmitters\" (\n \"region_served\" text,\n \"city\" text,\n \"channels_analog_digital\" text,\n \"first_air_date\" text,\n \"erp_analog_digital\" text,\n \"haat_analog_digital_1\" text,\n \"transmitter_location\" text\n);\n\nQuestion: Which City has a 360kw 90kw ERP?" }, { "role": "assistant", "content": "SELECT \"city\" FROM \"main_transmitters\" WHERE \"erp_analog_digital\"='360kw 90kw';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"series\" text\n);\n\nQuestion: What was the series standing for games over 4?" }, { "role": "assistant", "content": "SELECT \"series\" FROM \"playoffs\" WHERE \"game\">4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"series\" text\n);\n\nQuestion: What is the game number held on May 20?" }, { "role": "assistant", "content": "SELECT AVG(\"game\") FROM \"playoffs\" WHERE \"date\"='may 20';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What was the score of the game when the Indians ended up with a record of 55-51?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"record\"='55-51';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: On which date did the Indians have a record of 67-58" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"game_log\" WHERE \"record\"='67-58';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"awards_and_nominations\" (\n \"award\" text,\n \"year\" real,\n \"category\" text,\n \"work\" text,\n \"result\" text\n);\n\nQuestion: Which Work has a Result of nominated, and an Award of contigo award, and a Year smaller than 2002?" }, { "role": "assistant", "content": "SELECT \"work\" FROM \"awards_and_nominations\" WHERE \"result\"='nominated' AND \"award\"='contigo award' AND \"year\"<2002;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"awards_and_nominations\" (\n \"award\" text,\n \"year\" real,\n \"category\" text,\n \"work\" text,\n \"result\" text\n);\n\nQuestion: How many years have an Award of press award?" }, { "role": "assistant", "content": "SELECT COUNT(\"year\") FROM \"awards_and_nominations\" WHERE \"award\"='press award';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"awards_and_nominations\" (\n \"award\" text,\n \"year\" real,\n \"category\" text,\n \"work\" text,\n \"result\" text\n);\n\nQuestion: Which Award has a Year smaller than 2004, and a Work of the clone, and a Result of won, and a Category of favourite actress?" }, { "role": "assistant", "content": "SELECT \"award\" FROM \"awards_and_nominations\" WHERE \"year\"<2004 AND \"work\"='the clone' AND \"result\"='won' AND \"category\"='favourite actress';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"awards_and_nominations\" (\n \"award\" text,\n \"year\" real,\n \"category\" text,\n \"work\" text,\n \"result\" text\n);\n\nQuestion: Which Year is the highest one that has a Work of the clone, and an Award of contigo award?" }, { "role": "assistant", "content": "SELECT MAX(\"year\") FROM \"awards_and_nominations\" WHERE \"work\"='the clone' AND \"award\"='contigo award';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1990s\" (\n \"spacecraft\" text,\n \"destination\" text,\n \"launched\" text,\n \"closest_approach\" text,\n \"time_elapsed\" text\n);\n\nQuestion: With the Destination of Jupiter and the Closest approach of 4 February 2004, what is the Time elapsed?" }, { "role": "assistant", "content": "SELECT \"time_elapsed\" FROM \"1990s\" WHERE \"destination\"='jupiter' AND \"closest_approach\"='4 february 2004';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1990s\" (\n \"spacecraft\" text,\n \"destination\" text,\n \"launched\" text,\n \"closest_approach\" text,\n \"time_elapsed\" text\n);\n\nQuestion: What Time elapsed has both the Launched of 15 October 1997 and the Closest approach of 24 June 1999?" }, { "role": "assistant", "content": "SELECT \"time_elapsed\" FROM \"1990s\" WHERE \"launched\"='15 october 1997' AND \"closest_approach\"='24 june 1999';" } ]