conversations listlengths 3 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "CREATE TABLE table_name_57 (evening_gown VARCHAR, swimsuit VARCHAR, average VARCHAR)"
},
{
"from": "human",
"value": "Which is the total number of evening gowns for swimsui less than 9.36 and average less than 9.23?"
},
{
"from": "gpt",
"value": "SELECT ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_42 (average INTEGER, evening_gown VARCHAR, interview VARCHAR, country VARCHAR)"
},
{
"from": "human",
"value": "Name the lowest average for interview more than 9.57 and delaware and evening gown more than 9.77"
},
{
"from": "gpt",
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_31 (swimsuit INTEGER, interview VARCHAR, average VARCHAR, country VARCHAR)"
},
{
"from": "human",
"value": "Name the sum of swimsuit for average more than 9.23 for delaware for interview more than 9.73"
},
{
"from": "gpt",
"value"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_99 (average INTEGER, interview VARCHAR, swimsuit VARCHAR)"
},
{
"from": "human",
"value": "Name the sum of average for interview more than 9.57 and swimsuit more than 9.65"
},
{
"from": "gpt",
"value": "SELECT SUM(average) FROM ta... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_90 (evening_gown VARCHAR, swimsuit VARCHAR, country VARCHAR)"
},
{
"from": "human",
"value": "Name the evening gown for swimsuit more than 9.51 for maryland"
},
{
"from": "gpt",
"value": "SELECT evening_gown FROM table_name_90 WHE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_51 (points_awarded__platinum_ INTEGER, points_awarded__gold_ VARCHAR, points_awarded__silver_ VARCHAR)"
},
{
"from": "human",
"value": "What points awarded are higher than 6 but smaller than 9"
},
{
"from": "gpt",
"value": "SELECT... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_50 (tyre VARCHAR, pole_position VARCHAR, race VARCHAR)"
},
{
"from": "human",
"value": "In the Canadian Grand Prix, what tyre was used when Jacky Ickx held pole position?"
},
{
"from": "gpt",
"value": "SELECT tyre FROM table_name_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_16 (circuit VARCHAR, fastest_lap VARCHAR, tyre VARCHAR, pole_position VARCHAR)"
},
{
"from": "human",
"value": "When Jackie Stewart had the fastest lap and Jochen Rindt held the pole position with a D tyre, what was the circuit?"
},
{
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_28 (circuit VARCHAR, winning_driver VARCHAR)"
},
{
"from": "human",
"value": "What was the circuit when Jochen Rindt won?"
},
{
"from": "gpt",
"value": "SELECT circuit FROM table_name_28 WHERE winning_driver = \"jochen rindt\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_81 (tyre VARCHAR, circuit VARCHAR)"
},
{
"from": "human",
"value": "What tyre was used in Kyalami?"
},
{
"from": "gpt",
"value": "SELECT tyre FROM table_name_81 WHERE circuit = \"kyalami\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_11 (driver VARCHAR, grid VARCHAR)"
},
{
"from": "human",
"value": "Which driver had a grid number of 10?"
},
{
"from": "gpt",
"value": "SELECT driver FROM table_name_11 WHERE grid = 10"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_55 (constructor VARCHAR, grid VARCHAR, time_retired VARCHAR)"
},
{
"from": "human",
"value": "Which constructor had a grid number of less than 3 and where the Time/Retired was 1:34:31.522?"
},
{
"from": "gpt",
"value": "SELECT con... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_22 (constructor VARCHAR, driver VARCHAR, time_retired VARCHAR, grid VARCHAR)"
},
{
"from": "human",
"value": "Which constructor had a Time/Retired of collision, where the grid number was less than 18 and Nick Heidfeld was the driver?"
},
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_64 (record VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "What was the record on May 20?"
},
{
"from": "gpt",
"value": "SELECT record FROM table_name_64 WHERE date = \"may 20\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_70 (height_in_ft VARCHAR, no_s_ VARCHAR)"
},
{
"from": "human",
"value": "What is the height in feet of player number 24?"
},
{
"from": "gpt",
"value": "SELECT height_in_ft FROM table_name_70 WHERE no_s_ = \"24\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_27 (school_club_team_country VARCHAR, years_for_rockets VARCHAR)"
},
{
"from": "human",
"value": "Who is the school, club, team or country that the Rockets played for 1967-68?"
},
{
"from": "gpt",
"value": "SELECT school_club_team... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_48 (player VARCHAR, position VARCHAR, hometown VARCHAR)"
},
{
"from": "human",
"value": "Which player has a Position of infielder, and a Hometown of atlanta, ga?"
},
{
"from": "gpt",
"value": "SELECT player FROM table_name_48 WHER... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_7 (mlb_draft VARCHAR, school VARCHAR)"
},
{
"from": "human",
"value": "What MLB draft has a School of green valley high school?"
},
{
"from": "gpt",
"value": "SELECT mlb_draft FROM table_name_7 WHERE school = \"green valley high s... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_26 (position VARCHAR, school VARCHAR)"
},
{
"from": "human",
"value": "Which position has a School of green valley high school?"
},
{
"from": "gpt",
"value": "SELECT position FROM table_name_26 WHERE school = \"green valley high s... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_61 (position VARCHAR, player VARCHAR)"
},
{
"from": "human",
"value": "Which position has a Player of chad hutchinson?"
},
{
"from": "gpt",
"value": "SELECT position FROM table_name_61 WHERE player = \"chad hutchinson\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_71 (position VARCHAR, school VARCHAR)"
},
{
"from": "human",
"value": "Which position has a School of petal high school?"
},
{
"from": "gpt",
"value": "SELECT position FROM table_name_71 WHERE school = \"petal high school\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_23 (date VARCHAR, week VARCHAR)"
},
{
"from": "human",
"value": "What is the date of week 8?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_23 WHERE week = 8"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_4 (week INTEGER, attendance VARCHAR)"
},
{
"from": "human",
"value": "Which week has the lowest attendance of 48,102?"
},
{
"from": "gpt",
"value": "SELECT MIN(week) FROM table_name_4 WHERE attendance = 48 OFFSET 102"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_68 (year VARCHAR, runs VARCHAR)"
},
{
"from": "human",
"value": "What was the year with runs of 144?"
},
{
"from": "gpt",
"value": "SELECT year FROM table_name_68 WHERE runs = \"144\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_51 (city_country VARCHAR, venue VARCHAR)"
},
{
"from": "human",
"value": "Name the place where adelaide oval is"
},
{
"from": "gpt",
"value": "SELECT city_country FROM table_name_51 WHERE venue = \"adelaide oval\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_64 (zone INTEGER, stations VARCHAR)"
},
{
"from": "human",
"value": "Name the average zone for waddon marsh tram stop"
},
{
"from": "gpt",
"value": "SELECT AVG(zone) FROM table_name_64 WHERE stations = \"waddon marsh tram stop\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_58 (stations VARCHAR, platforms VARCHAR, managed_by VARCHAR, zone VARCHAR)"
},
{
"from": "human",
"value": "Name the stations for zone 5 and 1 platform by tramlink"
},
{
"from": "gpt",
"value": "SELECT stations FROM table_name_58 ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_41 (platforms VARCHAR, stations VARCHAR)"
},
{
"from": "human",
"value": "Name the total number of platforms that waddon railway station has"
},
{
"from": "gpt",
"value": "SELECT COUNT(platforms) FROM table_name_41 WHERE stations ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_54 (zone INTEGER, stations VARCHAR, platforms VARCHAR)"
},
{
"from": "human",
"value": "Name the average zone for waddon railway station and has more than 2 platforms"
},
{
"from": "gpt",
"value": "SELECT AVG(zone) FROM table_name... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_20 (record VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "What is Bob Ostovich's opponents record?"
},
{
"from": "gpt",
"value": "SELECT record FROM table_name_20 WHERE opponent = \"bob ostovich\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_72 (location VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "What location is Jimmy Smith fighting in?"
},
{
"from": "gpt",
"value": "SELECT location FROM table_name_72 WHERE opponent = \"jimmy smith\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_22 (away VARCHAR, season VARCHAR, record VARCHAR, win__percentage VARCHAR)"
},
{
"from": "human",
"value": "What is the away score with a record of 7-4, win% of 0.637, and 2010 season?"
},
{
"from": "gpt",
"value": "SELECT away FR... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_53 (win__percentage INTEGER, away VARCHAR, season VARCHAR)"
},
{
"from": "human",
"value": "What was the lowest win% with an away score of 3-2 in 2011 season?"
},
{
"from": "gpt",
"value": "SELECT MIN(win__percentage) FROM table_n... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_66 (win__percentage INTEGER, season VARCHAR)"
},
{
"from": "human",
"value": "What is the lowest win% in the 1999-2013 season?"
},
{
"from": "gpt",
"value": "SELECT MIN(win__percentage) FROM table_name_66 WHERE season = \"1999-201... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_99 (record VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "What's the record during 1925?"
},
{
"from": "gpt",
"value": "SELECT record FROM table_name_99 WHERE year = 1925"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_2 (year INTEGER, event VARCHAR)"
},
{
"from": "human",
"value": "What is the earliest year that the discus throw event occur?"
},
{
"from": "gpt",
"value": "SELECT MIN(year) FROM table_name_2 WHERE event = \"discus throw\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_68 (haydon VARCHAR, ben_tahir VARCHAR)"
},
{
"from": "human",
"value": "What Haydon had a 33 Ben-Tahir?"
},
{
"from": "gpt",
"value": "SELECT haydon FROM table_name_68 WHERE ben_tahir = \"33\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_65 (gauthier VARCHAR, liscumb VARCHAR)"
},
{
"from": "human",
"value": "What Gauthier had a 15 Liscumb?"
},
{
"from": "gpt",
"value": "SELECT gauthier FROM table_name_65 WHERE liscumb = \"15\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_82 (ben_tahir VARCHAR, liscumb VARCHAR, libweshya VARCHAR)"
},
{
"from": "human",
"value": "What Ben-Tahir has a 6 Liscumb and 3 Libweshya?"
},
{
"from": "gpt",
"value": "SELECT ben_tahir FROM table_name_82 WHERE liscumb = \"6\" A... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_35 (bello VARCHAR, liscumb VARCHAR, libweshya VARCHAR)"
},
{
"from": "human",
"value": "What Bello has a 27 Liscumb and 6539 Libweshya?"
},
{
"from": "gpt",
"value": "SELECT bello FROM table_name_35 WHERE liscumb = \"27\" AND libw... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_6 (furtenbacher VARCHAR, ben_tahir VARCHAR, liscumb VARCHAR, lawrance VARCHAR)"
},
{
"from": "human",
"value": "What is the Furtenbacher with a 6 Liscumb, 10 Lawrance, and a 24 Ben-Tahir?"
},
{
"from": "gpt",
"value": "SELECT furt... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_92 (ben_tahir VARCHAR, doucet VARCHAR)"
},
{
"from": "human",
"value": "What is the Ben-Tahir with a 3269 Doucet?"
},
{
"from": "gpt",
"value": "SELECT ben_tahir FROM table_name_92 WHERE doucet = \"3269\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_68 (attendance INTEGER, loss VARCHAR)"
},
{
"from": "human",
"value": "How many attended the game that was a Loss of k. gross (1-1)?"
},
{
"from": "gpt",
"value": "SELECT MAX(attendance) FROM table_name_68 WHERE loss = \"k. gross ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_23 (score VARCHAR, tie_no VARCHAR)"
},
{
"from": "human",
"value": "What is the score of the game with tie number 65?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_23 WHERE tie_no = \"65\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_91 (home_team VARCHAR, attendance VARCHAR)"
},
{
"from": "human",
"value": "Which Home team had attendance 160?"
},
{
"from": "gpt",
"value": "SELECT home_team FROM table_name_91 WHERE attendance = \"160\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_79 (record VARCHAR, decision VARCHAR, visitor VARCHAR)"
},
{
"from": "human",
"value": "What is the record of the game with a decision of Ellis and Vancouver as the visitor?"
},
{
"from": "gpt",
"value": "SELECT record FROM table_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_45 (record VARCHAR, decision VARCHAR, home VARCHAR)"
},
{
"from": "human",
"value": "What is the record of the game with Mason as the decision and Nashville as the home team?"
},
{
"from": "gpt",
"value": "SELECT record FROM table... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_27 (date VARCHAR, decision VARCHAR, visitor VARCHAR)"
},
{
"from": "human",
"value": "What is the date with Ellis as the decision and St. Louis as the visitor?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_27 WHERE de... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_67 (visitor VARCHAR, record VARCHAR)"
},
{
"from": "human",
"value": "Which visiting team had a record of 31–31–8?"
},
{
"from": "gpt",
"value": "SELECT visitor FROM table_name_67 WHERE record = \"31–31–8\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_45 (hometown VARCHAR, player VARCHAR)"
},
{
"from": "human",
"value": "Where is Jeff Lebo's hometown?"
},
{
"from": "gpt",
"value": "SELECT hometown FROM table_name_45 WHERE player = \"jeff lebo\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_49 (player VARCHAR, hometown VARCHAR)"
},
{
"from": "human",
"value": "Who is the player from Houston, TX?"
},
{
"from": "gpt",
"value": "SELECT player FROM table_name_49 WHERE hometown = \"houston, tx\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_99 (year INTEGER, points VARCHAR, entrant VARCHAR, chassis VARCHAR)"
},
{
"from": "human",
"value": "What is the earliest year with an entry from Rotary Watches Stanley BRM and a BRM P207 with more than 0 points?"
},
{
"from": "gpt",
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_68 (points VARCHAR, entrant VARCHAR, year VARCHAR, engine VARCHAR)"
},
{
"from": "human",
"value": "How many points were there in a year earlier than 1977, a Cosworth V8 engine, and an entry from HB Bewaking alarm systems?"
},
{
"from... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_88 (report VARCHAR, race VARCHAR)"
},
{
"from": "human",
"value": "What is the report for the race of Argentine Grand Prix?"
},
{
"from": "gpt",
"value": "SELECT report FROM table_name_88 WHERE race = \"argentine grand prix\""
}... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_22 (tyre VARCHAR, pole_position VARCHAR)"
},
{
"from": "human",
"value": "What is the Tyre when Jerry Hoyt was the pole position?"
},
{
"from": "gpt",
"value": "SELECT tyre FROM table_name_22 WHERE pole_position = \"jerry hoyt\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_89 (constructor VARCHAR, tyre VARCHAR, pole_position VARCHAR)"
},
{
"from": "human",
"value": "Who was the constructor when Eugenio Castellotti was the pole position and the race had a C tyre?"
},
{
"from": "gpt",
"value": "SELECT... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_2 (fastest_lap VARCHAR, constructor VARCHAR, race VARCHAR)"
},
{
"from": "human",
"value": "What was the fastest lap time at the British Grand Prix with Mercedes as the constructor?"
},
{
"from": "gpt",
"value": "SELECT fastest_la... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_20 (high_points VARCHAR, high_rebounds VARCHAR)"
},
{
"from": "human",
"value": "Who scored the High points in the game with High rebounds by Nick Collison (14)?"
},
{
"from": "gpt",
"value": "SELECT high_points FROM table_name_20... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_41 (transfer_fee VARCHAR, name VARCHAR, source VARCHAR, country VARCHAR)"
},
{
"from": "human",
"value": "What is henry transfer fee at fcbarcelona.cat in fra?"
},
{
"from": "gpt",
"value": "SELECT transfer_fee FROM table_name_41 ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_57 (grid VARCHAR, time_retired VARCHAR)"
},
{
"from": "human",
"value": "What was the Grid with a hydraulics time/required?"
},
{
"from": "gpt",
"value": "SELECT grid FROM table_name_57 WHERE time_retired = \"hydraulics\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_24 (grid VARCHAR, constructor VARCHAR, time_retired VARCHAR)"
},
{
"from": "human",
"value": "What is the grid with a Toyota constructor and +1:09.718 as time/retired?"
},
{
"from": "gpt",
"value": "SELECT grid FROM table_name_24 ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_55 (grid VARCHAR, laps VARCHAR, driver VARCHAR)"
},
{
"from": "human",
"value": "What is the grid with 71 laps and the driver, Allan McNish."
},
{
"from": "gpt",
"value": "SELECT grid FROM table_name_55 WHERE laps = \"71\" AND dri... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_60 (laps VARCHAR, driver VARCHAR)"
},
{
"from": "human",
"value": "How many laps did Jacques Villeneuve have?"
},
{
"from": "gpt",
"value": "SELECT laps FROM table_name_60 WHERE driver = \"jacques villeneuve\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_50 (constructor VARCHAR, driver VARCHAR)"
},
{
"from": "human",
"value": "What is the constructor of the driver Heinz-Harald Frentzen?"
},
{
"from": "gpt",
"value": "SELECT constructor FROM table_name_50 WHERE driver = \"heinz-har... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_66 (rank VARCHAR, year VARCHAR, out_of VARCHAR)"
},
{
"from": "human",
"value": "Tell me the rank for year of 2012 and out of larger than 176"
},
{
"from": "gpt",
"value": "SELECT rank FROM table_name_66 WHERE year = \"2012\" AND ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_11 (year VARCHAR, rank VARCHAR, out_of VARCHAR)"
},
{
"from": "human",
"value": "Tell me the year for rank more than 35 and out of 167"
},
{
"from": "gpt",
"value": "SELECT year FROM table_name_11 WHERE rank > 35 AND out_of = 167"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_88 (uci_points VARCHAR, team VARCHAR)"
},
{
"from": "human",
"value": "How many UCI points did Rabobank score?"
},
{
"from": "gpt",
"value": "SELECT uci_points FROM table_name_88 WHERE team = \"rabobank\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_81 (team VARCHAR, country VARCHAR, uci_points VARCHAR)"
},
{
"from": "human",
"value": "What team in France had 15 UCi points?"
},
{
"from": "gpt",
"value": "SELECT team FROM table_name_81 WHERE country = \"france\" AND uci_points... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_24 (country VARCHAR, abbreviation VARCHAR, assets_us$billion VARCHAR, inception VARCHAR)"
},
{
"from": "human",
"value": "Which country has assets of x, an inception of 2007, and an abbreviation of adic?"
},
{
"from": "gpt",
"valu... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_88 (abbreviation VARCHAR, country VARCHAR)"
},
{
"from": "human",
"value": "What's the abbreviation for libya?"
},
{
"from": "gpt",
"value": "SELECT abbreviation FROM table_name_88 WHERE country = \"libya\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_1 (origin VARCHAR, abbreviation VARCHAR)"
},
{
"from": "human",
"value": "What's the origin for the country abbreviated atf?"
},
{
"from": "gpt",
"value": "SELECT origin FROM table_name_1 WHERE abbreviation = \"atf\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_47 (inception VARCHAR, assets_us$billion VARCHAR, abbreviation VARCHAR)"
},
{
"from": "human",
"value": "What's the inception for the country with 25.5 billion USD in assets and an abbreviation of psf?"
},
{
"from": "gpt",
"value"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_61 (country VARCHAR, abbreviation VARCHAR)"
},
{
"from": "human",
"value": "Which country has an abbreviation of kia?"
},
{
"from": "gpt",
"value": "SELECT country FROM table_name_61 WHERE abbreviation = \"kia\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_79 (abbreviation VARCHAR, inception VARCHAR, assets_us$billion VARCHAR)"
},
{
"from": "human",
"value": "What's the abbreviation for the country with an inception of 1999 and US$Billion assets of 7.1?"
},
{
"from": "gpt",
"value":... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_47 (away_team VARCHAR, home_team VARCHAR)"
},
{
"from": "human",
"value": "What was the opponent of the home team of essendon?"
},
{
"from": "gpt",
"value": "SELECT away_team FROM table_name_47 WHERE home_team = \"essendon\""
}
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_80 (cast VARCHAR, director VARCHAR)"
},
{
"from": "human",
"value": "Tell me the cast for b. reeves eason and joseph kane"
},
{
"from": "gpt",
"value": "SELECT cast FROM table_name_80 WHERE director = \"b. reeves eason and joseph ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_29 (director VARCHAR, serial_title VARCHAR)"
},
{
"from": "human",
"value": "I want the director for heroes of the wild"
},
{
"from": "gpt",
"value": "SELECT director FROM table_name_29 WHERE serial_title = \"heroes of the wild\""... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_13 (year VARCHAR, serial_title VARCHAR)"
},
{
"from": "human",
"value": "I want the year for the three musketeers"
},
{
"from": "gpt",
"value": "SELECT year FROM table_name_13 WHERE serial_title = \"the three musketeers\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_75 (cast VARCHAR, director VARCHAR, serial_title VARCHAR)"
},
{
"from": "human",
"value": "I want the cast for director of colbert clark and armand schaefer for burn 'em up barnes"
},
{
"from": "gpt",
"value": "SELECT cast FROM ta... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_69 (crowd INTEGER, venue VARCHAR)"
},
{
"from": "human",
"value": "How large was the crowd at the Kardinia Park venue games?"
},
{
"from": "gpt",
"value": "SELECT SUM(crowd) FROM table_name_69 WHERE venue = \"kardinia park\""
}
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_3 (home_team VARCHAR, away_team VARCHAR)"
},
{
"from": "human",
"value": "What was the score of the Home team that played against Carlton's Away game?"
},
{
"from": "gpt",
"value": "SELECT home_team AS score FROM table_name_3 WHER... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_42 (pick VARCHAR, player VARCHAR)"
},
{
"from": "human",
"value": "What was the pick number when mark hayes was drafted?"
},
{
"from": "gpt",
"value": "SELECT pick FROM table_name_42 WHERE player = \"mark hayes\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_93 (school_club_team VARCHAR, pick VARCHAR)"
},
{
"from": "human",
"value": "Which team had a pick of 63?"
},
{
"from": "gpt",
"value": "SELECT school_club_team FROM table_name_93 WHERE pick = 63"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_44 (school_club_team VARCHAR, position VARCHAR, pick VARCHAR)"
},
{
"from": "human",
"value": "Which team had a position of linebacker with a pick smaller of 288?"
},
{
"from": "gpt",
"value": "SELECT school_club_team FROM table_n... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_70 (player VARCHAR, round VARCHAR, school_club_team VARCHAR)"
},
{
"from": "human",
"value": "What player did louisville pick when the round was below 8?"
},
{
"from": "gpt",
"value": "SELECT player FROM table_name_70 WHERE round ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_81 (outcome VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "What was the outcome of the game that had a score of 3–6, 6–3, 6–0?"
},
{
"from": "gpt",
"value": "SELECT outcome FROM table_name_81 WHERE score = \"3–6, 6–3, 6–... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_77 (outcome VARCHAR, score VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "On 27 July 2003 what was the outcome of the game that resulted in a score of 7–5, 6–3?"
},
{
"from": "gpt",
"value": "SELECT outcome FROM table_nam... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_29 (score VARCHAR, opponent_in_the_final VARCHAR)"
},
{
"from": "human",
"value": "What was the final score of the game against Lenka Novotná?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_29 WHERE opponent_in_the_fi... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_23 (opponent_in_the_final VARCHAR, surface VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "In the surface of clay who was the opponent in the game resulting in a score of 6–4, 6–4?"
},
{
"from": "gpt",
"value": "SELECT op... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_75 (score VARCHAR, opponent_in_the_final VARCHAR)"
},
{
"from": "human",
"value": "What was the final score of the game against opponent Ana Ivanovic?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_75 WHERE opponent_i... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_12 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)"
},
{
"from": "human",
"value": "What is the total grid number where the time/retired is +58.182 and the lap number is less than 67?"
},
{
"from": "gpt",
"value": "SELECT SUM(g... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_77 (name_of_horse VARCHAR, year_inducted VARCHAR, broodmare_sire VARCHAR)"
},
{
"from": "human",
"value": "What horse was induced in 2011 with a sire of cowboy p-12?"
},
{
"from": "gpt",
"value": "SELECT name_of_horse FROM table_n... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_65 (home_team VARCHAR, away_team VARCHAR)"
},
{
"from": "human",
"value": "Who was the home team that played against hawthorn?"
},
{
"from": "gpt",
"value": "SELECT home_team FROM table_name_65 WHERE away_team = \"hawthorn\""
}
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_15 (away_team VARCHAR, home_team VARCHAR)"
},
{
"from": "human",
"value": "Who was the away team playing against collingwood?"
},
{
"from": "gpt",
"value": "SELECT away_team FROM table_name_15 WHERE home_team = \"collingwood\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_65 (crowd INTEGER, venue VARCHAR)"
},
{
"from": "human",
"value": "What was the biggest crowd at punt road oval?"
},
{
"from": "gpt",
"value": "SELECT MAX(crowd) FROM table_name_65 WHERE venue = \"punt road oval\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_56 (home_team VARCHAR, venue VARCHAR)"
},
{
"from": "human",
"value": "Who is the home team based at windy hill?"
},
{
"from": "gpt",
"value": "SELECT home_team FROM table_name_56 WHERE venue = \"windy hill\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_45 (gold INTEGER, bronze VARCHAR, silver VARCHAR, rank VARCHAR)"
},
{
"from": "human",
"value": "What is the low gold total for nations with under 23 silvers, ranked beloe 5, and 6 bronzes?"
},
{
"from": "gpt",
"value": "SELECT MI... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_61 (silver INTEGER, gold VARCHAR, bronze VARCHAR)"
},
{
"from": "human",
"value": "What is the high silver total for nations with 3 golds and under 5 bronzes?"
},
{
"from": "gpt",
"value": "SELECT MAX(silver) FROM table_name_61 WH... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_60 (silver VARCHAR, bronze VARCHAR, gold VARCHAR)"
},
{
"from": "human",
"value": "How many silvers for nations with over 3 golds and under 6 bronzes?"
},
{
"from": "gpt",
"value": "SELECT COUNT(silver) FROM table_name_60 WHERE br... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_13 (crowd INTEGER, venue VARCHAR)"
},
{
"from": "human",
"value": "What was the smallest crowd in games at the corio oval?"
},
{
"from": "gpt",
"value": "SELECT MIN(crowd) FROM table_name_13 WHERE venue = \"corio oval\""
}
] | know_sql | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.