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 \"draft_picks\" (\n \"round\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"college_junior_club_team_league\" text\n);\n\nQuestion: In round 9 what was the nationality?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"draft_picks\" WHERE \"round\"='9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"college_junior_club_team_league\" text\n);\n\nQuestion: In round 3 what was the position?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"draft_picks\" WHERE \"round\"='3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"college_junior_club_team_league\" text\n);\n\nQuestion: Who has a nationality of Czech Republic and a position of right wing?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"draft_picks\" WHERE \"position\"='right wing' AND \"nationality\"='czech republic';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"won_lost_records\" (\n \"quarterback\" text,\n \"uniform_no_s\" real,\n \"games_started\" real,\n \"wins\" real,\n \"losses\" real,\n \"ties\" real,\n \"winning_pct\" real\n);\n\nQuestion: What is the highest winning pct from a team with wins less than 22, losses greater than 4, ties less than 2 and games started greater than 11?" }, { "role": "assistant", "content": "SELECT MAX(\"winning_pct\") FROM \"won_lost_records\" WHERE \"losses\">4 AND \"ties\"<2 AND \"games_started\">11 AND \"wins\"<22;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"titles_by_country\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: Gold that has a Rank of 6, and a Bronze larger than 0 had what total number of gold?" }, { "role": "assistant", "content": "SELECT COUNT(\"gold\") FROM \"titles_by_country\" WHERE \"rank\"='6' AND \"bronze\">0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"titles_by_country\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: Total of 5 had what bronze?" }, { "role": "assistant", "content": "SELECT \"bronze\" FROM \"titles_by_country\" WHERE \"total\"=5;" } ]
[ { "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 \"event\" text\n);\n\nQuestion: In which tournament did he place 20th?" }, { "role": "assistant", "content": "SELECT \"tournament\" FROM \"achievements\" WHERE \"result\"='20th';" } ]
[ { "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 \"event\" text\n);\n\nQuestion: What the result for the hypo-meeting tournament in 1994?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"achievements\" WHERE \"year\"=1994 AND \"tournament\"='hypo-meeting';" } ]
[ { "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 \"event\" text\n);\n\nQuestion: What was the result in 1995?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"achievements\" WHERE \"year\"=1995;" } ]
[ { "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 \"march\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: After March 19, what's the score of game 67?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"regular_season\" WHERE \"march\">19 AND \"game\"=67;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nfl_championships\" (\n \"game\" text,\n \"date\" text,\n \"referee\" text,\n \"umpire\" text,\n \"head_linesman\" text,\n \"line_judge\" text,\n \"field_judge\" text,\n \"back_judge\" text\n);\n\nQuestion: Who is the head linesman of the game on 1 February 2009?" }, { "role": "assistant", "content": "SELECT \"head_linesman\" FROM \"nfl_championships\" WHERE \"date\"='1 february 2009';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nfl_championships\" (\n \"game\" text,\n \"date\" text,\n \"referee\" text,\n \"umpire\" text,\n \"head_linesman\" text,\n \"line_judge\" text,\n \"field_judge\" text,\n \"back_judge\" text\n);\n\nQuestion: What is the date of the game where the line judge was Bob Beeks, the head linesman was Jerry Bergman, and Paul Baetz was the back judge?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"nfl_championships\" WHERE \"line_judge\"='bob beeks' AND \"head_linesman\"='jerry bergman' AND \"back_judge\"='paul baetz';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nfl_championships\" (\n \"game\" text,\n \"date\" text,\n \"referee\" text,\n \"umpire\" text,\n \"head_linesman\" text,\n \"line_judge\" text,\n \"field_judge\" text,\n \"back_judge\" text\n);\n\nQuestion: Which game was on 14 January 1973?" }, { "role": "assistant", "content": "SELECT \"game\" FROM \"nfl_championships\" WHERE \"date\"='14 january 1973';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nfl_championships\" (\n \"game\" text,\n \"date\" text,\n \"referee\" text,\n \"umpire\" text,\n \"head_linesman\" text,\n \"line_judge\" text,\n \"field_judge\" text,\n \"back_judge\" text\n);\n\nQuestion: Who was the line judge at the game where Scott Green was referee?" }, { "role": "assistant", "content": "SELECT \"line_judge\" FROM \"nfl_championships\" WHERE \"referee\"='scott green';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nfl_championships\" (\n \"game\" text,\n \"date\" text,\n \"referee\" text,\n \"umpire\" text,\n \"head_linesman\" text,\n \"line_judge\" text,\n \"field_judge\" text,\n \"back_judge\" text\n);\n\nQuestion: Who is the head linesman at game xxxv?" }, { "role": "assistant", "content": "SELECT \"head_linesman\" FROM \"nfl_championships\" WHERE \"game\"='xxxv';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nfl_championships\" (\n \"game\" text,\n \"date\" text,\n \"referee\" text,\n \"umpire\" text,\n \"head_linesman\" text,\n \"line_judge\" text,\n \"field_judge\" text,\n \"back_judge\" text\n);\n\nQuestion: What game had Al Jury as field judge?" }, { "role": "assistant", "content": "SELECT \"game\" FROM \"nfl_championships\" WHERE \"field_judge\"='al jury';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"running_timetables\" (\n \"station_code\" text,\n \"station\" text,\n \"arrival\" text,\n \"departure\" text,\n \"kilometers\" real\n);\n\nQuestion: What's listed for Departure that has 1676 listed for the Kilometers?" }, { "role": "assistant", "content": "SELECT \"departure\" FROM \"running_timetables\" WHERE \"kilometers\"=1676;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"running_timetables\" (\n \"station_code\" text,\n \"station\" text,\n \"arrival\" text,\n \"departure\" text,\n \"kilometers\" real\n);\n\nQuestion: What is the sum of Kilometers that has a Station Code of KGQ?" }, { "role": "assistant", "content": "SELECT COUNT(\"kilometers\") FROM \"running_timetables\" WHERE \"station_code\"='kgq';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"running_timetables\" (\n \"station_code\" text,\n \"station\" text,\n \"arrival\" text,\n \"departure\" text,\n \"kilometers\" real\n);\n\nQuestion: What's the Kilometers listed that also has the Station Code of Kuda?" }, { "role": "assistant", "content": "SELECT \"kilometers\" FROM \"running_timetables\" WHERE \"station_code\"='kuda';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"running_timetables\" (\n \"station_code\" text,\n \"station\" text,\n \"arrival\" text,\n \"departure\" text,\n \"kilometers\" real\n);\n\nQuestion: What's listed for the Station Code that has the Arrival of 02:20?" }, { "role": "assistant", "content": "SELECT \"station_code\" FROM \"running_timetables\" WHERE \"arrival\"='02:20';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"running_timetables\" (\n \"station_code\" text,\n \"station\" text,\n \"arrival\" text,\n \"departure\" text,\n \"kilometers\" real\n);\n\nQuestion: What is listede for Departure that also has a Station Code of CLT?" }, { "role": "assistant", "content": "SELECT \"departure\" FROM \"running_timetables\" WHERE \"station_code\"='clt';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"islands_under_square_miles_km\" (\n \"island_s_name\" text,\n \"area_sq_mi\" real,\n \"area_km_2\" real,\n \"location\" text,\n \"population_2000\" text\n);\n\nQuestion: What is the smallest area with 45 population?" }, { "role": "assistant", "content": "SELECT MIN(\"area_km_2\") FROM \"islands_under_square_miles_km\" WHERE \"population_2000\"='45';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"islands_under_square_miles_km\" (\n \"island_s_name\" text,\n \"area_sq_mi\" real,\n \"area_km_2\" real,\n \"location\" text,\n \"population_2000\" text\n);\n\nQuestion: What is the area located in Rhode Island with more than 38 sq mi area?" }, { "role": "assistant", "content": "SELECT AVG(\"area_km_2\") FROM \"islands_under_square_miles_km\" WHERE \"location\"='rhode island' AND \"area_sq_mi\">38;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"islands_under_square_miles_km\" (\n \"island_s_name\" text,\n \"area_sq_mi\" real,\n \"area_km_2\" real,\n \"location\" text,\n \"population_2000\" text\n);\n\nQuestion: What is the average area in New York that is larger than 55 sq mi?" }, { "role": "assistant", "content": "SELECT AVG(\"area_km_2\") FROM \"islands_under_square_miles_km\" WHERE \"area_sq_mi\">55 AND \"location\"='new york';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" text,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: Which event was in Tokyo, Japan and had an opponent of rumina sato?" }, { "role": "assistant", "content": "SELECT \"event\" FROM \"mixed_martial_arts_record\" WHERE \"location\"='tokyo, japan' AND \"opponent\"='rumina sato';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" text,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: Which round was 2:30?" }, { "role": "assistant", "content": "SELECT \"round\" FROM \"mixed_martial_arts_record\" WHERE \"time\"='2:30';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" text,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: Which event had the opponent of shinya aoki and was at 4:56?" }, { "role": "assistant", "content": "SELECT \"event\" FROM \"mixed_martial_arts_record\" WHERE \"opponent\"='shinya aoki' AND \"time\"='4:56';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" text,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: Which method did pride bushido 10 have ?" }, { "role": "assistant", "content": "SELECT \"method\" FROM \"mixed_martial_arts_record\" WHERE \"event\"='pride bushido 10';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"grand_slam_record\" (\n \"event\" text,\n \"2006_07\" text,\n \"2007_08\" text,\n \"2008_09\" text,\n \"2009_10\" text,\n \"2010_11\" text,\n \"2012_13\" text\n);\n\nQuestion: Which 2008\u201309 has an Event of autumn gold?" }, { "role": "assistant", "content": "SELECT \"2008_09\" FROM \"grand_slam_record\" WHERE \"event\"='autumn gold';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"grand_slam_record\" (\n \"event\" text,\n \"2006_07\" text,\n \"2007_08\" text,\n \"2008_09\" text,\n \"2009_10\" text,\n \"2010_11\" text,\n \"2012_13\" text\n);\n\nQuestion: Which 2009\u201310 has a 2012\u201313 of r16?" }, { "role": "assistant", "content": "SELECT \"2009_10\" FROM \"grand_slam_record\" WHERE \"2012_13\"='r16';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"grand_slam_record\" (\n \"event\" text,\n \"2006_07\" text,\n \"2007_08\" text,\n \"2008_09\" text,\n \"2009_10\" text,\n \"2010_11\" text,\n \"2012_13\" text\n);\n\nQuestion: Which 2008\u201309 has a 2012\u201313 of q, and a 2006\u201307 of q, and a 2007\u201308 of qf?" }, { "role": "assistant", "content": "SELECT \"2008_09\" FROM \"grand_slam_record\" WHERE \"2012_13\"='q' AND \"2006_07\"='q' AND \"2007_08\"='qf';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"grand_slam_record\" (\n \"event\" text,\n \"2006_07\" text,\n \"2007_08\" text,\n \"2008_09\" text,\n \"2009_10\" text,\n \"2010_11\" text,\n \"2012_13\" text\n);\n\nQuestion: Which 2007\u201308 has a 2009\u201310 of dnp?" }, { "role": "assistant", "content": "SELECT \"2007_08\" FROM \"grand_slam_record\" WHERE \"2009_10\"='dnp';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"campeonato_brasileiro_s_rie_a\" (\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 Drawn has a Team of internacional-sp?" }, { "role": "assistant", "content": "SELECT SUM(\"drawn\") FROM \"campeonato_brasileiro_s_rie_a\" WHERE \"team\"='internacional-sp';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"campeonato_brasileiro_s_rie_a\" (\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 much Lost has a Drawn larger than 5, and a Played larger than 18?" }, { "role": "assistant", "content": "SELECT SUM(\"lost\") FROM \"campeonato_brasileiro_s_rie_a\" WHERE \"drawn\">5 AND \"played\">18;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"campeonato_brasileiro_s_rie_a\" (\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 Drawn is the highest one that has a Played smaller than 18?" }, { "role": "assistant", "content": "SELECT MAX(\"drawn\") FROM \"campeonato_brasileiro_s_rie_a\" WHERE \"played\"<18;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"campeonato_brasileiro_s_rie_a\" (\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 Drawn is the highest one that has an Against larger than 15, and Points smaller than 15, and a Lost smaller than 9?" }, { "role": "assistant", "content": "SELECT MAX(\"drawn\") FROM \"campeonato_brasileiro_s_rie_a\" WHERE \"against\">15 AND \"points\"<15 AND \"lost\"<9;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"timeline_of_tallest_buildings\" (\n \"name\" text,\n \"street_address\" text,\n \"years_as_tallest\" text,\n \"height_feet_m\" text,\n \"floors\" real\n);\n\nQuestion: What's the least amount of floors at 921 sw sixth avenue?" }, { "role": "assistant", "content": "SELECT MIN(\"floors\") FROM \"timeline_of_tallest_buildings\" WHERE \"street_address\"='921 sw sixth avenue';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"timeline_of_tallest_buildings\" (\n \"name\" text,\n \"street_address\" text,\n \"years_as_tallest\" text,\n \"height_feet_m\" text,\n \"floors\" real\n);\n\nQuestion: What's the address of the union bank of California tower?" }, { "role": "assistant", "content": "SELECT \"street_address\" FROM \"timeline_of_tallest_buildings\" WHERE \"name\"='union bank of california tower';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"timeline_of_tallest_buildings\" (\n \"name\" text,\n \"street_address\" text,\n \"years_as_tallest\" text,\n \"height_feet_m\" text,\n \"floors\" real\n);\n\nQuestion: What were the years that the building at 200 sw harrison was considered to be the tallest building?" }, { "role": "assistant", "content": "SELECT \"years_as_tallest\" FROM \"timeline_of_tallest_buildings\" WHERE \"street_address\"='200 sw harrison';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"overall_results\" (\n \"position\" real,\n \"pilot\" text,\n \"country\" text,\n \"glider\" text,\n \"points\" real\n);\n\nQuestion: What is the smallest position with less than 7 points piloted by Didier Hauss?" }, { "role": "assistant", "content": "SELECT MIN(\"position\") FROM \"overall_results\" WHERE \"points\"<7 AND \"pilot\"='didier hauss';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_finals\" (\n \"season\" text,\n \"winner\" text,\n \"result\" text,\n \"runner_up\" text,\n \"final_venue\" text\n);\n\nQuestion: During what Season was the Final Venue at Sandy Lane with Kiveton Park as the Winner?" }, { "role": "assistant", "content": "SELECT \"season\" FROM \"list_of_finals\" WHERE \"winner\"='kiveton park' AND \"final_venue\"='sandy lane';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_finals\" (\n \"season\" text,\n \"winner\" text,\n \"result\" text,\n \"runner_up\" text,\n \"final_venue\" text\n);\n\nQuestion: What was the Runner-up during the 2005-06 Season with Kiveton Park as the Winner?" }, { "role": "assistant", "content": "SELECT \"runner_up\" FROM \"list_of_finals\" WHERE \"winner\"='kiveton park' AND \"season\"='2005-06';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_finals\" (\n \"season\" text,\n \"winner\" text,\n \"result\" text,\n \"runner_up\" text,\n \"final_venue\" text\n);\n\nQuestion: What was the Result in Green Lane with Kirkburton as the Runner-up?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"list_of_finals\" WHERE \"runner_up\"='kirkburton' AND \"final_venue\"='green lane';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_finals\" (\n \"season\" text,\n \"winner\" text,\n \"result\" text,\n \"runner_up\" text,\n \"final_venue\" text\n);\n\nQuestion: What was the Result in the 2005-06 Season?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"list_of_finals\" WHERE \"season\"='2005-06';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_finals\" (\n \"season\" text,\n \"winner\" text,\n \"result\" text,\n \"runner_up\" text,\n \"final_venue\" text\n);\n\nQuestion: What was the Final Venue having Sheffield Reserves as the Winner?" }, { "role": "assistant", "content": "SELECT \"final_venue\" FROM \"list_of_finals\" WHERE \"winner\"='sheffield reserves';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: What is the total number of Round that has a Time of 6:04?" }, { "role": "assistant", "content": "SELECT SUM(\"round\") FROM \"mixed_martial_arts_record\" WHERE \"time\"='6:04';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: What Round has the Method of Submission (Single Wing Choke)?" }, { "role": "assistant", "content": "SELECT \"round\" FROM \"mixed_martial_arts_record\" WHERE \"method\"='submission (single wing choke)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"translators\" (\n \"call_sign\" text,\n \"frequency_m_hz\" real,\n \"city_of_license\" text,\n \"erp_w\" real,\n \"class\" text,\n \"fcc_info\" text\n);\n\nQuestion: Which Class has a Frequency MHz larger than 91.5, and a City of license of hyannis, nebraska?" }, { "role": "assistant", "content": "SELECT \"class\" FROM \"translators\" WHERE \"frequency_m_hz\">91.5 AND \"city_of_license\"='hyannis, nebraska';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"translators\" (\n \"call_sign\" text,\n \"frequency_m_hz\" real,\n \"city_of_license\" text,\n \"erp_w\" real,\n \"class\" text,\n \"fcc_info\" text\n);\n\nQuestion: Which Class has a ERP W larger than 205, and a Frequency MHz smaller than 93.9, and a Call sign of k210cb?" }, { "role": "assistant", "content": "SELECT \"class\" FROM \"translators\" WHERE \"erp_w\">205 AND \"frequency_m_hz\"<93.9 AND \"call_sign\"='k210cb';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"translators\" (\n \"call_sign\" text,\n \"frequency_m_hz\" real,\n \"city_of_license\" text,\n \"erp_w\" real,\n \"class\" text,\n \"fcc_info\" text\n);\n\nQuestion: Which Frequency MHz that has a ERP W larger than 205, and a Call sign of k230ap?" }, { "role": "assistant", "content": "SELECT MAX(\"frequency_m_hz\") FROM \"translators\" WHERE \"erp_w\">205 AND \"call_sign\"='k230ap';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"translators\" (\n \"call_sign\" text,\n \"frequency_m_hz\" real,\n \"city_of_license\" text,\n \"erp_w\" real,\n \"class\" text,\n \"fcc_info\" text\n);\n\nQuestion: Which Frequency MHz has a ERP W of 250?" }, { "role": "assistant", "content": "SELECT MAX(\"frequency_m_hz\") FROM \"translators\" WHERE \"erp_w\"=250;" } ]
[ { "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 \"opponent\" text,\n \"score\" text,\n \"location\" text,\n \"record\" text\n);\n\nQuestion: What was the date of game 81?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"game_log\" WHERE \"game\"=81;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_13_6_7\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: WHich Surface has an Opponent of gustavo kuerten?" }, { "role": "assistant", "content": "SELECT \"surface\" FROM \"singles_13_6_7\" WHERE \"opponent\"='gustavo kuerten';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_13_6_7\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: Which Surface has a Tournament of st. petersburg , russia?" }, { "role": "assistant", "content": "SELECT \"surface\" FROM \"singles_13_6_7\" WHERE \"tournament\"='st. petersburg , russia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_13_6_7\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: When is the Surface of hard (i), and a Tournament of brighton , united kingdom taken?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"singles_13_6_7\" WHERE \"surface\"='hard (i)' AND \"tournament\"='brighton , united kingdom';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_13_6_7\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: Which Opponent has a Score of 3\u20136, 5\u20137?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"singles_13_6_7\" WHERE \"score\"='3\u20136, 5\u20137';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_13_6_7\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: When has a Tournament of palermo , italy?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"singles_13_6_7\" WHERE \"tournament\"='palermo , italy';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_13_6_7\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: Which Opponent is on 29 september 1997?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"singles_13_6_7\" WHERE \"date\"='29 september 1997';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cosmic_call_messages\" (\n \"designation_hd\" text,\n \"constellation\" text,\n \"date_sent\" text,\n \"arrival_date\" text,\n \"message\" text\n);\n\nQuestion: Which constellation has hd 75732 as a destignation HD?" }, { "role": "assistant", "content": "SELECT \"constellation\" FROM \"cosmic_call_messages\" WHERE \"designation_hd\"='hd 75732';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cosmic_call_messages\" (\n \"designation_hd\" text,\n \"constellation\" text,\n \"date_sent\" text,\n \"arrival_date\" text,\n \"message\" text\n);\n\nQuestion: What message has hd 186408 as a designation HD?" }, { "role": "assistant", "content": "SELECT \"message\" FROM \"cosmic_call_messages\" WHERE \"designation_hd\"='hd 186408';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cosmic_call_messages\" (\n \"designation_hd\" text,\n \"constellation\" text,\n \"date_sent\" text,\n \"arrival_date\" text,\n \"message\" text\n);\n\nQuestion: What date sent has cygnus as a constellation, and hd 190360 as a designation HD?" }, { "role": "assistant", "content": "SELECT \"date_sent\" FROM \"cosmic_call_messages\" WHERE \"constellation\"='cygnus' AND \"designation_hd\"='hd 190360';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cosmic_call_messages\" (\n \"designation_hd\" text,\n \"constellation\" text,\n \"date_sent\" text,\n \"arrival_date\" text,\n \"message\" text\n);\n\nQuestion: What date sent has orion as the constellation?" }, { "role": "assistant", "content": "SELECT \"date_sent\" FROM \"cosmic_call_messages\" WHERE \"constellation\"='orion';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cosmic_call_messages\" (\n \"designation_hd\" text,\n \"constellation\" text,\n \"date_sent\" text,\n \"arrival_date\" text,\n \"message\" text\n);\n\nQuestion: Which constellation has cosmic call 1 as the message, and an arrival date of october 2067?" }, { "role": "assistant", "content": "SELECT \"constellation\" FROM \"cosmic_call_messages\" WHERE \"message\"='cosmic call 1' AND \"arrival_date\"='october 2067';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cosmic_call_messages\" (\n \"designation_hd\" text,\n \"constellation\" text,\n \"date_sent\" text,\n \"arrival_date\" text,\n \"message\" text\n);\n\nQuestion: What date sent has cancer as the constellation?" }, { "role": "assistant", "content": "SELECT \"date_sent\" FROM \"cosmic_call_messages\" WHERE \"constellation\"='cancer';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"torneo_clausura\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"scored\" real,\n \"conceded\" real,\n \"points\" real\n);\n\nQuestion: Which Conceded is the highest one that has Points larger than 17, and a Team of guaran\u00ed, and Losses smaller than 6?" }, { "role": "assistant", "content": "SELECT MAX(\"conceded\") FROM \"torneo_clausura\" WHERE \"points\">17 AND \"team\"='guaran\u00ed' AND \"losses\"<6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"torneo_clausura\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"scored\" real,\n \"conceded\" real,\n \"points\" real\n);\n\nQuestion: Which Conceded has Draws smaller than 5, and a Position larger than 6?" }, { "role": "assistant", "content": "SELECT SUM(\"conceded\") FROM \"torneo_clausura\" WHERE \"draws\"<5 AND \"position\">6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"torneo_clausura\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"scored\" real,\n \"conceded\" real,\n \"points\" real\n);\n\nQuestion: How many Points have a Played larger than 18?" }, { "role": "assistant", "content": "SELECT COUNT(\"points\") FROM \"torneo_clausura\" WHERE \"played\">18;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"torneo_clausura\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"scored\" real,\n \"conceded\" real,\n \"points\" real\n);\n\nQuestion: Which Scored has a Team of recoleta?" }, { "role": "assistant", "content": "SELECT SUM(\"scored\") FROM \"torneo_clausura\" WHERE \"team\"='recoleta';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"personal_records\" (\n \"distance\" text,\n \"time\" text,\n \"date\" text,\n \"location\" text,\n \"notes\" text\n);\n\nQuestion: Which Notes have a Date of 2008-01-27?" }, { "role": "assistant", "content": "SELECT \"notes\" FROM \"personal_records\" WHERE \"date\"='2008-01-27';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"personal_records\" (\n \"distance\" text,\n \"time\" text,\n \"date\" text,\n \"location\" text,\n \"notes\" text\n);\n\nQuestion: Which Date has a Distance of 3,000 m?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"personal_records\" WHERE \"distance\"='3,000 m';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"personal_records\" (\n \"distance\" text,\n \"time\" text,\n \"date\" text,\n \"location\" text,\n \"notes\" text\n);\n\nQuestion: Which Distance has a Time of men's speed skating?" }, { "role": "assistant", "content": "SELECT \"distance\" FROM \"personal_records\" WHERE \"time\"='men''s speed skating';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"personal_records\" (\n \"distance\" text,\n \"time\" text,\n \"date\" text,\n \"location\" text,\n \"notes\" text\n);\n\nQuestion: Which Location has a Time of time?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"personal_records\" WHERE \"time\"='time';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"personal_records\" (\n \"distance\" text,\n \"time\" text,\n \"date\" text,\n \"location\" text,\n \"notes\" text\n);\n\nQuestion: Which Location has a Distance of 10,000 m?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"personal_records\" WHERE \"distance\"='10,000 m';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"personal_records\" (\n \"distance\" text,\n \"time\" text,\n \"date\" text,\n \"location\" text,\n \"notes\" text\n);\n\nQuestion: Which Date has a Distance of 500 m?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"personal_records\" WHERE \"distance\"='500 m';" } ]
[ { "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 \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What was the score for the June 22 game with attendance 0?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"date\"='june 22' AND \"attendance\"=0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: What type of surface was used for the carthage tournament on august 14, 1994?" }, { "role": "assistant", "content": "SELECT \"surface\" FROM \"singles\" WHERE \"tournament\"='carthage' AND \"date\"='august 14, 1994';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: Which tournament has marielle bruens for the opponent in the final?" }, { "role": "assistant", "content": "SELECT \"tournament\" FROM \"singles\" WHERE \"opponent_in_the_final\"='marielle bruens';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: What surface was used on may 13, 2007?" }, { "role": "assistant", "content": "SELECT \"surface\" FROM \"singles\" WHERE \"date\"='may 13, 2007';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"oklahoma\" (\n \"call_sign\" text,\n \"frequency_m_hz\" real,\n \"city_of_license\" text,\n \"erp_w\" real,\n \"class\" text,\n \"fcc_info\" text\n);\n\nQuestion: Frequency MHz of 93.7 has what class?" }, { "role": "assistant", "content": "SELECT \"class\" FROM \"oklahoma\" WHERE \"frequency_m_hz\"=93.7;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"languages\" (\n \"language\" text,\n \"totora_municipality\" real,\n \"pojo_municipality\" real,\n \"pocona_municipality\" real,\n \"chimor_municipality\" real,\n \"puerto_villarroel_municipality\" real,\n \"entre_r_os_municipality\" real\n);\n\nQuestion: What is the average Entre R\u00edos Municipality with less than 9 Pojo Municipalities?" }, { "role": "assistant", "content": "SELECT AVG(\"entre_r_os_municipality\") FROM \"languages\" WHERE \"pojo_municipality\"<9;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"languages\" (\n \"language\" text,\n \"totora_municipality\" real,\n \"pojo_municipality\" real,\n \"pocona_municipality\" real,\n \"chimor_municipality\" real,\n \"puerto_villarroel_municipality\" real,\n \"entre_r_os_municipality\" real\n);\n\nQuestion: What is Pocona Municipalities with 72 Totora municipalities and more than 74 pojo municipalities?" }, { "role": "assistant", "content": "SELECT COUNT(\"pocona_municipality\") FROM \"languages\" WHERE \"totora_municipality\"=72 AND \"pojo_municipality\">74;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"languages\" (\n \"language\" text,\n \"totora_municipality\" real,\n \"pojo_municipality\" real,\n \"pocona_municipality\" real,\n \"chimor_municipality\" real,\n \"puerto_villarroel_municipality\" real,\n \"entre_r_os_municipality\" real\n);\n\nQuestion: What is the highest chimore municipalities with 9 pojo municipalities and less than 7 totora municipalities?" }, { "role": "assistant", "content": "SELECT MAX(\"chimor_municipality\") FROM \"languages\" WHERE \"pojo_municipality\"=9 AND \"totora_municipality\"<7;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"argentine_clubs_in_international_competi\" (\n \"team\" text,\n \"recopa_1995\" text,\n \"supercopa_1995\" text,\n \"conmebol_1995\" text,\n \"copa_libertadores_1996\" text\n);\n\nQuestion: Which Copa Libertadores 1996 has a Team of estudiantes?" }, { "role": "assistant", "content": "SELECT \"copa_libertadores_1996\" FROM \"argentine_clubs_in_international_competi\" WHERE \"team\"='estudiantes';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"argentine_clubs_in_international_competi\" (\n \"team\" text,\n \"recopa_1995\" text,\n \"supercopa_1995\" text,\n \"conmebol_1995\" text,\n \"copa_libertadores_1996\" text\n);\n\nQuestion: which CONMEBOL 1995 has a Supercopa 1995 of sf?" }, { "role": "assistant", "content": "SELECT \"conmebol_1995\" FROM \"argentine_clubs_in_international_competi\" WHERE \"supercopa_1995\"='sf';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"argentine_clubs_in_international_competi\" (\n \"team\" text,\n \"recopa_1995\" text,\n \"supercopa_1995\" text,\n \"conmebol_1995\" text,\n \"copa_libertadores_1996\" text\n);\n\nQuestion: which Copa Libertadores 1996 has round 1 Supercopa 1995 and argentinos juniors team ?" }, { "role": "assistant", "content": "SELECT \"copa_libertadores_1996\" FROM \"argentine_clubs_in_international_competi\" WHERE \"supercopa_1995\"='round 1' AND \"team\"='argentinos juniors';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"argentine_clubs_in_international_competi\" (\n \"team\" text,\n \"recopa_1995\" text,\n \"supercopa_1995\" text,\n \"conmebol_1995\" text,\n \"copa_libertadores_1996\" text\n);\n\nQuestion: Which CONMEBOL 1995 has river plate team?" }, { "role": "assistant", "content": "SELECT \"conmebol_1995\" FROM \"argentine_clubs_in_international_competi\" WHERE \"team\"='river plate';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"argentine_clubs_in_international_competi\" (\n \"team\" text,\n \"recopa_1995\" text,\n \"supercopa_1995\" text,\n \"conmebol_1995\" text,\n \"copa_libertadores_1996\" text\n);\n\nQuestion: Which Team has a round 1 CONMEBOL 1995?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"argentine_clubs_in_international_competi\" WHERE \"conmebol_1995\"='round 1';" } ]
[ { "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: Which Date has an Attendance of 57,013?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"attendance\"='57,013';" } ]
[ { "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: Which Date has a TV Time of cbs 1:00pm, and a Game Site of rca dome, and an Opponent of cincinnati bengals?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"tv_time\"='cbs 1:00pm' AND \"game_site\"='rca dome' AND \"opponent\"='cincinnati bengals';" } ]
[ { "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: Which TV Time has a Date of december 26, 1999?" }, { "role": "assistant", "content": "SELECT \"tv_time\" FROM \"schedule\" WHERE \"date\"='december 26, 1999';" } ]
[ { "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: Which Game Site has a Date of october 17, 1999?" }, { "role": "assistant", "content": "SELECT \"game_site\" FROM \"schedule\" WHERE \"date\"='october 17, 1999';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_schedule\" (\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"score\" text,\n \"record\" text,\n \"streak\" text\n);\n\nQuestion: what's the result with streak of won 6?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"season_schedule\" WHERE \"streak\"='won 6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winners_knockout\" (\n \"home_1st_leg\" text,\n \"home_2nd_leg\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text,\n \"aggregate\" text\n);\n\nQuestion: What was the 2nd leg score having an aggregate score of 4-2?" }, { "role": "assistant", "content": "SELECT \"2nd_leg\" FROM \"winners_knockout\" WHERE \"aggregate\"='4-2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winners_knockout\" (\n \"home_1st_leg\" text,\n \"home_2nd_leg\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text,\n \"aggregate\" text\n);\n\nQuestion: What was the home team for the 2nd leg for the match having a 1st leg score of 2-1?" }, { "role": "assistant", "content": "SELECT \"home_2nd_leg\" FROM \"winners_knockout\" WHERE \"1st_leg\"='2-1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winners_knockout\" (\n \"home_1st_leg\" text,\n \"home_2nd_leg\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text,\n \"aggregate\" text\n);\n\nQuestion: What was the home team for the 2nd leg of the match having an aggregate of 2-3?" }, { "role": "assistant", "content": "SELECT \"home_2nd_leg\" FROM \"winners_knockout\" WHERE \"aggregate\"='2-3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"campeonato_brasileiro_s_rie_b\" (\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 lowest number of played games of the team with less than 12 drawns, 41 against, and less than 69 points?" }, { "role": "assistant", "content": "SELECT MIN(\"played\") FROM \"campeonato_brasileiro_s_rie_b\" WHERE \"drawn\"<12 AND \"against\"=41 AND \"points\"<69;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"campeonato_brasileiro_s_rie_b\" (\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 highest number of played of the team with less than 11 losses and less than 12 drawns?" }, { "role": "assistant", "content": "SELECT MAX(\"played\") FROM \"campeonato_brasileiro_s_rie_b\" WHERE \"lost\"<11 AND \"drawn\"<12;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"campeonato_brasileiro_s_rie_b\" (\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 sum of againsts the team with less than 38 played had?" }, { "role": "assistant", "content": "SELECT SUM(\"against\") FROM \"campeonato_brasileiro_s_rie_b\" WHERE \"played\"<38;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"campeonato_brasileiro_s_rie_b\" (\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 average drawn of the team with a difference of 4 and more than 13 losses?" }, { "role": "assistant", "content": "SELECT AVG(\"drawn\") FROM \"campeonato_brasileiro_s_rie_b\" WHERE \"difference\"='4' AND \"lost\">13;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"campeonato_brasileiro_s_rie_b\" (\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 position of the team with more than 16 losses and an against greater than 74?" }, { "role": "assistant", "content": "SELECT SUM(\"position\") FROM \"campeonato_brasileiro_s_rie_b\" WHERE \"lost\">16 AND \"against\">74;" } ]