messages
listlengths
3
3
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_99 (team VARCHAR, shirt_sponsor VARCHAR)", "role": "system" }, { "content": "What is the name of the team that Tulip Computers NV sponsors?", "role": "user" }, { "content": "SELECT team FROM table_name_99 WHERE shirt_sponsor = \"tulip computers nv\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_19 (country VARCHAR, player VARCHAR)", "role": "system" }, { "content": "Which Country has a Player of arjun atwal?", "role": "user" }, { "content": "SELECT country FROM table_name_19 WHERE player = \"arjun atwal\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_34 (final VARCHAR, no2 VARCHAR)", "role": "system" }, { "content": "What was the final of play No. 2, Alzira Ricardo B.?", "role": "user" }, { "content": "SELECT final FROM table_name_34 WHERE no2 = \"alzira ricardo b.\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2013618_1 (density VARCHAR, traditional VARCHAR)", "role": "system" }, { "content": "Name the density for 古田縣", "role": "user" }, { "content": "SELECT density FROM table_2013618_1 WHERE traditional = \"古田縣\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_41 (director VARCHAR, producer VARCHAR, platform_s_ VARCHAR)", "role": "system" }, { "content": "Who is the director of the game with HIroshi Sato as the producer on the GBA platform?", "role": "user" }, { "content": "SELECT director FROM table_name_41 WHERE producer = \"hiroshi sato\" AND platform_s_ = \"gba\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE technician (Name VARCHAR, technician_id VARCHAR); CREATE TABLE repair_assignment (Name VARCHAR, technician_id VARCHAR)", "role": "system" }, { "content": "List the names of technicians who have not been assigned to repair machines.", "role": "user" }, { "content": "SELECT Name FROM technician WHERE NOT technician_id IN (SELECT technician_id FROM repair_assignment)", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2528382_1 (lyricist VARCHAR, music_director VARCHAR)", "role": "system" }, { "content": "Who was the lyricist for the song with music directed by madan mohan kohli?", "role": "user" }, { "content": "SELECT lyricist FROM table_2528382_1 WHERE music_director = \"Madan Mohan Kohli\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_15 (grid INTEGER, driver VARCHAR, laps VARCHAR)", "role": "system" }, { "content": "What is the largest grid with a Driver of ralph firman, and a Lap smaller than 18?", "role": "user" }, { "content": "SELECT MAX(grid) FROM table_name_15 WHERE driver = \"ralph firman\" AND laps < 18", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_90 (away_team VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "Who is the away side at glenferrie oval?", "role": "user" }, { "content": "SELECT away_team FROM table_name_90 WHERE venue = \"glenferrie oval\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_62 (round_of_32 VARCHAR, conference VARCHAR)", "role": "system" }, { "content": "Tell me the round of 32 for conference of southland", "role": "user" }, { "content": "SELECT round_of_32 FROM table_name_62 WHERE conference = \"southland\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_67 (t__µm_ VARCHAR, technology VARCHAR)", "role": "system" }, { "content": "What is the total number of t (µm), when Technology is u c-si?", "role": "user" }, { "content": "SELECT COUNT(t__µm_) FROM table_name_67 WHERE technology = \"u c-si\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_175442_1 (common_name VARCHAR, scientific_name VARCHAR)", "role": "system" }, { "content": "Name the common name for furcifer pardalis", "role": "user" }, { "content": "SELECT common_name FROM table_175442_1 WHERE scientific_name = \"Furcifer pardalis\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_15001957_1 (mixed_doubles VARCHAR, year VARCHAR)", "role": "system" }, { "content": "How many mixed doubles were won in 1996?", "role": "user" }, { "content": "SELECT COUNT(mixed_doubles) FROM table_15001957_1 WHERE year = 1996", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Dogs (name VARCHAR, owner_id VARCHAR); CREATE TABLE Owners (first_name VARCHAR, owner_id VARCHAR)", "role": "system" }, { "content": "List pairs of the owner's first name and the dogs's name.", "role": "user" }, { "content": "SELECT T1.first_name, T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_90 (pick__number INTEGER, player VARCHAR, reg_gp VARCHAR)", "role": "system" }, { "content": "What is the lowest Pick # with michael grabner and less than 20 Reg GP?", "role": "user" }, { "content": "SELECT MIN(pick__number) FROM table_name_90 WHERE player = \"michael grabner\" AND reg_gp < 20", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_14 (location VARCHAR, year VARCHAR, second VARCHAR)", "role": "system" }, { "content": "In years after 1999, what was the location where Anja Huber finished 2nd?", "role": "user" }, { "content": "SELECT location FROM table_name_14 WHERE year > 1999 AND second = \"anja huber\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_98 (home_team VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "Where did South Melbourne go to play a team at home?", "role": "user" }, { "content": "SELECT home_team FROM table_name_98 WHERE away_team = \"south melbourne\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_90 (visiting_team VARCHAR, stadium VARCHAR)", "role": "system" }, { "content": "What was the name of the Visiting team at Jack Murphy Stadium?", "role": "user" }, { "content": "SELECT visiting_team FROM table_name_90 WHERE stadium = \"jack murphy stadium\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_92 (total INTEGER, gold VARCHAR, silver VARCHAR, rank VARCHAR)", "role": "system" }, { "content": "Can you tell me the average Total that had the Silver of 0, and the Rank of 6, and the Gold smaller than 0?", "role": "user" }, { "content": "SELECT AVG(total) FROM table_name_92 WHERE silver = 0 AND rank = \"6\" AND gold < 0", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_88 (grid INTEGER, driver VARCHAR)", "role": "system" }, { "content": "What is mario domínguez's average Grid?", "role": "user" }, { "content": "SELECT AVG(grid) FROM table_name_88 WHERE driver = \"mario domínguez\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_27 (december VARCHAR, score VARCHAR)", "role": "system" }, { "content": "Score of 8 - 1 happened on what day in December?", "role": "user" }, { "content": "SELECT december FROM table_name_27 WHERE score = \"8 - 1\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_28 (no_1 VARCHAR, no_2 VARCHAR, no_7 VARCHAR)", "role": "system" }, { "content": "What is No.1, when No. 2 is Emma, and when No. 7 is Olivia?", "role": "user" }, { "content": "SELECT no_1 FROM table_name_28 WHERE no_2 = \"emma\" AND no_7 = \"olivia\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_12 (total VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What is Total, when Player is \"Hale Irwin\"?", "role": "user" }, { "content": "SELECT total FROM table_name_12 WHERE player = \"hale irwin\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26173063_2 (× VARCHAR, faisaly VARCHAR)", "role": "system" }, { "content": "what is x when faisaly is 0-0?", "role": "user" }, { "content": "SELECT × FROM table_26173063_2 WHERE faisaly = \"0-0\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1449169_1 (altitude__mslm_ INTEGER)", "role": "system" }, { "content": "What is the minimum altitude (mslm) in all the commons?", "role": "user" }, { "content": "SELECT MIN(altitude__mslm_) FROM table_1449169_1", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_237757_10 (highest VARCHAR, average VARCHAR)", "role": "system" }, { "content": "What was the entry for highest when average is 10295?", "role": "user" }, { "content": "SELECT highest FROM table_237757_10 WHERE average = 10295", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_23 (Id VARCHAR)", "role": "system" }, { "content": "What 1997 has grand slams for the 1999?", "role": "user" }, { "content": "SELECT 1997 FROM table_name_23 WHERE 1999 = \"grand slams\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_21 (distance VARCHAR, winner_or_2nd VARCHAR)", "role": "system" }, { "content": "What was the distance for the winner or 2nd Waterline?", "role": "user" }, { "content": "SELECT distance FROM table_name_21 WHERE winner_or_2nd = \"waterline\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14342367_13 (hometown VARCHAR, player VARCHAR)", "role": "system" }, { "content": "Where is George W. Gregory from?", "role": "user" }, { "content": "SELECT hometown FROM table_14342367_13 WHERE player = \"George W. Gregory\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_65 (rank VARCHAR, active_service VARCHAR)", "role": "system" }, { "content": "What rank does the person participating in American Civil war and indian wars?", "role": "user" }, { "content": "SELECT rank FROM table_name_65 WHERE active_service = \"american civil war and indian wars\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25519358_1 (horizontal_0_a VARCHAR, name VARCHAR)", "role": "system" }, { "content": "Name the horizontal 0 for 通 tong", "role": "user" }, { "content": "SELECT horizontal_0_a FROM table_25519358_1 WHERE name = \"通 TONG\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_28715942_5 (original_artist VARCHAR, vocal_percussionist VARCHAR)", "role": "system" }, { "content": "What is the original artist when the vocal percussionist is Alexei Kalveks?", "role": "user" }, { "content": "SELECT original_artist FROM table_28715942_5 WHERE vocal_percussionist = \"Alexei Kalveks\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1013129_2 (nationality VARCHAR, college_junior_club_team VARCHAR)", "role": "system" }, { "content": "What are the nationalities of the player picked from Thunder Bay Flyers (ushl)", "role": "user" }, { "content": "SELECT nationality FROM table_1013129_2 WHERE college_junior_club_team = \"Thunder Bay Flyers (USHL)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27988559_1 (original_air_date VARCHAR, no_in_series VARCHAR)", "role": "system" }, { "content": "What dat did episode 195 in the series originally air?", "role": "user" }, { "content": "SELECT original_air_date FROM table_27988559_1 WHERE no_in_series = 195", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_15187735_8 (series_ep VARCHAR, segment_a VARCHAR)", "role": "system" }, { "content": "Name the number of series episode for s piston", "role": "user" }, { "content": "SELECT COUNT(series_ep) FROM table_15187735_8 WHERE segment_a = \"s Piston\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_24 (place VARCHAR, score VARCHAR)", "role": "system" }, { "content": "In what place is the golfer with a score of 68-69-73-70=280?", "role": "user" }, { "content": "SELECT place FROM table_name_24 WHERE score = 68 - 69 - 73 - 70 = 280", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_50 (season VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Which season was on 30 October 1977?", "role": "user" }, { "content": "SELECT season FROM table_name_50 WHERE date = \"30 october 1977\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_54 (segment_c VARCHAR, segment_b VARCHAR)", "role": "system" }, { "content": "Which Segment C has a Segment B of fish food?", "role": "user" }, { "content": "SELECT segment_c FROM table_name_54 WHERE segment_b = \"fish food\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_20 (wins INTEGER, tournament VARCHAR, events VARCHAR)", "role": "system" }, { "content": "How many wins were in the Masters Tournament with less than 15 events?", "role": "user" }, { "content": "SELECT MAX(wins) FROM table_name_20 WHERE tournament = \"masters tournament\" AND events < 15", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_83 (pop_dens VARCHAR, population INTEGER)", "role": "system" }, { "content": "What is the population density of the area with a population larger than 92,719?", "role": "user" }, { "content": "SELECT COUNT(pop_dens) FROM table_name_83 WHERE population > 92 OFFSET 719", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1601792_4 (site VARCHAR, television_station VARCHAR)", "role": "system" }, { "content": "What are the site(s) for tv station 8tv?", "role": "user" }, { "content": "SELECT site FROM table_1601792_4 WHERE television_station = \"8TV\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_13 (player VARCHAR, school_club_team_country VARCHAR)", "role": "system" }, { "content": "What player had a school of missouri", "role": "user" }, { "content": "SELECT player FROM table_name_13 WHERE school_club_team_country = \"missouri\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_37 (top_25 VARCHAR, cuts_made VARCHAR, wins VARCHAR)", "role": "system" }, { "content": "What was the total number of Top-25 values, for which Cuts made was 62, and for which Wins were less than 1?", "role": "user" }, { "content": "SELECT COUNT(top_25) FROM table_name_37 WHERE cuts_made = 62 AND wins < 1", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_48 (record VARCHAR, attendance VARCHAR)", "role": "system" }, { "content": "What was the record at the game attended by 10,389?", "role": "user" }, { "content": "SELECT record FROM table_name_48 WHERE attendance = \"10,389\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_24 (nationality VARCHAR, name VARCHAR, lane VARCHAR, rank VARCHAR)", "role": "system" }, { "content": "What is the nationality with a lane larger than 1, and a rank larger than 5, for Hsu Chi-Chieh?", "role": "user" }, { "content": "SELECT nationality FROM table_name_24 WHERE lane > 1 AND rank > 5 AND name = \"hsu chi-chieh\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_16751596_12 (republican VARCHAR, dates_administered VARCHAR)", "role": "system" }, { "content": "On November 14, 2007, how many different Republican: Jeff Sessions are there?", "role": "user" }, { "content": "SELECT COUNT(republican) AS :_jeff_sessions FROM table_16751596_12 WHERE dates_administered = \"November 14, 2007\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_39 (date VARCHAR, attendance VARCHAR)", "role": "system" }, { "content": "What was the date of the game attended by 45,122?", "role": "user" }, { "content": "SELECT date FROM table_name_39 WHERE attendance = \"45,122\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_67 (total INTEGER, rank VARCHAR, bronze VARCHAR)", "role": "system" }, { "content": "Which Total has a Rank of 5, and a Bronze smaller than 0?", "role": "user" }, { "content": "SELECT AVG(total) FROM table_name_67 WHERE rank = \"5\" AND bronze < 0", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_75 (method VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "What was the method used when the opponent was Tyson Griffin?", "role": "user" }, { "content": "SELECT method FROM table_name_75 WHERE opponent = \"tyson griffin\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_1 (position VARCHAR, lost INTEGER)", "role": "system" }, { "content": "What was the position with the total number less than 1?", "role": "user" }, { "content": "SELECT COUNT(position) FROM table_name_1 WHERE lost < 1", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_18 (bronze INTEGER, silver VARCHAR, total VARCHAR)", "role": "system" }, { "content": "What is the average value of Bronze when silver is 0 and the total is less than 1?", "role": "user" }, { "content": "SELECT AVG(bronze) FROM table_name_18 WHERE silver = 0 AND total < 1", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_21378160_2 (opponent VARCHAR, date VARCHAR)", "role": "system" }, { "content": "How many opponents did they play on 17/05/2009?", "role": "user" }, { "content": "SELECT COUNT(opponent) FROM table_21378160_2 WHERE date = \"17/05/2009\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_40 (gold INTEGER, silver VARCHAR, total VARCHAR)", "role": "system" }, { "content": "What is the highest gold with 1 silver, and more than 1 altogether?", "role": "user" }, { "content": "SELECT MAX(gold) FROM table_name_40 WHERE silver = 1 AND total > 1", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_91 (catalog VARCHAR, region VARCHAR)", "role": "system" }, { "content": "What is the Catalog number for the region of Japan?", "role": "user" }, { "content": "SELECT catalog FROM table_name_91 WHERE region = \"japan\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1676073_12 (points_for VARCHAR, points_against VARCHAR)", "role": "system" }, { "content": "How many teams had 632 points against?", "role": "user" }, { "content": "SELECT COUNT(points_for) FROM table_1676073_12 WHERE points_against = \"632\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_56 (gold INTEGER, total VARCHAR, rank VARCHAR, bronze VARCHAR, silver VARCHAR)", "role": "system" }, { "content": "What is the average gold medals for countries with more than 0 bronze, more than 0 silver, rank over 2 and total over 3?", "role": "user" }, { "content": "SELECT AVG(gold) FROM table_name_56 WHERE bronze > 0 AND silver > 0 AND rank > 2 AND total > 3", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_70 (silver INTEGER, bronze VARCHAR, gold VARCHAR, rank VARCHAR)", "role": "system" }, { "content": "Which Silver is the lowest one that has a Gold larger than 0, and a Rank of total, and a Bronze smaller than 32?", "role": "user" }, { "content": "SELECT MIN(silver) FROM table_name_70 WHERE gold > 0 AND rank = \"total\" AND bronze < 32", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_72 (earnings___ INTEGER, player VARCHAR, rank VARCHAR)", "role": "system" }, { "content": "Player of corey pavin, and a Rank larger than 4 involved which highest earnings ($)?", "role": "user" }, { "content": "SELECT MAX(earnings___) AS $__ FROM table_name_72 WHERE player = \"corey pavin\" AND rank > 4", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_120778_1 (jurisdiction VARCHAR, percent_for VARCHAR)", "role": "system" }, { "content": "What is the number of jurisdiction for 57.3 percent?", "role": "user" }, { "content": "SELECT COUNT(jurisdiction) FROM table_120778_1 WHERE percent_for = \"57.3\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_33 (silver VARCHAR, sport VARCHAR, gold VARCHAR)", "role": "system" }, { "content": "What is the total number of silver medals for karate athletes with over 2 golds?", "role": "user" }, { "content": "SELECT COUNT(silver) FROM table_name_33 WHERE sport = \"karate\" AND gold > 2", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_81 (tournament VARCHAR, opponent_in_the_final VARCHAR)", "role": "system" }, { "content": "Which tournament has marielle bruens for the opponent in the final?", "role": "user" }, { "content": "SELECT tournament FROM table_name_81 WHERE opponent_in_the_final = \"marielle bruens\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2500440_1 (population_density__per_km_2__ VARCHAR, municipal_district VARCHAR)", "role": "system" }, { "content": "What is the density per km in Smoky Lake County?", "role": "user" }, { "content": "SELECT population_density__per_km_2__ FROM table_2500440_1 WHERE municipal_district = \"Smoky Lake County\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_16678052_2 (record VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "What record was reached when the Eagles played the Phoenix Cardinals? ", "role": "user" }, { "content": "SELECT record FROM table_16678052_2 WHERE opponent = \"Phoenix Cardinals\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_10 (state VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "Which state includes the Harry A. Gampel Pavilion venue?", "role": "user" }, { "content": "SELECT state FROM table_name_10 WHERE venue = \"harry a. gampel pavilion\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_17 (year INTEGER, film VARCHAR)", "role": "system" }, { "content": "Which year did The Adventures of Tintin come out?", "role": "user" }, { "content": "SELECT SUM(year) FROM table_name_17 WHERE film = \"the adventures of tintin\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_74 (tournament VARCHAR)", "role": "system" }, { "content": "What is 1990, when 1997 is \"1R\", and when Tournament is \"Hamburg\"?", "role": "user" }, { "content": "SELECT 1990 FROM table_name_74 WHERE 1997 = \"1r\" AND tournament = \"hamburg\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_80 (total_goals VARCHAR, total_apps VARCHAR, league_goals VARCHAR)", "role": "system" }, { "content": "How many total goals have 0 (3) as total apps, with league goals less than 0?", "role": "user" }, { "content": "SELECT COUNT(total_goals) FROM table_name_80 WHERE total_apps = \"0 (3)\" AND league_goals < 0", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_99 (against INTEGER, byes INTEGER)", "role": "system" }, { "content": "Which against has the lowest when byes are larger than 0?", "role": "user" }, { "content": "SELECT MIN(against) FROM table_name_99 WHERE byes > 0", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_82 (venue VARCHAR, competition VARCHAR, score VARCHAR)", "role": "system" }, { "content": "Which Venue has a Competition of pl group b, and a Score of 2-2?", "role": "user" }, { "content": "SELECT venue FROM table_name_82 WHERE competition = \"pl group b\" AND score = \"2-2\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20850527_1 (game VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "What game number did the Wildcats play Purdue?", "role": "user" }, { "content": "SELECT game FROM table_20850527_1 WHERE opponent = \"Purdue\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11970261_2 (preliminaries VARCHAR, average VARCHAR)", "role": "system" }, { "content": "what's the preliminaries with average being 9.360", "role": "user" }, { "content": "SELECT preliminaries FROM table_11970261_2 WHERE average = \"9.360\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_21 (against VARCHAR, drawn VARCHAR)", "role": "system" }, { "content": "What is the Against when the drawn is 5?", "role": "user" }, { "content": "SELECT against FROM table_name_21 WHERE drawn = 5", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_66 (body_width_mm INTEGER, part_number VARCHAR, body_length_mm VARCHAR)", "role": "system" }, { "content": "How much Body Width/mm has a Part Number of tsop40/44, and a Body Length/mm smaller than 18.42?", "role": "user" }, { "content": "SELECT SUM(body_width_mm) FROM table_name_66 WHERE part_number = \"tsop40/44\" AND body_length_mm < 18.42", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_15128839_22 (solo VARCHAR, name VARCHAR)", "role": "system" }, { "content": "Name the solo when name is briggs, diyral", "role": "user" }, { "content": "SELECT solo FROM table_15128839_22 WHERE name = \"Briggs, Diyral\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_95 (gain INTEGER, loss VARCHAR, long VARCHAR, gp_gs VARCHAR)", "role": "system" }, { "content": "Name the lowest Gain which has a Long of 0, and a GP-GS of 4–0, and a Loss smaller than 3?", "role": "user" }, { "content": "SELECT MIN(gain) FROM table_name_95 WHERE long = 0 AND gp_gs = \"4–0\" AND loss < 3", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_78 (week_3 VARCHAR, week_6 VARCHAR)", "role": "system" }, { "content": "What is week 3 when week 6 is 26.05?", "role": "user" }, { "content": "SELECT week_3 FROM table_name_78 WHERE week_6 = \"26.05\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_4 (hanzi VARCHAR, hanyu_pinyin VARCHAR)", "role": "system" }, { "content": "What is the Hanzi for píngfáng qū?", "role": "user" }, { "content": "SELECT hanzi FROM table_name_4 WHERE hanyu_pinyin = \"píngfáng qū\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_8 (record VARCHAR, method VARCHAR, round VARCHAR)", "role": "system" }, { "content": "what is the record when the method is submission (armbar) and the round is less than 3?", "role": "user" }, { "content": "SELECT record FROM table_name_8 WHERE method = \"submission (armbar)\" AND round < 3", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_94 (result VARCHAR, week VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "What was the result of the game after week 3 against the New York Giants?", "role": "user" }, { "content": "SELECT result FROM table_name_94 WHERE week > 3 AND opponent = \"new york giants\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_56 (drew VARCHAR, goals_against VARCHAR)", "role": "system" }, { "content": "How many draws were there with goals against that did not qualify for UEFA competitions?", "role": "user" }, { "content": "SELECT drew FROM table_name_56 WHERE goals_against = \"did not qualify for uefa competitions\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25277262_2 (directed_by VARCHAR, no_in_season VARCHAR)", "role": "system" }, { "content": "How many people directed episode 3 in the season?", "role": "user" }, { "content": "SELECT COUNT(directed_by) FROM table_25277262_2 WHERE no_in_season = 3", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE gymnast (Id VARCHAR)", "role": "system" }, { "content": "How many gymnasts are there?", "role": "user" }, { "content": "SELECT COUNT(*) FROM gymnast", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_34 (date VARCHAR, site VARCHAR)", "role": "system" }, { "content": "What is the Date if the Site is Shriver Field?", "role": "user" }, { "content": "SELECT date FROM table_name_34 WHERE site = \"shriver field\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18590048_1 (rank INTEGER, title VARCHAR)", "role": "system" }, { "content": "What rank is Super Mario Land 2: 6 Golden Coins?", "role": "user" }, { "content": "SELECT MIN(rank) FROM table_18590048_1 WHERE title = \"Super Mario Land 2: 6 Golden Coins\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_93 (record VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "Which Record has an Opponent of milwaukee bucks?", "role": "user" }, { "content": "SELECT record FROM table_name_93 WHERE opponent = \"milwaukee bucks\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_74 (drawn VARCHAR, lost VARCHAR)", "role": "system" }, { "content": "What is the number drawn when 3 have been lost?", "role": "user" }, { "content": "SELECT drawn FROM table_name_74 WHERE lost = \"3\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_11 (time_elapsed VARCHAR, destination VARCHAR, closest_approach VARCHAR)", "role": "system" }, { "content": "With the Destination of Jupiter and the Closest approach of 4 February 2004, what is the Time elapsed?", "role": "user" }, { "content": "SELECT time_elapsed FROM table_name_11 WHERE destination = \"jupiter\" AND closest_approach = \"4 february 2004\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2985664_8 (average VARCHAR)", "role": "system" }, { "content": "How many entries for 100 occur when the average is 15.78?", "role": "user" }, { "content": "SELECT COUNT(100) FROM table_2985664_8 WHERE average = \"15.78\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_57 (name VARCHAR, goals VARCHAR, nationality VARCHAR)", "role": "system" }, { "content": "Who was from Morocco and scored 6 goals?", "role": "user" }, { "content": "SELECT name FROM table_name_57 WHERE goals = 6 AND nationality = \"morocco\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_38 (date VARCHAR, score VARCHAR)", "role": "system" }, { "content": "On what date was the score 2-1?", "role": "user" }, { "content": "SELECT date FROM table_name_38 WHERE score = \"2-1\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_28677723_9 (style VARCHAR, total VARCHAR)", "role": "system" }, { "content": "How many styles had a total score of exactly 33?", "role": "user" }, { "content": "SELECT COUNT(style) FROM table_28677723_9 WHERE total = 33", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_33 (pos VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What is Pos., when Player is \"Nigel De Jong\"?", "role": "user" }, { "content": "SELECT pos FROM table_name_33 WHERE player = \"nigel de jong\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_16 (goals_conceded INTEGER, draws VARCHAR, points VARCHAR, wins VARCHAR)", "role": "system" }, { "content": "How many total goals conceded are there when the points are greater than 58, less than 27 wins, and less than 1 draws?", "role": "user" }, { "content": "SELECT SUM(goals_conceded) FROM table_name_16 WHERE points > 58 AND wins < 27 AND draws < 1", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2814720_1 (marks VARCHAR, tackles VARCHAR)", "role": "system" }, { "content": "How many marks are there when tackles are 3?", "role": "user" }, { "content": "SELECT marks FROM table_2814720_1 WHERE tackles = 3", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_10602294_1 (dates_active VARCHAR, deaths VARCHAR)", "role": "system" }, { "content": "What were the active dates for the storm that had 185km/h (115mph) deaths?", "role": "user" }, { "content": "SELECT dates_active FROM table_10602294_1 WHERE deaths = \"185km/h (115mph)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_10 (crew_chief VARCHAR, team VARCHAR, driver_s_ VARCHAR)", "role": "system" }, { "content": "Who is the crew chief of team Chip Ganassi Racing with Felix Sabates, which has Casey Mears as the driver?", "role": "user" }, { "content": "SELECT crew_chief FROM table_name_10 WHERE team = \"chip ganassi racing with felix sabates\" AND driver_s_ = \"casey mears\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_23 (date VARCHAR, result VARCHAR)", "role": "system" }, { "content": "When was the match with a result of sa by 10 wkts?", "role": "user" }, { "content": "SELECT date FROM table_name_23 WHERE result = \"sa by 10 wkts\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_71 (score VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What score has october 16, 2000 as the date?", "role": "user" }, { "content": "SELECT score FROM table_name_71 WHERE date = \"october 16, 2000\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24143253_4 (cause_of_death VARCHAR, length_of_marriage VARCHAR)", "role": "system" }, { "content": "What was the cause of death in the marriage that lasted 28 years? ", "role": "user" }, { "content": "SELECT cause_of_death FROM table_24143253_4 WHERE length_of_marriage = \"28 years\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_1 (result VARCHAR, venue VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is the result of the game played in Russia on May 9, 2012?", "role": "user" }, { "content": "SELECT result FROM table_name_1 WHERE venue = \"russia\" AND date = \"may 9, 2012\"", "role": "assistant" } ]