conversations
listlengths
3
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "CREATE TABLE table_24938621_2 (title VARCHAR, production_code VARCHAR)" }, { "from": "human", "value": "What is the title of the episode with production code 3x5405?" }, { "from": "gpt", "value": "SELECT title FROM table_24938621_2 WHERE production_code ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_24949975_1 (home_team VARCHAR, date VARCHAR)" }, { "from": "human", "value": "Who as the home team for game on 5 october 2011?" }, { "from": "gpt", "value": "SELECT home_team FROM table_24949975_1 WHERE date = \"5 October 2011\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_24949975_1 (stadium VARCHAR, home_team VARCHAR, result VARCHAR)" }, { "from": "human", "value": "What was the stadium for the home team of shamrock rovers and result of 3–0?" }, { "from": "gpt", "value": "SELECT stadium FROM table_2494...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_24949975_1 (away_team VARCHAR, result VARCHAR, home_team VARCHAR)" }, { "from": "human", "value": "What was the away team when the result was 2–1 and home team was the bohemians?" }, { "from": "gpt", "value": "SELECT away_team FROM tab...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_24949975_1 (home_team VARCHAR, season VARCHAR, result VARCHAR)" }, { "from": "human", "value": "Who was the home team for the 2013 season and the result was 0–0?" }, { "from": "gpt", "value": "SELECT home_team FROM table_24949975_1 WHE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_24949975_1 (date VARCHAR, stadium VARCHAR, result VARCHAR)" }, { "from": "human", "value": "What is the date for the game at the tallaght stadium and result was 0–1?" }, { "from": "gpt", "value": "SELECT date FROM table_24949975_1 WHER...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_24951872_2 (opponent VARCHAR, game_site VARCHAR)" }, { "from": "human", "value": "What opponents played Waldstadion in a game?" }, { "from": "gpt", "value": "SELECT opponent FROM table_24951872_2 WHERE game_site = \"Waldstadion\"" } ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_24951872_2 (week INTEGER, attendance VARCHAR)" }, { "from": "human", "value": "What was the maximum week that had attendance of 10738?" }, { "from": "gpt", "value": "SELECT MAX(week) FROM table_24951872_2 WHERE attendance = 10738" } ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_24938621_3 (production_code VARCHAR, written_by VARCHAR)" }, { "from": "human", "value": "What is the production code of the episode written by Cathryn Humphris?" }, { "from": "gpt", "value": "SELECT production_code FROM table_24938621...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_24938621_3 (production_code VARCHAR, us_viewers__million_ VARCHAR)" }, { "from": "human", "value": "What is the production code of the episode that had 5.43 million viewers?" }, { "from": "gpt", "value": "SELECT production_code FROM ta...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_24938621_3 (production_code VARCHAR, directed_by VARCHAR)" }, { "from": "human", "value": "What was the title of the episode directed by Jesse Warn?" }, { "from": "gpt", "value": "SELECT production_code FROM table_24938621_3 WHERE dire...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_24938621_3 (no VARCHAR, written_by VARCHAR)" }, { "from": "human", "value": "What episode number was written by Gregg Hurwitz?" }, { "from": "gpt", "value": "SELECT no FROM table_24938621_3 WHERE written_by = \"Gregg Hurwitz\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_24969173_1 (drying_shrinkage___percentage_ VARCHAR, dry_density__kg_m3_ VARCHAR)" }, { "from": "human", "value": "If the dry density is 800, what is the drying shrinkage %?" }, { "from": "gpt", "value": "SELECT drying_shrinkage___perce...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_24961421_1 (series__number VARCHAR, season__number VARCHAR)" }, { "from": "human", "value": "What number in the series was episode 7 in the season?" }, { "from": "gpt", "value": "SELECT series__number FROM table_24961421_1 WHERE season...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_24961421_1 (written_by VARCHAR, us_viewers__millions_ VARCHAR)" }, { "from": "human", "value": "Who wrote the episode that had 12.15 million viewers?" }, { "from": "gpt", "value": "SELECT written_by FROM table_24961421_1 WHERE us_viewe...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_24961421_1 (season__number VARCHAR, us_viewers__millions_ VARCHAR)" }, { "from": "human", "value": "What number in the season was the episode with 12.23 million viewers?" }, { "from": "gpt", "value": "SELECT season__number FROM table_2...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_24989925_2 (date VARCHAR, game_site VARCHAR)" }, { "from": "human", "value": "What is the date of the game at Olympic Stadium?" }, { "from": "gpt", "value": "SELECT date FROM table_24989925_2 WHERE game_site = \"Olympic Stadium\"" } ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_24989925_2 (week INTEGER)" }, { "from": "human", "value": "How many weeks total are there?" }, { "from": "gpt", "value": "SELECT MAX(week) FROM table_24989925_2" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_24989925_2 (team_record VARCHAR, game_site VARCHAR)" }, { "from": "human", "value": "What was the team's record when they played at Rheinenergiestadion?" }, { "from": "gpt", "value": "SELECT team_record FROM table_24989925_2 WHERE game...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_24990183_6 (Id VARCHAR)" }, { "from": "human", "value": "What is the lowest overall number of 09-10 oi 2nd?" }, { "from": "gpt", "value": "SELECT MIN(09 AS _10_oi_2nd) FROM table_24990183_6" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_24990183_4 (Id VARCHAR)" }, { "from": "human", "value": "What was the maximum 09-10 i/o best?" }, { "from": "gpt", "value": "SELECT MAX(09 AS _10_i_o_best) FROM table_24990183_4" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_24990183_7 (name VARCHAR, rank VARCHAR)" }, { "from": "human", "value": "If the rank is 17, what are the names?" }, { "from": "gpt", "value": "SELECT name FROM table_24990183_7 WHERE rank = 17" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_24990183_7 (ws_points VARCHAR)" }, { "from": "human", "value": "If the WS points is 947, what is the 08-09 gp/jgp 2nd ?" }, { "from": "gpt", "value": "SELECT 08 AS _09_gp_jgp_2nd FROM table_24990183_7 WHERE ws_points = 947" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_24998088_1 (points VARCHAR, position VARCHAR)" }, { "from": "human", "value": "How many points did he have when he has in the 34th position? " }, { "from": "gpt", "value": "SELECT points FROM table_24998088_1 WHERE position = \"34th\""...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_24998088_1 (wins VARCHAR, points VARCHAR)" }, { "from": "human", "value": "How many wins were listed when he had 112 points? " }, { "from": "gpt", "value": "SELECT wins FROM table_24998088_1 WHERE points = \"112\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_24998088_1 (series VARCHAR, position VARCHAR)" }, { "from": "human", "value": "In what series did he have the 7th position? " }, { "from": "gpt", "value": "SELECT series FROM table_24998088_1 WHERE position = \"7th\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_24998088_1 (points VARCHAR, position VARCHAR)" }, { "from": "human", "value": "what were his points when he was in 8th position? " }, { "from": "gpt", "value": "SELECT points FROM table_24998088_1 WHERE position = \"8th\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25016824_2 (vote VARCHAR, air_date VARCHAR)" }, { "from": "human", "value": "What was the vote when the air date is 4 october 1997?" }, { "from": "gpt", "value": "SELECT vote FROM table_25016824_2 WHERE air_date = \"4 October 1997\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25016824_2 (eliminated VARCHAR, immunity VARCHAR)" }, { "from": "human", "value": "Who was eliminated when immunity went to kent (jürgen)?" }, { "from": "gpt", "value": "SELECT eliminated FROM table_25016824_2 WHERE immunity = \"Kent (...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25016824_2 (eliminated VARCHAR, vote VARCHAR)" }, { "from": "human", "value": "Who was eliminated when the vote was 8-1?" }, { "from": "gpt", "value": "SELECT eliminated FROM table_25016824_2 WHERE vote = \"8-1\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25016824_2 (vote VARCHAR, air_date VARCHAR)" }, { "from": "human", "value": "How many entries are there for vote when the air date was 15 november 1997?" }, { "from": "gpt", "value": "SELECT COUNT(vote) FROM table_25016824_2 WHERE air_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25016824_2 (reward VARCHAR, immunity VARCHAR, finish VARCHAR)" }, { "from": "human", "value": "What was the reward when immunity went to martin and finish is 13th voted out 8th jury member day 46?" }, { "from": "gpt", "value": "SELEC...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25008327_8 (macedonian VARCHAR, slovianski VARCHAR)" }, { "from": "human", "value": "How many values for Macedonian correspond to Slovianski value of Veliki?" }, { "from": "gpt", "value": "SELECT COUNT(macedonian) FROM table_25008327_8...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25008327_8 (slovak VARCHAR, ukrainian VARCHAR)" }, { "from": "human", "value": "What area all values for Slovak when value for Ukranian is пес, собака?" }, { "from": "gpt", "value": "SELECT slovak FROM table_25008327_8 WHERE ukrainian ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25008327_8 (croatian VARCHAR, english VARCHAR)" }, { "from": "human", "value": "What is every value for Croatian when value for English is dog?" }, { "from": "gpt", "value": "SELECT croatian FROM table_25008327_8 WHERE english = \"dog\...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25008327_8 (polish VARCHAR, belarusian VARCHAR)" }, { "from": "human", "value": "What is every value for Polish when Balarusian is ноч?" }, { "from": "gpt", "value": "SELECT polish FROM table_25008327_8 WHERE belarusian = \"ноч\"" } ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25008327_8 (russian VARCHAR, bulgarian VARCHAR)" }, { "from": "human", "value": "What is every value for Russian when value for Bulgarian is пес, куче?" }, { "from": "gpt", "value": "SELECT russian FROM table_25008327_8 WHERE bulgarian...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25008327_8 (словјански VARCHAR, polish VARCHAR)" }, { "from": "human", "value": "What is every value for словјански if polish is książka?" }, { "from": "gpt", "value": "SELECT словјански FROM table_25008327_8 WHERE polish = \"książka\"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25017530_5 (position VARCHAR, player VARCHAR)" }, { "from": "human", "value": "Name the position for christopher smith" }, { "from": "gpt", "value": "SELECT position FROM table_25017530_5 WHERE player = \"Christopher Smith\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25017530_5 (college VARCHAR, player VARCHAR)" }, { "from": "human", "value": "Name the college for nate binder" }, { "from": "gpt", "value": "SELECT college FROM table_25017530_5 WHERE player = \"Nate Binder\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25017530_5 (pick__number INTEGER, player VARCHAR)" }, { "from": "human", "value": "Name the least pick number for steven turner" }, { "from": "gpt", "value": "SELECT MIN(pick__number) FROM table_25017530_5 WHERE player = \"Steven Turne...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25017530_5 (cfl_team VARCHAR, player VARCHAR)" }, { "from": "human", "value": "Name the cfl team for steven turner" }, { "from": "gpt", "value": "SELECT cfl_team FROM table_25017530_5 WHERE player = \"Steven Turner\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25017530_6 (cfl_team VARCHAR, position VARCHAR)" }, { "from": "human", "value": "Name the cfl team for lb position" }, { "from": "gpt", "value": "SELECT cfl_team FROM table_25017530_6 WHERE position = \"LB\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25017530_6 (cfl_team VARCHAR, college VARCHAR)" }, { "from": "human", "value": "Name the cfl team for saskatchewan" }, { "from": "gpt", "value": "SELECT cfl_team FROM table_25017530_6 WHERE college = \"Saskatchewan\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25017530_6 (position VARCHAR, player VARCHAR)" }, { "from": "human", "value": "Name the position for michael warner" }, { "from": "gpt", "value": "SELECT position FROM table_25017530_6 WHERE player = \"Michael Warner\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_2501754_2 (production_count VARCHAR, episode__number VARCHAR)" }, { "from": "human", "value": "How many episodes were numbered 5?" }, { "from": "gpt", "value": "SELECT COUNT(production_count) FROM table_2501754_2 WHERE episode__number ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_2501754_2 (original_airdate VARCHAR, prod_code VARCHAR)" }, { "from": "human", "value": "What are the original air date(s) for episodes with production code ipea343l?" }, { "from": "gpt", "value": "SELECT original_airdate FROM table_25...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_2501754_2 (original_airdate VARCHAR, prod_code VARCHAR)" }, { "from": "human", "value": "What are the original air date(s) for episodes with production code ipea345a?" }, { "from": "gpt", "value": "SELECT original_airdate FROM table_25...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_2501754_2 (original_airdate VARCHAR, viewing_figures_millions VARCHAR)" }, { "from": "human", "value": "What are the original air date(s) for episodes with 8.63 million viewers?" }, { "from": "gpt", "value": "SELECT original_airdate FR...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_250230_2 (power VARCHAR, model VARCHAR)" }, { "from": "human", "value": "What is the power of the Type R?" }, { "from": "gpt", "value": "SELECT power FROM table_250230_2 WHERE model = \"Type R\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_250230_2 (brakes VARCHAR, model VARCHAR, wheels VARCHAR, tyres VARCHAR)" }, { "from": "human", "value": "What kind of brakes for the model type rb 4at with 16x8.0jj (front) 16x8.0jj (rear) wheels and 225/50r16 92v(front) 225/50r16 92v(rear) tyres?...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_250230_2 (brakes VARCHAR, gearbox VARCHAR)" }, { "from": "human", "value": "What brakes for the 4-speed automatic gearbox?" }, { "from": "gpt", "value": "SELECT brakes FROM table_250230_2 WHERE gearbox = \"4-speed automatic\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_250230_2 (power VARCHAR, model VARCHAR)" }, { "from": "human", "value": "What is the power for the Spirit R (Type B)?" }, { "from": "gpt", "value": "SELECT power FROM table_250230_2 WHERE model = \"Spirit R (Type B)\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_250230_2 (gearbox VARCHAR)" }, { "from": "human", "value": "What is the gearbox when the torque is torque?" }, { "from": "gpt", "value": "SELECT gearbox FROM table_250230_2 WHERE \"torque\" = \"torque\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25030512_4 (first_elected VARCHAR, district VARCHAR)" }, { "from": "human", "value": "Name the first elected for alabama 3" }, { "from": "gpt", "value": "SELECT COUNT(first_elected) FROM table_25030512_4 WHERE district = \"Alabama 3\""...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25030512_4 (party VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "Name the party for spencer bachus" }, { "from": "gpt", "value": "SELECT party FROM table_25030512_4 WHERE incumbent = \"Spencer Bachus\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25030512_4 (district VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "Name the district for mike rogers" }, { "from": "gpt", "value": "SELECT district FROM table_25030512_4 WHERE incumbent = \"Mike Rogers\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25030512_4 (district VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "Name the district for spencer bachus" }, { "from": "gpt", "value": "SELECT district FROM table_25030512_4 WHERE incumbent = \"Spencer Bachus\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25030512_26 (district VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "In what district was keith ellison the incumbent?" }, { "from": "gpt", "value": "SELECT district FROM table_25030512_26 WHERE incumbent = \"Keith Elliso...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25034983_2 (day_power___w__ VARCHAR, city VARCHAR)" }, { "from": "human", "value": "List the kilo watt hoours per day for moline." }, { "from": "gpt", "value": "SELECT day_power___w__ FROM table_25034983_2 WHERE city = \"Moline\"" } ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25034983_2 (start VARCHAR, nickname VARCHAR)" }, { "from": "human", "value": "In which year did the voice of muscatine show start?" }, { "from": "gpt", "value": "SELECT start FROM table_25034983_2 WHERE nickname = \"Voice of Muscatine\...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25034983_2 (start INTEGER, owner VARCHAR)" }, { "from": "human", "value": "In what year was cumulus founded?" }, { "from": "gpt", "value": "SELECT MIN(start) FROM table_25034983_2 WHERE owner = \"Cumulus\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25034983_2 (stereo VARCHAR, city VARCHAR)" }, { "from": "human", "value": "Does the city of moline have stereo?" }, { "from": "gpt", "value": "SELECT stereo FROM table_25034983_2 WHERE city = \"Moline\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_250309_1 (company VARCHAR, parent_company VARCHAR)" }, { "from": "human", "value": "what is the company with the parent company wrightbus?" }, { "from": "gpt", "value": "SELECT company FROM table_250309_1 WHERE parent_company = \"Wrigh...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_250309_1 (company VARCHAR, plant VARCHAR)" }, { "from": "human", "value": "what is the name ofhte company where the plant is in burnaston?" }, { "from": "gpt", "value": "SELECT company FROM table_250309_1 WHERE plant = \"Burnaston\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_250309_1 (models_produced VARCHAR, plant VARCHAR)" }, { "from": "human", "value": "what models are produced where the plant is scarborough?" }, { "from": "gpt", "value": "SELECT models_produced FROM table_250309_1 WHERE plant = \"Scarb...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_250309_1 (models_produced VARCHAR, plant VARCHAR)" }, { "from": "human", "value": "how many models produced where the plant is castle bromwich?" }, { "from": "gpt", "value": "SELECT COUNT(models_produced) FROM table_250309_1 WHERE plan...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_250309_1 (production__latest_figures_ VARCHAR, parent_company VARCHAR)" }, { "from": "human", "value": "what is the production where the parent company is ariel?" }, { "from": "gpt", "value": "SELECT production__latest_figures_ FROM ta...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_2503102_2 (chassis VARCHAR, primary_sponsor VARCHAR)" }, { "from": "human", "value": "What kind of chassis on the angie's list sponsored car?" }, { "from": "gpt", "value": "SELECT chassis FROM table_2503102_2 WHERE primary_sponsor = \"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_2503102_2 (team VARCHAR, listed_owner_s_ VARCHAR)" }, { "from": "human", "value": "What team owns the car owned by chip ganassi?" }, { "from": "gpt", "value": "SELECT team FROM table_2503102_2 WHERE listed_owner_s_ = \"Chip Ganassi\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_2503102_2 (chassis VARCHAR, team VARCHAR)" }, { "from": "human", "value": "What chassis is on the car repped by team rahal letterman lanigan racing?" }, { "from": "gpt", "value": "SELECT chassis FROM table_2503102_2 WHERE team = \"Raha...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_2503102_2 (driver_s_ VARCHAR, primary_sponsor VARCHAR)" }, { "from": "human", "value": "Who drives the abc supply sponsored cor?" }, { "from": "gpt", "value": "SELECT driver_s_ FROM table_2503102_2 WHERE primary_sponsor = \"ABC Supply\...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25030512_41 (district VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "Name the number of district for tom marino" }, { "from": "gpt", "value": "SELECT COUNT(district) FROM table_25030512_41 WHERE incumbent = \"Tom Marino\"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25030512_41 (district VARCHAR, first_elected VARCHAR)" }, { "from": "human", "value": "Name the district for 1994" }, { "from": "gpt", "value": "SELECT district FROM table_25030512_41 WHERE first_elected = 1994" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25030512_41 (party VARCHAR, district VARCHAR)" }, { "from": "human", "value": "Name the party for pennsylvania 10" }, { "from": "gpt", "value": "SELECT party FROM table_25030512_41 WHERE district = \"Pennsylvania 10\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25030512_41 (result VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "Name the result for glenn thompson" }, { "from": "gpt", "value": "SELECT result FROM table_25030512_41 WHERE incumbent = \"Glenn Thompson\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25030512_41 (district VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "Name the number of district for bill shuster" }, { "from": "gpt", "value": "SELECT COUNT(district) FROM table_25030512_41 WHERE incumbent = \"Bill Shust...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25038931_1 (minutes INTEGER, starts VARCHAR)" }, { "from": "human", "value": "List the total play time for 11 starts." }, { "from": "gpt", "value": "SELECT MAX(minutes) FROM table_25038931_1 WHERE starts = 11" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25042332_22 (region VARCHAR, primary__6_13_years_ VARCHAR)" }, { "from": "human", "value": "In what region is the enrollment ratio in primary 94.40?" }, { "from": "gpt", "value": "SELECT region FROM table_25042332_22 WHERE primary__6_1...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25042332_22 (preschool__0_5_years_ VARCHAR, tertiary__18_24_years_ VARCHAR)" }, { "from": "human", "value": "What is the enrollment ratio for preschool in the region where enrollment ratio for tertiary is 29.55?" }, { "from": "gpt", "v...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25042332_22 (primary__6_13_years_ VARCHAR, preschool__0_5_years_ VARCHAR)" }, { "from": "human", "value": "What is the enrollment ratio in primary in the region where the enrollment ratio in preschool is 38.14?" }, { "from": "gpt", "va...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25042332_22 (tertiary__18_24_years_ VARCHAR, secondary__14_17_years_ VARCHAR)" }, { "from": "human", "value": "What is the enrollment ratio in tertiary in the region where the enrollment ration in secondary is 71.43?" }, { "from": "gpt", ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25042332_22 (preschool__0_5_years_ VARCHAR, primary__6_13_years_ VARCHAR)" }, { "from": "human", "value": "What is the enrollment ratio in preschool in the region where the enrollment ratio in primary is 93.10?" }, { "from": "gpt", "v...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25042332_22 (primary__6_13_years_ VARCHAR, preschool__0_5_years_ VARCHAR)" }, { "from": "human", "value": "What is the enrollment ration in primary in the region where the enrollment ratio in preschool is 50.23? " }, { "from": "gpt", "...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25042332_30 (enrolled_women VARCHAR, e_vap_ratio_women VARCHAR)" }, { "from": "human", "value": "what is the number of registered female voters where the percentage is 108.6%" }, { "from": "gpt", "value": "SELECT enrolled_women FROM ta...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25042332_30 (e_vap_ratio_total VARCHAR, men_of_voting_age VARCHAR)" }, { "from": "human", "value": "what is the percentage of male voters where the level of maturity is 123726" }, { "from": "gpt", "value": "SELECT e_vap_ratio_total FRO...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25042332_31 (incarceration_rate_total VARCHAR, prison_inmates_women VARCHAR)" }, { "from": "human", "value": "How many regions had 153 women prison inmates?" }, { "from": "gpt", "value": "SELECT COUNT(incarceration_rate_total) FROM tab...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25042332_31 (incarceration_rate_total VARCHAR, incarceration_rate_female VARCHAR)" }, { "from": "human", "value": "How many regions had an incarceration rate for females of 63?" }, { "from": "gpt", "value": "SELECT COUNT(incarceration_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25042332_31 (incarceration_rate_male INTEGER, region VARCHAR)" }, { "from": "human", "value": "What is the male incarceration rate of maule?" }, { "from": "gpt", "value": "SELECT MAX(incarceration_rate_male) FROM table_25042332_31 WHER...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25042332_27 (region VARCHAR, automatic_washing_machine VARCHAR)" }, { "from": "human", "value": "Name the region for automatic washing machine being 60.9%" }, { "from": "gpt", "value": "SELECT region FROM table_25042332_27 WHERE automa...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25042332_27 (fixed_telephone_line VARCHAR, vehicle VARCHAR)" }, { "from": "human", "value": "Name the fixed telephone line for 25.6% vehicle" }, { "from": "gpt", "value": "SELECT fixed_telephone_line FROM table_25042332_27 WHERE vehicl...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25042332_27 (region VARCHAR, vehicle VARCHAR)" }, { "from": "human", "value": "Name the region for 39.2% vehicle" }, { "from": "gpt", "value": "SELECT region FROM table_25042332_27 WHERE vehicle = \"39.2%\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25042332_26 (region VARCHAR, solar_panel VARCHAR)" }, { "from": "human", "value": "What region has 0.3% solar panel?" }, { "from": "gpt", "value": "SELECT region FROM table_25042332_26 WHERE solar_panel = \"0.3%\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25042332_26 (solar_panel VARCHAR, region VARCHAR)" }, { "from": "human", "value": "What is atacama's percentage of solar panels?" }, { "from": "gpt", "value": "SELECT solar_panel FROM table_25042332_26 WHERE region = \"Atacama\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25042332_26 (region VARCHAR, none VARCHAR)" }, { "from": "human", "value": "Which region has 0.6% none?" }, { "from": "gpt", "value": "SELECT region FROM table_25042332_26 WHERE none = \"0.6%\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25042332_26 (public_network VARCHAR, region VARCHAR, other_source VARCHAR, solar_panel VARCHAR)" }, { "from": "human", "value": "What is the percentage of public network in the region that has 0.1% other sources, 0.0% solar, and is named maule?" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25042332_26 (public_network VARCHAR, solar_panel VARCHAR)" }, { "from": "human", "value": "How many regions have 0.5% solar panels?" }, { "from": "gpt", "value": "SELECT COUNT(public_network) FROM table_25042332_26 WHERE solar_panel = ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25046766_3 (prod_no INTEGER, episode_no VARCHAR)" }, { "from": "human", "value": "What is the production number of 3-04?" }, { "from": "gpt", "value": "SELECT MAX(prod_no) FROM table_25046766_3 WHERE episode_no = \"3-04\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25046766_3 (title VARCHAR, original_airdate_uk VARCHAR)" }, { "from": "human", "value": "What was the title of the episode that aired on October 7, 1965?" }, { "from": "gpt", "value": "SELECT title FROM table_25046766_3 WHERE original_...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_25046766_1 (episode_no VARCHAR, written_by VARCHAR)" }, { "from": "human", "value": "When don inglis and ralph smart are the writers how many episode numbers are there?" }, { "from": "gpt", "value": "SELECT COUNT(episode_no) FROM table...
know_sql
chosen