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 \"schedule_and_results\" (\n \"date\" text,\n \"track\" text,\n \"event_name\" text,\n \"pole_winner\" text,\n \"race_winner\" text\n);\n\nQuestion: At which track did the event Daytona Arca 200 take place?" }, { "role": "assistant", "content": "SELECT \"track\" FROM \"schedule_and_results\" WHERE \"event_name\"='daytona arca 200';" } ]
[ { "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 \"date\" text,\n \"track\" text,\n \"event_name\" text,\n \"pole_winner\" text,\n \"race_winner\" text\n);\n\nQuestion: At which event was Ken Schrader the Race Winner at the Toledo Speedway?" }, { "role": "assistant", "content": "SELECT \"event_name\" FROM \"schedule_and_results\" WHERE \"race_winner\"='ken schrader' AND \"track\"='toledo speedway';" } ]
[ { "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 \"date\" text,\n \"track\" text,\n \"event_name\" text,\n \"pole_winner\" text,\n \"race_winner\" text\n);\n\nQuestion: At which track was Frank Kimmel the Pole Winner of the Pennsylvania 200?" }, { "role": "assistant", "content": "SELECT \"track\" FROM \"schedule_and_results\" WHERE \"pole_winner\"='frank kimmel' AND \"event_name\"='pennsylvania 200';" } ]
[ { "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 \"date\" text,\n \"track\" text,\n \"event_name\" text,\n \"pole_winner\" text,\n \"race_winner\" text\n);\n\nQuestion: Steve Wallace was a Race Winner at the Kentucky Speedway on what date?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule_and_results\" WHERE \"race_winner\"='steve wallace' AND \"track\"='kentucky speedway';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the lowest number of silver owned by a nation that is not ranked number 1?" }, { "role": "assistant", "content": "SELECT MIN(\"silver\") FROM \"medal_table\" WHERE \"rank\"<1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qualifying\" (\n \"pos\" text,\n \"driver\" text,\n \"constructor\" text,\n \"part_1\" text,\n \"grid\" text\n);\n\nQuestion: What is Driver Kimi R\u00e4ikk\u00f6nen's number on the grid?" }, { "role": "assistant", "content": "SELECT \"grid\" FROM \"qualifying\" WHERE \"driver\"='kimi r\u00e4ikk\u00f6nen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qualifying\" (\n \"pos\" text,\n \"driver\" text,\n \"constructor\" text,\n \"part_1\" text,\n \"grid\" text\n);\n\nQuestion: Which driver had a Part 1 time of 1:13.306?" }, { "role": "assistant", "content": "SELECT \"driver\" FROM \"qualifying\" WHERE \"part_1\"='1:13.306';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_roller_coasters\" (\n \"current_name\" text,\n \"year_first_opened\" real,\n \"manufacturer\" text,\n \"location_in_park\" text,\n \"thrill_intensity_rating\" text,\n \"minimum_height_requirements\" text\n);\n\nQuestion: What ride opened after 2011?" }, { "role": "assistant", "content": "SELECT \"current_name\" FROM \"current_roller_coasters\" WHERE \"year_first_opened\">2011;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"stozhary_2003_prize_winners\" (\n \"nomination\" text,\n \"actor_s_name\" text,\n \"film_name\" text,\n \"director\" text,\n \"country\" text\n);\n\nQuestion: Tell me the actor from russia for anastasiya slutskaya" }, { "role": "assistant", "content": "SELECT \"actor_s_name\" FROM \"stozhary_2003_prize_winners\" WHERE \"film_name\"='anastasiya slutskaya' AND \"country\"='russia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"stozhary_2003_prize_winners\" (\n \"nomination\" text,\n \"actor_s_name\" text,\n \"film_name\" text,\n \"director\" text,\n \"country\" text\n);\n\nQuestion: Rell mem the actor from ukraine for best actress in a leading role" }, { "role": "assistant", "content": "SELECT \"actor_s_name\" FROM \"stozhary_2003_prize_winners\" WHERE \"nomination\"='best actress in a leading role' AND \"country\"='ukraine';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"stozhary_2003_prize_winners\" (\n \"nomination\" text,\n \"actor_s_name\" text,\n \"film_name\" text,\n \"director\" text,\n \"country\" text\n);\n\nQuestion: Tell me the director for the movie with svetlana zelenkovskaya" }, { "role": "assistant", "content": "SELECT \"director\" FROM \"stozhary_2003_prize_winners\" WHERE \"actor_s_name\"='svetlana zelenkovskaya';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"stozhary_2003_prize_winners\" (\n \"nomination\" text,\n \"actor_s_name\" text,\n \"film_name\" text,\n \"director\" text,\n \"country\" text\n);\n\nQuestion: Tell me the actor's name for anastasiya slutskaya belarus" }, { "role": "assistant", "content": "SELECT \"actor_s_name\" FROM \"stozhary_2003_prize_winners\" WHERE \"film_name\"='anastasiya slutskaya' AND \"country\"='belarus';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"stozhary_2003_prize_winners\" (\n \"nomination\" text,\n \"actor_s_name\" text,\n \"film_name\" text,\n \"director\" text,\n \"country\" text\n);\n\nQuestion: Tell me the nominator for piotr adamczyk" }, { "role": "assistant", "content": "SELECT \"nomination\" FROM \"stozhary_2003_prize_winners\" WHERE \"actor_s_name\"='piotr adamczyk';" } ]
[ { "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\" text\n);\n\nQuestion: Which stadium can hold 63,443 people?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"schedule\" WHERE \"attendance\"='63,443';" } ]
[ { "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 \"venue\" text,\n \"start_time\" text,\n \"attendance\" text\n);\n\nQuestion: Tell me the number of weeks for bye" }, { "role": "assistant", "content": "SELECT COUNT(\"week\") FROM \"schedule\" WHERE \"date\"='bye';" } ]
[ { "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 \"venue\" text,\n \"start_time\" text,\n \"attendance\" text\n);\n\nQuestion: Tell me the number of weeks for december 5, 2005" }, { "role": "assistant", "content": "SELECT COUNT(\"week\") FROM \"schedule\" WHERE \"date\"='december 5, 2005';" } ]
[ { "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 \"venue\" text,\n \"start_time\" text,\n \"attendance\" text\n);\n\nQuestion: Tell me the start time for december 24, 2005" }, { "role": "assistant", "content": "SELECT \"start_time\" FROM \"schedule\" WHERE \"date\"='december 24, 2005';" } ]
[ { "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 \"venue\" text,\n \"start_time\" text,\n \"attendance\" text\n);\n\nQuestion: Tell me the result for lincoln financial field december 11, 2005" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"schedule\" WHERE \"venue\"='lincoln financial field' AND \"date\"='december 11, 2005';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"motorcycle_grand_prix_results\" (\n \"year\" real,\n \"class\" text,\n \"team\" text,\n \"points\" real,\n \"rank\" text,\n \"wins\" real\n);\n\nQuestion: Tell me the total number of years for wins less than 2 and class of 50cc with points of 15" }, { "role": "assistant", "content": "SELECT COUNT(\"year\") FROM \"motorcycle_grand_prix_results\" WHERE \"wins\"<2 AND \"class\"='50cc' AND \"points\"=15;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"motorcycle_grand_prix_results\" (\n \"year\" real,\n \"class\" text,\n \"team\" text,\n \"points\" real,\n \"rank\" text,\n \"wins\" real\n);\n\nQuestion: Tell me the year for class of 125cc" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"motorcycle_grand_prix_results\" WHERE \"class\"='125cc';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"motorcycle_grand_prix_results\" (\n \"year\" real,\n \"class\" text,\n \"team\" text,\n \"points\" real,\n \"rank\" text,\n \"wins\" real\n);\n\nQuestion: Tell me the average wins for class of 50cc and rank of 8th" }, { "role": "assistant", "content": "SELECT AVG(\"wins\") FROM \"motorcycle_grand_prix_results\" WHERE \"class\"='50cc' AND \"rank\"='8th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"motorcycle_grand_prix_results\" (\n \"year\" real,\n \"class\" text,\n \"team\" text,\n \"points\" real,\n \"rank\" text,\n \"wins\" real\n);\n\nQuestion: Tell me the lowest wins for class of 50cc and team of tomos for year less than 1969" }, { "role": "assistant", "content": "SELECT MIN(\"wins\") FROM \"motorcycle_grand_prix_results\" WHERE \"class\"='50cc' AND \"team\"='tomos' AND \"year\"<1969;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: Which country has the highest bronze amount and a silver amount bigger than 41?" }, { "role": "assistant", "content": "SELECT MAX(\"bronze\") FROM \"medal_table\" WHERE \"silver\">41;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the lowest amount of medals Russia has if they have more than 2 silver medals and less than 4 gold medals?" }, { "role": "assistant", "content": "SELECT MIN(\"total\") FROM \"medal_table\" WHERE \"silver\">2 AND \"nation\"='russia' AND \"gold\"<4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cart_champ_car\" (\n \"year\" real,\n \"team\" text,\n \"chassis\" text,\n \"engine\" text,\n \"rank\" text,\n \"points\" text\n);\n\nQuestion: How many points did the 2005 1st place team receive?" }, { "role": "assistant", "content": "SELECT \"points\" FROM \"cart_champ_car\" WHERE \"year\"=2005;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cart_champ_car\" (\n \"year\" real,\n \"team\" text,\n \"chassis\" text,\n \"engine\" text,\n \"rank\" text,\n \"points\" text\n);\n\nQuestion: What engine was used by the teams that used a Lola b02/00 chassis and ranked 1st?" }, { "role": "assistant", "content": "SELECT \"engine\" FROM \"cart_champ_car\" WHERE \"chassis\"='lola b02/00' AND \"rank\"='1st';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cart_champ_car\" (\n \"year\" real,\n \"team\" text,\n \"chassis\" text,\n \"engine\" text,\n \"rank\" text,\n \"points\" text\n);\n\nQuestion: How many years did Team Newman/Haas Racing receive a 1st place ranking?" }, { "role": "assistant", "content": "SELECT COUNT(\"year\") FROM \"cart_champ_car\" WHERE \"team\"='newman/haas racing' AND \"rank\"='1st';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"national_final\" (\n \"draw\" real,\n \"artist\" text,\n \"song\" text,\n \"place\" real,\n \"points\" real\n);\n\nQuestion: What is the aggregate of place for points being 35?" }, { "role": "assistant", "content": "SELECT SUM(\"place\") FROM \"national_final\" WHERE \"points\"=35;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"national_final\" (\n \"draw\" real,\n \"artist\" text,\n \"song\" text,\n \"place\" real,\n \"points\" real\n);\n\nQuestion: Name the fewest points of 5 place" }, { "role": "assistant", "content": "SELECT MIN(\"points\") FROM \"national_final\" WHERE \"place\"=5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"national_final\" (\n \"draw\" real,\n \"artist\" text,\n \"song\" text,\n \"place\" real,\n \"points\" real\n);\n\nQuestion: Name the total number of places for vicky gordon and points more than 23" }, { "role": "assistant", "content": "SELECT COUNT(\"place\") FROM \"national_final\" WHERE \"artist\"='vicky gordon' AND \"points\">23;" } ]
[ { "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\" text\n);\n\nQuestion: Tell me the opponent for attendance of 68,264" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"attendance\"='68,264';" } ]
[ { "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\" text\n);\n\nQuestion: Tell me the sum of week for result of l 24\u201321" }, { "role": "assistant", "content": "SELECT SUM(\"week\") FROM \"schedule\" WHERE \"result\"='l 24\u201321';" } ]
[ { "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\" text\n);\n\nQuestion: Tell me the result for attendance of 54,462" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"schedule\" WHERE \"attendance\"='54,462';" } ]
[ { "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\" text\n);\n\nQuestion: Tell me the opponent for attendance of 53,899" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"attendance\"='53,899';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"players\" (\n \"nationality\" text,\n \"no_a\" text,\n \"pos_a\" text,\n \"from\" text,\n \"school_club\" text,\n \"pts_b\" real,\n \"reb_b\" real,\n \"ast_b\" real\n);\n\nQuestion: What is the points that is more than 636 and has a value of 50?" }, { "role": "assistant", "content": "SELECT \"pts_b\" FROM \"players\" WHERE \"reb_b\">636 AND \"no_a\"='50';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"players\" (\n \"nationality\" text,\n \"no_a\" text,\n \"pos_a\" text,\n \"from\" text,\n \"school_club\" text,\n \"pts_b\" real,\n \"reb_b\" real,\n \"ast_b\" real\n);\n\nQuestion: Which rebound was 8 and has and ast that was less than 57?" }, { "role": "assistant", "content": "SELECT AVG(\"reb_b\") FROM \"players\" WHERE \"no_a\"='8' AND \"ast_b\"<57;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"destinations\" (\n \"city\" text,\n \"country\" text,\n \"iata\" text,\n \"icao\" text,\n \"airport\" text\n);\n\nQuestion: Tell me the country for ICAO of tjig" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"destinations\" WHERE \"icao\"='tjig';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"destinations\" (\n \"city\" text,\n \"country\" text,\n \"iata\" text,\n \"icao\" text,\n \"airport\" text\n);\n\nQuestion: Tell me the country for san juan" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"destinations\" WHERE \"city\"='san juan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"destinations\" (\n \"city\" text,\n \"country\" text,\n \"iata\" text,\n \"icao\" text,\n \"airport\" text\n);\n\nQuestion: Tell me the country for ICAO tjvq" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"destinations\" WHERE \"icao\"='tjvq';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"destinations\" (\n \"city\" text,\n \"country\" text,\n \"iata\" text,\n \"icao\" text,\n \"airport\" text\n);\n\nQuestion: Tell me the iata for icao of tjrv" }, { "role": "assistant", "content": "SELECT \"iata\" FROM \"destinations\" WHERE \"icao\"='tjrv';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"destinations\" (\n \"city\" text,\n \"country\" text,\n \"iata\" text,\n \"icao\" text,\n \"airport\" text\n);\n\nQuestion: Tell me the icao of isla grande" }, { "role": "assistant", "content": "SELECT \"icao\" FROM \"destinations\" WHERE \"city\"='isla grande';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_two\" (\n \"pick_num\" real,\n \"mls_team\" text,\n \"player\" text,\n \"position\" text,\n \"affiliation\" text\n);\n\nQuestion: What position does the Colorado Rapids pick after 15 play?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"round_two\" WHERE \"mls_team\"='colorado rapids' AND \"pick_num\">15;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2000_s\" (\n \"year\" real,\n \"date\" text,\n \"event\" text,\n \"days\" text,\n \"stages\" text,\n \"acts\" text\n);\n\nQuestion: I want to know the events for 106 bands" }, { "role": "assistant", "content": "SELECT \"event\" FROM \"2000_s\" WHERE \"acts\"='106 bands';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"stozhary_99_prize_winners\" (\n \"nomination\" text,\n \"actor_s_name\" text,\n \"film_name\" text,\n \"director\" text,\n \"country\" text\n);\n\nQuestion: Tell me the Actor's name for film name of sara" }, { "role": "assistant", "content": "SELECT \"actor_s_name\" FROM \"stozhary_99_prize_winners\" WHERE \"film_name\"='sara';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"stozhary_99_prize_winners\" (\n \"nomination\" text,\n \"actor_s_name\" text,\n \"film_name\" text,\n \"director\" text,\n \"country\" text\n);\n\nQuestion: Tell me the nomination for ukraine" }, { "role": "assistant", "content": "SELECT \"nomination\" FROM \"stozhary_99_prize_winners\" WHERE \"country\"='ukraine';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"stozhary_99_prize_winners\" (\n \"nomination\" text,\n \"actor_s_name\" text,\n \"film_name\" text,\n \"director\" text,\n \"country\" text\n);\n\nQuestion: Tell me the actors name for barhanov and his bodyguard" }, { "role": "assistant", "content": "SELECT \"actor_s_name\" FROM \"stozhary_99_prize_winners\" WHERE \"film_name\"='barhanov and his bodyguard';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"stozhary_99_prize_winners\" (\n \"nomination\" text,\n \"actor_s_name\" text,\n \"film_name\" text,\n \"director\" text,\n \"country\" text\n);\n\nQuestion: Tell me the actors name for goran paskaljevic" }, { "role": "assistant", "content": "SELECT \"actor_s_name\" FROM \"stozhary_99_prize_winners\" WHERE \"director\"='goran paskaljevic';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"stozhary_99_prize_winners\" (\n \"nomination\" text,\n \"actor_s_name\" text,\n \"film_name\" text,\n \"director\" text,\n \"country\" text\n);\n\nQuestion: Tell me the nomination for goran paskaljevic" }, { "role": "assistant", "content": "SELECT \"nomination\" FROM \"stozhary_99_prize_winners\" WHERE \"director\"='goran paskaljevic';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"individual\" (\n \"year\" text,\n \"men_s_singles\" text,\n \"women_s_singles\" text,\n \"men_s_doubles\" text,\n \"women_s_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: In what year did Stephan Wojcikiewicz play men's single and Anna Rice play women's single?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"individual\" WHERE \"men_s_singles\"='stephan wojcikiewicz' AND \"women_s_singles\"='anna rice';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"individual\" (\n \"year\" text,\n \"men_s_singles\" text,\n \"women_s_singles\" text,\n \"men_s_doubles\" text,\n \"women_s_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Who played men's doubles in 2012?" }, { "role": "assistant", "content": "SELECT \"men_s_doubles\" FROM \"individual\" WHERE \"year\"='2012';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"barnsley\" (\n \"division\" text,\n \"league_apps\" real,\n \"league_goals\" real,\n \"fa_cup_apps\" real,\n \"fa_cup_goals\" real,\n \"total_apps\" real,\n \"total_goals\" real\n);\n\nQuestion: Which FA Cup apps has league goals of 1 with total goals less than 1?" }, { "role": "assistant", "content": "SELECT AVG(\"fa_cup_apps\") FROM \"barnsley\" WHERE \"league_goals\"=1 AND \"total_goals\"<1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"barnsley\" (\n \"division\" text,\n \"league_apps\" real,\n \"league_goals\" real,\n \"fa_cup_apps\" real,\n \"fa_cup_goals\" real,\n \"total_apps\" real,\n \"total_goals\" real\n);\n\nQuestion: What is the highest apps total with FA cup apps of 26 with total number of goals larger than 9?" }, { "role": "assistant", "content": "SELECT MAX(\"total_apps\") FROM \"barnsley\" WHERE \"fa_cup_apps\"=26 AND \"total_goals\">9;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"barnsley\" (\n \"division\" text,\n \"league_apps\" real,\n \"league_goals\" real,\n \"fa_cup_apps\" real,\n \"fa_cup_goals\" real,\n \"total_apps\" real,\n \"total_goals\" real\n);\n\nQuestion: Which league goals has FA cup apps of 2?" }, { "role": "assistant", "content": "SELECT \"league_goals\" FROM \"barnsley\" WHERE \"fa_cup_apps\"=2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"barnsley\" (\n \"division\" text,\n \"league_apps\" real,\n \"league_goals\" real,\n \"fa_cup_apps\" real,\n \"fa_cup_goals\" real,\n \"total_apps\" real,\n \"total_goals\" real\n);\n\nQuestion: What FA cup apps has a total larger than 12 and league apps larger than 38, and FA Cup goals larger than 1?" }, { "role": "assistant", "content": "SELECT COUNT(\"fa_cup_apps\") FROM \"barnsley\" WHERE \"total_apps\">12 AND \"league_apps\">38 AND \"fa_cup_goals\">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 \"attendance\" real\n);\n\nQuestion: What was the total attendance on December 14, 1975 after week 13?" }, { "role": "assistant", "content": "SELECT COUNT(\"attendance\") FROM \"schedule\" WHERE \"date\"='december 14, 1975' AND \"week\">13;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the sum of all totals with a rank greater than 6, gold greater than 0, and silver greater than 2?" }, { "role": "assistant", "content": "SELECT SUM(\"total\") FROM \"medal_table\" WHERE \"rank\">6 AND \"gold\">0 AND \"silver\"=2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: How many values for silver occur when gold is less than 1, the rank is 13, and bronze is greater than 2?" }, { "role": "assistant", "content": "SELECT COUNT(\"silver\") FROM \"medal_table\" WHERE \"gold\"<1 AND \"rank\"=13 AND \"bronze\">2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the average value of Bronze when silver is 0 and the total is less than 1?" }, { "role": "assistant", "content": "SELECT AVG(\"bronze\") FROM \"medal_table\" WHERE \"silver\"=0 AND \"total\"<1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the lowest value for bronze with a total of 3 and a value for silver greater than 1 while the value of gold is smaller than 1?" }, { "role": "assistant", "content": "SELECT MIN(\"bronze\") FROM \"medal_table\" WHERE \"total\"=3 AND \"silver\">1 AND \"gold\"<1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: How man values for bronze occur when gold is less than 1, rank is greater than 15, and total is greater than 1?" }, { "role": "assistant", "content": "SELECT COUNT(\"bronze\") FROM \"medal_table\" WHERE \"gold\"<1 AND \"rank\">15 AND \"total\">1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_nine\" (\n \"pick\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: Name the position of pick 234" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"round_nine\" WHERE \"pick\"='234';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_nine\" (\n \"pick\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: Name the team of vitali yeremeyev" }, { "role": "assistant", "content": "SELECT \"nhl_team\" FROM \"round_nine\" WHERE \"player\"='vitali yeremeyev';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: Tell me the result for 2007-09-29" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"international_goals\" WHERE \"date\"='2007-09-29';" } ]
[ { "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 \"venue\" text,\n \"attendance\" text\n);\n\nQuestion: How many weeks have an attendance of 64,116?" }, { "role": "assistant", "content": "SELECT COUNT(\"week\") FROM \"schedule\" WHERE \"attendance\"='64,116';" } ]
[ { "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 \"venue\" text,\n \"attendance\" text\n);\n\nQuestion: Which date has a week larger than 14?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"week\">14;" } ]
[ { "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 \"venue\" text,\n \"attendance\" text\n);\n\nQuestion: Which venue has a week smaller than 2?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"schedule\" WHERE \"week\"<2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1990s\" (\n \"year\" real,\n \"date\" text,\n \"event\" text,\n \"days\" text,\n \"stages\" text,\n \"acts\" text\n);\n\nQuestion: When was the Metallica: Escape from the Studio show?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"1990s\" WHERE \"event\"='metallica: escape from the studio';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1990s\" (\n \"year\" real,\n \"date\" text,\n \"event\" text,\n \"days\" text,\n \"stages\" text,\n \"acts\" text\n);\n\nQuestion: When is the Monsters of Rock show with 12 bands?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"1990s\" WHERE \"event\"='monsters of rock' AND \"acts\"='12 bands';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2000_2009\" (\n \"year\" real,\n \"competition\" text,\n \"date\" text,\n \"surface\" text,\n \"location\" text,\n \"score\" text,\n \"result\" text\n);\n\nQuestion: Tell me the result for 15 july" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"2000_2009\" WHERE \"date\"='15 july';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fleet_details\" (\n \"class\" text,\n \"type\" text,\n \"no_built_converted\" text,\n \"year_built_converted\" text,\n \"no_range\" text,\n \"withdrawn\" real\n);\n\nQuestion: Tell me the number range for 1965-66" }, { "role": "assistant", "content": "SELECT \"no_range\" FROM \"fleet_details\" WHERE \"year_built_converted\"='1965-66';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fleet_details\" (\n \"class\" text,\n \"type\" text,\n \"no_built_converted\" text,\n \"year_built_converted\" text,\n \"no_range\" text,\n \"withdrawn\" real\n);\n\nQuestion: Tell me the year built for withdrawn of 1983" }, { "role": "assistant", "content": "SELECT \"year_built_converted\" FROM \"fleet_details\" WHERE \"withdrawn\"=1983;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fleet_details\" (\n \"class\" text,\n \"type\" text,\n \"no_built_converted\" text,\n \"year_built_converted\" text,\n \"no_range\" text,\n \"withdrawn\" real\n);\n\nQuestion: Tell me the year built for number built of 10" }, { "role": "assistant", "content": "SELECT \"year_built_converted\" FROM \"fleet_details\" WHERE \"no_built_converted\"='10';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: Tell me the result for 2008-12-23" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"international_goals\" WHERE \"date\"='2008-12-23';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"stozhary_2005_prize_winners\" (\n \"nomination\" text,\n \"actor_s_name\" text,\n \"film_name\" text,\n \"director\" text,\n \"country\" text\n);\n\nQuestion: Tell me the director nominated for best actor in a leading role" }, { "role": "assistant", "content": "SELECT \"director\" FROM \"stozhary_2005_prize_winners\" WHERE \"nomination\"='best actor in a leading role';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"stozhary_2005_prize_winners\" (\n \"nomination\" text,\n \"actor_s_name\" text,\n \"film_name\" text,\n \"director\" text,\n \"country\" text\n);\n\nQuestion: Tell me the nomination for peresohla zemlia" }, { "role": "assistant", "content": "SELECT \"nomination\" FROM \"stozhary_2005_prize_winners\" WHERE \"film_name\"='peresohla zemlia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"stozhary_2005_prize_winners\" (\n \"nomination\" text,\n \"actor_s_name\" text,\n \"film_name\" text,\n \"director\" text,\n \"country\" text\n);\n\nQuestion: Tell me the nomination for russia and svetlana hodchenkova" }, { "role": "assistant", "content": "SELECT \"nomination\" FROM \"stozhary_2005_prize_winners\" WHERE \"country\"='russia' AND \"actor_s_name\"='svetlana hodchenkova';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"stozhary_2005_prize_winners\" (\n \"nomination\" text,\n \"actor_s_name\" text,\n \"film_name\" text,\n \"director\" text,\n \"country\" text\n);\n\nQuestion: Tell me the actor's name for nienasycenie (insatiability)" }, { "role": "assistant", "content": "SELECT \"actor_s_name\" FROM \"stozhary_2005_prize_winners\" WHERE \"film_name\"='nienasycenie (insatiability)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"stozhary_2005_prize_winners\" (\n \"nomination\" text,\n \"actor_s_name\" text,\n \"film_name\" text,\n \"director\" text,\n \"country\" text\n);\n\nQuestion: Tell me the actor's name for escho raz o voyne" }, { "role": "assistant", "content": "SELECT \"actor_s_name\" FROM \"stozhary_2005_prize_winners\" WHERE \"film_name\"='escho raz o voyne';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"24_hours_of_le_mans_results\" (\n \"year\" real,\n \"team\" text,\n \"co_drivers\" text,\n \"class\" text,\n \"laps\" real,\n \"pos\" text,\n \"class_pos\" text\n);\n\nQuestion: What are the average laps driven in the GT class?" }, { "role": "assistant", "content": "SELECT AVG(\"laps\") FROM \"24_hours_of_le_mans_results\" WHERE \"class\"='gt';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"24_hours_of_le_mans_results\" (\n \"year\" real,\n \"team\" text,\n \"co_drivers\" text,\n \"class\" text,\n \"laps\" real,\n \"pos\" text,\n \"class_pos\" text\n);\n\nQuestion: What classes have driven greater than 133 laps, placed above 18th position and have a class position of 1st?" }, { "role": "assistant", "content": "SELECT \"class\" FROM \"24_hours_of_le_mans_results\" WHERE \"laps\">133 AND \"pos\"='18th' AND \"class_pos\"='1st';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"democratic_primary\" (\n \"source\" text,\n \"date\" text,\n \"donoghue_d\" text,\n \"eldridge_d\" text,\n \"finegold_d\" text,\n \"miceli_d\" text,\n \"tsongas_d\" text\n);\n\nQuestion: I want the tsongas of may 22, 2007" }, { "role": "assistant", "content": "SELECT \"tsongas_d\" FROM \"democratic_primary\" WHERE \"date\"='may 22, 2007';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wac_men_s_basketball_tournament_results\" (\n \"year\" real,\n \"winner\" text,\n \"score\" text,\n \"opponent\" text,\n \"venue\" text\n);\n\nQuestion: Tell me the venue for winner of nevada and year more than 2004" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"wac_men_s_basketball_tournament_results\" WHERE \"winner\"='nevada' AND \"year\">2004;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season_schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"time_et\" text,\n \"game_site\" text,\n \"final_score\" text\n);\n\nQuestion: What date is the 1:00 pm game at arrowhead stadium?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"regular_season_schedule\" WHERE \"time_et\"='1:00 pm' AND \"game_site\"='arrowhead stadium';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season_schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"time_et\" text,\n \"game_site\" text,\n \"final_score\" text\n);\n\nQuestion: Where will the game at (ET) of 7:00 pm be at?" }, { "role": "assistant", "content": "SELECT \"game_site\" FROM \"regular_season_schedule\" WHERE \"time_et\"='7:00 pm';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_results\" (\n \"driver\" text,\n \"car_num\" real,\n \"make\" text,\n \"points\" real,\n \"laps\" real,\n \"winnings\" text\n);\n\nQuestion: Who is the Driver that has a Laps smaller than 498, less than 58 points, a car number bigger than 22 and who has won $93,514?" }, { "role": "assistant", "content": "SELECT \"driver\" FROM \"race_results\" WHERE \"laps\"<498 AND \"points\"<58 AND \"car_num\">22 AND \"winnings\"='$93,514';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2000s\" (\n \"year\" real,\n \"competition\" text,\n \"date\" text,\n \"location\" text,\n \"score\" text,\n \"result\" text\n);\n\nQuestion: At what location was there a loss on 20 jan?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"2000s\" WHERE \"result\"='loss' AND \"date\"='20 jan';" } ]
[ { "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 \"venue\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Tell me the venue for record of 2-7" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"schedule\" WHERE \"record\"='2-7';" } ]
[ { "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 \"venue\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Tell me the result for green bay packers" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"schedule\" WHERE \"opponent\"='green bay packers';" } ]
[ { "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 \"venue\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Tell mem the opponent for result of w 31-21" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"result\"='w 31-21';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1970_isle_of_man_production_750_cc_tt_fi\" (\n \"rank\" real,\n \"rider\" text,\n \"team\" text,\n \"speed\" text,\n \"time\" text\n);\n\nQuestion: What is the average speed of rider Peter Williams?" }, { "role": "assistant", "content": "SELECT \"speed\" FROM \"1970_isle_of_man_production_750_cc_tt_fi\" WHERE \"rider\"='peter williams';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1970_isle_of_man_production_750_cc_tt_fi\" (\n \"rank\" real,\n \"rider\" text,\n \"team\" text,\n \"speed\" text,\n \"time\" text\n);\n\nQuestion: What is the time/s of team Triumph in those races in which Triumph ranked higher than 4?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"1970_isle_of_man_production_750_cc_tt_fi\" WHERE \"team\"='triumph' AND \"rank\"<4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"history\" (\n \"year\" text,\n \"zone\" text,\n \"final_round\" text,\n \"score\" text,\n \"result\" text\n);\n\nQuestion: What was the score in 1969?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"history\" WHERE \"year\"='1969';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"history\" (\n \"year\" text,\n \"zone\" text,\n \"final_round\" text,\n \"score\" text,\n \"result\" text\n);\n\nQuestion: In 1975, what was the final round?" }, { "role": "assistant", "content": "SELECT \"final_round\" FROM \"history\" WHERE \"year\"='1975';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"men\" (\n \"time\" text,\n \"name\" text,\n \"nationality\" text,\n \"date\" text,\n \"event_place\" text,\n \"source\" text\n);\n\nQuestion: Where did someone run a 61:32" }, { "role": "assistant", "content": "SELECT \"event_place\" FROM \"men\" WHERE \"time\"='61:32';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"men\" (\n \"time\" text,\n \"name\" text,\n \"nationality\" text,\n \"date\" text,\n \"event_place\" text,\n \"source\" text\n);\n\nQuestion: What was Derek Graham's time?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"men\" WHERE \"name\"='derek graham';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"men\" (\n \"time\" text,\n \"name\" text,\n \"nationality\" text,\n \"date\" text,\n \"event_place\" text,\n \"source\" text\n);\n\nQuestion: Where did someone run a 58:33?" }, { "role": "assistant", "content": "SELECT \"event_place\" FROM \"men\" WHERE \"time\"='58:33';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_three\" (\n \"pick_num\" real,\n \"mls_team\" text,\n \"player\" text,\n \"position\" text,\n \"affiliation\" text\n);\n\nQuestion: Tell me the player for pick number less than 29 and mls team of chicago fire" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"round_three\" WHERE \"pick_num\"<29 AND \"mls_team\"='chicago fire';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_2_4\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: Tell me the opponents for partner of yvonne meusburger" }, { "role": "assistant", "content": "SELECT \"opponents\" FROM \"doubles_2_4\" WHERE \"partner\"='yvonne meusburger';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_2_4\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: Tell me the date for opponents of raffaella bindi biljana pawlowa-dimitrova" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"doubles_2_4\" WHERE \"opponents\"='raffaella bindi biljana pawlowa-dimitrova';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"heats\" (\n \"heat_rank\" real,\n \"lane\" real,\n \"swimmer\" text,\n \"country\" text,\n \"time\" real,\n \"overall_rank\" text\n);\n\nQuestion: Tell me the highest time for heat rank of 8 and lane more than 2" }, { "role": "assistant", "content": "SELECT MAX(\"time\") FROM \"heats\" WHERE \"heat_rank\"=8 AND \"lane\">2;" } ]