conversations
listlengths
3
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "CREATE TABLE table_name_24 (area__km²_ INTEGER, name VARCHAR, population__2011_ VARCHAR)" }, { "from": "human", "value": "What was the area in Glenella with a population of 522 in 2011?" }, { "from": "gpt", "value": "SELECT AVG(area__km²_) FROM table_nam...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_6 (population_density VARCHAR, name VARCHAR, change___percentage_ VARCHAR)" }, { "from": "human", "value": "What is the population density of Siglunes when the change was smaller than -8.1 percent?" }, { "from": "gpt", "value": "S...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_67 (trainer VARCHAR, winner VARCHAR)" }, { "from": "human", "value": "Who was the trainer when Crowd Pleaser won?" }, { "from": "gpt", "value": "SELECT trainer FROM table_name_67 WHERE winner = \"crowd pleaser\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_73 (time VARCHAR, jockey VARCHAR)" }, { "from": "human", "value": "What was the race time of the horse with jockey Ramon Dominguez?" }, { "from": "gpt", "value": "SELECT time FROM table_name_73 WHERE jockey = \"ramon dominguez\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_70 (jockey VARCHAR, year VARCHAR, owner VARCHAR)" }, { "from": "human", "value": "What jockey rode for Michael House before 2012" }, { "from": "gpt", "value": "SELECT jockey FROM table_name_70 WHERE year < 2012 AND owner = \"micha...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_45 (events_won__uk_series_ VARCHAR, events_won__us_series_ INTEGER)" }, { "from": "human", "value": "How many UK events won for the contestant that won under 1 US event?" }, { "from": "gpt", "value": "SELECT events_won__uk_series_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_83 (events_won__us_series_ INTEGER, name VARCHAR)" }, { "from": "human", "value": "How many US events did jason bennett win?" }, { "from": "gpt", "value": "SELECT AVG(events_won__us_series_) FROM table_name_83 WHERE name = \"jason...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_90 (downhill VARCHAR, overall VARCHAR)" }, { "from": "human", "value": "Which downhill has 7 overalls?" }, { "from": "gpt", "value": "SELECT downhill FROM table_name_90 WHERE overall = \"7\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_93 (combined VARCHAR, overall VARCHAR, slalom VARCHAR)" }, { "from": "human", "value": "What is the combined of 2 overalls and 5 slaloms?" }, { "from": "gpt", "value": "SELECT combined FROM table_name_93 WHERE overall = \"2\" AND ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_9 (overall VARCHAR, combined VARCHAR, downhill VARCHAR)" }, { "from": "human", "value": "How many overalls has 1 combined and 24 downhills?" }, { "from": "gpt", "value": "SELECT overall FROM table_name_9 WHERE combined = \"1\" AND...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_94 (distance VARCHAR, race_leader VARCHAR)" }, { "from": "human", "value": "What Distance had a Race Leader in Km (mi)?" }, { "from": "gpt", "value": "SELECT distance FROM table_name_94 WHERE race_leader = \"km (mi)\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_10 (points INTEGER, games VARCHAR, tied VARCHAR, goals_for VARCHAR)" }, { "from": "human", "value": "What is the highest number of points scored when Acadie-Bathurst had 4 tied games, less than 257 goals, and over 72 games played?" }, { ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_54 (played INTEGER, percentage VARCHAR, lost VARCHAR)" }, { "from": "human", "value": "What is the average of games played with a percentage of 3.33% and less than 29 losses?" }, { "from": "gpt", "value": "SELECT AVG(played) FROM ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_22 (played VARCHAR, lost VARCHAR, first_game VARCHAR, percentage VARCHAR)" }, { "from": "human", "value": "What is the total number of games played that correlates with a first game in 1991, a percentage of 22.22%, and less than 7 losses?" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_92 (drawn INTEGER, percentage VARCHAR, lost VARCHAR)" }, { "from": "human", "value": "What is the highest number of draws that correlates with a percentage of 0.00% and less than 1 loss?" }, { "from": "gpt", "value": "SELECT MAX(d...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_31 (start VARCHAR, rank VARCHAR)" }, { "from": "human", "value": "What is the start value for rank 11?" }, { "from": "gpt", "value": "SELECT start FROM table_name_31 WHERE rank = \"11\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_95 (year VARCHAR, laps VARCHAR)" }, { "from": "human", "value": "Which year has 200 laps?" }, { "from": "gpt", "value": "SELECT year FROM table_name_95 WHERE laps = 200" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_67 (finish VARCHAR, start VARCHAR)" }, { "from": "human", "value": "What is the finish value for a start of 19?" }, { "from": "gpt", "value": "SELECT finish FROM table_name_67 WHERE start = \"19\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_84 (city VARCHAR, stadium VARCHAR)" }, { "from": "human", "value": "where is the naghsh jahan stadium?" }, { "from": "gpt", "value": "SELECT city FROM table_name_84 WHERE stadium = \"naghsh jahan\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_43 (city VARCHAR, past_season VARCHAR)" }, { "from": "human", "value": "what city has a past season of n/a?" }, { "from": "gpt", "value": "SELECT city FROM table_name_43 WHERE past_season = \"n/a\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_74 (city VARCHAR, team VARCHAR)" }, { "from": "human", "value": "where is the pegah team located?" }, { "from": "gpt", "value": "SELECT city FROM table_name_74 WHERE team = \"pegah\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_8 (stadium VARCHAR, past_season VARCHAR)" }, { "from": "human", "value": "what stadium has a prior record of 7th?" }, { "from": "gpt", "value": "SELECT stadium FROM table_name_8 WHERE past_season = \"7th\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_54 (nationality VARCHAR, lane VARCHAR, time VARCHAR)" }, { "from": "human", "value": "What is the Nationality on the swimmer in Lane 4 with a Time of 1:11.58?" }, { "from": "gpt", "value": "SELECT nationality FROM table_name_54 WH...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_97 (lane INTEGER, heat VARCHAR, time VARCHAR)" }, { "from": "human", "value": "What is the lowest numbered Lane with a Time of 1:10.57 and Heat larger than 2?" }, { "from": "gpt", "value": "SELECT MIN(lane) FROM table_name_97 WHER...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_88 (heat VARCHAR, name VARCHAR)" }, { "from": "human", "value": "What is the Heat for Smiljana Marinović?" }, { "from": "gpt", "value": "SELECT COUNT(heat) FROM table_name_88 WHERE name = \"smiljana marinović\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_62 (nationality VARCHAR, heat VARCHAR, name VARCHAR)" }, { "from": "human", "value": "In heat 4, what is Byun Hye-young's Nationality?" }, { "from": "gpt", "value": "SELECT nationality FROM table_name_62 WHERE heat = 4 AND name = ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_66 (kind_of_the_song VARCHAR, singer VARCHAR)" }, { "from": "human", "value": "Which type of song did miriam yeung sing?" }, { "from": "gpt", "value": "SELECT kind_of_the_song FROM table_name_66 WHERE singer = \"miriam yeung\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_50 (kind_of_the_song VARCHAR, number VARCHAR, name_of_the_song VARCHAR)" }, { "from": "human", "value": "What type of song is larger than 8 and named 實情?" }, { "from": "gpt", "value": "SELECT kind_of_the_song FROM table_name_50 WH...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_75 (name_of_the_song VARCHAR, kind_of_the_song VARCHAR, singer VARCHAR)" }, { "from": "human", "value": "Which song has a ending theme, and is sung by miriam yeung?" }, { "from": "gpt", "value": "SELECT name_of_the_song FROM table...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_68 (number VARCHAR, name_of_the_song VARCHAR)" }, { "from": "human", "value": "What is the number of the song named 實情?" }, { "from": "gpt", "value": "SELECT number FROM table_name_68 WHERE name_of_the_song = \"實情\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_21 (start VARCHAR, finish INTEGER)" }, { "from": "human", "value": "Name the total number of start when finish is less than 4" }, { "from": "gpt", "value": "SELECT COUNT(start) FROM table_name_21 WHERE finish < 4" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_68 (year INTEGER, start INTEGER)" }, { "from": "human", "value": "Name the sum of year when start is less than 30" }, { "from": "gpt", "value": "SELECT SUM(year) FROM table_name_68 WHERE start < 30" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_59 (year INTEGER, start INTEGER)" }, { "from": "human", "value": "Name the most year with start more than 2" }, { "from": "gpt", "value": "SELECT MAX(year) FROM table_name_59 WHERE start > 2" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_9 (year INTEGER, start INTEGER)" }, { "from": "human", "value": "Name the most year with start less than 2" }, { "from": "gpt", "value": "SELECT MAX(year) FROM table_name_9 WHERE start < 2" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_78 (year VARCHAR, start VARCHAR)" }, { "from": "human", "value": "Name the year when start was 32" }, { "from": "gpt", "value": "SELECT year FROM table_name_78 WHERE start = 32" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_9 (finish INTEGER, year VARCHAR)" }, { "from": "human", "value": "Name the most finish for 2006" }, { "from": "gpt", "value": "SELECT MAX(finish) FROM table_name_9 WHERE year = 2006" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_25 (attendance VARCHAR, visitor VARCHAR, record VARCHAR)" }, { "from": "human", "value": "What was the total attendance at games when Detroit was the visiting team and the record was 36–13–5?" }, { "from": "gpt", "value": "SELECT ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_2 (entered_office VARCHAR, first_minister VARCHAR)" }, { "from": "human", "value": "When did first minister Henry Mcleish enter office?" }, { "from": "gpt", "value": "SELECT entered_office FROM table_name_2 WHERE first_minister = ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_86 (name VARCHAR, left_office VARCHAR)" }, { "from": "human", "value": "What is the name of the minister that left office on 14 November 2006?" }, { "from": "gpt", "value": "SELECT name FROM table_name_86 WHERE left_office = \"14 ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_45 (name VARCHAR, party VARCHAR)" }, { "from": "human", "value": "What is the name of the minister from the party of minister for community safety and legal affairs?" }, { "from": "gpt", "value": "SELECT name FROM table_name_45 WH...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_80 (name VARCHAR, entered_office VARCHAR)" }, { "from": "human", "value": "What is the name of the minister who has an entered office of entered office?" }, { "from": "gpt", "value": "SELECT name FROM table_name_80 WHERE entered_o...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_3 (party VARCHAR, left_office VARCHAR)" }, { "from": "human", "value": "What is the party of the minister who left office on 26 November 2002?" }, { "from": "gpt", "value": "SELECT party FROM table_name_3 WHERE left_office = \"26 ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_59 (party VARCHAR, name VARCHAR)" }, { "from": "human", "value": "What is the party of Richard Simpson?" }, { "from": "gpt", "value": "SELECT party FROM table_name_59 WHERE name = \"richard simpson\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_66 (spectators INTEGER, time___cest__ VARCHAR, team__number2 VARCHAR)" }, { "from": "human", "value": "Name the sum of spectators for time more than 20.05 and team #2 of estonia" }, { "from": "gpt", "value": "SELECT SUM(spectators...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_57 (spectators VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Name the spectators for 11 november 2011" }, { "from": "gpt", "value": "SELECT spectators FROM table_name_57 WHERE date = \"11 november 2011\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_68 (loss VARCHAR, record VARCHAR)" }, { "from": "human", "value": "Which loss has a Record of 54-39?" }, { "from": "gpt", "value": "SELECT loss FROM table_name_68 WHERE record = \"54-39\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_73 (opponent VARCHAR, record VARCHAR)" }, { "from": "human", "value": "Which opponent has a Record of 54-38?" }, { "from": "gpt", "value": "SELECT opponent FROM table_name_73 WHERE record = \"54-38\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_35 (opponent VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Which opponent has a date of July 7?" }, { "from": "gpt", "value": "SELECT opponent FROM table_name_35 WHERE date = \"july 7\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_54 (record VARCHAR, loss VARCHAR)" }, { "from": "human", "value": "Which record has a Loss of eichhorn (8-5)?" }, { "from": "gpt", "value": "SELECT record FROM table_name_54 WHERE loss = \"eichhorn (8-5)\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_81 (attendance INTEGER, home VARCHAR)" }, { "from": "human", "value": "What is the average attendance San Jose home games?" }, { "from": "gpt", "value": "SELECT AVG(attendance) FROM table_name_81 WHERE home = \"san jose\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_13 (record VARCHAR, loss VARCHAR)" }, { "from": "human", "value": "What was the record at the game that had a loss of Spillner (1-8)?" }, { "from": "gpt", "value": "SELECT record FROM table_name_13 WHERE loss = \"spillner (1-8)\""...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_48 (score VARCHAR, loss VARCHAR)" }, { "from": "human", "value": "What was the score of the game that had a loss of Williams (1-1)?" }, { "from": "gpt", "value": "SELECT score FROM table_name_48 WHERE loss = \"williams (1-1)\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_7 (loss VARCHAR, record VARCHAR)" }, { "from": "human", "value": "What was the loss of the game that had a record of 63-52?" }, { "from": "gpt", "value": "SELECT loss FROM table_name_7 WHERE record = \"63-52\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_90 (score VARCHAR, record VARCHAR)" }, { "from": "human", "value": "What was the score when the Washington Nationals had a record of 11-10?" }, { "from": "gpt", "value": "SELECT score FROM table_name_90 WHERE record = \"11-10\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_24 (opponent VARCHAR, record VARCHAR)" }, { "from": "human", "value": "Who was the opponent when the Washington Nationals had a record of 8-4?" }, { "from": "gpt", "value": "SELECT opponent FROM table_name_24 WHERE record = \"8-4\...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_54 (attendance VARCHAR, score VARCHAR, loss VARCHAR)" }, { "from": "human", "value": "How many people were in attendance when the Washington Nationals had a score of 7-3 and a loss of Worrell (0-1)?" }, { "from": "gpt", "value": "...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_40 (qual_2 VARCHAR, name VARCHAR)" }, { "from": "human", "value": "Name the Qual 2 which has the name of katherine legge" }, { "from": "gpt", "value": "SELECT qual_2 FROM table_name_40 WHERE name = \"katherine legge\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_2 (team VARCHAR, best VARCHAR)" }, { "from": "human", "value": "Name the team with best of 58.846" }, { "from": "gpt", "value": "SELECT team FROM table_name_2 WHERE best = \"58.846\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_46 (name VARCHAR, best VARCHAR)" }, { "from": "human", "value": "Tell me the name with best of 58.403" }, { "from": "gpt", "value": "SELECT name FROM table_name_46 WHERE best = \"58.403\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_13 (qual_1 VARCHAR, name VARCHAR)" }, { "from": "human", "value": "Tell me the qual 1 for jan heylen" }, { "from": "gpt", "value": "SELECT qual_1 FROM table_name_13 WHERE name = \"jan heylen\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_8 (loss VARCHAR, attendance VARCHAR)" }, { "from": "human", "value": "When the attendance was 24,406 who lost?" }, { "from": "gpt", "value": "SELECT loss FROM table_name_8 WHERE attendance = \"24,406\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_52 (opponent VARCHAR, record VARCHAR)" }, { "from": "human", "value": "Which of the opponents has a record of 17-25?" }, { "from": "gpt", "value": "SELECT opponent FROM table_name_52 WHERE record = \"17-25\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_32 (opponent VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Who was the opponent that played on may 12?" }, { "from": "gpt", "value": "SELECT opponent FROM table_name_32 WHERE date = \"may 12\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_18 (attendance INTEGER, league_position VARCHAR, opponents VARCHAR)" }, { "from": "human", "value": "When in the 1st league position, how many people watch as they faced West Ham United?" }, { "from": "gpt", "value": "SELECT MIN(a...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_29 (bronze INTEGER, nation VARCHAR, total VARCHAR)" }, { "from": "human", "value": "What is the average bronze medals of Uganda's swimmers when they earned over 2 medals?" }, { "from": "gpt", "value": "SELECT AVG(bronze) FROM tabl...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_95 (silver INTEGER, nation VARCHAR, total VARCHAR, bronze VARCHAR, gold VARCHAR)" }, { "from": "human", "value": "What is the highest number of silver medals that Ireland earned when they scored less than 3 bronze medals and earned 1 medal?" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_25 (silver INTEGER, total VARCHAR, gold VARCHAR, nation VARCHAR)" }, { "from": "human", "value": "What's the highest silver and 1 gold that the nation of djibouti received with a total less than 3?" }, { "from": "gpt", "value": "S...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_73 (total VARCHAR, rank VARCHAR, gold VARCHAR)" }, { "from": "human", "value": "What's the total number that had a rank larger than 17 and a gold greater than 0?" }, { "from": "gpt", "value": "SELECT COUNT(total) FROM table_name_7...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_44 (opponent VARCHAR, week INTEGER)" }, { "from": "human", "value": "Which opponent was faced before week 2?" }, { "from": "gpt", "value": "SELECT opponent FROM table_name_44 WHERE week < 2" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_30 (total INTEGER, year_s__won VARCHAR)" }, { "from": "human", "value": "Name the least total for 1978 years won" }, { "from": "gpt", "value": "SELECT MIN(total) FROM table_name_30 WHERE year_s__won = \"1978\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_24 (total VARCHAR, finish VARCHAR)" }, { "from": "human", "value": "Name the total with finish of t22" }, { "from": "gpt", "value": "SELECT total FROM table_name_24 WHERE finish = \"t22\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_47 (total INTEGER, year_s__won VARCHAR)" }, { "from": "human", "value": "Name the average total for years won of 1975" }, { "from": "gpt", "value": "SELECT AVG(total) FROM table_name_47 WHERE year_s__won = \"1975\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_26 (finish VARCHAR, player VARCHAR)" }, { "from": "human", "value": "Name the finish with player lou graham" }, { "from": "gpt", "value": "SELECT finish FROM table_name_26 WHERE player = \"lou graham\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_7 (total VARCHAR, finish VARCHAR)" }, { "from": "human", "value": "Name the total number of total with finish of t45" }, { "from": "gpt", "value": "SELECT COUNT(total) FROM table_name_7 WHERE finish = \"t45\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_73 (year VARCHAR, league VARCHAR, malaysia_cup VARCHAR)" }, { "from": "human", "value": "What year was the League the malaysian super league, and a Malaysia Cup of group stage?" }, { "from": "gpt", "value": "SELECT year FROM table...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_85 (position VARCHAR, league VARCHAR, year VARCHAR)" }, { "from": "human", "value": "What is the position when the League is the malaysian super league, and a Year of 2011?" }, { "from": "gpt", "value": "SELECT position FROM table...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_75 (year VARCHAR, position VARCHAR)" }, { "from": "human", "value": "What year was the position 6/13?" }, { "from": "gpt", "value": "SELECT year FROM table_name_75 WHERE position = \"6/13\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_38 (year VARCHAR, league VARCHAR, position VARCHAR)" }, { "from": "human", "value": "What year was the League of malaysian super league, and the Position was 10/14?" }, { "from": "gpt", "value": "SELECT year FROM table_name_38 WHE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_48 (roll INTEGER, area VARCHAR, authority VARCHAR)" }, { "from": "human", "value": "tell me the average roll for the featherston area and integrated authority." }, { "from": "gpt", "value": "SELECT AVG(roll) FROM table_name_48 WHE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_43 (authority VARCHAR, decile VARCHAR, roll VARCHAR)" }, { "from": "human", "value": "tell me the authority that has a decile less than 6 and roll less than 65." }, { "from": "gpt", "value": "SELECT authority FROM table_name_43 WH...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_83 (roll INTEGER, name VARCHAR)" }, { "from": "human", "value": "tell me the average roll for pirinoa school." }, { "from": "gpt", "value": "SELECT AVG(roll) FROM table_name_83 WHERE name = \"pirinoa school\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_90 (decile VARCHAR, roll VARCHAR)" }, { "from": "human", "value": "tell me the total number of decile with a roll showing 251." }, { "from": "gpt", "value": "SELECT COUNT(decile) FROM table_name_90 WHERE roll = 251" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_69 (score VARCHAR, year VARCHAR)" }, { "from": "human", "value": "What is the score for 2004?" }, { "from": "gpt", "value": "SELECT score FROM table_name_69 WHERE year = 2004" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_72 (location VARCHAR, score VARCHAR, champion VARCHAR, defeated VARCHAR)" }, { "from": "human", "value": "what is the location when the champion is brigham young-hawaii, defeated is western oregon and the score is 3-0 (15-5, 15-9, 15-6)?" }...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_96 (year VARCHAR, location VARCHAR, defeated VARCHAR)" }, { "from": "human", "value": "what is the year when the location is san diego, california and defeated is houston baptist (texas)?" }, { "from": "gpt", "value": "SELECT COUN...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_56 (gross_mw VARCHAR, operation_start VARCHAR)" }, { "from": "human", "value": "Operation start of 2015 has what gross mw?" }, { "from": "gpt", "value": "SELECT gross_mw FROM table_name_56 WHERE operation_start = \"2015\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_44 (operation_start VARCHAR, gross_mw VARCHAR, unit VARCHAR)" }, { "from": "human", "value": "Gross MW of 220, and a Unit of kakrapar 1 involves what operation start?" }, { "from": "gpt", "value": "SELECT operation_start FROM tabl...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_94 (gross_mw VARCHAR, type VARCHAR)" }, { "from": "human", "value": "Type of phase ii has what gross mw?" }, { "from": "gpt", "value": "SELECT gross_mw FROM table_name_94 WHERE type = \"phase ii\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_61 (type VARCHAR, construction_start VARCHAR)" }, { "from": "human", "value": "Construction start of phase i includes what type?" }, { "from": "gpt", "value": "SELECT type FROM table_name_61 WHERE construction_start = \"phase i\""...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_75 (unit VARCHAR, construction_start VARCHAR)" }, { "from": "human", "value": "Construction start of 1 december 1984 is what unit?" }, { "from": "gpt", "value": "SELECT unit FROM table_name_75 WHERE construction_start = \"1 decemb...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_51 (operation_start VARCHAR, construction_start VARCHAR)" }, { "from": "human", "value": "Construction start of phase ii has what operation start?" }, { "from": "gpt", "value": "SELECT operation_start FROM table_name_51 WHERE cons...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_70 (ungegn VARCHAR, word_form VARCHAR)" }, { "from": "human", "value": "what's the ungen for ត្រីទស?" }, { "from": "gpt", "value": "SELECT ungegn FROM table_name_70 WHERE word_form = \"ត្រីទស\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_59 (notes VARCHAR, khmer VARCHAR)" }, { "from": "human", "value": "what notes have the khmer ២៨?" }, { "from": "gpt", "value": "SELECT notes FROM table_name_59 WHERE khmer = \"២៨\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_23 (ungegn VARCHAR, khmer VARCHAR)" }, { "from": "human", "value": "what's the ungegn for the ១០០ khmer?" }, { "from": "gpt", "value": "SELECT ungegn FROM table_name_23 WHERE khmer = \"១០០\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_22 (population___2010__ INTEGER, territory VARCHAR)" }, { "from": "human", "value": "What was the population of Puerto Rico in 2010?" }, { "from": "gpt", "value": "SELECT MAX(population___2010__) FROM table_name_22 WHERE territory...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_37 (territory VARCHAR, acquired VARCHAR, capital VARCHAR)" }, { "from": "human", "value": "What is the territory that was acquired past 1899 and has a capital of saipan?" }, { "from": "gpt", "value": "SELECT territory FROM table_n...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_76 (termination_of_mission VARCHAR, appointed_by VARCHAR)" }, { "from": "human", "value": "Name the termination of mission for appointed by of franklin pierce" }, { "from": "gpt", "value": "SELECT termination_of_mission FROM table...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_45 (representative VARCHAR, presentation_of_credentials VARCHAR)" }, { "from": "human", "value": "Name the representative with presentation of credentials of august 16, 1928" }, { "from": "gpt", "value": "SELECT representative FRO...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_65 (representative VARCHAR, appointed_by VARCHAR, presentation_of_credentials VARCHAR)" }, { "from": "human", "value": "Name the representative appointed by george w. bush with presentation of credentials 9 november 2007" }, { "from":...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_21 (title VARCHAR, representative VARCHAR)" }, { "from": "human", "value": "Name the title with representative edward h. strobel" }, { "from": "gpt", "value": "SELECT title FROM table_name_21 WHERE representative = \"edward h. str...
know_sql
chosen