conversations
listlengths
3
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "CREATE TABLE table_name_67 (draw VARCHAR, place INTEGER)" }, { "from": "human", "value": "How many draw is in a place that is less than 1?" }, { "from": "gpt", "value": "SELECT COUNT(draw) FROM table_name_67 WHERE place < 1" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_31 (draw INTEGER, artist VARCHAR)" }, { "from": "human", "value": "Emilya Valenti has what draw average?" }, { "from": "gpt", "value": "SELECT AVG(draw) FROM table_name_31 WHERE artist = \"emilya valenti\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_50 (airing_date VARCHAR, english_title__chinese_title_ VARCHAR, genre VARCHAR, official_website VARCHAR, number_of_episodes VARCHAR)" }, { "from": "human", "value": "What's the airing date of Armed Reaction 陀槍師姐 with 20 episodes in the Modern...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_1 (airing_date VARCHAR, number_of_episodes VARCHAR)" }, { "from": "human", "value": "What's the airing date for the show with 62 episodes?" }, { "from": "gpt", "value": "SELECT airing_date FROM table_name_1 WHERE number_of_episode...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_33 (official_website VARCHAR, number_of_episodes VARCHAR, english_title__chinese_title_ VARCHAR)" }, { "from": "human", "value": "What's the official website of Burning Flame 烈火雄心 with 22 episodes?" }, { "from": "gpt", "value": "S...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_44 (position VARCHAR, a_score INTEGER)" }, { "from": "human", "value": "what is the position for the competitor that has a score more than 7" }, { "from": "gpt", "value": "SELECT position FROM table_name_44 WHERE a_score > 7" } ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_40 (b_score INTEGER, position VARCHAR, a_score VARCHAR)" }, { "from": "human", "value": "what is the score for the 5th position and a score less than 7" }, { "from": "gpt", "value": "SELECT MIN(b_score) FROM table_name_40 WHERE po...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_8 (total INTEGER, position VARCHAR, a_score VARCHAR)" }, { "from": "human", "value": "what is the total scored for the 8th position and a score more than 6.6" }, { "from": "gpt", "value": "SELECT MAX(total) FROM table_name_8 WHERE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_33 (meet VARCHAR, time VARCHAR)" }, { "from": "human", "value": "What is the Meet of the Event with a Time of 7:55.02?" }, { "from": "gpt", "value": "SELECT meet FROM table_name_33 WHERE time = \"7:55.02\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_93 (location VARCHAR, time VARCHAR)" }, { "from": "human", "value": "What is the Location of the Event with a Time of 2:22.32?" }, { "from": "gpt", "value": "SELECT location FROM table_name_93 WHERE time = \"2:22.32\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_48 (body_width_mm INTEGER, lead_pitch_mm VARCHAR, body_length_mm VARCHAR)" }, { "from": "human", "value": "Which Body Width/mm has a Lead Pitch/mm smaller than 0.55, and a Body Length/mm larger than 18.4?" }, { "from": "gpt", "val...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_9 (body_length_mm INTEGER, lead_pitch_mm INTEGER)" }, { "from": "human", "value": "Which Body Length/mm has a Lead Pitch/mm smaller than 0.5?" }, { "from": "gpt", "value": "SELECT AVG(body_length_mm) FROM table_name_9 WHERE lead_p...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_50 (body_width_mm VARCHAR, body_length_mm VARCHAR, pins VARCHAR)" }, { "from": "human", "value": "How much Body Width/mm has a Body Length/mm of 18.4, and Pins of 40?" }, { "from": "gpt", "value": "SELECT COUNT(body_width_mm) FROM...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_63 (body_width_mm INTEGER, lead_pitch_mm VARCHAR, part_number VARCHAR)" }, { "from": "human", "value": "Which Body Width/mm has a Lead Pitch/mm smaller than 0.55, and a Part Number of tsop48?" }, { "from": "gpt", "value": "SELECT ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_1 (lead_pitch_mm INTEGER, part_number VARCHAR, body_length_mm VARCHAR)" }, { "from": "human", "value": "Which Lead Pitch/mm has a Part Number of tsop40, and a Body Length/mm larger than 18.4?" }, { "from": "gpt", "value": "SELECT ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_10 (attendance INTEGER, time VARCHAR)" }, { "from": "human", "value": "What was the least attendance when the time was 3:15?" }, { "from": "gpt", "value": "SELECT MIN(attendance) FROM table_name_10 WHERE time = \"3:15\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_6 (date VARCHAR, time VARCHAR, game VARCHAR, location VARCHAR)" }, { "from": "human", "value": "What date was at Oakland-Alameda County Coliseum with a time of 3:40 and a game less than 5?" }, { "from": "gpt", "value": "SELECT dat...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_36 (bronze INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR)" }, { "from": "human", "value": "Which Bronze has a Gold larger than 1, and a Total larger than 11, and a Silver larger than 5?" }, { "from": "gpt", "value": "SELECT...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_67 (silver VARCHAR, gold INTEGER)" }, { "from": "human", "value": "How many silvers have more than 2 golds?" }, { "from": "gpt", "value": "SELECT COUNT(silver) FROM table_name_67 WHERE gold > 2" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_12 (firefox_ VARCHAR, _other_mozilla VARCHAR, chrome VARCHAR)" }, { "from": "human", "value": "What percentage of browsers were using Firefox or other Mozilla browsers during the period in which 1.93% were using Chrome?" }, { "from": ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_97 (internet_explorer VARCHAR, chrome VARCHAR)" }, { "from": "human", "value": "What percentage of browsers were using Internet Explorer during the period in which 24.91% were using Chrome?" }, { "from": "gpt", "value": "SELECT in...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_88 (chrome VARCHAR, internet_explorer VARCHAR)" }, { "from": "human", "value": "What percentage of browsers were using Chrome during the period in which 72.03% were using Internet Explorer?" }, { "from": "gpt", "value": "SELECT ch...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_57 (safari VARCHAR, chrome VARCHAR)" }, { "from": "human", "value": "What percentage of browsers were using Safari during the period in which 2.05% were using Chrome?" }, { "from": "gpt", "value": "SELECT safari FROM table_name_57...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_22 (chrome VARCHAR, opera VARCHAR, safari VARCHAR)" }, { "from": "human", "value": "What percentage of browsers were using Chrome during the period in which 0.30% were using Opera and 6.77% were using Safari?" }, { "from": "gpt", ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_42 (tv_network_s_ VARCHAR, country VARCHAR)" }, { "from": "human", "value": "Which TV network was located in Brazil?" }, { "from": "gpt", "value": "SELECT tv_network_s_ FROM table_name_42 WHERE country = \"brazil\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_27 (country VARCHAR, series_premiere VARCHAR, tv_network_s_ VARCHAR)" }, { "from": "human", "value": "What country has a series premier of unknown and mbc action as their TV network?" }, { "from": "gpt", "value": "SELECT country F...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_97 (weekly_schedule VARCHAR, tv_network_s_ VARCHAR)" }, { "from": "human", "value": "What is the weekly schedule for the network sky italia?" }, { "from": "gpt", "value": "SELECT weekly_schedule FROM table_name_97 WHERE tv_network...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_73 (gold INTEGER, bronze VARCHAR, silver VARCHAR)" }, { "from": "human", "value": "How many Gold medals for the Nations with 6 or more Bronze medals and 18 or more Silver?" }, { "from": "gpt", "value": "SELECT AVG(gold) FROM table...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_98 (gold INTEGER, nation VARCHAR)" }, { "from": "human", "value": "How many Gold medals did the Soviet Union receive?" }, { "from": "gpt", "value": "SELECT AVG(gold) FROM table_name_98 WHERE nation = \"soviet union\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_43 (name VARCHAR, pos VARCHAR)" }, { "from": "human", "value": "What's the name of the person in the CF Pos?" }, { "from": "gpt", "value": "SELECT name FROM table_name_43 WHERE pos = \"cf\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_83 (league_cup_apps VARCHAR, fa_cup_apps VARCHAR)" }, { "from": "human", "value": "Which league cup apps has FA as the cup apps of 5?" }, { "from": "gpt", "value": "SELECT league_cup_apps FROM table_name_83 WHERE fa_cup_apps = \"5...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_43 (league_goals INTEGER, league_cup_goals VARCHAR, position VARCHAR, total_goals VARCHAR)" }, { "from": "human", "value": "What is the lowest league goals that has fw as the position, total goals greater than 9, with league cup goals greater...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_11 (year INTEGER, event VARCHAR, venue VARCHAR)" }, { "from": "human", "value": "What is the earliest year that a team event was included at Vilamoura, Portugal?" }, { "from": "gpt", "value": "SELECT MIN(year) FROM table_name_11 W...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_96 (event VARCHAR, year VARCHAR, result VARCHAR)" }, { "from": "human", "value": "In which event before 2001 did the athlete place 16th?" }, { "from": "gpt", "value": "SELECT event FROM table_name_96 WHERE year < 2001 AND result =...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_24 (tournament VARCHAR, result VARCHAR)" }, { "from": "human", "value": "In which tournament was the result 25th?" }, { "from": "gpt", "value": "SELECT tournament FROM table_name_24 WHERE result = \"25th\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_28 (artist VARCHAR, draw VARCHAR, place VARCHAR)" }, { "from": "human", "value": "What artist has more than 6 draws, and in a place higher than 14?" }, { "from": "gpt", "value": "SELECT artist FROM table_name_28 WHERE draw > 6 AND...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_33 (social_democratic VARCHAR, democratic_and_social_centre VARCHAR)" }, { "from": "human", "value": "What Social Democratic has a Democratic and Social Centre of 10.0% 22 seats?" }, { "from": "gpt", "value": "SELECT social_democr...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_86 (social_democratic VARCHAR, democratic_and_social_centre VARCHAR)" }, { "from": "human", "value": "What Social Democratic has the Democratic and Social Centre of 4.4% 4 seats?" }, { "from": "gpt", "value": "SELECT social_democr...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_66 (number_of_teams VARCHAR, top_goalscorer_s_ VARCHAR, year VARCHAR)" }, { "from": "human", "value": "How many teams were at the 2007 details tournament where there a top goalscorer was not awarded?" }, { "from": "gpt", "value": ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_91 (location VARCHAR, best_goalkeeper VARCHAR)" }, { "from": "human", "value": "What is the location of the tournament where the best goalkeeper had 164 (8.2)?" }, { "from": "gpt", "value": "SELECT location FROM table_name_91 WHER...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_30 (section VARCHAR, level VARCHAR, season VARCHAR)" }, { "from": "human", "value": "What section were they in when there were tier 2 in 1996?" }, { "from": "gpt", "value": "SELECT section FROM table_name_30 WHERE level = \"tier 2...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_21 (administration VARCHAR, season VARCHAR, division VARCHAR, position VARCHAR)" }, { "from": "human", "value": "What is the administration when the division was Ykkönen (first division), and they were in the 1st position in 1996?" }, { ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_81 (film_title_used_in_nomination VARCHAR, actor_actress VARCHAR, category VARCHAR)" }, { "from": "human", "value": "What was the film title that emma thompson was the actress nominated for best supporting actress?" }, { "from": "gpt"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_51 (category VARCHAR, actor_actress VARCHAR, film_title_used_in_nomination VARCHAR)" }, { "from": "human", "value": "What category was al pacino nominated for in the film, glengarry glen ross?" }, { "from": "gpt", "value": "SELECT...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_26 (year__ceremony_ VARCHAR, category VARCHAR, actor_actress VARCHAR)" }, { "from": "human", "value": "What is the year when sigourney weaver was nominated for best actress?" }, { "from": "gpt", "value": "SELECT year__ceremony_ FR...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_30 (year__ceremony_ VARCHAR, result VARCHAR, actor_actress VARCHAR)" }, { "from": "human", "value": "What year was holly hunter a nominee?" }, { "from": "gpt", "value": "SELECT year__ceremony_ FROM table_name_30 WHERE result = \"n...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_61 (per_capita_income VARCHAR, median_family_income VARCHAR)" }, { "from": "human", "value": "What is the per capita income of the county with a median family income of $40,492?" }, { "from": "gpt", "value": "SELECT per_capita_inc...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_21 (year INTEGER, result VARCHAR, role_episode VARCHAR)" }, { "from": "human", "value": "what is the earliest year when the result is won and the role/episode is fox mulder?" }, { "from": "gpt", "value": "SELECT MIN(year) FROM tab...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_82 (year VARCHAR, role_episode VARCHAR)" }, { "from": "human", "value": "what is the year when the role/episode is david duchovny?" }, { "from": "gpt", "value": "SELECT year FROM table_name_82 WHERE role_episode = \"david duchovny...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_21 (date VARCHAR, week VARCHAR)" }, { "from": "human", "value": "What date has 9 as the week?" }, { "from": "gpt", "value": "SELECT date FROM table_name_21 WHERE week = 9" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_16 (total INTEGER, tally VARCHAR)" }, { "from": "human", "value": "What is the average total of the 0-8 tally?" }, { "from": "gpt", "value": "SELECT AVG(total) FROM table_name_16 WHERE tally = \"0-8\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_6 (rank VARCHAR, opposition VARCHAR)" }, { "from": "human", "value": "What is the total rank of the match with tipperary as the opposition?" }, { "from": "gpt", "value": "SELECT COUNT(rank) FROM table_name_6 WHERE opposition = \"t...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_62 (total INTEGER, player VARCHAR, rank VARCHAR)" }, { "from": "human", "value": "What is the lowest total of player tommy ring, who has a rank greater than 1?" }, { "from": "gpt", "value": "SELECT MIN(total) FROM table_name_62 WH...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_5 (rank INTEGER, opposition VARCHAR, total VARCHAR)" }, { "from": "human", "value": "What is the average rank of the match where offaly was the opposition and the total was greater than 9?" }, { "from": "gpt", "value": "SELECT AVG...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_34 (municipality VARCHAR, party VARCHAR, election VARCHAR)" }, { "from": "human", "value": "Which municipality has a party of Lega Friuli-VG that won elections before 2011?" }, { "from": "gpt", "value": "SELECT municipality FROM t...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_99 (party VARCHAR, mayor VARCHAR)" }, { "from": "human", "value": "Which party is Ettore Romoli from?" }, { "from": "gpt", "value": "SELECT party FROM table_name_99 WHERE mayor = \"ettore romoli\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_59 (campus VARCHAR, location VARCHAR)" }, { "from": "human", "value": "What campus is in Brgy. Alangilan, Batangas City?" }, { "from": "gpt", "value": "SELECT campus FROM table_name_59 WHERE location = \"brgy. alangilan, batangas ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_41 (founded VARCHAR, location VARCHAR)" }, { "from": "human", "value": "When was the Balayan, Batangas campus founded?" }, { "from": "gpt", "value": "SELECT founded FROM table_name_41 WHERE location = \"balayan, batangas\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_84 (executive_director VARCHAR, type VARCHAR, location VARCHAR)" }, { "from": "human", "value": "Who is the executive director of the Lemery, Batangas extension?" }, { "from": "gpt", "value": "SELECT executive_director FROM table_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_81 (silver VARCHAR, bronze VARCHAR, gold VARCHAR, rank VARCHAR)" }, { "from": "human", "value": "What is number of silver for the country with more than 0 gold, rank of 14, and more than 4 bronze?" }, { "from": "gpt", "value": "SE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_19 (gold INTEGER, rank VARCHAR)" }, { "from": "human", "value": "What is the number of gold for the country ranked 19?" }, { "from": "gpt", "value": "SELECT SUM(gold) FROM table_name_19 WHERE rank = \"19\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_83 (silver INTEGER, bronze INTEGER)" }, { "from": "human", "value": "What is the least amount of silver when there is less than 0 bronze?" }, { "from": "gpt", "value": "SELECT MIN(silver) FROM table_name_83 WHERE bronze < 0" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_99 (bronze INTEGER, total VARCHAR, gold VARCHAR)" }, { "from": "human", "value": "What is the most bronze when the total is 14, and there are more than 6 gold?" }, { "from": "gpt", "value": "SELECT MAX(bronze) FROM table_name_99 W...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_79 (snatch VARCHAR)" }, { "from": "human", "value": "Who has 187kg and a Snatch of Clean & Jerk?" }, { "from": "gpt", "value": "SELECT 187 AS kg FROM table_name_79 WHERE snatch = \"clean & jerk\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_81 (reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR)" }, { "from": "human", "value": "What is the Reserved for (SC / ST /None) when the constituency number is 203?" }, { "from": "gpt", "value": "SELECT reserved_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_21 (number_of_electorates__2009_ INTEGER, constituency_number VARCHAR, district VARCHAR, reserved_for___sc___st__none_ VARCHAR)" }, { "from": "human", "value": "What is the number of electorates (2009) for the Indore district, when reserved f...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_95 (other VARCHAR, firefox VARCHAR)" }, { "from": "human", "value": "What percentage of users were using other browsers according to the source that reported 21.22% were using Firefox?" }, { "from": "gpt", "value": "SELECT other F...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_60 (firefox VARCHAR, source VARCHAR)" }, { "from": "human", "value": "According to W3Counter, what percentage of browsers used Firefox?" }, { "from": "gpt", "value": "SELECT firefox FROM table_name_60 WHERE source = \"w3counter\""...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_22 (firefox VARCHAR, internet_explorer VARCHAR)" }, { "from": "human", "value": "What percentage of users were using Firefox according to the source that reported 21.70% used Internet Explorer?" }, { "from": "gpt", "value": "SELEC...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_43 (source VARCHAR, chrome VARCHAR)" }, { "from": "human", "value": "Which source reported 32.60% of browsers used Chrome?" }, { "from": "gpt", "value": "SELECT source FROM table_name_43 WHERE chrome = \"32.60%\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_66 (firefox VARCHAR, safari VARCHAR)" }, { "from": "human", "value": "What percentage of users were using Firefox according to the source that reported 15.40% used Safari?" }, { "from": "gpt", "value": "SELECT firefox FROM table_n...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_53 (internet_explorer VARCHAR, firefox VARCHAR)" }, { "from": "human", "value": "What percentage of users were using Internet Explorer according to the source that reported 20.01% used Firefox?" }, { "from": "gpt", "value": "SELEC...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_7 (points INTEGER, team VARCHAR, year VARCHAR)" }, { "from": "human", "value": "How many points did team Rothmans Honda have in 1992?" }, { "from": "gpt", "value": "SELECT MIN(points) FROM table_name_7 WHERE team = \"rothmans hond...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_66 (class VARCHAR, year VARCHAR, points VARCHAR)" }, { "from": "human", "value": "What class before 1990 has points of 33?" }, { "from": "gpt", "value": "SELECT class FROM table_name_66 WHERE year < 1990 AND points = 33" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_74 (points VARCHAR, year VARCHAR)" }, { "from": "human", "value": "How many total points were in 1992?" }, { "from": "gpt", "value": "SELECT COUNT(points) FROM table_name_74 WHERE year = 1992" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_58 (class VARCHAR, wins VARCHAR, year VARCHAR)" }, { "from": "human", "value": "In 1992, what class has higher wins than 0?" }, { "from": "gpt", "value": "SELECT class FROM table_name_58 WHERE wins > 0 AND year = 1992" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_34 (class VARCHAR, team VARCHAR, points VARCHAR)" }, { "from": "human", "value": "What was the class that team Honda Britain was in with points higher than 0?" }, { "from": "gpt", "value": "SELECT class FROM table_name_34 WHERE te...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_55 (fa_cup_goals INTEGER, league_cup_apps VARCHAR, name VARCHAR)" }, { "from": "human", "value": "Which FA Cup Goals have League Cup Apps larger than 0, and a Name of trevor cherry?" }, { "from": "gpt", "value": "SELECT MAX(fa_cup...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_43 (league_goals INTEGER, league_cup_goals INTEGER)" }, { "from": "human", "value": "How many League Goals have League Cup Goals smaller than 0?" }, { "from": "gpt", "value": "SELECT SUM(league_goals) FROM table_name_43 WHERE leag...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_56 (tournament VARCHAR)" }, { "from": "human", "value": "What's the 2009 of the Australian Open having a 1R in 2011?" }, { "from": "gpt", "value": "SELECT 2009 FROM table_name_56 WHERE 2011 = \"1r\" AND tournament = \"australian o...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_87 (tournament VARCHAR)" }, { "from": "human", "value": "What's the 2008 of the Australian Open when the 2011 was 1R?" }, { "from": "gpt", "value": "SELECT 2008 FROM table_name_87 WHERE 2011 = \"1r\" AND tournament = \"australian ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_17 (tournament VARCHAR)" }, { "from": "human", "value": "What's the 2008 of the US Open when 2010 was 2R and 2011 was 1R?" }, { "from": "gpt", "value": "SELECT 2008 FROM table_name_17 WHERE 2011 = \"1r\" AND 2010 = \"2r\" AND tour...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_22 (number_of_episodes INTEGER, airing_date VARCHAR)" }, { "from": "human", "value": "What is the lowest number of episodes in a series with an airing date of 12 jan- 6 feb?" }, { "from": "gpt", "value": "SELECT MIN(number_of_epis...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_40 (tournament VARCHAR, opponent_in_the_final VARCHAR)" }, { "from": "human", "value": "What tournament has petra mandula patricia wartusch as the opponent in the final?" }, { "from": "gpt", "value": "SELECT tournament FROM table_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_92 (date VARCHAR, opponent_in_the_final VARCHAR)" }, { "from": "human", "value": "What date has kimberly po nathalie tauziat as the opponent in the final?" }, { "from": "gpt", "value": "SELECT date FROM table_name_92 WHERE opponen...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_38 (score VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What score has February 12, 2006 as the date?" }, { "from": "gpt", "value": "SELECT score FROM table_name_38 WHERE date = \"february 12, 2006\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_69 (opponent_in_the_final VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What opponent in the final has October 9, 2005 as the date?" }, { "from": "gpt", "value": "SELECT opponent_in_the_final FROM table_name_69 WHERE dat...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_20 (to_par VARCHAR, player VARCHAR)" }, { "from": "human", "value": "What is the to par for Bo Bae Song?" }, { "from": "gpt", "value": "SELECT to_par FROM table_name_20 WHERE player = \"bo bae song\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_70 (to_par VARCHAR, place VARCHAR, player VARCHAR)" }, { "from": "human", "value": "What is the to par for Jiyai Shin when the place is t1?" }, { "from": "gpt", "value": "SELECT to_par FROM table_name_70 WHERE place = \"t1\" AND p...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_49 (to_par VARCHAR, place VARCHAR, player VARCHAR)" }, { "from": "human", "value": "What is the to par for Jiyai Shin in place t1?" }, { "from": "gpt", "value": "SELECT to_par FROM table_name_49 WHERE place = \"t1\" AND player = \...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_72 (score VARCHAR, place VARCHAR, player VARCHAR)" }, { "from": "human", "value": "What was Laura Diaz's score for place t9?" }, { "from": "gpt", "value": "SELECT score FROM table_name_72 WHERE place = \"t9\" AND player = \"laura ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_65 (country VARCHAR, player VARCHAR)" }, { "from": "human", "value": "What country does Bo Bae Song play for?" }, { "from": "gpt", "value": "SELECT country FROM table_name_65 WHERE player = \"bo bae song\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_37 (gold INTEGER, nation VARCHAR, total VARCHAR)" }, { "from": "human", "value": "How many gold medals did Brazil win with a total of more than 55 medals?" }, { "from": "gpt", "value": "SELECT AVG(gold) FROM table_name_37 WHERE na...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_38 (rank VARCHAR, silver VARCHAR, bronze VARCHAR)" }, { "from": "human", "value": "How many teams won more than 2 silver medals and fewer than 2 Bronze medals?" }, { "from": "gpt", "value": "SELECT COUNT(rank) FROM table_name_38 W...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_92 (gold INTEGER, nation VARCHAR)" }, { "from": "human", "value": "What is the fewest gold medals won by Greece?" }, { "from": "gpt", "value": "SELECT MIN(gold) FROM table_name_92 WHERE nation = \"greece\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_55 (rank INTEGER, nation VARCHAR, bronze VARCHAR)" }, { "from": "human", "value": "What is the lowest rank of the United States, with fewer than 4 bronze medals?" }, { "from": "gpt", "value": "SELECT MIN(rank) FROM table_name_55 W...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_83 (gold INTEGER, silver VARCHAR, bronze VARCHAR)" }, { "from": "human", "value": "What is the highest number of gold medals won by a team that won fewer than 2 silver and fewer than 4 bronze medals?" }, { "from": "gpt", "value": ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_72 (react INTEGER, time VARCHAR, lane VARCHAR, rank VARCHAR)" }, { "from": "human", "value": "Which React has a Lane smaller than 4, and a Rank larger than 4, and a Time larger than 23.22?" }, { "from": "gpt", "value": "SELECT AVG...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_67 (against INTEGER, draws VARCHAR, losses VARCHAR)" }, { "from": "human", "value": "What shows for against when draws are 0, and losses are 16?" }, { "from": "gpt", "value": "SELECT AVG(against) FROM table_name_67 WHERE draws = 0...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_59 (wins INTEGER, draws VARCHAR, byes VARCHAR)" }, { "from": "human", "value": "What is the highest number of wins when draws are larger than 1, and byes are larger than 0?" }, { "from": "gpt", "value": "SELECT MAX(wins) FROM tabl...
know_sql
chosen