messages listlengths 3 3 |
|---|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_26 (chassis VARCHAR, tyres VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "What Chassis has g Tyres before 1987?",
"role": "user"
},
{
"content": "SELECT chassis FROM table_name_26 WHERE tyres = \"g\" AND year < 1987",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_40 (city VARCHAR, iata VARCHAR)",
"role": "system"
},
{
"content": "Which city has the IATA SSG?",
"role": "user"
},
{
"content": "SELECT city FROM table_name_40 WHERE iata = \"ssg\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_26 (original_name VARCHAR, film_title_used_in_nomination VARCHAR)",
"role": "system"
},
{
"content": "What is the real name of the movie about love?",
"role": "user"
},
{
"content": "SELECT original_name FROM table_name_26 WHERE film_title_used_in_nomination = \"love\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_14 (pick INTEGER, position VARCHAR, round VARCHAR)",
"role": "system"
},
{
"content": "What is the average Pick with a Position of pg, and a Round less than 1?",
"role": "user"
},
{
"content": "SELECT AVG(pick) FROM table_name_14 WHERE position = \"pg\" AND round < 1",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_256286_40 (passed VARCHAR, description VARCHAR)",
"role": "system"
},
{
"content": "What vote passed for the measure with the description, authorizing state acceptance of certain gifts? ",
"role": "user"
},
{
"content": "SELECT passed FROM table_256286_40 WHERE description = \"Authorizing State Acceptance of Certain Gifts\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2780146_6 (no_x__g_kwh_ VARCHAR, hc__g_kwh_ VARCHAR)",
"role": "system"
},
{
"content": "What's the NO of the standard with HC of 1.23 g/kWh?",
"role": "user"
},
{
"content": "SELECT no_x__g_kwh_ FROM table_2780146_6 WHERE hc__g_kwh_ = \"1.23\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_72 (frequency__inbound_outbound_ VARCHAR, origin VARCHAR)",
"role": "system"
},
{
"content": "What is the frequency of the rail with an origin of Ranchi?",
"role": "user"
},
{
"content": "SELECT frequency__inbound_outbound_ FROM table_name_72 WHERE origin = \"ranchi\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_15 (silver INTEGER, nation VARCHAR)",
"role": "system"
},
{
"content": "How many silver medals does Cuba have?",
"role": "user"
},
{
"content": "SELECT SUM(silver) FROM table_name_15 WHERE nation = \"cuba\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_43 (school VARCHAR, position VARCHAR)",
"role": "system"
},
{
"content": "What is the School of the quarterback?",
"role": "user"
},
{
"content": "SELECT school FROM table_name_43 WHERE position = \"quarterback\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_41 (people_per_km² INTEGER, regions VARCHAR, area VARCHAR)",
"role": "system"
},
{
"content": "What is the sum of people per km2 for the sandoy region with an area of 112.1?",
"role": "user"
},
{
"content": "SELECT SUM(people_per_km²) FROM table_name_41 WHERE regions = \"sandoy\" AND area = 112.1",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11066073_1 (colour VARCHAR, registration_no VARCHAR)",
"role": "system"
},
{
"content": "What is the number of colour with the regisration number of mg-509?",
"role": "user"
},
{
"content": "SELECT COUNT(colour) FROM table_11066073_1 WHERE registration_no = \"MG-509\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_79 (rank INTEGER, year VARCHAR, accolade VARCHAR)",
"role": "system"
},
{
"content": "What was the lowest rank after 2009 with an accolade of 125 best albums of the past 25 years?",
"role": "user"
},
{
"content": "SELECT MIN(rank) FROM table_name_79 WHERE year > 2009 AND accolade = \"125 best albums of the past 25 years\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_92 (finish VARCHAR, year_s__won VARCHAR)",
"role": "system"
},
{
"content": "Where did the player who won in 1965 finish?",
"role": "user"
},
{
"content": "SELECT finish FROM table_name_92 WHERE year_s__won = \"1965\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20833768_4 (season VARCHAR, l__ot_so_ VARCHAR)",
"role": "system"
},
{
"content": "When l (ot/so) is 22 (3/4), what is the season?",
"role": "user"
},
{
"content": "SELECT season FROM table_20833768_4 WHERE l__ot_so_ = \"22 (3/4)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_13618584_1 (district VARCHAR, incumbent VARCHAR)",
"role": "system"
},
{
"content": "In what district was the incumbent Charles Hawkins? ",
"role": "user"
},
{
"content": "SELECT district FROM table_13618584_1 WHERE incumbent = \"Charles Hawkins\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_48 (year_joined VARCHAR, mascot VARCHAR, year_left VARCHAR)",
"role": "system"
},
{
"content": "What year did the Ingots, who left after 2007, join?",
"role": "user"
},
{
"content": "SELECT COUNT(year_joined) FROM table_name_48 WHERE mascot = \"ingots\" AND year_left > 2007",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE products (product_details VARCHAR, product_id VARCHAR); CREATE TABLE order_items (product_id VARCHAR)",
"role": "system"
},
{
"content": "Which product has been ordered most number of times?",
"role": "user"
},
{
"content": "SELECT t2.product_details FROM order_items AS t1 JOIN products AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_id ORDER BY COUNT(*) DESC LIMIT 1",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26040604_1 (dram_type VARCHAR, sm_count VARCHAR)",
"role": "system"
},
{
"content": "What was the DRAM type of an SM Count of 6?",
"role": "user"
},
{
"content": "SELECT dram_type FROM table_26040604_1 WHERE sm_count = 6",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_78 (race VARCHAR, jockey VARCHAR)",
"role": "system"
},
{
"content": "Which Race that Jockey of d. nikolic is in?",
"role": "user"
},
{
"content": "SELECT race FROM table_name_78 WHERE jockey = \"d. nikolic\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_25 (evening_gown INTEGER, swimsuit VARCHAR, interview VARCHAR)",
"role": "system"
},
{
"content": "Name the least evening gown for interview more than 7.97 and swimsui of 7.24",
"role": "user"
},
{
"content": "SELECT MIN(evening_gown) FROM table_name_25 WHERE swimsuit = 7.24 AND interview > 7.97",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_96 (composer_s_ VARCHAR, arranger_s_ VARCHAR, length VARCHAR)",
"role": "system"
},
{
"content": "Who is/are the Composer(s), when the Arranger(s) is Banana Boat, and when the Length is 4:25?",
"role": "user"
},
{
"content": "SELECT composer_s_ FROM table_name_96 WHERE arranger_s_ = \"banana boat\" AND length = \"4:25\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_30 (year VARCHAR, competition VARCHAR)",
"role": "system"
},
{
"content": "What was the year that had Anugerah Bintang Popular Berita Harian 23 as competition?",
"role": "user"
},
{
"content": "SELECT COUNT(year) FROM table_name_30 WHERE competition = \"anugerah bintang popular berita harian 23\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_40 (away_team VARCHAR, tie_no VARCHAR)",
"role": "system"
},
{
"content": "What is the name of the away team with a Tie no of 7?",
"role": "user"
},
{
"content": "SELECT away_team FROM table_name_40 WHERE tie_no = \"7\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27715173_8 (game VARCHAR, high_points VARCHAR)",
"role": "system"
},
{
"content": "what is the game where the high points is by manu ginóbili (26)?",
"role": "user"
},
{
"content": "SELECT game FROM table_27715173_8 WHERE high_points = \"Manu Ginóbili (26)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_13681_2 (equivalent_daily_inflation_rate VARCHAR, time_required_for_prices_to_double VARCHAR)",
"role": "system"
},
{
"content": " how many equivalent daily inflation rate with time required for prices to double being 3.7 days",
"role": "user"
},
{
"content": "SELECT COUNT(equivalent_daily_inflation_rate) FROM table_13681_2 WHERE time_required_for_prices_to_double = \"3.7 days\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_19 (result VARCHAR, round VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "What resulted after 4 rounds with Ed Mahone?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_19 WHERE round > 4 AND opponent = \"ed mahone\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_19948664_1 (world_ranking__1_ VARCHAR, author___editor___source VARCHAR)",
"role": "system"
},
{
"content": "What's the wold ranking of the index by Transparency International?",
"role": "user"
},
{
"content": "SELECT world_ranking__1_ FROM table_19948664_1 WHERE author___editor___source = \"Transparency International\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_21234111_10 (robin VARCHAR, result VARCHAR)",
"role": "system"
},
{
"content": "What was Robin's score when she was eliminated?",
"role": "user"
},
{
"content": "SELECT robin FROM table_21234111_10 WHERE result = \"Eliminated\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_53 (first_leg VARCHAR, round VARCHAR)",
"role": "system"
},
{
"content": "Who has the first leg that has a round in the semi-final?",
"role": "user"
},
{
"content": "SELECT first_leg FROM table_name_53 WHERE round = \"semi-final\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11545282_18 (player VARCHAR, years_for_jazz VARCHAR)",
"role": "system"
},
{
"content": "Which player played 2004-05",
"role": "user"
},
{
"content": "SELECT player FROM table_11545282_18 WHERE years_for_jazz = \"2004-05\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_47 (league VARCHAR, games VARCHAR)",
"role": "system"
},
{
"content": "What is the league name that has a Games listing of 10?",
"role": "user"
},
{
"content": "SELECT league FROM table_name_47 WHERE games = \"10\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_70 (region VARCHAR, area__km²_ VARCHAR)",
"role": "system"
},
{
"content": "Which Region has an area of 14,037km²?",
"role": "user"
},
{
"content": "SELECT region FROM table_name_70 WHERE area__km²_ = \"14,037\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_13758945_3 (club VARCHAR, losing_bonus VARCHAR)",
"role": "system"
},
{
"content": "what's the club with losing bonus being 1",
"role": "user"
},
{
"content": "SELECT club FROM table_13758945_3 WHERE losing_bonus = \"1\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_25 (crowd INTEGER, home_team VARCHAR)",
"role": "system"
},
{
"content": "What was the highest attendance for a game where Geelong was the home team?",
"role": "user"
},
{
"content": "SELECT MAX(crowd) FROM table_name_25 WHERE home_team = \"geelong\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_24 (against INTEGER, difference VARCHAR, lost VARCHAR)",
"role": "system"
},
{
"content": "Which average Against has a Difference of 10, and a Lost smaller than 2?",
"role": "user"
},
{
"content": "SELECT AVG(against) FROM table_name_24 WHERE difference = \"10\" AND lost < 2",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Aircraft (aid VARCHAR, distance INTEGER); CREATE TABLE Employee (name VARCHAR, eid VARCHAR); CREATE TABLE Certificate (eid VARCHAR, aid VARCHAR)",
"role": "system"
},
{
"content": "What is the salary and name of the employee who has the most number of certificates on aircrafts with distance more than 5000?",
"role": "user"
},
{
"content": "SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.distance > 5000 GROUP BY T1.eid ORDER BY COUNT(*) DESC LIMIT 1",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_66 (points VARCHAR, year VARCHAR, chassis VARCHAR, entrant VARCHAR)",
"role": "system"
},
{
"content": "What point had team Lotus whit the lotus 33 chassis in 1964?",
"role": "user"
},
{
"content": "SELECT points FROM table_name_66 WHERE chassis = \"lotus 33\" AND entrant = \"team lotus\" AND year = 1964",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1181375_1 (engine VARCHAR, builder VARCHAR, withdrawn VARCHAR)",
"role": "system"
},
{
"content": " what's the engine where builder is gloucester rcw and withdrawn is 1959",
"role": "user"
},
{
"content": "SELECT engine FROM table_1181375_1 WHERE builder = \"Gloucester RCW\" AND withdrawn = \"1959\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_85 (high_assists VARCHAR, game VARCHAR)",
"role": "system"
},
{
"content": "Who had the high assists in Game 22?",
"role": "user"
},
{
"content": "SELECT high_assists FROM table_name_85 WHERE game = 22",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_2 (home VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "What home has 46 points?",
"role": "user"
},
{
"content": "SELECT home FROM table_name_2 WHERE points = 46",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_35 (player VARCHAR, pick VARCHAR, position VARCHAR)",
"role": "system"
},
{
"content": "What player had a pick higher than 53, and a position of defensive tackle?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_35 WHERE pick > 53 AND position = \"defensive tackle\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_46 (sr VARCHAR, average VARCHAR, runs_scored VARCHAR)",
"role": "system"
},
{
"content": "Which S.R. has a Average smaller than 23.63 Runs Scored of 49?",
"role": "user"
},
{
"content": "SELECT sr FROM table_name_46 WHERE average < 23.63 AND runs_scored = 49",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_69 (player VARCHAR, pick__number VARCHAR, mls_team VARCHAR)",
"role": "system"
},
{
"content": "Name the player for fc dallas pick number less than 3",
"role": "user"
},
{
"content": "SELECT player FROM table_name_69 WHERE pick__number < 3 AND mls_team = \"fc dallas\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_80 (tournament VARCHAR, ground VARCHAR, round VARCHAR)",
"role": "system"
},
{
"content": "What tournament took place on Ground A with 8 rounds?",
"role": "user"
},
{
"content": "SELECT tournament FROM table_name_80 WHERE ground = \"a\" AND round = \"8\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_43 (school VARCHAR, mascot VARCHAR, _number___county VARCHAR, ihsaa_football_class VARCHAR)",
"role": "system"
},
{
"content": "Which School has a #/ County of 85 wabash, and an IHSAA Football Class of A, and a Mascot of norsemen?",
"role": "user"
},
{
"content": "SELECT school FROM table_name_43 WHERE _number___county = \"85 wabash\" AND ihsaa_football_class = \"a\" AND mascot = \"norsemen\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_15 (losses INTEGER, draws INTEGER)",
"role": "system"
},
{
"content": "Which Losses have Draws smaller than 0?",
"role": "user"
},
{
"content": "SELECT MAX(losses) FROM table_name_15 WHERE draws < 0",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20453681_1 (county VARCHAR, mccain_percentage VARCHAR, obama_percentage VARCHAR)",
"role": "system"
},
{
"content": "What's the county where McCain got 60.6% and Obama got 37.3%?",
"role": "user"
},
{
"content": "SELECT county FROM table_20453681_1 WHERE mccain_percentage = \"60.6%\" AND obama_percentage = \"37.3%\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_15187794_1 (round VARCHAR, circuit VARCHAR)",
"role": "system"
},
{
"content": "Which round was the circuit Assen",
"role": "user"
},
{
"content": "SELECT round FROM table_15187794_1 WHERE circuit = \"Assen\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_61 (venue VARCHAR, away_team VARCHAR)",
"role": "system"
},
{
"content": "What is the venue of the game where Geelong was the away team?",
"role": "user"
},
{
"content": "SELECT venue FROM table_name_61 WHERE away_team = \"geelong\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_81 (grid INTEGER, laps VARCHAR, driver VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest Grid for jj lehto with over 51 laps?",
"role": "user"
},
{
"content": "SELECT MIN(grid) FROM table_name_81 WHERE laps > 51 AND driver = \"jj lehto\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_50 (country VARCHAR, youth__15_24__literacy_rate_total VARCHAR, youth_men VARCHAR)",
"role": "system"
},
{
"content": "What country has a Youth (15-24) Literacy Rate Total of 99%, and a Youth Men of 98%?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_50 WHERE youth__15_24__literacy_rate_total = \"99%\" AND youth_men = \"98%\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23014476_1 (gore__number VARCHAR, others__percentage VARCHAR)",
"role": "system"
},
{
"content": "Name the gore number for others % being 5.3%",
"role": "user"
},
{
"content": "SELECT gore__number FROM table_23014476_1 WHERE others__percentage = \"5.3%\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_10 (partner VARCHAR, outcome VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "Tell me the partner for outcome of winner and score of 7-6 (7) 5-7 10-7",
"role": "user"
},
{
"content": "SELECT partner FROM table_name_10 WHERE outcome = \"winner\" AND score = \"7-6 (7) 5-7 10-7\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_58 (content VARCHAR, television_service VARCHAR)",
"role": "system"
},
{
"content": "What is the content of the Television service of Vesti?",
"role": "user"
},
{
"content": "SELECT content FROM table_name_58 WHERE television_service = \"vesti\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_70 (song VARCHAR, issue_date_s_ VARCHAR)",
"role": "system"
},
{
"content": "What is the Song with an Issue Date(s) that is 19 june?",
"role": "user"
},
{
"content": "SELECT song FROM table_name_70 WHERE issue_date_s_ = \"19 june\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_83 (gymnast VARCHAR, floor VARCHAR)",
"role": "system"
},
{
"content": "Who is the gymnast with a floor score of 14.800?",
"role": "user"
},
{
"content": "SELECT gymnast FROM table_name_83 WHERE floor = \"14.800\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20750731_1 (county VARCHAR, obama_percentage VARCHAR)",
"role": "system"
},
{
"content": "What County was the Obama% at 41.7%?",
"role": "user"
},
{
"content": "SELECT county FROM table_20750731_1 WHERE obama_percentage = \"41.7%\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_16168849_1 (joined VARCHAR, nickname VARCHAR)",
"role": "system"
},
{
"content": "Name the joined for blue hose",
"role": "user"
},
{
"content": "SELECT joined FROM table_16168849_1 WHERE nickname = \"Blue Hose\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_81 (home VARCHAR, visitor VARCHAR)",
"role": "system"
},
{
"content": "Name the home with visitor of kings",
"role": "user"
},
{
"content": "SELECT home FROM table_name_81 WHERE visitor = \"kings\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_25 (season VARCHAR, runs VARCHAR)",
"role": "system"
},
{
"content": "What season were the runs 310/9?",
"role": "user"
},
{
"content": "SELECT season FROM table_name_25 WHERE runs = \"310/9\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_14 (founded INTEGER, league VARCHAR, club VARCHAR)",
"role": "system"
},
{
"content": "Which Founded has a League of women's flat track derby association, and a Club of omaha rollergirls?",
"role": "user"
},
{
"content": "SELECT AVG(founded) FROM table_name_14 WHERE league = \"women's flat track derby association\" AND club = \"omaha rollergirls\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27733909_1 (high_points VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "what is the most number where the calendar shows october 20",
"role": "user"
},
{
"content": "SELECT high_points FROM table_27733909_1 WHERE date = \"October 20\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_16 (grid INTEGER, laps INTEGER)",
"role": "system"
},
{
"content": "What is the grid sum with more than 50 laps?",
"role": "user"
},
{
"content": "SELECT SUM(grid) FROM table_name_16 WHERE laps > 50",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_48 (rounds VARCHAR, entrant VARCHAR)",
"role": "system"
},
{
"content": "In what rounds did Scuderia Milano participate?",
"role": "user"
},
{
"content": "SELECT rounds FROM table_name_48 WHERE entrant = \"scuderia milano\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_9 (country VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "Billy Ray Brown plays for what country?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_9 WHERE player = \"billy ray brown\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_64 (total INTEGER, rank VARCHAR)",
"role": "system"
},
{
"content": "What is the maximum total medals when the rank is 8?",
"role": "user"
},
{
"content": "SELECT MAX(total) FROM table_name_64 WHERE rank = \"8\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_69 (distance VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is the distance for the 5 September race?",
"role": "user"
},
{
"content": "SELECT distance FROM table_name_69 WHERE date = \"5 september\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_24 (digital VARCHAR, provider VARCHAR)",
"role": "system"
},
{
"content": "What is the digital of Virgin [analogue]?",
"role": "user"
},
{
"content": "SELECT digital FROM table_name_24 WHERE provider = \"virgin [analogue]\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_19662262_6 (bbm VARCHAR, strike_rate VARCHAR)",
"role": "system"
},
{
"content": "What is the BBM when the strike rate is 42.2?",
"role": "user"
},
{
"content": "SELECT bbm FROM table_19662262_6 WHERE strike_rate = \"42.2\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_83 (to_par VARCHAR, money___$__ VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "what is the to par for $242,813 with score 68-72-74-66=280",
"role": "user"
},
{
"content": "SELECT to_par FROM table_name_83 WHERE money___$__ = \"242,813\" AND score = 68 - 72 - 74 - 66 = 280",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_93 (high_rebounds VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is High Rebounds, when Date is \"March 13\"?",
"role": "user"
},
{
"content": "SELECT high_rebounds FROM table_name_93 WHERE date = \"march 13\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_83 (skip VARCHAR, second VARCHAR)",
"role": "system"
},
{
"content": "Which Skip will play Joan Mccusker?",
"role": "user"
},
{
"content": "SELECT skip FROM table_name_83 WHERE second = \"joan mccusker\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23840623_4 (dirty_electric_grid_rocky_mountains__denver_ VARCHAR, epa_rated_combined_fuel_economy VARCHAR)",
"role": "system"
},
{
"content": "How many dirty electric grid rocky mountains (denver) vehicles have an epa rated combined fuel economy of 102 mpg-e (33kw-hrs/100mi)?",
"role": "user"
},
{
"content": "SELECT COUNT(dirty_electric_grid_rocky_mountains__denver_) FROM table_23840623_4 WHERE epa_rated_combined_fuel_economy = \"102 mpg-e (33kW-hrs/100mi)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_12707313_2 (first_win VARCHAR, pos VARCHAR)",
"role": "system"
},
{
"content": "What was the first win for pos 6?",
"role": "user"
},
{
"content": "SELECT first_win FROM table_12707313_2 WHERE pos = 6",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_75 (team VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "What team has a year listed of 2008?",
"role": "user"
},
{
"content": "SELECT team FROM table_name_75 WHERE year = 2008",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_81 (nation VARCHAR, bronze VARCHAR, silver VARCHAR, total VARCHAR)",
"role": "system"
},
{
"content": "What is the Nation with less than 1 silver, and the total is 1, and bronze is less than 0?",
"role": "user"
},
{
"content": "SELECT nation FROM table_name_81 WHERE silver < 1 AND total = 1 AND bronze = 0",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_17 (song VARCHAR, issue_date_s_ VARCHAR)",
"role": "system"
},
{
"content": "Which Song has an Issue date(s) of 29 may - 26 june?",
"role": "user"
},
{
"content": "SELECT song FROM table_name_17 WHERE issue_date_s_ = \"29 may - 26 june\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_27 (attendance VARCHAR, game_site VARCHAR, week VARCHAR)",
"role": "system"
},
{
"content": "What was the Attendance after Week 7 at Tiger Stadium?",
"role": "user"
},
{
"content": "SELECT COUNT(attendance) FROM table_name_27 WHERE game_site = \"tiger stadium\" AND week > 7",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_62 (date VARCHAR, blue_coalition VARCHAR)",
"role": "system"
},
{
"content": "On what Date is the Blue Coalition 8,80%?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_62 WHERE blue_coalition = \"8,80%\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_39 (lost INTEGER, goals_for INTEGER)",
"role": "system"
},
{
"content": "What was the lowest lost entry for a team with fewer than 21 goals for?",
"role": "user"
},
{
"content": "SELECT MIN(lost) FROM table_name_39 WHERE goals_for < 21",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_6 (gold INTEGER, bronze INTEGER)",
"role": "system"
},
{
"content": "What is the average number of gold medals with more than 1 bronze medal?",
"role": "user"
},
{
"content": "SELECT AVG(gold) FROM table_name_6 WHERE bronze > 1",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22319599_1 (location VARCHAR, varsity_teams VARCHAR)",
"role": "system"
},
{
"content": "If the varsity team is 6, what is the location?",
"role": "user"
},
{
"content": "SELECT location FROM table_22319599_1 WHERE varsity_teams = 6",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_57 (distance VARCHAR, feature VARCHAR)",
"role": "system"
},
{
"content": "what is the distance for ridge?",
"role": "user"
},
{
"content": "SELECT distance FROM table_name_57 WHERE feature = \"ridge\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_91 (constructor VARCHAR, time_retired VARCHAR)",
"role": "system"
},
{
"content": "Which constructor has a Time/Retired of +37.311?",
"role": "user"
},
{
"content": "SELECT constructor FROM table_name_91 WHERE time_retired = \"+37.311\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17360840_5 (record VARCHAR, location VARCHAR)",
"role": "system"
},
{
"content": "When they played at the Bankatlantic Center, what was their record?",
"role": "user"
},
{
"content": "SELECT record FROM table_17360840_5 WHERE location = \"BankAtlantic Center\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_12 (round INTEGER, time VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest round number for the fight that had a time of 1:09?",
"role": "user"
},
{
"content": "SELECT MIN(round) FROM table_name_12 WHERE time = \"1:09\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_62 (entrant VARCHAR, chassis VARCHAR)",
"role": "system"
},
{
"content": "Which entrant has a Mclaren m7c Chassis?",
"role": "user"
},
{
"content": "SELECT entrant FROM table_name_62 WHERE chassis = \"mclaren m7c\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_84 (date VARCHAR, score VARCHAR, loss VARCHAR)",
"role": "system"
},
{
"content": "On what Date had a Score of 5-2 and a Loss of Greinke (1-2)?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_84 WHERE score = \"5-2\" AND loss = \"greinke (1-2)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_34 (state VARCHAR, reason_for_termination VARCHAR, active_service VARCHAR)",
"role": "system"
},
{
"content": "Which state has a Reason for termination of retirement, and an Active service of 1926–1928?",
"role": "user"
},
{
"content": "SELECT state FROM table_name_34 WHERE reason_for_termination = \"retirement\" AND active_service = \"1926–1928\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_48 (result VARCHAR, role_episode VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "What result has outstanding achievement in drama, as the role/episode with a year prior to 1995?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_48 WHERE role_episode = \"outstanding achievement in drama\" AND year < 1995",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_35 (time_retired VARCHAR, rider VARCHAR, laps VARCHAR, manufacturer VARCHAR, grid VARCHAR)",
"role": "system"
},
{
"content": "What was the time for Aprilia and their driver Casey Stoner, before gird 9, and less than 26 laps?",
"role": "user"
},
{
"content": "SELECT time_retired FROM table_name_35 WHERE manufacturer = \"aprilia\" AND grid < 9 AND laps < 26 AND rider = \"casey stoner\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_85 (year INTEGER, result VARCHAR, nominated_work_title VARCHAR)",
"role": "system"
},
{
"content": "what is the latest year that has the result of nominated and the nominated work title is n/a?",
"role": "user"
},
{
"content": "SELECT MAX(year) FROM table_name_85 WHERE result = \"nominated\" AND nominated_work_title = \"n/a\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_50 (date VARCHAR, streak VARCHAR)",
"role": "system"
},
{
"content": "What is the date when streak was won 8?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_50 WHERE streak = \"won 8\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_27 (purse___ INTEGER, year VARCHAR, score VARCHAR, winner VARCHAR)",
"role": "system"
},
{
"content": "What was the total purse in the years after 1996 with a score of 272 (-16) when frank nobilo won?",
"role": "user"
},
{
"content": "SELECT SUM(purse___) AS $__ FROM table_name_27 WHERE score = \"272 (-16)\" AND winner = \"frank nobilo\" AND year > 1996",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_18 (to_par VARCHAR, place VARCHAR, country VARCHAR)",
"role": "system"
},
{
"content": "What is To Par, when Place is \"T5\", and when Country is \"United States\"?",
"role": "user"
},
{
"content": "SELECT to_par FROM table_name_18 WHERE place = \"t5\" AND country = \"united states\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_18 (republican_seat_plurality VARCHAR, state_ranked_in_partisan_order VARCHAR)",
"role": "system"
},
{
"content": "What is the Republican seat plurality of North Carolina?",
"role": "user"
},
{
"content": "SELECT republican_seat_plurality FROM table_name_18 WHERE state_ranked_in_partisan_order = \"north carolina\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_21514460_1 (headquarters VARCHAR, school_district VARCHAR)",
"role": "system"
},
{
"content": "Where is the headquarter located for the Annapolis Valley Regional School Board?",
"role": "user"
},
{
"content": "SELECT headquarters FROM table_21514460_1 WHERE school_district = \"Annapolis Valley Regional School Board\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_88 (time_retired VARCHAR, grid VARCHAR)",
"role": "system"
},
{
"content": "What is the grid 13 time score?",
"role": "user"
},
{
"content": "SELECT time_retired FROM table_name_88 WHERE grid = 13",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_222666_1 (former_codes VARCHAR, new_country_names_and_codes VARCHAR)",
"role": "system"
},
{
"content": "Name the former codes for merged into panama ( pa , pan , 591 )",
"role": "user"
},
{
"content": "SELECT former_codes FROM table_222666_1 WHERE new_country_names_and_codes = \"Merged into Panama ( PA , PAN , 591 )\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE county (County_name VARCHAR, Population VARCHAR)",
"role": "system"
},
{
"content": "Show the county name and population of all counties.",
"role": "user"
},
{
"content": "SELECT County_name, Population FROM county",
"role": "assistant"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.