conversations listlengths 3 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "CREATE TABLE table_name_90 (points VARCHAR, difference VARCHAR, position VARCHAR)"
},
{
"from": "human",
"value": "How many points occurred with a difference of 2 for position less than 4?"
},
{
"from": "gpt",
"value": "SELECT COUNT(points) FROM table_na... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_19 (points INTEGER, position VARCHAR, lost VARCHAR)"
},
{
"from": "human",
"value": "What is the highest number of points for a position less than 3 and less than 1 loss?"
},
{
"from": "gpt",
"value": "SELECT MAX(points) FROM tabl... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_28 (agg VARCHAR, team__number2 VARCHAR)"
},
{
"from": "human",
"value": "When Estudiantes was team #2, what was their agg. value?"
},
{
"from": "gpt",
"value": "SELECT agg FROM table_name_28 WHERE team__number2 = \"estudiantes\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_9 (team__number1 VARCHAR)"
},
{
"from": "human",
"value": "Who played against TSV bayer 04 leverkusen when they were team #1?"
},
{
"from": "gpt",
"value": "SELECT 2 AS nd_leg FROM table_name_9 WHERE team__number1 = \"tsv bayer 04... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_89 (team__number2 VARCHAR, team__number1 VARCHAR)"
},
{
"from": "human",
"value": "Who played against Hapoel tel aviv when they were team #1?"
},
{
"from": "gpt",
"value": "SELECT team__number2 FROM table_name_89 WHERE team__numbe... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_95 (location VARCHAR)"
},
{
"from": "human",
"value": "What is the 2013 BAFA adult flag division in Aylesbury?"
},
{
"from": "gpt",
"value": "SELECT 2013 AS _bafa_adult_flag_division FROM table_name_95 WHERE location = \"aylesbury... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_63 (format VARCHAR, label VARCHAR, catalog VARCHAR)"
},
{
"from": "human",
"value": "Records from Kontor Records from the catalog of Kontor446 was released in what format?"
},
{
"from": "gpt",
"value": "SELECT format FROM table_na... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_66 (date VARCHAR, label VARCHAR)"
},
{
"from": "human",
"value": "What date was the release that was Wrongun as the label?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_66 WHERE label = \"wrongun\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_26 (date VARCHAR, catalog VARCHAR)"
},
{
"from": "human",
"value": "Catalog Nebdj068 was released when?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_26 WHERE catalog = \"nebdj068\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_62 (format VARCHAR, date VARCHAR, catalog VARCHAR)"
},
{
"from": "human",
"value": "In what format was the release from the Nebt068 catalog on April 11, 2005 in?"
},
{
"from": "gpt",
"value": "SELECT format FROM table_name_62 WHER... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_16 (region VARCHAR, date VARCHAR, label VARCHAR)"
},
{
"from": "human",
"value": "What region has the date of 2005 and Playground Music Scandinavia as a label?"
},
{
"from": "gpt",
"value": "SELECT region FROM table_name_16 WHERE ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_16 (result VARCHAR, venue VARCHAR)"
},
{
"from": "human",
"value": "What is the Result with a Venue that is filbert street?"
},
{
"from": "gpt",
"value": "SELECT result FROM table_name_16 WHERE venue = \"filbert street\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_8 (date VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "When did the Texans play BYE?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_8 WHERE opponent = \"bye\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_11 (opponent VARCHAR, attendance VARCHAR)"
},
{
"from": "human",
"value": "Who did the Texans play when there were 70,724 people in attendance?"
},
{
"from": "gpt",
"value": "SELECT opponent FROM table_name_11 WHERE attendance = \... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_75 (novelty VARCHAR, status VARCHAR)"
},
{
"from": "human",
"value": "Who has the status of jr synonym of protosialis casca?"
},
{
"from": "gpt",
"value": "SELECT novelty FROM table_name_75 WHERE status = \"jr synonym of protosial... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_62 (authors VARCHAR, name VARCHAR)"
},
{
"from": "human",
"value": "Which writer is named mongolbittacus?"
},
{
"from": "gpt",
"value": "SELECT authors FROM table_name_62 WHERE name = \"mongolbittacus\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_59 (score VARCHAR, attendance VARCHAR)"
},
{
"from": "human",
"value": "What is the score of the game that had 359 people in attendance?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_59 WHERE attendance = \"359\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_95 (home_team VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "What is the home team of the game that ended with a score of 0-1?"
},
{
"from": "gpt",
"value": "SELECT home_team FROM table_name_95 WHERE score = \"0-1\""
}... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_51 (attendance VARCHAR, match_no VARCHAR)"
},
{
"from": "human",
"value": "How many people attended Match No. 31?"
},
{
"from": "gpt",
"value": "SELECT attendance FROM table_name_51 WHERE match_no = \"31\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_42 (home_team VARCHAR, match_no VARCHAR)"
},
{
"from": "human",
"value": "Who is the Home Team for Match No. 23?"
},
{
"from": "gpt",
"value": "SELECT home_team FROM table_name_42 WHERE match_no = \"23\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_37 (score VARCHAR, attendance VARCHAR)"
},
{
"from": "human",
"value": "What is the score of the game with 1,125 people in attendance?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_37 WHERE attendance = \"1,125\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_70 (country VARCHAR, launched VARCHAR)"
},
{
"from": "human",
"value": "What is the Country with a Launched that is april 3, 1990?"
},
{
"from": "gpt",
"value": "SELECT country FROM table_name_70 WHERE launched = \"april 3, 1990\"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_45 (launched VARCHAR, country VARCHAR)"
},
{
"from": "human",
"value": "What is the Launched from a Country that is spain?"
},
{
"from": "gpt",
"value": "SELECT launched FROM table_name_45 WHERE country = \"spain\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_66 (order INTEGER, minister VARCHAR)"
},
{
"from": "human",
"value": "What is the lowest order with a Minister that is joe hockey?"
},
{
"from": "gpt",
"value": "SELECT MIN(order) FROM table_name_66 WHERE minister = \"joe hockey\"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_43 (years_in_orlando VARCHAR, nationality VARCHAR, player VARCHAR)"
},
{
"from": "human",
"value": "Which Years in Orlando has a Nationality of united states, and a Player of doug overton?"
},
{
"from": "gpt",
"value": "SELECT yea... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_10 (years_in_orlando VARCHAR, player VARCHAR, nationality VARCHAR, position VARCHAR)"
},
{
"from": "human",
"value": "Which Years in Orlando has a Nationality of united states, a Position of center, and a Player of jawann oldham?"
},
{
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_54 (years_in_orlando VARCHAR, player VARCHAR)"
},
{
"from": "human",
"value": "Which Years in Orlando has a Player of bo outlaw?"
},
{
"from": "gpt",
"value": "SELECT years_in_orlando FROM table_name_54 WHERE player = \"bo outlaw\... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_16 (years_in_orlando VARCHAR, school_club_team VARCHAR)"
},
{
"from": "human",
"value": "Which Years in Orlando has a School/Club Team of seattle?"
},
{
"from": "gpt",
"value": "SELECT years_in_orlando FROM table_name_16 WHERE sch... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_63 (nationality VARCHAR, position VARCHAR, years_in_orlando VARCHAR)"
},
{
"from": "human",
"value": "Which Nationality has a Position of center, and a Years in Orlando of 2010–2012?"
},
{
"from": "gpt",
"value": "SELECT nationali... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_40 (nationality VARCHAR, school_club_team VARCHAR)"
},
{
"from": "human",
"value": "Which Nationality has a School/Club Team of seattle?"
},
{
"from": "gpt",
"value": "SELECT nationality FROM table_name_40 WHERE school_club_team =... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_25 (date VARCHAR, game_site VARCHAR)"
},
{
"from": "human",
"value": "When did they play at Candlestick Park?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_25 WHERE game_site = \"candlestick park\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_6 (top_10 INTEGER, events VARCHAR, top_5 VARCHAR)"
},
{
"from": "human",
"value": "What is the average number of top-10s for events under 57 and 0 top-5s?"
},
{
"from": "gpt",
"value": "SELECT AVG(top_10) FROM table_name_6 WHERE e... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_56 (top_10 INTEGER, cuts_made VARCHAR, wins VARCHAR)"
},
{
"from": "human",
"value": "What is the average number of top-10s for events with more than 12 cuts made and 0 wins?"
},
{
"from": "gpt",
"value": "SELECT AVG(top_10) FROM ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_93 (top_25 INTEGER, top_10 INTEGER)"
},
{
"from": "human",
"value": "What is the average number of top-25s for events with less than 2 top-10s?"
},
{
"from": "gpt",
"value": "SELECT AVG(top_25) FROM table_name_93 WHERE top_10 < 2"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_20 (works_number VARCHAR, builder VARCHAR, number VARCHAR)"
},
{
"from": "human",
"value": "Which Works number has a Builder of canadian engine & machinery company, and a Number smaller than 3?"
},
{
"from": "gpt",
"value": "SELEC... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_76 (works_number VARCHAR, date VARCHAR, number VARCHAR, builder VARCHAR, type VARCHAR)"
},
{
"from": "human",
"value": "Which Works number has a Builder of avonside engine company, and a Type of 4-6-0, and a Number smaller than 12, and a Date... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_55 (type VARCHAR, builder VARCHAR, number VARCHAR)"
},
{
"from": "human",
"value": "Which Type has a Builder of avonside engine company, and a Number of 9?"
},
{
"from": "gpt",
"value": "SELECT type FROM table_name_55 WHERE builde... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_22 (date VARCHAR, type VARCHAR, number VARCHAR)"
},
{
"from": "human",
"value": "Which Date has a Type of 4-6-0, and a Number larger than 11?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_22 WHERE type = \"4-6-0\" AND... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_39 (builder VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "Which Builder has a Date of early 1871?"
},
{
"from": "gpt",
"value": "SELECT builder FROM table_name_39 WHERE date = \"early 1871\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_69 (home VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "What ist he Home with a Score that is 42-64?"
},
{
"from": "gpt",
"value": "SELECT home FROM table_name_69 WHERE score = \"42-64\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_34 (home VARCHAR, time VARCHAR)"
},
{
"from": "human",
"value": "What is the Home with a Time that is 12:00?"
},
{
"from": "gpt",
"value": "SELECT home FROM table_name_34 WHERE time = \"12:00\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_61 (ground VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "What is the Ground with a Score that is 49-80?"
},
{
"from": "gpt",
"value": "SELECT ground FROM table_name_61 WHERE score = \"49-80\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_7 (march INTEGER, record VARCHAR)"
},
{
"from": "human",
"value": "What's the smallest March when the record is 22-12-6?"
},
{
"from": "gpt",
"value": "SELECT MIN(march) FROM table_name_7 WHERE record = \"22-12-6\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_77 (record VARCHAR, march VARCHAR)"
},
{
"from": "human",
"value": "Which record's march was 26?"
},
{
"from": "gpt",
"value": "SELECT record FROM table_name_77 WHERE march = 26"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_30 (lost VARCHAR, losing_bonus VARCHAR)"
},
{
"from": "human",
"value": "What is the Lost with a Losing Bonus that is 4?"
},
{
"from": "gpt",
"value": "SELECT lost FROM table_name_30 WHERE losing_bonus = \"4\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_13 (points VARCHAR, tries_for VARCHAR)"
},
{
"from": "human",
"value": "What is the Points with a Tries For that is 21?"
},
{
"from": "gpt",
"value": "SELECT points FROM table_name_13 WHERE tries_for = \"21\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_77 (lost VARCHAR, try_bonus VARCHAR)"
},
{
"from": "human",
"value": "What is the Lost with a Try Bonus that is try bonus?"
},
{
"from": "gpt",
"value": "SELECT lost FROM table_name_77 WHERE try_bonus = \"try bonus\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_53 (total INTEGER, rank VARCHAR, gold VARCHAR)"
},
{
"from": "human",
"value": "What is the highest Total for the rank 12, and gold less than 0?"
},
{
"from": "gpt",
"value": "SELECT MAX(total) FROM table_name_53 WHERE rank = \"12... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_70 (total VARCHAR, silver VARCHAR, bronze VARCHAR)"
},
{
"from": "human",
"value": "What is the total number of Total when the Silver is less than 2, and a Bronze is less than 0?"
},
{
"from": "gpt",
"value": "SELECT COUNT(total) ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_42 (nickname VARCHAR, colors VARCHAR)"
},
{
"from": "human",
"value": "What is the nickname of the team that has the colors blue and gold?"
},
{
"from": "gpt",
"value": "SELECT nickname FROM table_name_42 WHERE colors = \"blue and... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_27 (nickname VARCHAR, colors VARCHAR)"
},
{
"from": "human",
"value": "What is the nickname of the team that has the colors black and gold?"
},
{
"from": "gpt",
"value": "SELECT nickname FROM table_name_27 WHERE colors = \"black a... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_34 (nickname VARCHAR, division VARCHAR)"
},
{
"from": "human",
"value": "What is the nickname of the team in division 2?"
},
{
"from": "gpt",
"value": "SELECT nickname FROM table_name_34 WHERE division = \"division 2\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_98 (class VARCHAR, league VARCHAR, school VARCHAR)"
},
{
"from": "human",
"value": "What is the class of the Middletown High School team that is in the DSHA league?"
},
{
"from": "gpt",
"value": "SELECT class FROM table_name_98 WH... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_29 (school VARCHAR, colors VARCHAR)"
},
{
"from": "human",
"value": "What school is the team from that has the colors blue and gold?"
},
{
"from": "gpt",
"value": "SELECT school FROM table_name_29 WHERE colors = \"blue and gold\""... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_74 (colors VARCHAR, division VARCHAR, nickname VARCHAR)"
},
{
"from": "human",
"value": "What are the colors for the division 2 team with the nickname, the seahawks?"
},
{
"from": "gpt",
"value": "SELECT colors FROM table_name_74 ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_47 (centerfold_model VARCHAR, pictorials VARCHAR)"
},
{
"from": "human",
"value": "Who's the Centerfold model with a Pictorials of adrianne curry, girls of tuscany?"
},
{
"from": "gpt",
"value": "SELECT centerfold_model FROM table... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_30 (interview_subject VARCHAR, pictorials VARCHAR)"
},
{
"from": "human",
"value": "Which Interview subject has a Pictorials of vida guerra?"
},
{
"from": "gpt",
"value": "SELECT interview_subject FROM table_name_30 WHERE pictoria... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_67 (date VARCHAR, pictorials VARCHAR)"
},
{
"from": "human",
"value": "Which Date has a Pictorials of mercedes mcnab, girls of hawaiian tropic?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_67 WHERE pictorials = \"mer... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_60 (interview_subject VARCHAR, centerfold_model VARCHAR)"
},
{
"from": "human",
"value": "Which Interview subject has a Centerfold model of athena lundberg?"
},
{
"from": "gpt",
"value": "SELECT interview_subject FROM table_name_6... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_23 (votes VARCHAR, party VARCHAR)"
},
{
"from": "human",
"value": "What is the total number of votes from the Labour Party?"
},
{
"from": "gpt",
"value": "SELECT COUNT(votes) FROM table_name_23 WHERE party = \"labour\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_81 (party VARCHAR, votes INTEGER)"
},
{
"from": "human",
"value": "Which party has less than 11,484 votes?"
},
{
"from": "gpt",
"value": "SELECT party FROM table_name_81 WHERE votes < 11 OFFSET 484"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_24 (number INTEGER, name VARCHAR)"
},
{
"from": "human",
"value": "How many numbers had Brandon Dean as a name?"
},
{
"from": "gpt",
"value": "SELECT SUM(number) FROM table_name_24 WHERE name = \"brandon dean\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_28 (singular VARCHAR, meaning VARCHAR)"
},
{
"from": "human",
"value": "What is the singular for the Meaning of night?"
},
{
"from": "gpt",
"value": "SELECT singular FROM table_name_28 WHERE meaning = \"night\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_85 (plural VARCHAR, meaning VARCHAR)"
},
{
"from": "human",
"value": "What is the plural for the Meaning of night?"
},
{
"from": "gpt",
"value": "SELECT plural FROM table_name_85 WHERE meaning = \"night\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_47 (plural VARCHAR, singular VARCHAR)"
},
{
"from": "human",
"value": "What is the plural if the singular is nyaqot?"
},
{
"from": "gpt",
"value": "SELECT plural FROM table_name_47 WHERE singular = \"nyaqot\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_92 (plural VARCHAR, plural_gender VARCHAR, meaning VARCHAR)"
},
{
"from": "human",
"value": "What is the plural if the meaning is python and the plural gender is n?"
},
{
"from": "gpt",
"value": "SELECT plural FROM table_name_92 W... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_60 (plural VARCHAR, singular VARCHAR)"
},
{
"from": "human",
"value": "What is the plural if the singular is awu?"
},
{
"from": "gpt",
"value": "SELECT plural FROM table_name_60 WHERE singular = \"awu\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_19 (singular VARCHAR, plural VARCHAR)"
},
{
"from": "human",
"value": "What is the singular if the plural is xweer(a)du?"
},
{
"from": "gpt",
"value": "SELECT singular FROM table_name_19 WHERE plural = \"xweer(a)du\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_94 (against VARCHAR, team VARCHAR, position VARCHAR)"
},
{
"from": "human",
"value": "What is the Total againsts for the Sant'Anna team with a position number greater than 10?"
},
{
"from": "gpt",
"value": "SELECT COUNT(against) F... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_68 (played INTEGER, points VARCHAR, lost VARCHAR, drawn VARCHAR)"
},
{
"from": "human",
"value": "What is the total number of games played with 3 losses, 1 or more drawns and 10 or fewer points?"
},
{
"from": "gpt",
"value": "SELE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_16 (lost INTEGER, played INTEGER)"
},
{
"from": "human",
"value": "What is the average lost of games played of more than 9?"
},
{
"from": "gpt",
"value": "SELECT AVG(lost) FROM table_name_16 WHERE played > 9"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_71 (bronze INTEGER, nation VARCHAR, total VARCHAR)"
},
{
"from": "human",
"value": "What is the lowest number of bronze medals for Great Britain with more than 2 medals total?"
},
{
"from": "gpt",
"value": "SELECT MIN(bronze) FROM... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_67 (wins INTEGER, position VARCHAR, loses VARCHAR)"
},
{
"from": "human",
"value": "What is the lowest wins the club with a position of 4 and less than 4 losses has?"
},
{
"from": "gpt",
"value": "SELECT MIN(wins) FROM table_name_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_39 (points INTEGER, club VARCHAR, goals_conceded VARCHAR)"
},
{
"from": "human",
"value": "What is the sum of the points of club nevėžis-2 kėdainiai, which has more than 35 goals conceded?"
},
{
"from": "gpt",
"value": "SELECT SUM... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_6 (games_played VARCHAR, wins VARCHAR, position VARCHAR)"
},
{
"from": "human",
"value": "What is the total number of games played of the team with 4 wins and a position less than 9?"
},
{
"from": "gpt",
"value": "SELECT COUNT(gam... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_8 (wins INTEGER, position INTEGER)"
},
{
"from": "human",
"value": "What is the highest number of wins of the team with a position less than 1?"
},
{
"from": "gpt",
"value": "SELECT MAX(wins) FROM table_name_8 WHERE position < 1"
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_56 (losses INTEGER, draws VARCHAR, against VARCHAR, wins VARCHAR)"
},
{
"from": "human",
"value": "What is the total losses against 1412, and 10 wins, but draws less than 0?"
},
{
"from": "gpt",
"value": "SELECT SUM(losses) FROM t... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_98 (draws INTEGER, against INTEGER)"
},
{
"from": "human",
"value": "What is the highest draw against 2161?"
},
{
"from": "gpt",
"value": "SELECT MAX(draws) FROM table_name_98 WHERE against > 2161"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_4 (losses VARCHAR, against VARCHAR, byes VARCHAR)"
},
{
"from": "human",
"value": "What is the total number of losses against 1412, and Byes less than 2?"
},
{
"from": "gpt",
"value": "SELECT COUNT(losses) FROM table_name_4 WHERE ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_15 (wins INTEGER, byes INTEGER)"
},
{
"from": "human",
"value": "What is the lowest wins with less than 2 Byes?"
},
{
"from": "gpt",
"value": "SELECT MIN(wins) FROM table_name_15 WHERE byes < 2"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_4 (against INTEGER, wins VARCHAR, byes VARCHAR)"
},
{
"from": "human",
"value": "What is the highest score with 0 wins and more than 2 Byes?"
},
{
"from": "gpt",
"value": "SELECT MAX(against) FROM table_name_4 WHERE wins = 0 AND b... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_80 (wins INTEGER, against INTEGER)"
},
{
"from": "human",
"value": "What is the sum of wins against the smaller score 1148?"
},
{
"from": "gpt",
"value": "SELECT SUM(wins) FROM table_name_80 WHERE against < 1148"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_36 (name VARCHAR, matches VARCHAR, rank VARCHAR, goals VARCHAR)"
},
{
"from": "human",
"value": "Who had a rank larger than 7, less than 305 goals, and 418 matches?"
},
{
"from": "gpt",
"value": "SELECT name FROM table_name_36 WHE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_36 (goals VARCHAR, rank VARCHAR)"
},
{
"from": "human",
"value": "How many goals ranked 6?"
},
{
"from": "gpt",
"value": "SELECT COUNT(goals) FROM table_name_36 WHERE rank = 6"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_31 (matches VARCHAR, goals VARCHAR)"
},
{
"from": "human",
"value": "How many matches had 360 goals?"
},
{
"from": "gpt",
"value": "SELECT matches FROM table_name_31 WHERE goals = 360"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_64 (nominee VARCHAR, category VARCHAR)"
},
{
"from": "human",
"value": "What is the Nominee from the Category that is best costume design?"
},
{
"from": "gpt",
"value": "SELECT nominee FROM table_name_64 WHERE category = \"best co... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_70 (total INTEGER, country VARCHAR, bronze VARCHAR, silver VARCHAR)"
},
{
"from": "human",
"value": "Which Total has a Bronze larger than 12, and a Silver larger than 772, and a Country of thailand?"
},
{
"from": "gpt",
"value": "... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_68 (gold INTEGER, total VARCHAR, bronze VARCHAR)"
},
{
"from": "human",
"value": "Which Gold has a Total of 2998, and a Bronze smaller than 1191?"
},
{
"from": "gpt",
"value": "SELECT AVG(gold) FROM table_name_68 WHERE total = 299... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_75 (bronze INTEGER, country VARCHAR, total VARCHAR)"
},
{
"from": "human",
"value": "Which Bronze has a Country of malaysia, and a Total smaller than 2644?"
},
{
"from": "gpt",
"value": "SELECT SUM(bronze) FROM table_name_75 WHERE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_65 (silver VARCHAR, bronze VARCHAR, country VARCHAR)"
},
{
"from": "human",
"value": "Which Silver has a Bronze smaller than 618, and a Country of laos?"
},
{
"from": "gpt",
"value": "SELECT silver FROM table_name_65 WHERE bronze ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_1 (score VARCHAR, team VARCHAR)"
},
{
"from": "human",
"value": "What is the Score with a Team that is @ portland?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_1 WHERE team = \"@ portland\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_35 (high_points VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "What is the High points with a Date that is january 20?"
},
{
"from": "gpt",
"value": "SELECT high_points FROM table_name_35 WHERE date = \"january 20\""
}
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_64 (home VARCHAR, visitor VARCHAR)"
},
{
"from": "human",
"value": "Who was the home team that the Clippers played?"
},
{
"from": "gpt",
"value": "SELECT home FROM table_name_64 WHERE visitor = \"clippers\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_69 (record VARCHAR, leading_scorer VARCHAR)"
},
{
"from": "human",
"value": "What's the record of the game where Lebron James (16) was the leading scorer?"
},
{
"from": "gpt",
"value": "SELECT record FROM table_name_69 WHERE leadi... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_61 (attendance INTEGER, venue VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "When the venue was A and the date was 2 january 2008, what was the average attendance?"
},
{
"from": "gpt",
"value": "SELECT AVG(attendance) FRO... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_60 (venue VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "On 10 November 2007, what was the venue?"
},
{
"from": "gpt",
"value": "SELECT venue FROM table_name_60 WHERE date = \"10 november 2007\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_17 (date VARCHAR, opponent VARCHAR, result VARCHAR, attendance VARCHAR)"
},
{
"from": "human",
"value": "On what date was the opponent Ayr United, the result 1–0, and the attendance more than 668?"
},
{
"from": "gpt",
"value": "SE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_47 (result VARCHAR, opponent VARCHAR, attendance VARCHAR)"
},
{
"from": "human",
"value": "When the opponent was Brechin City and the attendance was 656, what was the Result?"
},
{
"from": "gpt",
"value": "SELECT result FROM table... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_45 (attendance INTEGER, venue VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "On 1 september 2007, at the Venue A, what was the average attendance?"
},
{
"from": "gpt",
"value": "SELECT AVG(attendance) FROM table_name_45 W... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_77 (score VARCHAR, country VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "Which Score has a Country of england, and a Year larger than 1971?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_77 WHERE country = \... | know_sql | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.