conversations listlengths 3 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "CREATE TABLE table_name_84 (league_goals INTEGER, total_apps VARCHAR, position VARCHAR, fa_cup_goals VARCHAR, fa_cup_apps VARCHAR)"
},
{
"from": "human",
"value": "Who has the lowest league total goals with 0 FA cup goals and no FA cup appearances, plays the DF posi... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_75 (_number_of_episodes INTEGER, date_released VARCHAR)"
},
{
"from": "human",
"value": "What is the lowest # Of Episodes, when Date Released is \"15 December 2011\"?"
},
{
"from": "gpt",
"value": "SELECT MIN(_number_of_episodes) ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_33 (date_released VARCHAR, _number_of_discs INTEGER)"
},
{
"from": "human",
"value": "What Date Released, when # Of Discs is greater than 4?"
},
{
"from": "gpt",
"value": "SELECT date_released FROM table_name_33 WHERE _number_of_d... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_97 (season VARCHAR, _number_of_episodes VARCHAR, date_released VARCHAR)"
},
{
"from": "human",
"value": "What is Season, when # Of Episodes is \"10\", and when Date Released is \"1 April 2010\"?"
},
{
"from": "gpt",
"value": "SELE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_37 (score VARCHAR, home_team VARCHAR)"
},
{
"from": "human",
"value": "What was the score when Sheffield United was the home team?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_37 WHERE home_team = \"sheffield united... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_74 (away_team VARCHAR, home_team VARCHAR)"
},
{
"from": "human",
"value": "Who was the away team against Newton Heath?"
},
{
"from": "gpt",
"value": "SELECT away_team FROM table_name_74 WHERE home_team = \"newton heath\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_40 (home_team VARCHAR, tie_no VARCHAR)"
},
{
"from": "human",
"value": "What is the home team when the tie is 11?"
},
{
"from": "gpt",
"value": "SELECT home_team FROM table_name_40 WHERE tie_no = \"11\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_95 (league_goals INTEGER, flt_goals VARCHAR, total_apps VARCHAR, position VARCHAR, league_cup_apps VARCHAR)"
},
{
"from": "human",
"value": "What is the sum of League Goals, when Position is \"DF\", when League Cup Apps is \"0\", when Total A... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_47 (fa_cup_goals VARCHAR, flt_goals INTEGER)"
},
{
"from": "human",
"value": "What is the total number of FA Cup Goals, when FLT Goals is greater than 0?"
},
{
"from": "gpt",
"value": "SELECT COUNT(fa_cup_goals) FROM table_name_47... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_10 (fa_cup_goals INTEGER, league_cup_goals VARCHAR, fa_cup_apps VARCHAR, total_goals VARCHAR, league_goals VARCHAR)"
},
{
"from": "human",
"value": "What is the lowest FA Cup Goals, when Total Goals is greater than 0, when League Goals is \"4... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_6 (points INTEGER, team VARCHAR, laps VARCHAR)"
},
{
"from": "human",
"value": "How many points for Newman/Haas Racing with fewer than 40 laps?"
},
{
"from": "gpt",
"value": "SELECT AVG(points) FROM table_name_6 WHERE team = \"new... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_32 (driver VARCHAR, team VARCHAR, points VARCHAR, grid VARCHAR)"
},
{
"from": "human",
"value": "Which driver has fewer than 2 points, larger grid that 4 and is on American Spirit Team Johansson?"
},
{
"from": "gpt",
"value": "SEL... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_50 (week_11_nov_16 VARCHAR, week_13_nov_30 VARCHAR)"
},
{
"from": "human",
"value": "What is the week 11 nov 16 standing with wisconsin (10-1) on week 13 Nov 30?"
},
{
"from": "gpt",
"value": "SELECT week_11_nov_16 FROM table_name... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_36 (week_13_nov_30 VARCHAR, week_11_nov_16 VARCHAR)"
},
{
"from": "human",
"value": "What is the week 13 Nov 30 standing with USC (7-3) on week 11 Nov 16?"
},
{
"from": "gpt",
"value": "SELECT week_13_nov_30 FROM table_name_36 WHE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_1 (week_8_oct_26 VARCHAR, week_12_nov_23 VARCHAR)"
},
{
"from": "human",
"value": "What is the week 8 Oct 26 standing with georgia tech (8-2) on week 12 Nov 23?"
},
{
"from": "gpt",
"value": "SELECT week_8_oct_26 FROM table_name_1... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_97 (week_14__final__dec_7 VARCHAR, week_8_oct_26 VARCHAR)"
},
{
"from": "human",
"value": "What is the week 14 (final) dec 7 standing with Florida (6-1) on week 8 Oct 26?"
},
{
"from": "gpt",
"value": "SELECT week_14__final__dec_7... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_58 (name VARCHAR, source VARCHAR)"
},
{
"from": "human",
"value": "What player is associated with soenderjyske.dk?"
},
{
"from": "gpt",
"value": "SELECT name FROM table_name_58 WHERE source = \"soenderjyske.dk\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_94 (transfer_fee VARCHAR, type VARCHAR, name VARCHAR)"
},
{
"from": "human",
"value": "What is the transfer fee for Gravgaard?"
},
{
"from": "gpt",
"value": "SELECT transfer_fee FROM table_name_94 WHERE type = \"transfer\" AND nam... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_50 (result VARCHAR, opening VARCHAR, moves VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "What's the result when there's more than 41 moves with an opening of c42 petrov's defence in 2007?"
},
{
"from": "gpt",
"value": "S... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_52 (moves VARCHAR, black VARCHAR, result VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "What's the total number of moves with a result of ½–½ and a black of Anand before 1999?"
},
{
"from": "gpt",
"value": "SELECT COUNT(... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_56 (black VARCHAR, moves VARCHAR, tournament VARCHAR)"
},
{
"from": "human",
"value": "What's the black with 24 moves in the dortmund tournament?"
},
{
"from": "gpt",
"value": "SELECT black FROM table_name_56 WHERE moves = 24 AND ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_83 (opening VARCHAR, result VARCHAR, white VARCHAR, moves VARCHAR)"
},
{
"from": "human",
"value": "What's the opening when white is Anand with fewer than 61 moves for a result of ½–½?"
},
{
"from": "gpt",
"value": "SELECT openin... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_20 (white VARCHAR, opening VARCHAR, moves VARCHAR, black VARCHAR, result VARCHAR)"
},
{
"from": "human",
"value": "What's the white for a black of Anand, a result of ½–½, 39 moves, and an opening of d37 queen's gambit declined?"
},
{
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_26 (draw INTEGER, english_translation VARCHAR, place VARCHAR)"
},
{
"from": "human",
"value": "What is the lowest draw that has We The Lovers for the english translation, with a place greater than 1?"
},
{
"from": "gpt",
"value": ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_93 (draw INTEGER, language VARCHAR, place VARCHAR)"
},
{
"from": "human",
"value": "How many draws have french as the language, with a place less than 1?"
},
{
"from": "gpt",
"value": "SELECT SUM(draw) FROM table_name_93 WHERE lan... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_73 (tonnage INTEGER, flag VARCHAR)"
},
{
"from": "human",
"value": "What is the Tonnage of the ship from Canada?"
},
{
"from": "gpt",
"value": "SELECT MAX(tonnage) FROM table_name_73 WHERE flag = \"canada\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_60 (place VARCHAR, country VARCHAR)"
},
{
"from": "human",
"value": "In what place did the golfer representing Zimbabwe finish?"
},
{
"from": "gpt",
"value": "SELECT place FROM table_name_60 WHERE country = \"zimbabwe\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_23 (place VARCHAR, score VARCHAR, player VARCHAR)"
},
{
"from": "human",
"value": "In what place did Des Smyth, who scored less than 71, finish?"
},
{
"from": "gpt",
"value": "SELECT place FROM table_name_23 WHERE score < 71 AND p... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_82 (spaceport VARCHAR, launcher VARCHAR, launch_complex VARCHAR)"
},
{
"from": "human",
"value": "What is the spaceport location that houses the LC34 complex and uses the Saturn IB launcher?"
},
{
"from": "gpt",
"value": "SELECT s... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_7 (spacecraft VARCHAR, launcher VARCHAR)"
},
{
"from": "human",
"value": "Which spacecraft were launched by the Titan II?"
},
{
"from": "gpt",
"value": "SELECT spacecraft FROM table_name_7 WHERE launcher = \"titan ii\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_80 (launcher VARCHAR, spacecraft VARCHAR)"
},
{
"from": "human",
"value": "What was the launcher vehicle for Apollo-Soyuz?"
},
{
"from": "gpt",
"value": "SELECT launcher FROM table_name_80 WHERE spacecraft = \"apollo-soyuz\""
}
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_35 (launch_complex VARCHAR, launcher VARCHAR, flights VARCHAR)"
},
{
"from": "human",
"value": "Which complex used the Soyuz (r) launcher to facilitate 14 orbital flights?"
},
{
"from": "gpt",
"value": "SELECT launch_complex FROM ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_79 (tournament VARCHAR)"
},
{
"from": "human",
"value": "what is 2008 when the tournament is year end ranking?"
},
{
"from": "gpt",
"value": "SELECT 2008 FROM table_name_79 WHERE tournament = \"year end ranking\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_66 (tournament VARCHAR)"
},
{
"from": "human",
"value": "what is 2012 when the tournament is cincinnati masters?"
},
{
"from": "gpt",
"value": "SELECT 2012 FROM table_name_66 WHERE tournament = \"cincinnati masters\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_79 (Id VARCHAR)"
},
{
"from": "human",
"value": "what is 2008 when 2012 is 3r and 2009 is 2r?"
},
{
"from": "gpt",
"value": "SELECT 2008 FROM table_name_79 WHERE 2012 = \"3r\" AND 2009 = \"2r\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_51 (height_ft__m_ VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "How tall is the structure built in 1907?"
},
{
"from": "gpt",
"value": "SELECT height_ft__m_ FROM table_name_51 WHERE year = 1907"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_90 (name VARCHAR, floors INTEGER)"
},
{
"from": "human",
"value": "Which building has more than 34 floors?"
},
{
"from": "gpt",
"value": "SELECT name FROM table_name_90 WHERE floors > 34"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_7 (gold INTEGER, bronze VARCHAR, silver VARCHAR)"
},
{
"from": "human",
"value": "Which rank has 0 bronze and 2 silver?"
},
{
"from": "gpt",
"value": "SELECT MIN(gold) FROM table_name_7 WHERE bronze = 0 AND silver < 2"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_34 (silver INTEGER, rank VARCHAR, gold VARCHAR, total VARCHAR)"
},
{
"from": "human",
"value": "How much silver does the rank have that has gold smaller than 4, and a total of 1 and a rank larger than 6?"
},
{
"from": "gpt",
"valu... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_34 (rank INTEGER, total VARCHAR, silver VARCHAR, bronze VARCHAR)"
},
{
"from": "human",
"value": "Which rank has a more than 0 silver, 4 bronze, and a total smaller than 10?"
},
{
"from": "gpt",
"value": "SELECT SUM(rank) FROM tab... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_19 (gold VARCHAR, silver VARCHAR, bronze VARCHAR)"
},
{
"from": "human",
"value": "How much gold does the tank have that has 3 silver and more than 3 bronze?"
},
{
"from": "gpt",
"value": "SELECT COUNT(gold) FROM table_name_19 WHE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_14 (total VARCHAR, silver INTEGER)"
},
{
"from": "human",
"value": "What is the total number that 0 silver?"
},
{
"from": "gpt",
"value": "SELECT COUNT(total) FROM table_name_14 WHERE silver < 0"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_7 (score VARCHAR, to_par VARCHAR, player VARCHAR)"
},
{
"from": "human",
"value": "Which Score has a To par larger than 17, and a Player of mike brady?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_7 WHERE to_par > 1... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_83 (place VARCHAR, money___$__ VARCHAR, player VARCHAR)"
},
{
"from": "human",
"value": "Which Place that has Money of 150, and a Player of bobby cruickshank?"
},
{
"from": "gpt",
"value": "SELECT place FROM table_name_83 WHERE mo... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_26 (place VARCHAR, to_par VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "Which Place has a To par smaller than 15, and a Score of 74-74-74-75=297?"
},
{
"from": "gpt",
"value": "SELECT place FROM table_name_26 WHERE to_p... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_84 (score VARCHAR, tie_no VARCHAR)"
},
{
"from": "human",
"value": "What is the score when the tie number is 8?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_84 WHERE tie_no = \"8\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_58 (score VARCHAR, tie_no VARCHAR)"
},
{
"from": "human",
"value": "What is the score when the tie number is 6?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_58 WHERE tie_no = \"6\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_46 (tie_no VARCHAR, home_team VARCHAR)"
},
{
"from": "human",
"value": "What is the tie number for Middlesbrough?"
},
{
"from": "gpt",
"value": "SELECT tie_no FROM table_name_46 WHERE home_team = \"middlesbrough\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_33 (status VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "What status has 15/04/1967 as the date?"
},
{
"from": "gpt",
"value": "SELECT status FROM table_name_33 WHERE date = \"15/04/1967\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_95 (venue VARCHAR, opposing_teams VARCHAR)"
},
{
"from": "human",
"value": "What venue has Scotland as the opposing teams?"
},
{
"from": "gpt",
"value": "SELECT venue FROM table_name_95 WHERE opposing_teams = \"scotland\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_71 (status VARCHAR, opposing_teams VARCHAR)"
},
{
"from": "human",
"value": "What status has France as the opposing teams?"
},
{
"from": "gpt",
"value": "SELECT status FROM table_name_71 WHERE opposing_teams = \"france\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_50 (week_4 VARCHAR, week_9 VARCHAR)"
},
{
"from": "human",
"value": "What kind of Week 4 has a Week 9 of all housemates?"
},
{
"from": "gpt",
"value": "SELECT week_4 FROM table_name_50 WHERE week_9 = \"all housemates\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_2 (week_3 VARCHAR, week_9 VARCHAR)"
},
{
"from": "human",
"value": "Which Week 3 has a Week 9 of ejected (day 3)?"
},
{
"from": "gpt",
"value": "SELECT week_3 FROM table_name_2 WHERE week_9 = \"ejected (day 3)\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_24 (week_1 VARCHAR, week_3 VARCHAR, week_8 VARCHAR, week_9 VARCHAR)"
},
{
"from": "human",
"value": "What kind of Week 1 has a Week 8 of not eligible, and a Week 9 of no nominations, and a Week 3 of cyril? Question 3"
},
{
"from": "gp... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_83 (week_7 VARCHAR, week_5 VARCHAR)"
},
{
"from": "human",
"value": "What kind of Week 7 has a Week 5 of evicted (day 15)?"
},
{
"from": "gpt",
"value": "SELECT week_7 FROM table_name_83 WHERE week_5 = \"evicted (day 15)\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_80 (week_6 VARCHAR, week_2 VARCHAR)"
},
{
"from": "human",
"value": "What kind of Week 6 has a Week 2 of see notes 2 , 3 , 4?"
},
{
"from": "gpt",
"value": "SELECT week_6 FROM table_name_80 WHERE week_2 = \"see notes 2 , 3 , 4\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_35 (against INTEGER, wins VARCHAR, geelong_fl VARCHAR)"
},
{
"from": "human",
"value": "Which Against has more than 11 wins, and a Geelong FL of st josephs?"
},
{
"from": "gpt",
"value": "SELECT MIN(against) FROM table_name_35 WHE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_17 (attendance INTEGER, loss VARCHAR)"
},
{
"from": "human",
"value": "What is the Attendance of the game with a Loss of Hiller (3–2)?"
},
{
"from": "gpt",
"value": "SELECT MAX(attendance) FROM table_name_17 WHERE loss = \"hiller ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_85 (away_team VARCHAR, home_team VARCHAR)"
},
{
"from": "human",
"value": "Who is the away team that tottenham hotspur played?"
},
{
"from": "gpt",
"value": "SELECT away_team FROM table_name_85 WHERE home_team = \"tottenham hotspu... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_10 (score VARCHAR, date VARCHAR, away_team VARCHAR)"
},
{
"from": "human",
"value": "What was the score of the game with away team chelsea on 29 january 1983?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_10 WHERE da... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_76 (date VARCHAR, home_team VARCHAR)"
},
{
"from": "human",
"value": "What date was the game that home team torquay united played?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_76 WHERE home_team = \"torquay united\""... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_9 (home_team VARCHAR, away_team VARCHAR)"
},
{
"from": "human",
"value": "Who is the team that played away team watford?"
},
{
"from": "gpt",
"value": "SELECT home_team FROM table_name_9 WHERE away_team = \"watford\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_93 (date VARCHAR, home_team VARCHAR)"
},
{
"from": "human",
"value": "What date was the game when home team crystal palace played?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_93 WHERE home_team = \"crystal palace\""... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_18 (country VARCHAR, player VARCHAR)"
},
{
"from": "human",
"value": "What country is Retief Goosen from?"
},
{
"from": "gpt",
"value": "SELECT country FROM table_name_18 WHERE player = \"retief goosen\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_27 (player VARCHAR, place VARCHAR)"
},
{
"from": "human",
"value": "What Player is in Place 1?"
},
{
"from": "gpt",
"value": "SELECT player FROM table_name_27 WHERE place = \"1\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_39 (country VARCHAR, place VARCHAR)"
},
{
"from": "human",
"value": "What is the Country of the Player in Place 1?"
},
{
"from": "gpt",
"value": "SELECT country FROM table_name_39 WHERE place = \"1\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_89 (place VARCHAR, to_par VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "What is the Place of the Player with a To par of –10 and a Score of 67-67-66=200?"
},
{
"from": "gpt",
"value": "SELECT place FROM table_name_89 WH... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_92 (rank VARCHAR, points VARCHAR, club VARCHAR)"
},
{
"from": "human",
"value": "Can you tell me the total number of Rank that has the Points larger than 99, and the Club of barcelona?"
},
{
"from": "gpt",
"value": "SELECT COUNT(r... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_76 (attendance INTEGER, tie_no VARCHAR, away_team VARCHAR)"
},
{
"from": "human",
"value": "How many people on average attended when Eastwood Town was the away team, and the tie number was less than 8?"
},
{
"from": "gpt",
"value"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_38 (score VARCHAR, attendance VARCHAR, home_team VARCHAR)"
},
{
"from": "human",
"value": "The game with home team Crowborough Athletic, with an attendance less than 848 had what as the score?"
},
{
"from": "gpt",
"value": "SELECT... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_76 (attendance INTEGER, home_team VARCHAR)"
},
{
"from": "human",
"value": "The game with Bashley as the home team had what maximum attendance?"
},
{
"from": "gpt",
"value": "SELECT MAX(attendance) FROM table_name_76 WHERE home_te... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_5 (tie_no VARCHAR, away_team VARCHAR)"
},
{
"from": "human",
"value": "What is the tie number total when Harlow Town is the away team?"
},
{
"from": "gpt",
"value": "SELECT COUNT(tie_no) FROM table_name_5 WHERE away_team = \"harlo... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_58 (artist VARCHAR, draw INTEGER)"
},
{
"from": "human",
"value": "Which artist has a draw greater than 15?"
},
{
"from": "gpt",
"value": "SELECT artist FROM table_name_58 WHERE draw > 15"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_97 (place INTEGER, artist VARCHAR, draw VARCHAR)"
},
{
"from": "human",
"value": "What was the highest place a song by Jacques Raymond reached, with a draw over 14?"
},
{
"from": "gpt",
"value": "SELECT MAX(place) FROM table_name_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_15 (craft VARCHAR, location VARCHAR)"
},
{
"from": "human",
"value": "What is the Craft used at Coniston Water?"
},
{
"from": "gpt",
"value": "SELECT craft FROM table_name_15 WHERE location = \"coniston water\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_80 (speed VARCHAR, location VARCHAR)"
},
{
"from": "human",
"value": "What is the Speed at Lake Mead?"
},
{
"from": "gpt",
"value": "SELECT speed FROM table_name_80 WHERE location = \"lake mead\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_16 (goals VARCHAR, ratio VARCHAR)"
},
{
"from": "human",
"value": "Which Goals have a Ratio of 0.29?"
},
{
"from": "gpt",
"value": "SELECT goals FROM table_name_16 WHERE ratio = 0.29"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_12 (goals INTEGER, rank VARCHAR, current_club VARCHAR, ratio VARCHAR)"
},
{
"from": "human",
"value": "Which Goals have a Current Club of real madrid, and a Ratio smaller than 1.08, and a Rank smaller than 5?"
},
{
"from": "gpt",
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_20 (current_club VARCHAR, rank VARCHAR)"
},
{
"from": "human",
"value": "Which Current Club has a Rank of 4?"
},
{
"from": "gpt",
"value": "SELECT current_club FROM table_name_20 WHERE rank = 4"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_71 (second_party VARCHAR, first_party VARCHAR, election VARCHAR)"
},
{
"from": "human",
"value": "What is the second party that has a conservative first party in the 1834 election?"
},
{
"from": "gpt",
"value": "SELECT second_part... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_3 (second_member VARCHAR, first_member VARCHAR, second_party VARCHAR)"
},
{
"from": "human",
"value": "Who is the second member with first member Sir Rowland Hill, BT, and a conservative second party?"
},
{
"from": "gpt",
"value":... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_18 (first_party VARCHAR, second_member VARCHAR, election VARCHAR)"
},
{
"from": "human",
"value": "What is the first party with second member Hon. Rowland Hill, in the 1857 election?"
},
{
"from": "gpt",
"value": "SELECT first_par... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_54 (second_member VARCHAR, second_party VARCHAR, election VARCHAR)"
},
{
"from": "human",
"value": "Who is the second member that is a second party Whig in the 1834 election?"
},
{
"from": "gpt",
"value": "SELECT second_member FRO... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_95 (second_party VARCHAR, first_party VARCHAR, second_member VARCHAR)"
},
{
"from": "human",
"value": "What is the second party that has a conservative first party and second member John Cotes?"
},
{
"from": "gpt",
"value": "SELEC... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_84 (place VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "What place is the player with a score of 69-68=137?"
},
{
"from": "gpt",
"value": "SELECT place FROM table_name_84 WHERE score = 69 - 68 = 137"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_19 (score VARCHAR, place VARCHAR, country VARCHAR)"
},
{
"from": "human",
"value": "What's the score for the t10 player from zimbabwe?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_19 WHERE place = \"t10\" AND countr... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_61 (score VARCHAR, place VARCHAR, country VARCHAR)"
},
{
"from": "human",
"value": "What's the score of the t10 player from australia?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_61 WHERE place = \"t10\" AND countr... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_51 (score VARCHAR, player VARCHAR)"
},
{
"from": "human",
"value": "What's bob tway's score?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_51 WHERE player = \"bob tway\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_54 (player VARCHAR, place VARCHAR, country VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "What Player has a Place of t10, a Country of united states, and a Score of 67-73=140?"
},
{
"from": "gpt",
"value": "SELECT player... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_89 (place VARCHAR, player VARCHAR)"
},
{
"from": "human",
"value": "What Place has a Player of seve ballesteros?"
},
{
"from": "gpt",
"value": "SELECT place FROM table_name_89 WHERE player = \"seve ballesteros\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_74 (country VARCHAR, player VARCHAR)"
},
{
"from": "human",
"value": "What Country has a Player of nick faldo?"
},
{
"from": "gpt",
"value": "SELECT country FROM table_name_74 WHERE player = \"nick faldo\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_74 (to_par VARCHAR, place VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "What To par has a Place of t10, and a Score of 67-73=140?"
},
{
"from": "gpt",
"value": "SELECT to_par FROM table_name_74 WHERE place = \"t10\" AND... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_7 (score VARCHAR, player VARCHAR, place VARCHAR, country VARCHAR)"
},
{
"from": "human",
"value": "What Score has a Place of t6, a Country of united states, and a Player of fred couples?"
},
{
"from": "gpt",
"value": "SELECT score... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_15 (to_par VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "What To par has a Score of 68-66=134?"
},
{
"from": "gpt",
"value": "SELECT to_par FROM table_name_15 WHERE score = 68 - 66 = 134"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_90 (provider VARCHAR, transmission VARCHAR, free_or_pay VARCHAR, years VARCHAR)"
},
{
"from": "human",
"value": "Name the Provider that has a pay in 2006–, and a Transmission of iptv and digital terrestrial?"
},
{
"from": "gpt",
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_16 (years VARCHAR, free_or_pay VARCHAR, transmission VARCHAR, on_demand VARCHAR)"
},
{
"from": "human",
"value": "Name the Years which have Transmission of digital satellite, an On demand of no, and a Free or pay of free + ppv?"
},
{
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_26 (free_or_pay VARCHAR, years VARCHAR, provider VARCHAR)"
},
{
"from": "human",
"value": "What kind of Free or pay has Years of 2006– and a Provider of bt tv (formerly bt vision)?"
},
{
"from": "gpt",
"value": "SELECT free_or_pay... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_58 (years VARCHAR, free_or_pay VARCHAR)"
},
{
"from": "human",
"value": "Name the Years that have a free + pay?"
},
{
"from": "gpt",
"value": "SELECT years FROM table_name_58 WHERE free_or_pay = \"free + pay\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_24 (on_demand VARCHAR, free_or_pay VARCHAR, provider VARCHAR)"
},
{
"from": "human",
"value": "Which On demandhas a Free or pay of free and a Provider of freesat?"
},
{
"from": "gpt",
"value": "SELECT on_demand FROM table_name_24 ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_25 (on_demand VARCHAR, free_or_pay VARCHAR, provider VARCHAR)"
},
{
"from": "human",
"value": "Which On demand has a pay and a Provider of virgin media (formerly ntl:telewest)?"
},
{
"from": "gpt",
"value": "SELECT on_demand FROM ... | know_sql | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.