conversations listlengths 3 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "CREATE TABLE table_name_98 (Id VARCHAR)"
},
{
"from": "human",
"value": "Which 2006 has a 2007 of A?"
},
{
"from": "gpt",
"value": "SELECT 2006 FROM table_name_98 WHERE 2007 = \"a\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_80 (tournament VARCHAR)"
},
{
"from": "human",
"value": "Which 2008-12 has a 2007 of A, and a Tournament of us open?"
},
{
"from": "gpt",
"value": "SELECT 2008 AS _12 FROM table_name_80 WHERE 2007 = \"a\" AND tournament = \"us ope... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_57 (record VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "What was the record on April 1?"
},
{
"from": "gpt",
"value": "SELECT record FROM table_name_57 WHERE date = \"april 1\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_62 (score VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "What's the score on April 9?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_62 WHERE date = \"april 9\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_71 (home VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "Where was home on April 3?"
},
{
"from": "gpt",
"value": "SELECT home FROM table_name_71 WHERE date = \"april 3\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_12 (score VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "What's the score on April 9?"
},
{
"from": "gpt",
"value": "SELECT score FROM table_name_12 WHERE date = \"april 9\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_72 (points INTEGER, played INTEGER)"
},
{
"from": "human",
"value": "What is the average number of points of the team with more than 18 played?"
},
{
"from": "gpt",
"value": "SELECT AVG(points) FROM table_name_72 WHERE played > 18... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_82 (scored INTEGER, points VARCHAR, played VARCHAR)"
},
{
"from": "human",
"value": "What is the lowest score of the team with 19 points and less than 18 played?"
},
{
"from": "gpt",
"value": "SELECT MIN(scored) FROM table_name_82... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_31 (draws INTEGER, points VARCHAR, wins VARCHAR)"
},
{
"from": "human",
"value": "What is the average number of draws of the team with less than 17 points and less than 4 wins?"
},
{
"from": "gpt",
"value": "SELECT AVG(draws) FROM... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_46 (title VARCHAR, artist VARCHAR, cat__number VARCHAR)"
},
{
"from": "human",
"value": "What is the title of the record with an artist of Tangorodrim, category number FSR006?"
},
{
"from": "gpt",
"value": "SELECT title FROM table... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_31 (format VARCHAR, artist VARCHAR)"
},
{
"from": "human",
"value": "What was the format of the release by Triumfall?"
},
{
"from": "gpt",
"value": "SELECT format FROM table_name_31 WHERE artist = \"triumfall\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_85 (cat__number VARCHAR, release_date VARCHAR)"
},
{
"from": "human",
"value": "What is the category number that was released in November 2007?"
},
{
"from": "gpt",
"value": "SELECT cat__number FROM table_name_85 WHERE release_dat... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_86 (round INTEGER, pick__number VARCHAR, position VARCHAR)"
},
{
"from": "human",
"value": "Which is the lowest round to have a pick of 12 and position of linebacker?"
},
{
"from": "gpt",
"value": "SELECT MIN(round) FROM table_nam... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_76 (name VARCHAR, pick__number VARCHAR, round VARCHAR)"
},
{
"from": "human",
"value": "Which player was picked in round 15 with a pick smaller than 13?"
},
{
"from": "gpt",
"value": "SELECT name FROM table_name_76 WHERE pick__num... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_34 (pick__number VARCHAR, college VARCHAR)"
},
{
"from": "human",
"value": "How many picks were from Lamar College?"
},
{
"from": "gpt",
"value": "SELECT COUNT(pick__number) FROM table_name_34 WHERE college = \"lamar\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_97 (overall VARCHAR, college VARCHAR, round VARCHAR)"
},
{
"from": "human",
"value": "How many overall values have a college of Notre Dame and rounds over 2?"
},
{
"from": "gpt",
"value": "SELECT COUNT(overall) FROM table_name_97 ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_90 (player VARCHAR, venue VARCHAR)"
},
{
"from": "human",
"value": "What player was at Albion?"
},
{
"from": "gpt",
"value": "SELECT player FROM table_name_90 WHERE venue = \"albion\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_29 (venue VARCHAR, runs VARCHAR)"
},
{
"from": "human",
"value": "Where was the venue that had 274 runs?"
},
{
"from": "gpt",
"value": "SELECT venue FROM table_name_29 WHERE runs = \"274\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_17 (player VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "which athlete played against Queensland?"
},
{
"from": "gpt",
"value": "SELECT player FROM table_name_17 WHERE opponent = \"queensland\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_71 (venue VARCHAR, runs VARCHAR)"
},
{
"from": "human",
"value": "Where is the venue with more than 245 runs?"
},
{
"from": "gpt",
"value": "SELECT venue FROM table_name_71 WHERE runs = \"245\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_22 (venue VARCHAR, player VARCHAR)"
},
{
"from": "human",
"value": "Where did Jack Badcock play?"
},
{
"from": "gpt",
"value": "SELECT venue FROM table_name_22 WHERE player = \"jack badcock\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_73 (surface VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "Which Surface has a Date of 16 november 2007?"
},
{
"from": "gpt",
"value": "SELECT surface FROM table_name_73 WHERE date = \"16 november 2007\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_23 (date VARCHAR, competition VARCHAR)"
},
{
"from": "human",
"value": "Name the date for 2004 afc asian cup qualifier"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_23 WHERE competition = \"2004 afc asian cup qualifie... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_88 (venue VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "Name the venue for 23 january 2009"
},
{
"from": "gpt",
"value": "SELECT venue FROM table_name_88 WHERE date = \"23 january 2009\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_54 (competition VARCHAR, venue VARCHAR)"
},
{
"from": "human",
"value": "Name the competition for khartoum"
},
{
"from": "gpt",
"value": "SELECT competition FROM table_name_54 WHERE venue = \"khartoum\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_25 (drawn INTEGER, games INTEGER)"
},
{
"from": "human",
"value": "What is the fewest ties the team had with fewer than 7 games?"
},
{
"from": "gpt",
"value": "SELECT MIN(drawn) FROM table_name_25 WHERE games < 7"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_25 (population VARCHAR, median_household_income VARCHAR)"
},
{
"from": "human",
"value": "What is the population for a county that has a median income of $69,760?"
},
{
"from": "gpt",
"value": "SELECT population FROM table_name_25... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_37 (county VARCHAR, per_capita_income VARCHAR)"
},
{
"from": "human",
"value": "What county has $51,456 income per capita?"
},
{
"from": "gpt",
"value": "SELECT county FROM table_name_37 WHERE per_capita_income = \"$51,456\""
}
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_87 (opponent VARCHAR, attendance VARCHAR)"
},
{
"from": "human",
"value": "Who was the opponent when attendance was 60,355?"
},
{
"from": "gpt",
"value": "SELECT opponent FROM table_name_87 WHERE attendance = \"60,355\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_87 (net_profit_loss__sek_ INTEGER, basic_eps__sek_ VARCHAR, employees__average_year_ VARCHAR)"
},
{
"from": "human",
"value": "Which Net profit/loss (SEK) has a Basic eps (SEK) of -6.58, and Employees (Average/Year) larger than 31,035?"
},
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_64 (result VARCHAR, week VARCHAR)"
},
{
"from": "human",
"value": "What is the result when 13 is the week?"
},
{
"from": "gpt",
"value": "SELECT result FROM table_name_64 WHERE week = 13"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_11 (week INTEGER, game_site VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "What average week has shea stadium as the game site, and 1979-12-09 as the date?"
},
{
"from": "gpt",
"value": "SELECT AVG(week) FROM table_name_1... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_18 (rank INTEGER, country VARCHAR, wins VARCHAR)"
},
{
"from": "human",
"value": "Name the most rank for the United States with wins less than 1"
},
{
"from": "gpt",
"value": "SELECT MAX(rank) FROM table_name_18 WHERE country = \"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_58 (rank INTEGER, events VARCHAR, wins VARCHAR)"
},
{
"from": "human",
"value": "Name the most rank for wins more than 0 and events of 26"
},
{
"from": "gpt",
"value": "SELECT MAX(rank) FROM table_name_58 WHERE events = 26 AND win... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_34 (earnings___ INTEGER, rank VARCHAR, wins VARCHAR)"
},
{
"from": "human",
"value": "Name the average earnings for rank of 3 and wins less than 3"
},
{
"from": "gpt",
"value": "SELECT AVG(earnings___) AS $__ FROM table_name_34 WH... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_14 (area__km_2__ INTEGER, density__inhabitants_km_2__ VARCHAR, altitude__mslm_ VARCHAR)"
},
{
"from": "human",
"value": "What is the average area of the city that has a density less than than 206.2 and an altitude of less than 85?"
},
{
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_39 (density__inhabitants_km_2__ INTEGER, city VARCHAR, area__km_2__ VARCHAR, altitude__mslm_ VARCHAR)"
},
{
"from": "human",
"value": "What is the lowest density of alessandria where the area is bigger than 16.02 and altitude is less than 116... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_87 (density__inhabitants_km_2__ INTEGER, city VARCHAR)"
},
{
"from": "human",
"value": "What is the lowest density of serravalle scrivia?"
},
{
"from": "gpt",
"value": "SELECT MIN(density__inhabitants_km_2__) FROM table_name_87 WH... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_37 (population INTEGER, density__inhabitants_km_2__ VARCHAR, altitude__mslm_ VARCHAR, city VARCHAR)"
},
{
"from": "human",
"value": "What is the lowest population of alessandria where the altitude is less than 197 and density is less than 461... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_62 (myspace INTEGER, site VARCHAR, orkut VARCHAR)"
},
{
"from": "human",
"value": "What myspace has linkedin as the site, with an orkit greater than 3?"
},
{
"from": "gpt",
"value": "SELECT AVG(myspace) FROM table_name_62 WHERE si... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_79 (linkedin VARCHAR, site VARCHAR, myspace VARCHAR)"
},
{
"from": "human",
"value": "How many linkedin have Facebook as the site, with a myspace less than 64?"
},
{
"from": "gpt",
"value": "SELECT COUNT(linkedin) FROM table_name_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_40 (ning INTEGER, plaxo VARCHAR, bebo VARCHAR, orkut VARCHAR)"
},
{
"from": "human",
"value": "What is the highest Ning that has a bebo less than 4, an orkut less than 100, with a plaxo greater than 0?"
},
{
"from": "gpt",
"value"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_63 (plaxo INTEGER, friendster VARCHAR, myspace VARCHAR, bebo VARCHAR)"
},
{
"from": "human",
"value": "What is the average plaxo that has a myspace greater than 64, a bebo greater than 3, with 4 as the friendster?"
},
{
"from": "gpt",... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_18 (album VARCHAR, label VARCHAR, title VARCHAR)"
},
{
"from": "human",
"value": "What album has the title I Need A Life with the label of warp records / paper bag records?"
},
{
"from": "gpt",
"value": "SELECT album FROM table_na... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_39 (title VARCHAR, label VARCHAR)"
},
{
"from": "human",
"value": "What title has a Label of warp records / paper bag records?"
},
{
"from": "gpt",
"value": "SELECT title FROM table_name_39 WHERE label = \"warp records / paper bag... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_84 (points INTEGER, team VARCHAR, played VARCHAR)"
},
{
"from": "human",
"value": "What's the lowest Points for the Team of San Martín De Tucumán, and a Played that's smaller than 38?"
},
{
"from": "gpt",
"value": "SELECT MIN(poin... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_29 (nation VARCHAR, silver VARCHAR, total VARCHAR, bronze VARCHAR)"
},
{
"from": "human",
"value": "What nation has a total more than 3, with more than 5 for bronze, and less than 4 for the silver?"
},
{
"from": "gpt",
"value": "S... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_61 (bronze INTEGER, rank VARCHAR)"
},
{
"from": "human",
"value": "What is the largest number for bronze with a rank of 19?"
},
{
"from": "gpt",
"value": "SELECT MAX(bronze) FROM table_name_61 WHERE rank = \"19\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_4 (season VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "what season had a score of 1:0"
},
{
"from": "gpt",
"value": "SELECT season FROM table_name_4 WHERE score = \"1:0\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_70 (record VARCHAR, indoor_year VARCHAR)"
},
{
"from": "human",
"value": "indoor year is 1978, what is the record?"
},
{
"from": "gpt",
"value": "SELECT record FROM table_name_70 WHERE indoor_year = \"1978\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_57 (game__number INTEGER, record VARCHAR)"
},
{
"from": "human",
"value": "Record of 11-10-3 is what sum of game #?"
},
{
"from": "gpt",
"value": "SELECT SUM(game__number) FROM table_name_57 WHERE record = \"11-10-3\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_51 (home VARCHAR, points VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "Points of 31, and a Score of 1 - 5 is what home?"
},
{
"from": "gpt",
"value": "SELECT home FROM table_name_51 WHERE points = 31 AND score = \"1 - 5... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_30 (record VARCHAR, visitor VARCHAR)"
},
{
"from": "human",
"value": "Visitor of calgary has what record?"
},
{
"from": "gpt",
"value": "SELECT record FROM table_name_30 WHERE visitor = \"calgary\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_47 (points VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "Score of 2 - 2 had what points?"
},
{
"from": "gpt",
"value": "SELECT points FROM table_name_47 WHERE score = \"2 - 2\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_20 (attendance VARCHAR, opponents VARCHAR, h___a VARCHAR)"
},
{
"from": "human",
"value": "What was the Attendance when Lincoln City was the Opponents with H/A of A?"
},
{
"from": "gpt",
"value": "SELECT COUNT(attendance) FROM tab... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_94 (area_served VARCHAR, frequency VARCHAR, on_air_id VARCHAR)"
},
{
"from": "human",
"value": "what Area has the frequency of 100.3 and an On-air ID of yass fm?"
},
{
"from": "gpt",
"value": "SELECT area_served FROM table_name_94... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_8 (callsign VARCHAR, area_served VARCHAR, frequency VARCHAR)"
},
{
"from": "human",
"value": "What is the Callsign with an Area of tamworth and frequency of 0 88.9?"
},
{
"from": "gpt",
"value": "SELECT callsign FROM table_name_8 ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_62 (purpose VARCHAR, area_served VARCHAR)"
},
{
"from": "human",
"value": "What is the Purpose of the Area Braidwood?"
},
{
"from": "gpt",
"value": "SELECT purpose FROM table_name_62 WHERE area_served = \"braidwood\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_34 (band VARCHAR, frequency VARCHAR, area_served VARCHAR)"
},
{
"from": "human",
"value": "What Band has a Frequency of 0 99.7 in the Area of Newcastle?"
},
{
"from": "gpt",
"value": "SELECT band FROM table_name_34 WHERE frequency... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_5 (frequency VARCHAR, area_served VARCHAR, callsign VARCHAR)"
},
{
"from": "human",
"value": "What is the Frequency of Gosford when the Callsign of 2cfm?"
},
{
"from": "gpt",
"value": "SELECT frequency FROM table_name_5 WHERE area... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_24 (on_air_id VARCHAR, frequency VARCHAR, purpose VARCHAR)"
},
{
"from": "human",
"value": "What is the On-air ID with the frequency of 105.9, and purpose of commercial?"
},
{
"from": "gpt",
"value": "SELECT on_air_id FROM table_n... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_48 (time_retired VARCHAR, points VARCHAR, laps VARCHAR)"
},
{
"from": "human",
"value": "What Time/Retired has a Points that's smaller than 11 and has a Laps of 74?"
},
{
"from": "gpt",
"value": "SELECT time_retired FROM table_nam... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_73 (time_retired VARCHAR, laps VARCHAR, team VARCHAR)"
},
{
"from": "human",
"value": "What Time/Retired has a Laps of 86 and the Team of HVM Racing?"
},
{
"from": "gpt",
"value": "SELECT time_retired FROM table_name_73 WHERE laps... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_19 (catalog VARCHAR, region VARCHAR)"
},
{
"from": "human",
"value": "What is the Catalog number in France?"
},
{
"from": "gpt",
"value": "SELECT catalog FROM table_name_19 WHERE region = \"france\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_99 (format VARCHAR, catalog VARCHAR)"
},
{
"from": "human",
"value": "What is the Format o Catalog F4 87199?"
},
{
"from": "gpt",
"value": "SELECT format FROM table_name_99 WHERE catalog = \"f4 87199\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_74 (region VARCHAR, catalog VARCHAR)"
},
{
"from": "human",
"value": "What is the Region of Catalog 885 973-4?"
},
{
"from": "gpt",
"value": "SELECT region FROM table_name_74 WHERE catalog = \"885 973-4\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_42 (catalog VARCHAR, region VARCHAR)"
},
{
"from": "human",
"value": "What is the Catalog number in the Region of France?"
},
{
"from": "gpt",
"value": "SELECT catalog FROM table_name_42 WHERE region = \"france\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_37 (attendance VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "How many people in total attended the game on 1 november 1997?"
},
{
"from": "gpt",
"value": "SELECT COUNT(attendance) FROM table_name_37 WHERE date = \"1 nove... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_75 (loses INTEGER, wins VARCHAR, pos VARCHAR)"
},
{
"from": "human",
"value": "Wins of 3, and a Pos. larger than 3 is what average loses?"
},
{
"from": "gpt",
"value": "SELECT AVG(loses) FROM table_name_75 WHERE wins = 3 AND pos >... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_67 (pos INTEGER, matches INTEGER)"
},
{
"from": "human",
"value": "Matches larger than 5 is the sum of what position?"
},
{
"from": "gpt",
"value": "SELECT SUM(pos) FROM table_name_67 WHERE matches > 5"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_11 (years VARCHAR, name VARCHAR, pct VARCHAR, lost VARCHAR)"
},
{
"from": "human",
"value": "What years did Dwane Morrison had a pct less than 0.389 and losses less than 12?"
},
{
"from": "gpt",
"value": "SELECT years FROM table_n... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_56 (seasons VARCHAR, name VARCHAR)"
},
{
"from": "human",
"value": "How many seasons did Charles C. Farrell coach?"
},
{
"from": "gpt",
"value": "SELECT COUNT(seasons) FROM table_name_56 WHERE name = \"charles c. farrell\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_4 (pct INTEGER, lost VARCHAR, name VARCHAR)"
},
{
"from": "human",
"value": "What's the average pct for George Felton when he had losses greater than 7?"
},
{
"from": "gpt",
"value": "SELECT AVG(pct) FROM table_name_4 WHERE lost >... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_38 (margin_of_victory VARCHAR, runner_s__up VARCHAR)"
},
{
"from": "human",
"value": "Which Margin of victory has a Runner(s)-up of josé maria cañizares?"
},
{
"from": "gpt",
"value": "SELECT margin_of_victory FROM table_name_38 W... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_49 (tournament VARCHAR, runner_s__up VARCHAR)"
},
{
"from": "human",
"value": "Which Tournament has a Runner(s)-up of bob charles?"
},
{
"from": "gpt",
"value": "SELECT tournament FROM table_name_49 WHERE runner_s__up = \"bob char... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_4 (winning_score VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "What was the winning score on 7 jun 1976?"
},
{
"from": "gpt",
"value": "SELECT winning_score FROM table_name_4 WHERE date = \"7 jun 1976\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_19 (winning_score VARCHAR, margin_of_victory VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "Which Winning score has a Margin of victory of 1 stroke, and a Date of 21 jun 1981?"
},
{
"from": "gpt",
"value": "SELECT winning... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_92 (date VARCHAR, winning_score VARCHAR)"
},
{
"from": "human",
"value": "On which date was the Winning score –5 (70-65-69-75=279)?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_92 WHERE winning_score = –5(70 - 65 - 6... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_71 (runner_s__up VARCHAR, winning_score VARCHAR)"
},
{
"from": "human",
"value": "Which Runner(s)-up has a Winning score of –9 (71-68-72-68=279)?"
},
{
"from": "gpt",
"value": "SELECT runner_s__up FROM table_name_71 WHERE winning_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_97 (leading_scorer VARCHAR, attendance VARCHAR)"
},
{
"from": "human",
"value": "What is the leading scorer of the game with an attendance of 14,096?"
},
{
"from": "gpt",
"value": "SELECT leading_scorer FROM table_name_97 WHERE at... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_59 (leading_scorer VARCHAR, visitor VARCHAR)"
},
{
"from": "human",
"value": "What is the leading scorer of the game with the Celtics as the visiting team?"
},
{
"from": "gpt",
"value": "SELECT leading_scorer FROM table_name_59 WH... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_7 (date VARCHAR, attendance VARCHAR)"
},
{
"from": "human",
"value": "What is the date of the game with an attendance of 19,183?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_name_7 WHERE attendance = \"19,183\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_58 (time VARCHAR, track_number VARCHAR, song_title VARCHAR)"
},
{
"from": "human",
"value": "Name the time with track number less than 4 for you're my everything"
},
{
"from": "gpt",
"value": "SELECT time FROM table_name_58 WHERE ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_41 (orchestra VARCHAR, songwriter_s_ VARCHAR)"
},
{
"from": "human",
"value": "Name the orchestra for ted varnick"
},
{
"from": "gpt",
"value": "SELECT orchestra FROM table_name_41 WHERE songwriter_s_ = \"ted varnick\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_60 (songwriter_s_ VARCHAR, track_number VARCHAR)"
},
{
"from": "human",
"value": "Name the songwriter for track number 12"
},
{
"from": "gpt",
"value": "SELECT songwriter_s_ FROM table_name_60 WHERE track_number = 12"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_59 (round INTEGER, player VARCHAR, pick VARCHAR)"
},
{
"from": "human",
"value": "Player of dan federman, and a Pick larger than 114 involves which highest round?"
},
{
"from": "gpt",
"value": "SELECT MAX(round) FROM table_name_59... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_65 (round VARCHAR, college VARCHAR)"
},
{
"from": "human",
"value": "College of villanova has what round?"
},
{
"from": "gpt",
"value": "SELECT round FROM table_name_65 WHERE college = \"villanova\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_61 (pick VARCHAR, college VARCHAR)"
},
{
"from": "human",
"value": "College of boston college has what pick?"
},
{
"from": "gpt",
"value": "SELECT pick FROM table_name_61 WHERE college = \"boston college\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_47 (finalists INTEGER, years_won VARCHAR, _percentage_won VARCHAR)"
},
{
"from": "human",
"value": "How many finalists were there when the years won was 2008 and the won % was greater than 33?"
},
{
"from": "gpt",
"value": "SELECT... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_37 (game_site VARCHAR, record VARCHAR)"
},
{
"from": "human",
"value": "Where was the game site for the game that had a packers record of 2-2?"
},
{
"from": "gpt",
"value": "SELECT game_site FROM table_name_37 WHERE record = \"2-2... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_42 (final_score VARCHAR, game_site VARCHAR)"
},
{
"from": "human",
"value": "What is the final score of the game that was at raymond james stadium?"
},
{
"from": "gpt",
"value": "SELECT final_score FROM table_name_42 WHERE game_si... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_12 (match_report VARCHAR, opponent VARCHAR)"
},
{
"from": "human",
"value": "What is the match report for the game that was against Houston?"
},
{
"from": "gpt",
"value": "SELECT match_report FROM table_name_12 WHERE opponent = \"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_29 (game_site VARCHAR, record VARCHAR)"
},
{
"from": "human",
"value": "Where is the game site for the game that had a packers record of 2-3?"
},
{
"from": "gpt",
"value": "SELECT game_site FROM table_name_29 WHERE record = \"2-3\... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_10 (record VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "What was the Record of the game with a Score of 118–105?"
},
{
"from": "gpt",
"value": "SELECT record FROM table_name_10 WHERE score = \"118–105\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_85 (record VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "What is the Record of the game with a Score of 107–108?"
},
{
"from": "gpt",
"value": "SELECT record FROM table_name_85 WHERE score = \"107–108\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_16 (record VARCHAR, score VARCHAR)"
},
{
"from": "human",
"value": "What was the Record during the game with a Score of 113–103?"
},
{
"from": "gpt",
"value": "SELECT record FROM table_name_16 WHERE score = \"113–103\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_92 (points INTEGER, percentage_of_possible_points VARCHAR)"
},
{
"from": "human",
"value": "How many points have a percentage of possible points of 67.22%?"
},
{
"from": "gpt",
"value": "SELECT SUM(points) FROM table_name_92 WHERE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_77 (races VARCHAR, percentage_of_possible_points VARCHAR, points VARCHAR, driver VARCHAR)"
},
{
"from": "human",
"value": "Which races have points greater than 123, fernando alonso as the driver and a percentage of possible points of 74.44%?"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_31 (season INTEGER, points VARCHAR, driver VARCHAR, percentage_of_possible_points VARCHAR)"
},
{
"from": "human",
"value": "How many seasons have fernando alonso as the driver, and a percentage of possible points of 64.12% and points less tha... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_name_97 (remixed_by VARCHAR, year INTEGER)"
},
{
"from": "human",
"value": "Who remixed the version after 1999?"
},
{
"from": "gpt",
"value": "SELECT remixed_by FROM table_name_97 WHERE year > 1999"
}
] | know_sql | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.