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_97 (entrant VARCHAR, year INTEGER)",
"role": "system"
},
{
"content": "Who is the entrant when the year is less than 1953?",
"role": "user"
},
{
"content": "SELECT entrant FROM table_name_97 WHERE year < 1953",
"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 (race_name VARCHAR, year VARCHAR, winner VARCHAR)",
"role": "system"
},
{
"content": "Which race did Bill Holland win in 1946?",
"role": "user"
},
{
"content": "SELECT race_name FROM table_name_40 WHERE year = 1946 AND winner = \"bill holland\"",
"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 (season VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "What season had 78 points?",
"role": "user"
},
{
"content": "SELECT season FROM table_name_17 WHERE points = 78",
"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 (drawn VARCHAR, played VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "What is the drawn that has 22 for played, and 96 for points?",
"role": "user"
},
{
"content": "SELECT drawn FROM table_name_96 WHERE played = \"22\" AND points = \"96\"",
"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 (points VARCHAR, cat_fea VARCHAR)",
"role": "system"
},
{
"content": "When the CAT FEA is 3 how many points were scored?",
"role": "user"
},
{
"content": "SELECT points FROM table_name_88 WHERE cat_fea = \"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_1342393_42 (first_elected INTEGER, incumbent VARCHAR)",
"role": "system"
},
{
"content": "What was the total number of votes for Tom Connally",
"role": "user"
},
{
"content": "SELECT MIN(first_elected) FROM table_1342393_42 WHERE incumbent = \"Tom Connally\"",
"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_18600760_8 (township VARCHAR, county VARCHAR)",
"role": "system"
},
{
"content": "Name the township for kidder",
"role": "user"
},
{
"content": "SELECT township FROM table_18600760_8 WHERE county = \"Kidder\"",
"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_16441561_5 (pick__number INTEGER, position VARCHAR)",
"role": "system"
},
{
"content": "Who was the lowest picked LB",
"role": "user"
},
{
"content": "SELECT MIN(pick__number) FROM table_16441561_5 WHERE position = \"LB\"",
"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_25774493_3 (points_per_game VARCHAR, rebounds_per_game VARCHAR)",
"role": "system"
},
{
"content": "What were the points per game in the selection where the rebounds per game were 15.0?",
"role": "user"
},
{
"content": "SELECT points_per_game FROM table_25774493_3 WHERE rebounds_per_game = \"15.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_29 (crowd INTEGER, away_team VARCHAR)",
"role": "system"
},
{
"content": "What is the average crowd to watch Hawthorn as the away team?",
"role": "user"
},
{
"content": "SELECT AVG(crowd) FROM table_name_29 WHERE away_team = \"hawthorn\"",
"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_97 (athlete VARCHAR, nationality VARCHAR, rank VARCHAR, lane VARCHAR)",
"role": "system"
},
{
"content": "Which Athlete has a Rank larger than 1, and a Lane larger than 7, and a Nationality of china?",
"role": "user"
},
{
"content": "SELECT athlete FROM table_name_97 WHERE rank > 1 AND lane > 7 AND nationality = \"china\"",
"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_74 (power__kw_ VARCHAR, location VARCHAR)",
"role": "system"
},
{
"content": "What is the power (kW) of Davao?",
"role": "user"
},
{
"content": "SELECT power__kw_ FROM table_name_74 WHERE location = \"davao\"",
"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_89 (engine VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "Which engine was used in 1987?",
"role": "user"
},
{
"content": "SELECT engine FROM table_name_89 WHERE 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 INVOICES (payment_method_code VARCHAR)",
"role": "system"
},
{
"content": "What is the payment method code used by the most orders?",
"role": "user"
},
{
"content": "SELECT payment_method_code FROM INVOICES GROUP BY payment_method_code 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_29 (league_cup_goals VARCHAR, club VARCHAR, total VARCHAR, fa_cup_goals VARCHAR)",
"role": "system"
},
{
"content": "How many League Cup goals correspond to 3 FA Cup Goals and a total over 15 for Chesterfield?",
"role": "user"
},
{
"content": "SELECT league_cup_goals FROM table_name_29 WHERE total > 15 AND fa_cup_goals = 3 AND club = \"chesterfield\"",
"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_76 (record VARCHAR, loss VARCHAR)",
"role": "system"
},
{
"content": "What is the record when the loss is westbrook (1-6)?",
"role": "user"
},
{
"content": "SELECT record FROM table_name_76 WHERE loss = \"westbrook (1-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_23 (attendance INTEGER, date VARCHAR)",
"role": "system"
},
{
"content": "What is the average number in attendance on September 16?",
"role": "user"
},
{
"content": "SELECT AVG(attendance) FROM table_name_23 WHERE date = \"september 16\"",
"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_13619053_4 (score VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "How many games did the team play when they were 1-3?",
"role": "user"
},
{
"content": "SELECT COUNT(score) FROM table_13619053_4 WHERE record = \"1-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_16 (guest VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "Who was the guest at Stadion Prljanije?",
"role": "user"
},
{
"content": "SELECT guest FROM table_name_16 WHERE venue = \"stadion prljanije\"",
"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_71 (location VARCHAR, objectnumber VARCHAR)",
"role": "system"
},
{
"content": "Which Location has an ObjectNumber of 2005-7698?",
"role": "user"
},
{
"content": "SELECT location FROM table_name_71 WHERE objectnumber = \"2005-7698\"",
"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 (total INTEGER, bronze VARCHAR, silver VARCHAR, nation VARCHAR)",
"role": "system"
},
{
"content": "What is the highest total medals of russia, which has more than 1 silver and more than 6 bronze medals?",
"role": "user"
},
{
"content": "SELECT MAX(total) FROM table_name_83 WHERE silver > 1 AND nation = \"russia\" AND bronze > 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 customers (first_name VARCHAR, last_name VARCHAR, id VARCHAR); CREATE TABLE invoices (customer_id VARCHAR, invoice_date VARCHAR)",
"role": "system"
},
{
"content": "Find out 5 customers who most recently purchased something. List customers' first and last name.",
"role": "user"
},
{
"content": "SELECT T1.first_name, T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY T2.invoice_date DESC LIMIT 5",
"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_24099628_1 (cores VARCHAR, model__list_ VARCHAR)",
"role": "system"
},
{
"content": "What is the number of cores associated with model name e2xxx?",
"role": "user"
},
{
"content": "SELECT cores FROM table_24099628_1 WHERE model__list_ = \"E2xxx\"",
"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 (place VARCHAR, to_par VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What is the Place of the Player with a To par of –8 and a Score of 67-74-67=208?",
"role": "user"
},
{
"content": "SELECT place FROM table_name_83 WHERE to_par = \"–8\" AND score = 67 - 74 - 67 = 208",
"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_23183195_5 (free_throws INTEGER, steals VARCHAR)",
"role": "system"
},
{
"content": "Name the most free throws for 4 steals",
"role": "user"
},
{
"content": "SELECT MAX(free_throws) FROM table_23183195_5 WHERE steals = 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_16677887_2 (opponent VARCHAR, bills_first_downs VARCHAR)",
"role": "system"
},
{
"content": "What team were the bills playing where their first down was 23?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_16677887_2 WHERE bills_first_downs = 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_36 (the_american VARCHAR, total_games VARCHAR, years VARCHAR, tied VARCHAR)",
"role": "system"
},
{
"content": "What is the American locations with less than 114 years and more than 1 tied with more than 1022 total games?",
"role": "user"
},
{
"content": "SELECT the_american FROM table_name_36 WHERE years < 114 AND tied > 1 AND total_games > 1022",
"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_2509350_3 (language VARCHAR, villa_alcalá_municipality VARCHAR)",
"role": "system"
},
{
"content": "Name the language for villa 1167",
"role": "user"
},
{
"content": "SELECT language FROM table_2509350_3 WHERE villa_alcalá_municipality = 1167",
"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 (player VARCHAR, UEfa_cup VARCHAR, fa_cup VARCHAR, premier_league VARCHAR)",
"role": "system"
},
{
"content": "What player had less than 6 appearances at the FA cup, 33 at the premier league, and more than 5 at the UEFA cup?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_62 WHERE fa_cup < 6 AND premier_league = 33 AND UEfa_cup > 5",
"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 actor (Musical_ID VARCHAR); CREATE TABLE musical (Name VARCHAR, Musical_ID VARCHAR)",
"role": "system"
},
{
"content": "Show names of musicals and the number of actors who have appeared in the musicals.",
"role": "user"
},
{
"content": "SELECT T2.Name, COUNT(*) FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID GROUP BY T1.Musical_ID",
"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_90 (tournaments INTEGER, highest_rank VARCHAR)",
"role": "system"
},
{
"content": "What is the average Tournaments, when Highest Rank is \"Maegashira 1\"?",
"role": "user"
},
{
"content": "SELECT AVG(tournaments) FROM table_name_90 WHERE highest_rank = \"maegashira 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_28 (rank VARCHAR, speed VARCHAR, rider VARCHAR)",
"role": "system"
},
{
"content": "What is the rank of rider gary johnson, who had a speed of 120.979 mph?",
"role": "user"
},
{
"content": "SELECT rank FROM table_name_28 WHERE speed = \"120.979 mph\" AND rider = \"gary johnson\"",
"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 (events INTEGER, cuts_made VARCHAR, top_25 VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest number of events a tournament with more tha 5 cuts and less than 13 top-25 has?",
"role": "user"
},
{
"content": "SELECT MIN(events) FROM table_name_75 WHERE cuts_made > 5 AND top_25 < 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_67 (score VARCHAR, home_team VARCHAR)",
"role": "system"
},
{
"content": "What is the score in the Liverpool home game?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_67 WHERE home_team = \"liverpool\"",
"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 (school_club_team VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What is Michael Stewart's school or club team?",
"role": "user"
},
{
"content": "SELECT school_club_team FROM table_name_93 WHERE player = \"michael stewart\"",
"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_89 (marks VARCHAR, season VARCHAR)",
"role": "system"
},
{
"content": "How many marks did he get in 2005?",
"role": "user"
},
{
"content": "SELECT marks FROM table_name_89 WHERE season = \"2005\"",
"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 (date VARCHAR, ship_type VARCHAR, location VARCHAR)",
"role": "system"
},
{
"content": "What date was a brig type ship located in SW Approaches?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_30 WHERE ship_type = \"brig\" AND location = \"sw approaches\"",
"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_86 (visitor VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "Who was the visiting team when the record was 28–14–6–2?",
"role": "user"
},
{
"content": "SELECT visitor FROM table_name_86 WHERE record = \"28–14–6–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_12146068_2 (rnd VARCHAR, gt1_winning_team VARCHAR)",
"role": "system"
},
{
"content": "What is the rnd for gt1 winning team for doc bundy andy wallace?",
"role": "user"
},
{
"content": "SELECT rnd FROM table_12146068_2 WHERE gt1_winning_team = \"Doc Bundy Andy Wallace\"",
"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_23619212_1 (_percentage_of_all_immigrants_2007 VARCHAR, _percentage_of_all_immigrants_2005 VARCHAR)",
"role": "system"
},
{
"content": "How many different percentages of immigrants are there for the year of 2007 in the countries with 1.2% of the immigrants in the year of 2005?",
"role": "user"
},
{
"content": "SELECT COUNT(_percentage_of_all_immigrants_2007) FROM table_23619212_1 WHERE _percentage_of_all_immigrants_2005 = \"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_6 (game INTEGER, high_rebounds VARCHAR)",
"role": "system"
},
{
"content": "What is the sum of Game(s), when High Rebounds is \"Pierson (6)\"?",
"role": "user"
},
{
"content": "SELECT SUM(game) FROM table_name_6 WHERE high_rebounds = \"pierson (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_8 (team_1 VARCHAR)",
"role": "system"
},
{
"content": "What's the score of the 1st leg when Water Corporation was Team 1?",
"role": "user"
},
{
"content": "SELECT 1 AS st_leg FROM table_name_8 WHERE team_1 = \"water corporation\"",
"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_26166836_1 (distance VARCHAR, road_race VARCHAR)",
"role": "system"
},
{
"content": "How long was the great manchester run?",
"role": "user"
},
{
"content": "SELECT distance FROM table_26166836_1 WHERE road_race = \"Great Manchester Run\"",
"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_11167610_1 (turbo VARCHAR, trim VARCHAR)",
"role": "system"
},
{
"content": " what's the turbo where trim is 2.0 20v",
"role": "user"
},
{
"content": "SELECT turbo FROM table_11167610_1 WHERE trim = \"2.0 20v\"",
"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_23 (semifinalists VARCHAR, finalist VARCHAR)",
"role": "system"
},
{
"content": "Which Semifinalists has a Finalist of andre agassi?",
"role": "user"
},
{
"content": "SELECT semifinalists FROM table_name_23 WHERE finalist = \"andre agassi\"",
"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_97 (goals INTEGER, assists VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "What is the largest number of goals with less than 101 assists and 172 points?",
"role": "user"
},
{
"content": "SELECT MAX(goals) FROM table_name_97 WHERE assists < 101 AND points < 172",
"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 (position VARCHAR, drawn VARCHAR, played VARCHAR)",
"role": "system"
},
{
"content": "What is the total number of positions for teams with more than 7 draws and under 40 played?",
"role": "user"
},
{
"content": "SELECT COUNT(position) FROM table_name_66 WHERE drawn > 7 AND played < 40",
"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 (date VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "Which Date has a Record of 1-4?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_34 WHERE record = \"1-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 ALBUM (Id VARCHAR)",
"role": "system"
},
{
"content": "How many albums are there?",
"role": "user"
},
{
"content": "SELECT COUNT(*) FROM ALBUM",
"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_13 (venue VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is the venue for the event on 12 November 2005?",
"role": "user"
},
{
"content": "SELECT venue FROM table_name_13 WHERE date = \"12 november 2005\"",
"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_8 (rank VARCHAR, rider VARCHAR)",
"role": "system"
},
{
"content": "How many Ranks have ray pickrell as a Rider?",
"role": "user"
},
{
"content": "SELECT COUNT(rank) FROM table_name_8 WHERE rider = \"ray pickrell\"",
"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 (time VARCHAR, event VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "What's the Time for an Event of 4x100 m relay and has a Venue of Frankfurt?",
"role": "user"
},
{
"content": "SELECT time FROM table_name_17 WHERE event = \"4x100 m relay\" AND venue = \"frankfurt\"",
"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_2387461_1 (assists_per_game VARCHAR, points_per_game VARCHAR)",
"role": "system"
},
{
"content": "How may assists per game have 7.7 points per game?",
"role": "user"
},
{
"content": "SELECT assists_per_game FROM table_2387461_1 WHERE points_per_game = \"7.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 People (Name VARCHAR, Age VARCHAR)",
"role": "system"
},
{
"content": "List the names of the top 5 oldest people.",
"role": "user"
},
{
"content": "SELECT Name FROM People ORDER BY Age DESC LIMIT 5",
"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_20 (player VARCHAR, country VARCHAR, to_par VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "Who is the player from the United States with a 4 to par and a 74-73-72-69=288 score?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_20 WHERE country = \"united states\" AND to_par = 4 AND score = 74 - 73 - 72 - 69 = 288",
"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_140968_1 (copies_per_particle VARCHAR, function VARCHAR)",
"role": "system"
},
{
"content": "How many copies per particle are created by the enterotoxin?",
"role": "user"
},
{
"content": "SELECT copies_per_particle FROM table_140968_1 WHERE function = \"Enterotoxin\"",
"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_56 (grid INTEGER, team VARCHAR, driver VARCHAR)",
"role": "system"
},
{
"content": "What is the grid of pkv racing with the driver oriol servià?",
"role": "user"
},
{
"content": "SELECT SUM(grid) FROM table_name_56 WHERE team = \"pkv racing\" AND driver = \"oriol servià\"",
"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_76 (draws VARCHAR, losses VARCHAR)",
"role": "system"
},
{
"content": "What is Draws, when Losses is \"Did Not Qualify\"?",
"role": "user"
},
{
"content": "SELECT draws FROM table_name_76 WHERE losses = \"did not qualify\"",
"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_82 (draws INTEGER, position VARCHAR, wins VARCHAR)",
"role": "system"
},
{
"content": "Name the sum of draws when the position is less than 17 and wins is less than 11",
"role": "user"
},
{
"content": "SELECT SUM(draws) FROM table_name_82 WHERE position < 17 AND wins < 11",
"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_1341395_33 (result VARCHAR, district VARCHAR)",
"role": "system"
},
{
"content": "what are all the result for New York 7 district",
"role": "user"
},
{
"content": "SELECT result FROM table_1341395_33 WHERE district = \"New York 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_29785324_5 (constituency_no INTEGER, vidhan_sabha_constituency VARCHAR)",
"role": "system"
},
{
"content": "How many were in the Kargahar (vidhan sabha constituency)?",
"role": "user"
},
{
"content": "SELECT MIN(constituency_no) FROM table_29785324_5 WHERE vidhan_sabha_constituency = \"Kargahar (Vidhan Sabha constituency)\"",
"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 (winner VARCHAR, year VARCHAR, loser VARCHAR, location VARCHAR)",
"role": "system"
},
{
"content": "Who was the winner when the Philadelphia eagles were the losers after 1958 at Yankee Stadium?",
"role": "user"
},
{
"content": "SELECT winner FROM table_name_62 WHERE loser = \"philadelphia eagles\" AND location = \"yankee stadium\" AND year > 1958",
"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_11891841_2 (name VARCHAR, p VARCHAR)",
"role": "system"
},
{
"content": "What is the name where p is mf?",
"role": "user"
},
{
"content": "SELECT name FROM table_11891841_2 WHERE p = \"MF\"",
"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_55 (points INTEGER, place VARCHAR, draw VARCHAR)",
"role": "system"
},
{
"content": "What is the average of points for 8th place with draw more than 8?",
"role": "user"
},
{
"content": "SELECT AVG(points) FROM table_name_55 WHERE place = \"8th\" AND draw > 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_93 (date VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What date was the score won 1-2?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_93 WHERE score = \"won 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_2508175_1 (country VARCHAR, annual_co2_emissions__in_thousands_of_metric_tons_ VARCHAR)",
"role": "system"
},
{
"content": "when the annual co2 emissions (in thousands of metric tons) is 1811, what is the country?",
"role": "user"
},
{
"content": "SELECT country FROM table_2508175_1 WHERE annual_co2_emissions__in_thousands_of_metric_tons_ = 1811",
"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_14342367_13 (previous_experience VARCHAR, hometown VARCHAR)",
"role": "system"
},
{
"content": "What is the previous experience of the player from East Jordan, Michigan?",
"role": "user"
},
{
"content": "SELECT previous_experience FROM table_14342367_13 WHERE hometown = \"East Jordan, Michigan\"",
"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_20 (score VARCHAR, away_team VARCHAR)",
"role": "system"
},
{
"content": "What is the score where the away team is Exeter City?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_20 WHERE away_team = \"exeter city\"",
"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_23 (started VARCHAR, end_source VARCHAR, country VARCHAR, loan_club VARCHAR)",
"role": "system"
},
{
"content": "When was the loan started when the coutry is eng, the loan club is sunderland and the end source is south wales echo?",
"role": "user"
},
{
"content": "SELECT started FROM table_name_23 WHERE country = \"eng\" AND loan_club = \"sunderland\" AND end_source = \"south wales echo\"",
"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_33 (class VARCHAR, quantity VARCHAR, gwr_nos VARCHAR)",
"role": "system"
},
{
"content": "Which class is smaller than 5 and the GWR is 1322–1323?",
"role": "user"
},
{
"content": "SELECT class FROM table_name_33 WHERE quantity < 5 AND gwr_nos = \"1322–1323\"",
"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 (score VARCHAR, home VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Which score was for Toronto Maple Leafs at home on November 12?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_66 WHERE home = \"toronto maple leafs\" AND date = \"november 12\"",
"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_71 (competition VARCHAR, result VARCHAR)",
"role": "system"
},
{
"content": "What competition has 17-1 as the result?",
"role": "user"
},
{
"content": "SELECT competition FROM table_name_71 WHERE result = \"17-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_1 (poles INTEGER, wins VARCHAR, season VARCHAR, position VARCHAR)",
"role": "system"
},
{
"content": "What is the sum of Poles, when Season is before 2005, when Position is \"2nd\", and when Wins is less than 6?",
"role": "user"
},
{
"content": "SELECT SUM(poles) FROM table_name_1 WHERE season < 2005 AND position = \"2nd\" AND wins < 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_2781227_1 (college_junior_club_team VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What is the college/junior/club team name of player Mats Lindgren?",
"role": "user"
},
{
"content": "SELECT college_junior_club_team FROM table_2781227_1 WHERE player = \"Mats Lindgren\"",
"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 shop (manager_name VARCHAR, district VARCHAR, number_products VARCHAR)",
"role": "system"
},
{
"content": "Find the manager name and district of the shop whose number of products is the largest.",
"role": "user"
},
{
"content": "SELECT manager_name, district FROM shop ORDER BY number_products 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_58 (lost INTEGER, points VARCHAR, against VARCHAR)",
"role": "system"
},
{
"content": "What is the highest number lost with more than 29 points and an against less than 19?",
"role": "user"
},
{
"content": "SELECT MAX(lost) FROM table_name_58 WHERE points > 29 AND against < 19",
"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 (theme VARCHAR, original_artist VARCHAR, week__number VARCHAR)",
"role": "system"
},
{
"content": "What is the Theme when the Original artist was carole king, and a Week # shows hollywood?",
"role": "user"
},
{
"content": "SELECT theme FROM table_name_85 WHERE original_artist = \"carole king\" AND week__number = \"hollywood\"",
"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 (name VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "When SSC-R is the opponent what is the name?",
"role": "user"
},
{
"content": "SELECT name FROM table_name_70 WHERE opponent = \"ssc-r\"",
"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_11900378_1 (doubles_champions VARCHAR, tournament VARCHAR)",
"role": "system"
},
{
"content": "How many doubles champions were there for the Serbia f6 Futures tournament?",
"role": "user"
},
{
"content": "SELECT COUNT(doubles_champions) FROM table_11900378_1 WHERE tournament = \"Serbia F6 Futures\"",
"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_24222929_3 (original_airdate VARCHAR, live VARCHAR, sd_total_viewers VARCHAR)",
"role": "system"
},
{
"content": "When did the episode that had 3.69 million total viewers (Live and SD types combined) first air?",
"role": "user"
},
{
"content": "SELECT original_airdate FROM table_24222929_3 WHERE live + sd_total_viewers = \"3.69 million\"",
"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_99 (year INTEGER, detroit__dtw_ VARCHAR)",
"role": "system"
},
{
"content": "For how many years did Detroit have a passenger fare of $307.29?",
"role": "user"
},
{
"content": "SELECT SUM(year) FROM table_name_99 WHERE detroit__dtw_ = \"$307.29\"",
"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_38 (games VARCHAR, goals_against VARCHAR, lost VARCHAR)",
"role": "system"
},
{
"content": "How many games have more than 288 goals and less than 34 losses?",
"role": "user"
},
{
"content": "SELECT COUNT(games) FROM table_name_38 WHERE goals_against > 288 AND lost < 34",
"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 (wins INTEGER, played VARCHAR, goal_difference VARCHAR, club VARCHAR)",
"role": "system"
},
{
"content": "Which Wins have a Goal Difference larger than 12, and a Club of granada cf, and Played larger than 30?",
"role": "user"
},
{
"content": "SELECT AVG(wins) FROM table_name_91 WHERE goal_difference > 12 AND club = \"granada cf\" AND played > 30",
"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_90 (league_cup_goals VARCHAR, total_goals VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "How many League Cup Goals have 0 as the total goals, with delroy facey as the name?",
"role": "user"
},
{
"content": "SELECT COUNT(league_cup_goals) FROM table_name_90 WHERE total_goals = 0 AND name = \"delroy facey\"",
"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 (event VARCHAR, score_points VARCHAR)",
"role": "system"
},
{
"content": "What is the event where there are 10 score points?",
"role": "user"
},
{
"content": "SELECT event FROM table_name_10 WHERE score_points = \"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_12078626_1 (success VARCHAR, deadline_for_completion VARCHAR)",
"role": "system"
},
{
"content": " what's the success where deadline for completion is october 7, 2007",
"role": "user"
},
{
"content": "SELECT success FROM table_12078626_1 WHERE deadline_for_completion = \"October 7, 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 table_name_17 (attempts VARCHAR, completions VARCHAR)",
"role": "system"
},
{
"content": "What number of attempts were recorded when the completions were 223?",
"role": "user"
},
{
"content": "SELECT attempts FROM table_name_17 WHERE completions = \"223\"",
"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 election (District VARCHAR, Committee VARCHAR); CREATE TABLE county (County_name VARCHAR, County_id VARCHAR)",
"role": "system"
},
{
"content": "What are the names of the county that the delegates on \"Appropriations\" committee belong to?",
"role": "user"
},
{
"content": "SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T2.Committee = \"Appropriations\"",
"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 (title VARCHAR, published_in VARCHAR, main_characters VARCHAR)",
"role": "system"
},
{
"content": "Name the title when the main characters are grant calthorpe, lee neilan and the published in of astounding stories",
"role": "user"
},
{
"content": "SELECT title FROM table_name_84 WHERE published_in = \"astounding stories\" AND main_characters = \"grant calthorpe, lee neilan\"",
"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_23937219_3 (directed_by VARCHAR, season__number VARCHAR)",
"role": "system"
},
{
"content": "How many people directed episode 7 In the season?",
"role": "user"
},
{
"content": "SELECT COUNT(directed_by) FROM table_23937219_3 WHERE season__number = 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_90 (opponent VARCHAR, results¹ VARCHAR)",
"role": "system"
},
{
"content": "Who did Yugoslavia play against that led to a result of 2:3?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_90 WHERE results¹ = \"2: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_90 (away_team VARCHAR, home_team VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is Away Team, when Home Team is \"Ipswich Town\", and when Date is \"6 February 1986\"?",
"role": "user"
},
{
"content": "SELECT away_team FROM table_name_90 WHERE home_team = \"ipswich town\" AND date = \"6 february 1986\"",
"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 (actor VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "Which actor won in 1966?",
"role": "user"
},
{
"content": "SELECT actor FROM table_name_43 WHERE year = 1966",
"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_68 (year INTEGER, start INTEGER)",
"role": "system"
},
{
"content": "Name the sum of year when start is less than 30",
"role": "user"
},
{
"content": "SELECT SUM(year) FROM table_name_68 WHERE start < 30",
"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_20906175_3 (attempts VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "How many attempts did Charley Johnson have?",
"role": "user"
},
{
"content": "SELECT COUNT(attempts) FROM table_20906175_3 WHERE name = \"Charley Johnson\"",
"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_33 (winner VARCHAR, course VARCHAR)",
"role": "system"
},
{
"content": "Who won the Granada course?",
"role": "user"
},
{
"content": "SELECT winner FROM table_name_33 WHERE course = \"granada\"",
"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_89 (Id VARCHAR)",
"role": "system"
},
{
"content": "What is the 2008 result when 2006 is Year-End Championship?",
"role": "user"
},
{
"content": "SELECT 2008 FROM table_name_89 WHERE 2006 = \"year-end championship\"",
"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_19744915_14 (place VARCHAR, rank_by_average INTEGER)",
"role": "system"
},
{
"content": "What place would you be in if your rank by average is less than 2.0?",
"role": "user"
},
{
"content": "SELECT place FROM table_19744915_14 WHERE rank_by_average < 2.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_43 (heat INTEGER, lane VARCHAR, country VARCHAR, mark VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest heat for the United states with a mark of 51.85 pb and lane higher than 6?",
"role": "user"
},
{
"content": "SELECT MIN(heat) FROM table_name_43 WHERE country = \"united states\" AND mark = \"51.85 pb\" AND lane > 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_8 (club VARCHAR, result VARCHAR, competition VARCHAR, nation VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "What is the Club of mexico, Year of 2010, and a Competition of preseason, and a Result of w 0–1?",
"role": "user"
},
{
"content": "SELECT club FROM table_name_8 WHERE nation = \"mexico\" AND year = 2010 AND competition = \"preseason\" AND result = \"w 0–1\"",
"role": "assistant"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.