conversations
listlengths
3
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "CREATE TABLE table_name_72 (latitude INTEGER, water__sqmi_ VARCHAR, county VARCHAR, land___sqmi__ VARCHAR, pop__2010_ VARCHAR)" }, { "from": "human", "value": "Cass county has 0.008 Water (sqmi), less than 35.874 Land (sqmi), more than 35 Pop. (2010), and what avera...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_4 (county VARCHAR, latitude VARCHAR, geo_id VARCHAR)" }, { "from": "human", "value": "In what county is the latitude less than 46.935364 and GEO ID is 3801700500?" }, { "from": "gpt", "value": "SELECT county FROM table_name_4 WHER...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_33 (opponent VARCHAR, score VARCHAR)" }, { "from": "human", "value": "Who was the opponent at the game with a score of 35-14?" }, { "from": "gpt", "value": "SELECT opponent FROM table_name_33 WHERE score = \"35-14\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_21 (result VARCHAR, record VARCHAR)" }, { "from": "human", "value": "What was the result of the game when the record was 5-1?" }, { "from": "gpt", "value": "SELECT result FROM table_name_21 WHERE record = \"5-1\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_49 (result VARCHAR, opponent VARCHAR)" }, { "from": "human", "value": "What was the result of the game against the Los Angeles Dons?" }, { "from": "gpt", "value": "SELECT result FROM table_name_49 WHERE opponent = \"los angeles do...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_75 (year INTEGER, venue VARCHAR, event VARCHAR)" }, { "from": "human", "value": "Which Year has a Venue of bydgoszcz, poland, and an Event of junior team?" }, { "from": "gpt", "value": "SELECT AVG(year) FROM table_name_75 WHERE ve...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_72 (venue VARCHAR, competition VARCHAR, year VARCHAR, event VARCHAR)" }, { "from": "human", "value": "Which Venue has a Year smaller than 2009, and an Event of 3000 m, and a Competition of world youth championships?" }, { "from": "gpt...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_94 (year INTEGER, competition VARCHAR)" }, { "from": "human", "value": "Which Year has a Competition of commonwealth youth games?" }, { "from": "gpt", "value": "SELECT AVG(year) FROM table_name_94 WHERE competition = \"commonwealt...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_86 (rank VARCHAR, year VARCHAR)" }, { "from": "human", "value": "What is the total for 1986?" }, { "from": "gpt", "value": "SELECT COUNT(rank) FROM table_name_86 WHERE year = 1986" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_61 (name VARCHAR, year VARCHAR, floors VARCHAR)" }, { "from": "human", "value": "What is the name before 1954 with more than 15 floors?" }, { "from": "gpt", "value": "SELECT name FROM table_name_61 WHERE year < 1954 AND floors > 1...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_86 (rank INTEGER, name VARCHAR)" }, { "from": "human", "value": "What is the lowest rank for El Paso Natural Gas Company Building?" }, { "from": "gpt", "value": "SELECT MIN(rank) FROM table_name_86 WHERE name = \"el paso natural g...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_64 (rank VARCHAR, province VARCHAR)" }, { "from": "human", "value": "What is the rank of the gauteng province?" }, { "from": "gpt", "value": "SELECT rank FROM table_name_64 WHERE province = \"gauteng\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_57 (population_estimate__2013_ INTEGER, percentage VARCHAR)" }, { "from": "human", "value": "What is the lowest 2013 population estimate of the province with a 23.7 percentage?" }, { "from": "gpt", "value": "SELECT MIN(population_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_81 (years_runner_up VARCHAR, team VARCHAR)" }, { "from": "human", "value": "What year(s) was Duisburg runner-up?" }, { "from": "gpt", "value": "SELECT years_runner_up FROM table_name_81 WHERE team = \"duisburg\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_48 (year INTEGER, notes VARCHAR)" }, { "from": "human", "value": "What was the earliest year with a note of 18.04 m wl?" }, { "from": "gpt", "value": "SELECT MIN(year) FROM table_name_48 WHERE notes = \"18.04 m wl\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_29 (venue VARCHAR, year VARCHAR, competition VARCHAR)" }, { "from": "human", "value": "What venue had a competition of World Junior Championships before 2011?" }, { "from": "gpt", "value": "SELECT venue FROM table_name_29 WHERE ye...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_46 (developer_s_ VARCHAR, game VARCHAR)" }, { "from": "human", "value": "Who was the developer of Call of Duty: Black Ops?" }, { "from": "gpt", "value": "SELECT developer_s_ FROM table_name_46 WHERE game = \"call of duty: black op...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_65 (platform_s_ VARCHAR, genre VARCHAR)" }, { "from": "human", "value": "What is the platform for the game of the third-person shooter genre?" }, { "from": "gpt", "value": "SELECT platform_s_ FROM table_name_65 WHERE genre = \"thi...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_95 (platform_s_ VARCHAR, year VARCHAR)" }, { "from": "human", "value": "What is the platform of the game from 2007?" }, { "from": "gpt", "value": "SELECT platform_s_ FROM table_name_95 WHERE year = 2007" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_4 (developer_s_ VARCHAR, game VARCHAR)" }, { "from": "human", "value": "Who was the developer of Resident Evil 4?" }, { "from": "gpt", "value": "SELECT developer_s_ FROM table_name_4 WHERE game = \"resident evil 4\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_52 (rank INTEGER, name VARCHAR, time VARCHAR)" }, { "from": "human", "value": "What was the rank of flori lang when his time was less than 22.27" }, { "from": "gpt", "value": "SELECT SUM(rank) FROM table_name_52 WHERE name = \"flo...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_59 (lane INTEGER, time VARCHAR, heat VARCHAR, rank VARCHAR)" }, { "from": "human", "value": "What lane had a heat after 12, a rank of 38 and a time larger than 22.67?" }, { "from": "gpt", "value": "SELECT AVG(lane) FROM table_name...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_14 (game VARCHAR, record VARCHAR)" }, { "from": "human", "value": "What game has 27-12 record?" }, { "from": "gpt", "value": "SELECT game FROM table_name_14 WHERE record = \"27-12\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_43 (date VARCHAR, record VARCHAR)" }, { "from": "human", "value": "What date was the record 21-11?" }, { "from": "gpt", "value": "SELECT date FROM table_name_43 WHERE record = \"21-11\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_33 (location_attendance VARCHAR, score VARCHAR)" }, { "from": "human", "value": "What is the location/attendance for the w 95-93 score?" }, { "from": "gpt", "value": "SELECT location_attendance FROM table_name_33 WHERE score = \"w...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_95 (location_attendance VARCHAR, record VARCHAR)" }, { "from": "human", "value": "What is the location/attendance with a 26-11 record?" }, { "from": "gpt", "value": "SELECT location_attendance FROM table_name_95 WHERE record = \"2...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_44 (opponent VARCHAR, record VARCHAR)" }, { "from": "human", "value": "Which opponent has a 26-12 record?" }, { "from": "gpt", "value": "SELECT opponent FROM table_name_44 WHERE record = \"26-12\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_95 (time VARCHAR, rower VARCHAR)" }, { "from": "human", "value": "What is Lee Ka Man's Time?" }, { "from": "gpt", "value": "SELECT time FROM table_name_95 WHERE rower = \"lee ka man\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_35 (rank VARCHAR, time VARCHAR)" }, { "from": "human", "value": "What is the Rank of the rower with a Time of 8:23.02?" }, { "from": "gpt", "value": "SELECT COUNT(rank) FROM table_name_35 WHERE time = \"8:23.02\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_40 (gold INTEGER, rank VARCHAR, bronze VARCHAR)" }, { "from": "human", "value": "What is the most gold when the rank is 7 and bronze is less than 0?" }, { "from": "gpt", "value": "SELECT MAX(gold) FROM table_name_40 WHERE rank = \...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_33 (gold INTEGER, total VARCHAR)" }, { "from": "human", "value": "what is the most gold when the total is 7?" }, { "from": "gpt", "value": "SELECT MAX(gold) FROM table_name_33 WHERE total = 7" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_71 (gold INTEGER, rank VARCHAR, silver VARCHAR)" }, { "from": "human", "value": "what is the least gold when the rank is 10 and silver is less than 0?" }, { "from": "gpt", "value": "SELECT MIN(gold) FROM table_name_71 WHERE rank =...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_24 (total INTEGER, nation VARCHAR, silver VARCHAR)" }, { "from": "human", "value": "what is the lowest total when the nation is sweden (swe) and silver is less than 0?" }, { "from": "gpt", "value": "SELECT MIN(total) FROM table_na...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_64 (total INTEGER, gold VARCHAR, silver VARCHAR, bronze VARCHAR)" }, { "from": "human", "value": "what is the average total when silver is more than 2, bronze is 12 and gold is less than 12?" }, { "from": "gpt", "value": "SELECT A...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_38 (longitude VARCHAR, latitude VARCHAR, geo_id VARCHAR)" }, { "from": "human", "value": "What is the longitude with a latitude of 48.930222 with a Geo ID smaller than 3806755660?" }, { "from": "gpt", "value": "SELECT COUNT(longit...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_18 (latitude VARCHAR, longitude VARCHAR, land___sqmi__ VARCHAR, geo_id VARCHAR)" }, { "from": "human", "value": "What is the latitude that has a sqmi smaller than 34.401, a Geo ID smaller than 3807157722, and a Longitude of -98.475995?" }, ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_68 (longitude VARCHAR, township VARCHAR, geo_id VARCHAR)" }, { "from": "human", "value": "What is the total longitude of Nogosek and a GEO ID larger than 3809357060?" }, { "from": "gpt", "value": "SELECT COUNT(longitude) FROM tabl...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_46 (band INTEGER, power__w_ INTEGER)" }, { "from": "human", "value": "What Band number has a Power (W) of 400 or less?" }, { "from": "gpt", "value": "SELECT SUM(band) FROM table_name_46 WHERE power__w_ < 400" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_33 (band INTEGER, power__w_ INTEGER)" }, { "from": "human", "value": "What Band's Power (W) is 400 or less?" }, { "from": "gpt", "value": "SELECT MAX(band) FROM table_name_33 WHERE power__w_ > 400" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_53 (wavelength VARCHAR, frequency__mhz_ VARCHAR)" }, { "from": "human", "value": "What is the Wavelength of Frequency (MHz) 14.050–14.150?" }, { "from": "gpt", "value": "SELECT wavelength FROM table_name_53 WHERE frequency__mhz_ =...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_73 (recipients_and_nominees VARCHAR, year VARCHAR)" }, { "from": "human", "value": "Who are the recipients in 1994?" }, { "from": "gpt", "value": "SELECT recipients_and_nominees FROM table_name_73 WHERE year = 1994" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_30 (recipients_and_nominees VARCHAR, role_episode VARCHAR, result VARCHAR)" }, { "from": "human", "value": "Who are the recipients that won for David Duchovny role/episode?" }, { "from": "gpt", "value": "SELECT recipients_and_nomi...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_37 (category VARCHAR, year VARCHAR, role_episode VARCHAR)" }, { "from": "human", "value": "What's the category in 1998 with the role/episode of David Duchovny?" }, { "from": "gpt", "value": "SELECT category FROM table_name_37 WHER...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_69 (network VARCHAR, aspect VARCHAR, channel VARCHAR)" }, { "from": "human", "value": "Which network has more than 31.4 channels with a 4:3 aspect?" }, { "from": "gpt", "value": "SELECT network FROM table_name_69 WHERE aspect = \"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_97 (video VARCHAR, aspect VARCHAR, channel VARCHAR)" }, { "from": "human", "value": "Which video is on channel 31.2 with a 4:3 aspect?" }, { "from": "gpt", "value": "SELECT video FROM table_name_97 WHERE aspect = \"4:3\" AND chann...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_77 (video VARCHAR, aspect VARCHAR)" }, { "from": "human", "value": "Which video has a 16:9 aspect?" }, { "from": "gpt", "value": "SELECT video FROM table_name_77 WHERE aspect = \"16:9\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_94 (constituency_number VARCHAR, reserved_for___sc___st__none_ VARCHAR, district VARCHAR)" }, { "from": "human", "value": "What's the constituency number of the Seoni district and has none reserved?" }, { "from": "gpt", "value": "...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_64 (district VARCHAR, reserved_for___sc___st__none_ VARCHAR, name VARCHAR)" }, { "from": "human", "value": "What is the district of Paraswada with none reserved?" }, { "from": "gpt", "value": "SELECT district FROM table_name_64 WH...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_43 (reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR)" }, { "from": "human", "value": "What's the reserved number for constituency number 108?" }, { "from": "gpt", "value": "SELECT reserved_for___sc___st__none_ F...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_65 (name VARCHAR, constituency_number VARCHAR)" }, { "from": "human", "value": "What's the name of Constituency number 108?" }, { "from": "gpt", "value": "SELECT name FROM table_name_65 WHERE constituency_number = \"108\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_77 (total INTEGER, gold VARCHAR, bronze VARCHAR, silver VARCHAR)" }, { "from": "human", "value": "What is the lowest total medals when there were 0 gold medals, 0 silver medals, and more than 1 bronze medal?" }, { "from": "gpt", "...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_49 (bronze INTEGER, silver VARCHAR, total VARCHAR, rank VARCHAR)" }, { "from": "human", "value": "What is the sum of the bronze medals when there were less than 8 total medals, 0 silver medals and a rank of 9?" }, { "from": "gpt", ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_19 (nation VARCHAR, silver VARCHAR, rank VARCHAR, total VARCHAR)" }, { "from": "human", "value": "What nation had a rank higher than 4, a total of 2 medals and more than 0 silver medals?" }, { "from": "gpt", "value": "SELECT natio...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_9 (rank INTEGER, total VARCHAR, gold VARCHAR)" }, { "from": "human", "value": "What was the average rank for the team that had more than 5 medals and more than 6 gold medals?" }, { "from": "gpt", "value": "SELECT AVG(rank) FROM ta...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_7 (artist VARCHAR, draw VARCHAR, points VARCHAR)" }, { "from": "human", "value": "Which artist has a draw higher than 4 and fewer than 5 points?" }, { "from": "gpt", "value": "SELECT artist FROM table_name_7 WHERE draw > 4 AND poi...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_42 (artist VARCHAR, points VARCHAR)" }, { "from": "human", "value": "Which artist has 13 points?" }, { "from": "gpt", "value": "SELECT artist FROM table_name_42 WHERE points = 13" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_4 (b_score INTEGER, a_score INTEGER)" }, { "from": "human", "value": "What is the greatest B score when the A score was less than 6.5?" }, { "from": "gpt", "value": "SELECT MAX(b_score) FROM table_name_4 WHERE a_score < 6.5" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_66 (time VARCHAR, notes VARCHAR, country VARCHAR)" }, { "from": "human", "value": "What is the Time of the Great Britain players with Notes of SA/B?" }, { "from": "gpt", "value": "SELECT time FROM table_name_66 WHERE notes = \"sa/...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_99 (rowers VARCHAR, notes VARCHAR, time VARCHAR)" }, { "from": "human", "value": "What is the Rowers of the race with a Time of 7:41.97 and Notes of FC?" }, { "from": "gpt", "value": "SELECT rowers FROM table_name_99 WHERE notes =...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_66 (week INTEGER, opponent VARCHAR)" }, { "from": "human", "value": "What is the Week of the game against the Minnesota Vikings?" }, { "from": "gpt", "value": "SELECT MIN(week) FROM table_name_66 WHERE opponent = \"minnesota vikin...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_71 (week INTEGER, opponent VARCHAR)" }, { "from": "human", "value": "What is the Week of the game against Green Bay Packers?" }, { "from": "gpt", "value": "SELECT AVG(week) FROM table_name_71 WHERE opponent = \"green bay packers\"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_46 (attendance VARCHAR, result VARCHAR)" }, { "from": "human", "value": "What is the Attendance of the game with a Result of L 20-14?" }, { "from": "gpt", "value": "SELECT attendance FROM table_name_46 WHERE result = \"l 20-14\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_93 (week INTEGER, date VARCHAR)" }, { "from": "human", "value": "What is the Week number on October 5, 2003?" }, { "from": "gpt", "value": "SELECT MIN(week) FROM table_name_93 WHERE date = \"october 5, 2003\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_78 (week VARCHAR, attendance VARCHAR)" }, { "from": "human", "value": "What is the Week number with an Attendance of 62,123?" }, { "from": "gpt", "value": "SELECT COUNT(week) FROM table_name_78 WHERE attendance = \"62,123\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_58 (number_of_households INTEGER, county VARCHAR)" }, { "from": "human", "value": "How many households are in Ottawa?" }, { "from": "gpt", "value": "SELECT SUM(number_of_households) FROM table_name_58 WHERE county = \"ottawa\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_28 (enrollment INTEGER, location VARCHAR)" }, { "from": "human", "value": "What is the sum of enrollments for schools located in Culver?" }, { "from": "gpt", "value": "SELECT SUM(enrollment) FROM table_name_28 WHERE location = \"c...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_46 (year_joined VARCHAR, enrollment VARCHAR)" }, { "from": "human", "value": "Which year did the school with enrollment of 413 join?" }, { "from": "gpt", "value": "SELECT year_joined FROM table_name_46 WHERE enrollment = 413" } ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_83 (year VARCHAR, category VARCHAR)" }, { "from": "human", "value": "How many years was Reasons to be Pretty nominated for best play?" }, { "from": "gpt", "value": "SELECT COUNT(year) FROM table_name_83 WHERE category = \"best pla...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_56 (year INTEGER, category VARCHAR)" }, { "from": "human", "value": "What is the first year that Reasons to be Pretty had a nominee for best performance by a leading actor in a play?" }, { "from": "gpt", "value": "SELECT MIN(year)...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_23 (match_report VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What is the match report from the game played on 28 february 2009?" }, { "from": "gpt", "value": "SELECT match_report FROM table_name_23 WHERE date = \"28 fe...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_4 (match_report VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What is the match report from the game played on 25 april 2009?" }, { "from": "gpt", "value": "SELECT match_report FROM table_name_4 WHERE date = \"25 april 2...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_2 (venue VARCHAR, opponents VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Where was the game played on 3 january 2009 against east fife?" }, { "from": "gpt", "value": "SELECT venue FROM table_name_2 WHERE opponents = \"e...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_13 (match_report VARCHAR, date VARCHAR, venue VARCHAR, competition VARCHAR)" }, { "from": "human", "value": "What is the match report for the game that was played on 23 august 2008 in stark's park during the second division competition?" },...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_29 (match_report VARCHAR, opponents VARCHAR, venue VARCHAR)" }, { "from": "human", "value": "What is the match report for the game played at forthbank stadium against stirling albion?" }, { "from": "gpt", "value": "SELECT match_re...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_85 (quantity INTEGER, drg_number_s_ VARCHAR)" }, { "from": "human", "value": "What is average quantity, when DRG number is 99 011?" }, { "from": "gpt", "value": "SELECT AVG(quantity) FROM table_name_85 WHERE drg_number_s_ = \"99 0...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_19 (railway_number_s_ VARCHAR, quantity VARCHAR)" }, { "from": "human", "value": "Which railway number has 3 quantity?" }, { "from": "gpt", "value": "SELECT railway_number_s_ FROM table_name_19 WHERE quantity = 3" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_32 (drg_number_s_ VARCHAR, railway_number_s_ VARCHAR)" }, { "from": "human", "value": "Which DRG number has xxx railway number?" }, { "from": "gpt", "value": "SELECT drg_number_s_ FROM table_name_32 WHERE railway_number_s_ = \"xxx...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_58 (quantity VARCHAR, axle_arrangement___uic___bauart VARCHAR, drg_number_s_ VARCHAR)" }, { "from": "human", "value": "Which quantity has Axle arrangement (UIC)bauart of c n2t, and DRG number 99 093?" }, { "from": "gpt", "value": ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_8 (song VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What song came out on March 8, 2008?" }, { "from": "gpt", "value": "SELECT song FROM table_name_8 WHERE date = \"march 8, 2008\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_5 (topic_of_the_show VARCHAR, date VARCHAR)" }, { "from": "human", "value": "What was the topic of the show on March 15, 2008?" }, { "from": "gpt", "value": "SELECT topic_of_the_show FROM table_name_5 WHERE date = \"march 15, 2008...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_82 (wins INTEGER, against VARCHAR, losses VARCHAR)" }, { "from": "human", "value": "When against is more than 1244 with less than 8 losses, what is the average of wins?" }, { "from": "gpt", "value": "SELECT AVG(wins) FROM table_na...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_76 (name VARCHAR, ref_number VARCHAR, location VARCHAR)" }, { "from": "human", "value": "What is the name of the mill located on Anawan Street with a reference number larger than 8?" }, { "from": "gpt", "value": "SELECT name FROM ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_7 (name VARCHAR, construction VARCHAR, ref_number VARCHAR, built VARCHAR)" }, { "from": "human", "value": "What is the name of the mill constructed of red brick in 1910 with a reference number lower than 55?" }, { "from": "gpt", "...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_7 (location VARCHAR, built VARCHAR, name VARCHAR)" }, { "from": "human", "value": "What is the location of the Durfee Mill No. 1, built before 1872 ?" }, { "from": "gpt", "value": "SELECT location FROM table_name_7 WHERE built < 1...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_99 (location VARCHAR, ref_number VARCHAR)" }, { "from": "human", "value": "What is the location of the mill with a reference number of 44?" }, { "from": "gpt", "value": "SELECT location FROM table_name_99 WHERE ref_number = 44" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_89 (construction VARCHAR, name__wade_giles_ VARCHAR)" }, { "from": "human", "value": "Which Construction is named of fu-hsing?" }, { "from": "gpt", "value": "SELECT construction FROM table_name_89 WHERE name__wade_giles_ = \"fu-hs...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_69 (construction VARCHAR, name__wade_giles_ VARCHAR)" }, { "from": "human", "value": "which Construction is named heng-hai?" }, { "from": "gpt", "value": "SELECT construction FROM table_name_69 WHERE name__wade_giles_ = \"heng-hai...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_33 (characters VARCHAR, construction VARCHAR)" }, { "from": "human", "value": "Who has a Construction of 1873, foochow navy yard?" }, { "from": "gpt", "value": "SELECT characters FROM table_name_33 WHERE construction = \"1873, fo...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_64 (name__pinyin_ VARCHAR, name__wade_giles_ VARCHAR)" }, { "from": "human", "value": "Which Name (pinyin) is named fu-ching?" }, { "from": "gpt", "value": "SELECT name__pinyin_ FROM table_name_64 WHERE name__wade_giles_ = \"fu-ch...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_1 (characters VARCHAR, construction VARCHAR, name__wade_giles_ VARCHAR)" }, { "from": "human", "value": "Who has a Construction of 1870, foochow navy yard, and a Name (Wade Giles) of fu-hsing?" }, { "from": "gpt", "value": "SELECT...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_16 (label VARCHAR, release VARCHAR)" }, { "from": "human", "value": "Which Label has a Release of liebesgrüsse aus ost-berlin?" }, { "from": "gpt", "value": "SELECT label FROM table_name_16 WHERE release = \"liebesgrüsse aus ost-b...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_20 (rank INTEGER, games_played INTEGER)" }, { "from": "human", "value": "What is the rank of the person with more than 5 games played?" }, { "from": "gpt", "value": "SELECT SUM(rank) FROM table_name_20 WHERE games_played > 5" } ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_61 (gold VARCHAR, rank VARCHAR, bronze VARCHAR, silver VARCHAR)" }, { "from": "human", "value": "How many golds have a bronze greater than 1, a silver greater than 1, with total as the rank?" }, { "from": "gpt", "value": "SELECT C...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_27 (gold VARCHAR, silver VARCHAR, bronze VARCHAR, nation VARCHAR)" }, { "from": "human", "value": "How many golds have a bronze greater than 1, total as the nation, and a silver less than 18?" }, { "from": "gpt", "value": "SELECT ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_51 (bronze INTEGER, nation VARCHAR)" }, { "from": "human", "value": "How many bronzes have west germany as the nation?" }, { "from": "gpt", "value": "SELECT SUM(bronze) FROM table_name_51 WHERE nation = \"west germany\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_86 (gold VARCHAR, nation VARCHAR, total VARCHAR)" }, { "from": "human", "value": "How many golds have denmark as the nation, with a total less than 1?" }, { "from": "gpt", "value": "SELECT COUNT(gold) FROM table_name_86 WHERE nati...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_60 (total VARCHAR, silver VARCHAR, gold VARCHAR, rank VARCHAR)" }, { "from": "human", "value": "How many totals have 1 for the gold, 12 for the rank, and a sliver greater than 0?" }, { "from": "gpt", "value": "SELECT COUNT(total) ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_15 (silver INTEGER, gold VARCHAR, rank VARCHAR, bronze VARCHAR, total VARCHAR)" }, { "from": "human", "value": "What is the lowest silver that has 1 for the bronze, 1 as the total, 17 as the rank, with a gold less than 0?" }, { "from"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_31 (first_publisher VARCHAR, year INTEGER)" }, { "from": "human", "value": "What is the First Publisher prior to 1999?" }, { "from": "gpt", "value": "SELECT first_publisher FROM table_name_31 WHERE year < 1999" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_name_48 (isbn VARCHAR, year VARCHAR)" }, { "from": "human", "value": "What is the ISBN in 1999?" }, { "from": "gpt", "value": "SELECT isbn FROM table_name_48 WHERE year = 1999" } ]
know_sql
chosen