conversations listlengths 3 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "CREATE TABLE table_name_54 (isbn VARCHAR, japanese_title VARCHAR)"
},
{
"from": "human",
"value": "What is the ISBN of Japanese Title of 霧の訪問者 (kiri no hōmonsha)?"
},
{
"from": "gpt",
"value": "SELECT isbn FROM table_name_54 WHERE japanese_title = \"霧の訪問... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_8 (first_publisher VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "What is the First Publisher in 2007?"
},
{
"from": "gpt",
"value": "SELECT first_publisher FROM table_name_8 WHERE year = 2007"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_80 (year VARCHAR, first_publisher VARCHAR, english_title VARCHAR)"
},
{
"from": "human",
"value": "What is the Year of Kodansha Novels' Tokyo Nightmare?"
},
{
"from": "gpt",
"value": "SELECT year FROM table_name_80 WHERE first_pub... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_37 (year INTEGER, isbn VARCHAR)"
},
{
"from": "human",
"value": "What Year has an ISBN OF ISBN 4-06-182042-7?"
},
{
"from": "gpt",
"value": "SELECT AVG(year) FROM table_name_37 WHERE isbn = \"isbn 4-06-182042-7\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_53 (bronze INTEGER, gold INTEGER)"
},
{
"from": "human",
"value": "What is the bronze number for the nation with less than 0 gold?"
},
{
"from": "gpt",
"value": "SELECT MIN(bronze) FROM table_name_53 WHERE gold < 0"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_26 (january VARCHAR, region VARCHAR)"
},
{
"from": "human",
"value": "What is the January climate figure for Eastman?"
},
{
"from": "gpt",
"value": "SELECT january FROM table_name_26 WHERE region = \"eastman\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_49 (city VARCHAR, july VARCHAR)"
},
{
"from": "human",
"value": "In what city is the July temperature 23/9°c (73/48°f)?"
},
{
"from": "gpt",
"value": "SELECT city FROM table_name_49 WHERE july = \"23/9°c (73/48°f)\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_23 (july VARCHAR, annual_precipitation VARCHAR)"
},
{
"from": "human",
"value": "What is the July temperature where the annual precipitation is 514mm (20.2in)?"
},
{
"from": "gpt",
"value": "SELECT july FROM table_name_23 WHERE an... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_32 (july VARCHAR, plant_hardiness_zone VARCHAR, january VARCHAR)"
},
{
"from": "human",
"value": "What is the July temperature where plant hardiness zone is 2B and January figure is −12/−23°c (10-9°f)?"
},
{
"from": "gpt",
"value"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_36 (plant_hardiness_zone VARCHAR, region VARCHAR, annual_precipitation VARCHAR)"
},
{
"from": "human",
"value": "What is the plant hardiness zone in the Northern region where the annual precipitation is 443mm (17.4in)?"
},
{
"from": "... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_52 (city VARCHAR, plant_hardiness_zone VARCHAR, january VARCHAR)"
},
{
"from": "human",
"value": "In what city is the plant hardiness zone 2B and January temp is −12/−23°c (10/-9°f)?"
},
{
"from": "gpt",
"value": "SELECT city FROM... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_78 (total_apps VARCHAR, name VARCHAR)"
},
{
"from": "human",
"value": "What is the Total Apps listing for Paul Wilson?"
},
{
"from": "gpt",
"value": "SELECT total_apps FROM table_name_78 WHERE name = \"paul wilson\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_84 (winner VARCHAR, course VARCHAR)"
},
{
"from": "human",
"value": "Who was the winner at Milan Circuit Race?"
},
{
"from": "gpt",
"value": "SELECT winner FROM table_name_84 WHERE course = \"milan circuit race\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_67 (winner VARCHAR, course VARCHAR)"
},
{
"from": "human",
"value": "Who was the winner at Rest Day course?"
},
{
"from": "gpt",
"value": "SELECT winner FROM table_name_67 WHERE course = \"rest day\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_39 (type VARCHAR, course VARCHAR)"
},
{
"from": "human",
"value": "What's the type on Sestri Levante to Riomaggiore?"
},
{
"from": "gpt",
"value": "SELECT type FROM table_name_39 WHERE course = \"sestri levante to riomaggiore\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_49 (player VARCHAR, events VARCHAR)"
},
{
"from": "human",
"value": "Which player competed in 12 events?"
},
{
"from": "gpt",
"value": "SELECT player FROM table_name_49 WHERE events = 12"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_48 (finishes INTEGER, wins VARCHAR, points VARCHAR, stage_wins VARCHAR)"
},
{
"from": "human",
"value": "what is the highest finishes when the points is less than 337, the stage wins is 2 and the wins is more than 0?"
},
{
"from": "gp... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_94 (starts INTEGER, chassis VARCHAR, finishes VARCHAR)"
},
{
"from": "human",
"value": "what is the average starts when the chassis is focus rs wrc 08 and finishes is more than 27?"
},
{
"from": "gpt",
"value": "SELECT AVG(starts)... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_90 (finishes INTEGER, points VARCHAR, starts VARCHAR)"
},
{
"from": "human",
"value": "what is the finishes when points is more than 337 and starts is more than 26?"
},
{
"from": "gpt",
"value": "SELECT SUM(finishes) FROM table_na... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_35 (starts INTEGER, points VARCHAR, podiums VARCHAR, stage_wins VARCHAR)"
},
{
"from": "human",
"value": "what is the average starts when the podiums is more than 0, stage wins is more than 39 and points is more than 456?"
},
{
"from"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_35 (school VARCHAR, mascot VARCHAR)"
},
{
"from": "human",
"value": "Which School has a Mascot of squires?"
},
{
"from": "gpt",
"value": "SELECT school FROM table_name_35 WHERE mascot = \"squires\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_43 (school VARCHAR, mascot VARCHAR, _number___county VARCHAR, ihsaa_football_class VARCHAR)"
},
{
"from": "human",
"value": "Which School has a #/ County of 85 wabash, and an IHSAA Football Class of A, and a Mascot of norsemen?"
},
{
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_99 (ihsaa_football_class VARCHAR, school VARCHAR)"
},
{
"from": "human",
"value": "Which IHSAA Football Class has a School of whitko?"
},
{
"from": "gpt",
"value": "SELECT ihsaa_football_class FROM table_name_99 WHERE school = \"w... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_50 (ihsaa_football_class VARCHAR, location VARCHAR, school VARCHAR)"
},
{
"from": "human",
"value": "Which IHSAA Football Class has a Location of wabash, and a School of wabash?"
},
{
"from": "gpt",
"value": "SELECT ihsaa_football... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_88 (to_par INTEGER, player VARCHAR, total VARCHAR)"
},
{
"from": "human",
"value": "With a Total of more than 149, what is Davis Love III's To par?"
},
{
"from": "gpt",
"value": "SELECT AVG(to_par) FROM table_name_88 WHERE player ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_87 (total INTEGER, year_won VARCHAR, to_par VARCHAR)"
},
{
"from": "human",
"value": "What is the Total of the Player with a To par of 6 and Year won after 1993?"
},
{
"from": "gpt",
"value": "SELECT MIN(total) FROM table_name_87 ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_93 (year_won VARCHAR, player VARCHAR, total VARCHAR)"
},
{
"from": "human",
"value": "What is the Year won of Davis Love III with a Total of less than 149?"
},
{
"from": "gpt",
"value": "SELECT COUNT(year_won) FROM table_name_93 W... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_14 (genre VARCHAR, game VARCHAR)"
},
{
"from": "human",
"value": "What is the genre of the Mass Effect game?"
},
{
"from": "gpt",
"value": "SELECT genre FROM table_name_14 WHERE game = \"mass effect\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_72 (genre VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "What is the genre of the game from 2006?"
},
{
"from": "gpt",
"value": "SELECT genre FROM table_name_72 WHERE year = \"2006\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_85 (genre VARCHAR, developer_s_ VARCHAR)"
},
{
"from": "human",
"value": "What is the genre of the game developed by Nintendo EAD?"
},
{
"from": "gpt",
"value": "SELECT genre FROM table_name_85 WHERE developer_s_ = \"nintendo ead\... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_53 (platform_s_ VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "What is the platform of the game built in 2006?"
},
{
"from": "gpt",
"value": "SELECT platform_s_ FROM table_name_53 WHERE year = \"2006\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_53 (game VARCHAR, developer_s_ VARCHAR)"
},
{
"from": "human",
"value": "What game was developed by Ubisoft Montreal?"
},
{
"from": "gpt",
"value": "SELECT game FROM table_name_53 WHERE developer_s_ = \"ubisoft montreal\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_32 (genre VARCHAR, game VARCHAR)"
},
{
"from": "human",
"value": "What is the genre for Portal 2?"
},
{
"from": "gpt",
"value": "SELECT genre FROM table_name_32 WHERE game = \"portal 2\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_88 (platform_s_ VARCHAR, game VARCHAR)"
},
{
"from": "human",
"value": "Which platforms can you play Portal 2 on?"
},
{
"from": "gpt",
"value": "SELECT platform_s_ FROM table_name_88 WHERE game = \"portal 2\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_4 (meet VARCHAR, event VARCHAR)"
},
{
"from": "human",
"value": "What event had the 1500m freestyle?"
},
{
"from": "gpt",
"value": "SELECT meet FROM table_name_4 WHERE event = \"1500m freestyle\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_92 (name VARCHAR, maglia_rosa VARCHAR, young_rider VARCHAR, country VARCHAR, giro_wins VARCHAR)"
},
{
"from": "human",
"value": "Who is from italy has 0 giro wins, 0 young rider and less than 3 maglia rosa?"
},
{
"from": "gpt",
"v... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_18 (bronze INTEGER, nation VARCHAR, silver VARCHAR)"
},
{
"from": "human",
"value": "How many bronze medals for the United Kingdom when the silver was less than 0?"
},
{
"from": "gpt",
"value": "SELECT AVG(bronze) FROM table_name_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_65 (bronze VARCHAR, total VARCHAR, nation VARCHAR)"
},
{
"from": "human",
"value": "How many bronze medals for West Germany having a total more than 2?"
},
{
"from": "gpt",
"value": "SELECT COUNT(bronze) FROM table_name_65 WHERE t... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_21 (silver INTEGER, rank VARCHAR, gold VARCHAR)"
},
{
"from": "human",
"value": "What is the amount of silver for rank 11 having less than 0 gold?"
},
{
"from": "gpt",
"value": "SELECT MIN(silver) FROM table_name_21 WHERE rank = \... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_44 (rank VARCHAR, nation VARCHAR, silver VARCHAR, bronze VARCHAR)"
},
{
"from": "human",
"value": "What rank is Bulgaria with less than 3 silver and more than 1 bronze?"
},
{
"from": "gpt",
"value": "SELECT rank FROM table_name_44... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_60 (mountains_classification VARCHAR, stage VARCHAR)"
},
{
"from": "human",
"value": "What is the mountains classification when stage is 17?"
},
{
"from": "gpt",
"value": "SELECT mountains_classification FROM table_name_60 WHERE s... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_45 (winner VARCHAR, points_classification VARCHAR, mountains_classification VARCHAR)"
},
{
"from": "human",
"value": "Who was the winner when points classification is Robbie Mcewen, and a Mountains classification is José Rujano?"
},
{
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_34 (trofeo_fast_team VARCHAR, stage VARCHAR)"
},
{
"from": "human",
"value": "What is the Trofeo Fast Team when stage is 19?"
},
{
"from": "gpt",
"value": "SELECT trofeo_fast_team FROM table_name_34 WHERE stage = \"19\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_19 (points_classification VARCHAR, stage VARCHAR, trofeo_super_team VARCHAR, intergiro_classification VARCHAR, mountains_classification VARCHAR)"
},
{
"from": "human",
"value": "What is the points classification when the Intergiro classificat... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_16 (intergiro_classification VARCHAR, mountains_classification VARCHAR, points_classification VARCHAR, trofeo_super_team VARCHAR)"
},
{
"from": "human",
"value": "What is the Intergiro classification when the points classification is Paolo Be... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_67 (stage VARCHAR, general_classification VARCHAR, points_classification VARCHAR, mountains_classification VARCHAR)"
},
{
"from": "human",
"value": "What is the Stage when the points classification is Danilo Di Luca, Mountains classification ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_4 (geo_id INTEGER, land___sqmi__ VARCHAR, latitude VARCHAR, longitude VARCHAR)"
},
{
"from": "human",
"value": "What is the average GEO ID with a latitude less than 46.57958, a latitude of -102.109898 and more than 35.99 square miles of land?... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_83 (geo_id VARCHAR, longitude VARCHAR)"
},
{
"from": "human",
"value": "What GEO ID has a longitude of -102.693028?"
},
{
"from": "gpt",
"value": "SELECT geo_id FROM table_name_83 WHERE longitude = -102.693028"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_69 (latitude INTEGER, pop__2010_ VARCHAR, water__sqmi_ VARCHAR, longitude VARCHAR)"
},
{
"from": "human",
"value": "What is the highest latitude when there are more than 0.518 square miles of water, a longitude less than -99.830606, and a pop... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_30 (lane INTEGER, nationality VARCHAR)"
},
{
"from": "human",
"value": "What is the average lane for Australia?"
},
{
"from": "gpt",
"value": "SELECT AVG(lane) FROM table_name_30 WHERE nationality = \"australia\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_54 (rank INTEGER, name VARCHAR)"
},
{
"from": "human",
"value": "What is the highest rank for Josefin Lillhage?"
},
{
"from": "gpt",
"value": "SELECT MAX(rank) FROM table_name_54 WHERE name = \"josefin lillhage\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_97 (attendance VARCHAR, final VARCHAR)"
},
{
"from": "human",
"value": "What was the attendance for the final quarter (1)?"
},
{
"from": "gpt",
"value": "SELECT attendance FROM table_name_97 WHERE final = \"quarter (1)\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_21 (stadium VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "What stadium had the score 1 - 1 dodd 38'?"
},
{
"from": "gpt",
"value": "SELECT stadium FROM table_name_21 WHERE score = \"1 - 1 dodd 38'\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_78 (method VARCHAR, event VARCHAR)"
},
{
"from": "human",
"value": "What method was used in the Pride 17 event?"
},
{
"from": "gpt",
"value": "SELECT method FROM table_name_78 WHERE event = \"pride 17\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_57 (rank VARCHAR, highest_floor INTEGER)"
},
{
"from": "human",
"value": "What is the Rank of the building that has a Highest floor larger than 50?"
},
{
"from": "gpt",
"value": "SELECT rank FROM table_name_57 WHERE highest_floor ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_87 (free INTEGER, total VARCHAR, rank VARCHAR)"
},
{
"from": "human",
"value": "what is the most free when the total is 81.167 and the rank is higher than 23?"
},
{
"from": "gpt",
"value": "SELECT MAX(free) FROM table_name_87 WHER... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_7 (tracks VARCHAR, unformatted_capacity_per_side VARCHAR)"
},
{
"from": "human",
"value": "How many tracks have an unformatted capacity per side of 2000kb?"
},
{
"from": "gpt",
"value": "SELECT COUNT(tracks) FROM table_name_7 WHER... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_42 (unformatted_capacity_per_side VARCHAR, size VARCHAR)"
},
{
"from": "human",
"value": "What is the unformatted capacity per side if the size is 8in?"
},
{
"from": "gpt",
"value": "SELECT unformatted_capacity_per_side FROM table... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_93 (tracks VARCHAR, density VARCHAR)"
},
{
"from": "human",
"value": "How many tracks have a single density?"
},
{
"from": "gpt",
"value": "SELECT COUNT(tracks) FROM table_name_93 WHERE density = \"single\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_77 (elevated VARCHAR, cardinalatial_title VARCHAR)"
},
{
"from": "human",
"value": "What's listed for Elevatated that has Cardinalatial title of Priest of SS. XII Apostoli?"
},
{
"from": "gpt",
"value": "SELECT elevated FROM table... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_33 (elector VARCHAR, place_of_birth VARCHAR)"
},
{
"from": "human",
"value": "What Elector has the Place of birth of San Severino?"
},
{
"from": "gpt",
"value": "SELECT elector FROM table_name_33 WHERE place_of_birth = \"san sever... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_40 (cardinalatial_title VARCHAR, elector VARCHAR, elevated VARCHAR, place_of_birth VARCHAR)"
},
{
"from": "human",
"value": "What's the Cardinalatial Title has the Elevated of December 18, 1182, the Place of birth of Lucca, and the Electo rof... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_25 (elevated VARCHAR, cardinalatial_title VARCHAR)"
},
{
"from": "human",
"value": "What's listed for the Elevated with a Cardinalatial title of Priest of S. Eusebio and Archbishop of Benevento?"
},
{
"from": "gpt",
"value": "SELE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_4 (elector VARCHAR, place_of_birth VARCHAR)"
},
{
"from": "human",
"value": "What Elector has the Place of Birth listed as Bavaria?"
},
{
"from": "gpt",
"value": "SELECT elector FROM table_name_4 WHERE place_of_birth = \"bavaria\"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_16 (total_apps VARCHAR, league_apps VARCHAR, total_goals VARCHAR)"
},
{
"from": "human",
"value": "What are the total apps that have 41 as the League apps, with total goals greater than 1?"
},
{
"from": "gpt",
"value": "SELECT tot... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_18 (league_goals INTEGER, total_apps VARCHAR)"
},
{
"from": "human",
"value": "What are the average league goals that have 2 (1) as the total apps?"
},
{
"from": "gpt",
"value": "SELECT AVG(league_goals) FROM table_name_18 WHERE t... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_46 (league_goals INTEGER, name VARCHAR, fa_cup_apps VARCHAR)"
},
{
"from": "human",
"value": "What is the highest league goals that have barry endean as the name, wirh FA cup apps greater than 0?"
},
{
"from": "gpt",
"value": "SEL... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_81 (school VARCHAR, team_name VARCHAR, year_left VARCHAR)"
},
{
"from": "human",
"value": "Which school left in 1968 and has the team name of Panthers?"
},
{
"from": "gpt",
"value": "SELECT school FROM table_name_81 WHERE team_nam... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_89 (year_left VARCHAR, school VARCHAR)"
},
{
"from": "human",
"value": "What year did a team from North Dearborn leave?"
},
{
"from": "gpt",
"value": "SELECT year_left FROM table_name_89 WHERE school = \"north dearborn\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_48 (city VARCHAR, county VARCHAR, school VARCHAR)"
},
{
"from": "human",
"value": "Which city has a school of North Vernon and a county of 40 Jennings?"
},
{
"from": "gpt",
"value": "SELECT city FROM table_name_48 WHERE county = \... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_5 (year_joined VARCHAR, school VARCHAR)"
},
{
"from": "human",
"value": "What year did a school from Jennings County join?"
},
{
"from": "gpt",
"value": "SELECT year_joined FROM table_name_5 WHERE school = \"jennings county\""
}... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_24 (school VARCHAR, team_name VARCHAR)"
},
{
"from": "human",
"value": "Which school are the Red Devils from?"
},
{
"from": "gpt",
"value": "SELECT school FROM table_name_24 WHERE team_name = \"red devils\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_57 (school VARCHAR, city VARCHAR)"
},
{
"from": "human",
"value": "Which school comes from Brookville?"
},
{
"from": "gpt",
"value": "SELECT school FROM table_name_57 WHERE city = \"brookville\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_70 (rank INTEGER, lane VARCHAR)"
},
{
"from": "human",
"value": "What's the lowest rank of Lane 3?"
},
{
"from": "gpt",
"value": "SELECT MIN(rank) FROM table_name_70 WHERE lane = 3"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_62 (lane INTEGER, time VARCHAR, rank VARCHAR)"
},
{
"from": "human",
"value": "What's the highest lane of rank 4 with a time less than 24.72?"
},
{
"from": "gpt",
"value": "SELECT MAX(lane) FROM table_name_62 WHERE time < 24.72 AN... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_50 (time INTEGER, lane VARCHAR, name VARCHAR)"
},
{
"from": "human",
"value": "What's the time of Britta Steffen in a lane less than 4?"
},
{
"from": "gpt",
"value": "SELECT SUM(time) FROM table_name_50 WHERE lane < 4 AND name = \... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_74 (rank INTEGER, nationality VARCHAR, time VARCHAR)"
},
{
"from": "human",
"value": "What's the lowest rank of the United States with a time less than 24.63?"
},
{
"from": "gpt",
"value": "SELECT MIN(rank) FROM table_name_74 WHER... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_98 (duration VARCHAR, soap_opera VARCHAR, actor VARCHAR)"
},
{
"from": "human",
"value": "What's the duration of the Archers with Norman Painting as an actor?"
},
{
"from": "gpt",
"value": "SELECT duration FROM table_name_98 WHERE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_45 (duration VARCHAR, soap_opera VARCHAR, actor VARCHAR)"
},
{
"from": "human",
"value": "What's the duration of the Archers with Pauline Seville acting?"
},
{
"from": "gpt",
"value": "SELECT duration FROM table_name_45 WHERE soap... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_14 (actor VARCHAR, soap_opera VARCHAR, character VARCHAR)"
},
{
"from": "human",
"value": "Who's the actor for the Archers having a character of Martha Woodford?"
},
{
"from": "gpt",
"value": "SELECT actor FROM table_name_14 WHERE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_34 (character VARCHAR, actor VARCHAR)"
},
{
"from": "human",
"value": "Who's the character when Margot Boyd was acting?"
},
{
"from": "gpt",
"value": "SELECT character FROM table_name_34 WHERE actor = \"margot boyd\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_56 (notes VARCHAR, time VARCHAR)"
},
{
"from": "human",
"value": "What were the notes for the time of 6:34.51?"
},
{
"from": "gpt",
"value": "SELECT notes FROM table_name_56 WHERE time = \"6:34.51\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_51 (rank VARCHAR, time VARCHAR)"
},
{
"from": "human",
"value": "What is the rank for the rowers with the time of 6:24.35?"
},
{
"from": "gpt",
"value": "SELECT rank FROM table_name_51 WHERE time = \"6:24.35\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_14 (rowers VARCHAR, notes VARCHAR, country VARCHAR)"
},
{
"from": "human",
"value": "Which rowers represented portugal and had notes of r?"
},
{
"from": "gpt",
"value": "SELECT rowers FROM table_name_14 WHERE notes = \"r\" AND cou... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_4 (rowers VARCHAR, country VARCHAR)"
},
{
"from": "human",
"value": "Which rowers represented the country of portugal?"
},
{
"from": "gpt",
"value": "SELECT rowers FROM table_name_4 WHERE country = \"portugal\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_61 (races INTEGER, points VARCHAR, poles VARCHAR)"
},
{
"from": "human",
"value": "what is the average races when points is 9 and poles is less than 0?"
},
{
"from": "gpt",
"value": "SELECT AVG(races) FROM table_name_61 WHERE poin... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_7 (series VARCHAR, podiums VARCHAR, wins VARCHAR, points VARCHAR)"
},
{
"from": "human",
"value": "what is the series when wins is less than 3, points is 9 and podiums is 1?"
},
{
"from": "gpt",
"value": "SELECT series FROM table_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_48 (season VARCHAR, wins VARCHAR, races VARCHAR, position VARCHAR)"
},
{
"from": "human",
"value": "how many times is races more than 14, position is 9th and wins less than 0?"
},
{
"from": "gpt",
"value": "SELECT COUNT(season) FR... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_51 (runner_up_skip VARCHAR, event VARCHAR)"
},
{
"from": "human",
"value": "Who was the runner-up during the Mac Ice Classic?"
},
{
"from": "gpt",
"value": "SELECT runner_up_skip FROM table_name_51 WHERE event = \"mac ice classic\... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_58 (date VARCHAR, runner_up_skip VARCHAR)"
},
{
"from": "human",
"value": "What's the date when Stu Harris was the Runner-up?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_58 WHERE runner_up_skip = \"stu harris\""
}... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_33 (location VARCHAR, event VARCHAR)"
},
{
"from": "human",
"value": "What's the location of the Ramada Perth Masters event?"
},
{
"from": "gpt",
"value": "SELECT location FROM table_name_33 WHERE event = \"ramada perth masters\""... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_49 (location VARCHAR, winning_skip VARCHAR, event VARCHAR)"
},
{
"from": "human",
"value": "What's the location of the National event with Kevin Martin winning?"
},
{
"from": "gpt",
"value": "SELECT location FROM table_name_49 WHE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_91 (event VARCHAR, runner_up_skip VARCHAR, location VARCHAR)"
},
{
"from": "human",
"value": "What's the event that happened in Gander, Newfoundland and Labrador with Randy Ferbey runner-up?"
},
{
"from": "gpt",
"value": "SELECT e... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_97 (location VARCHAR, event VARCHAR)"
},
{
"from": "human",
"value": "What's the location of the National event?"
},
{
"from": "gpt",
"value": "SELECT location FROM table_name_97 WHERE event = \"the national\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_13 (arena VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "Which Arena has a Date of october 10?"
},
{
"from": "gpt",
"value": "SELECT arena FROM table_name_13 WHERE date = \"october 10\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_13 (attendance INTEGER, score VARCHAR, points VARCHAR)"
},
{
"from": "human",
"value": "Which Attendance has a Score of 4–3, and Points smaller than 5?"
},
{
"from": "gpt",
"value": "SELECT MAX(attendance) FROM table_name_13 WHERE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_20 (attendance VARCHAR, arena VARCHAR, points VARCHAR)"
},
{
"from": "human",
"value": "Which Attendance has an Arena of arrowhead pond of anaheim, and Points smaller than 5?"
},
{
"from": "gpt",
"value": "SELECT attendance FROM t... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_30 (attendance INTEGER, arena VARCHAR, points VARCHAR)"
},
{
"from": "human",
"value": "How much Attendance has an Arena of arrowhead pond of anaheim, and Points of 5?"
},
{
"from": "gpt",
"value": "SELECT SUM(attendance) FROM tab... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_18 (Id VARCHAR)"
},
{
"from": "human",
"value": "How much 1969 has a 1967 smaller than 0.73, and a 1964 larger than 0.07?"
},
{
"from": "gpt",
"value": "SELECT COUNT(1969) FROM table_name_18 WHERE 1967 < 0.73 AND 1964 > 0.07"
}
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_85 (country VARCHAR)"
},
{
"from": "human",
"value": "Which 1964 has a Country of united states, and a 1969 smaller than 7.3?"
},
{
"from": "gpt",
"value": "SELECT MIN(1964) FROM table_name_85 WHERE country = \"united states\" AND... | know_sql | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.