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_56 (total_finals INTEGER, runners_up VARCHAR, winners VARCHAR)",
"role": "system"
},
{
"content": "What is the highest total number of finals a club with more than 2 runners-up and fewer than 1 winner went to?",
"role": "user"
},
{
"content": "SELECT MAX(total_finals) FROM table_name_56 WHERE runners_up > 2 AND winners < 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_35 (date VARCHAR, opponent VARCHAR, attendance VARCHAR)",
"role": "system"
},
{
"content": "When did the Rockies play the Giants with an attendance over 24,100?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_35 WHERE opponent = \"giants\" AND attendance > 24 OFFSET 100",
"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 (december INTEGER, opponent VARCHAR)",
"role": "system"
},
{
"content": "What was the first time in December they played the Colorado Avalanche?",
"role": "user"
},
{
"content": "SELECT MIN(december) FROM table_name_76 WHERE opponent = \"colorado avalanche\"",
"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_87 (title VARCHAR, doctor VARCHAR, company VARCHAR)",
"role": "system"
},
{
"content": "What is Title, when Doctor is 06 Sixth Doctor, and when Company is Big Finish?",
"role": "user"
},
{
"content": "SELECT title FROM table_name_87 WHERE doctor = \"06 sixth doctor\" AND company = \"big finish\"",
"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_11 (overall INTEGER, college VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest overall pick for a player from Washington?",
"role": "user"
},
{
"content": "SELECT MIN(overall) FROM table_name_11 WHERE college = \"washington\"",
"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 (position VARCHAR, round VARCHAR, overall VARCHAR)",
"role": "system"
},
{
"content": "What position is the round higher than 15 and has an overall of 411.",
"role": "user"
},
{
"content": "SELECT position FROM table_name_82 WHERE round > 15 AND overall = 411",
"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 (bronze INTEGER, nation VARCHAR)",
"role": "system"
},
{
"content": "Which Bronze has a Nation of spain?",
"role": "user"
},
{
"content": "SELECT MAX(bronze) FROM table_name_99 WHERE nation = \"spain\"",
"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_21761882_4 (location VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "What was the location for when the opponent was @ roughriders?",
"role": "user"
},
{
"content": "SELECT location FROM table_21761882_4 WHERE opponent = \"@ Roughriders\"",
"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_17971449_2 (deployable_military__2011 VARCHAR, _thousands_ VARCHAR, country VARCHAR)",
"role": "system"
},
{
"content": "Name the deployable military 2011 for denmark",
"role": "user"
},
{
"content": "SELECT deployable_military__2011, _thousands_ FROM table_17971449_2 WHERE country = \"Denmark\"",
"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_60 (combined_consumption VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What is the combined consumption of 1.6 16v?",
"role": "user"
},
{
"content": "SELECT combined_consumption FROM table_name_60 WHERE name = \"1.6 16v\"",
"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 (outlet VARCHAR, in_state_area VARCHAR)",
"role": "system"
},
{
"content": "What outlet has and in-state area of 055 1,497km 2 578mi 2?",
"role": "user"
},
{
"content": "SELECT outlet FROM table_name_68 WHERE in_state_area = \"055 1,497km 2 578mi 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_23 (label VARCHAR, catalog VARCHAR, date VARCHAR, region VARCHAR)",
"role": "system"
},
{
"content": "What is the label for 2002, in Germany, Catalog Dos 195?",
"role": "user"
},
{
"content": "SELECT label FROM table_name_23 WHERE date = \"2002\" AND region = \"germany\" AND catalog = \"dos 195\"",
"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 (opponent VARCHAR, result VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Which Opponent has a Result of 1–1, and a Date of 28 november 1998?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_30 WHERE result = \"1–1\" AND date = \"28 november 1998\"",
"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 (incumbent VARCHAR, district VARCHAR, results VARCHAR, party VARCHAR)",
"role": "system"
},
{
"content": "What is Incumbent, when Results is \"Re-Elected\", when Party is \"Democratic\", and when District is \"Minnesota 7\"?",
"role": "user"
},
{
"content": "SELECT incumbent FROM table_name_75 WHERE results = \"re-elected\" AND party = \"democratic\" AND district = \"minnesota 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_82 (score VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is the score of the match on October 5, 1990?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_82 WHERE date = \"october 5, 1990\"",
"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 (season VARCHAR, div VARCHAR, pos VARCHAR, pld VARCHAR)",
"role": "system"
},
{
"content": "What season had 3rd position, a 36 pld, and a bbl div?",
"role": "user"
},
{
"content": "SELECT season FROM table_name_81 WHERE pos = \"3rd\" AND pld = \"36\" AND div = \"bbl\"",
"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 (round INTEGER, pick VARCHAR)",
"role": "system"
},
{
"content": "In what Round was Pick 138?",
"role": "user"
},
{
"content": "SELECT SUM(round) FROM table_name_93 WHERE pick = 138",
"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_29747178_2 (us_viewers__million_ VARCHAR, directed_by VARCHAR)",
"role": "system"
},
{
"content": "How many millions of U.S viewers are there when the director is andy wolk?",
"role": "user"
},
{
"content": "SELECT us_viewers__million_ FROM table_29747178_2 WHERE directed_by = \"Andy Wolk\"",
"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_11839306_2 (english_title VARCHAR, rōmaji_title VARCHAR)",
"role": "system"
},
{
"content": "What is the English version of the title Getto Daun?",
"role": "user"
},
{
"content": "SELECT english_title FROM table_11839306_2 WHERE rōmaji_title = \"Getto Daun\"",
"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_26360571_2 (opponent VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "List the opposing team from february 22, 1983.",
"role": "user"
},
{
"content": "SELECT opponent FROM table_26360571_2 WHERE date = \"February 22, 1983\"",
"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_24431348_20 (points INTEGER, player VARCHAR)",
"role": "system"
},
{
"content": "What is the highest points won when the player is aravane rezaï?",
"role": "user"
},
{
"content": "SELECT MAX(points) AS won FROM table_24431348_20 WHERE player = \"Aravane Rezaï\"",
"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_5 (date VARCHAR, visitor VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "What is the Date that chicago black hawks has a Record of 2–2?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_5 WHERE visitor = \"chicago black hawks\" AND record = \"2–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 list (grade VARCHAR, classroom VARCHAR)",
"role": "system"
},
{
"content": "Find the grade studying in room 105.",
"role": "user"
},
{
"content": "SELECT DISTINCT grade FROM list WHERE classroom = 105",
"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 (nationality VARCHAR, position VARCHAR, pick__number VARCHAR)",
"role": "system"
},
{
"content": "What Nationality has a Position of right wing, with a #20 pick?",
"role": "user"
},
{
"content": "SELECT nationality FROM table_name_79 WHERE position = \"right wing\" AND pick__number = \"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_71 (wins INTEGER, manufacturer VARCHAR, rank VARCHAR)",
"role": "system"
},
{
"content": "Manufacturer of honda, and a Rank of 8 had what highest wins?",
"role": "user"
},
{
"content": "SELECT MAX(wins) FROM table_name_71 WHERE manufacturer = \"honda\" AND 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_34 (rank INTEGER, name VARCHAR, matches VARCHAR)",
"role": "system"
},
{
"content": "What is the Rank for Viktors Dobrecovs with less than 325 Matches?",
"role": "user"
},
{
"content": "SELECT AVG(rank) FROM table_name_34 WHERE name = \"viktors dobrecovs\" AND matches < 325",
"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 (nfl_club VARCHAR, pick VARCHAR, position VARCHAR)",
"role": "system"
},
{
"content": "What is the NFL club of the cornerback player with a pick greater than 63?",
"role": "user"
},
{
"content": "SELECT nfl_club FROM table_name_34 WHERE pick > 63 AND position = \"cornerback\"",
"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_87 (grid INTEGER, time VARCHAR)",
"role": "system"
},
{
"content": "What is the average Grid, when Time is +45.855?",
"role": "user"
},
{
"content": "SELECT AVG(grid) FROM table_name_87 WHERE time = \"+45.855\"",
"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 (det_pre_amp VARCHAR, _number_tubes VARCHAR)",
"role": "system"
},
{
"content": "Name the det/pre-amp with # of tubes of 8",
"role": "user"
},
{
"content": "SELECT det_pre_amp FROM table_name_74 WHERE _number_tubes = \"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_31 (attendance INTEGER, date VARCHAR)",
"role": "system"
},
{
"content": "What was the attendance on 10 november 2004?",
"role": "user"
},
{
"content": "SELECT AVG(attendance) FROM table_name_31 WHERE date = \"10 november 2004\"",
"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 (label VARCHAR, format VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Which label had a CD format and a date of June 25, 2002?",
"role": "user"
},
{
"content": "SELECT label FROM table_name_38 WHERE format = \"cd\" AND date = \"june 25, 2002\"",
"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 course (title VARCHAR, credits VARCHAR)",
"role": "system"
},
{
"content": "List the names of all courses ordered by their titles and credits.",
"role": "user"
},
{
"content": "SELECT title FROM course ORDER BY title, credits",
"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 (evaluation_average__before_april_2009_ VARCHAR, peak_lessons_taught VARCHAR, _percentage_of_negative_evaluations VARCHAR)",
"role": "system"
},
{
"content": "What is the mean Evaluation number (before April 2009) when the Peak lessons taught was less than 80 and the negative percentage of evaluations was 0.8%?",
"role": "user"
},
{
"content": "SELECT evaluation_average__before_april_2009_ FROM table_name_23 WHERE peak_lessons_taught < 80 AND _percentage_of_negative_evaluations = \"0.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_1637041_2 (avg_start VARCHAR, position VARCHAR)",
"role": "system"
},
{
"content": "How many years did he finish in 59th?",
"role": "user"
},
{
"content": "SELECT COUNT(avg_start) FROM table_1637041_2 WHERE position = \"59th\"",
"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 (opponent VARCHAR, surface VARCHAR, tournament VARCHAR)",
"role": "system"
},
{
"content": "Who was the opponent in the math that was played in Nice on a clay court?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_23 WHERE surface = \"clay\" AND tournament = \"nice\"",
"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_44 (industry INTEGER, agriculture INTEGER)",
"role": "system"
},
{
"content": "What is the average Industry, when Agriculture is greater than 11?",
"role": "user"
},
{
"content": "SELECT AVG(industry) FROM table_name_44 WHERE agriculture > 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_name_43 (win__percentage VARCHAR, manager VARCHAR, lost VARCHAR)",
"role": "system"
},
{
"content": "what is the total win % of manager viktor prokopenko, when he lost fewer than 2?",
"role": "user"
},
{
"content": "SELECT COUNT(win__percentage) FROM table_name_43 WHERE manager = \"viktor prokopenko\" 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 table_22834834_2 (score_in_the_final VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "What is the score in the final in the year 1994?",
"role": "user"
},
{
"content": "SELECT score_in_the_final FROM table_22834834_2 WHERE year = 1994",
"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_26360571_2 (opponent VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "List the opposing team on february 15, 2003.",
"role": "user"
},
{
"content": "SELECT opponent FROM table_26360571_2 WHERE date = \"February 15, 2003\"",
"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 performance (Location VARCHAR, Performance_ID VARCHAR); CREATE TABLE member (Name VARCHAR, Member_ID VARCHAR); CREATE TABLE member_attendance (Member_ID VARCHAR, Performance_ID VARCHAR)",
"role": "system"
},
{
"content": "Show the names of members and the location of performances they attended in ascending alphabetical order of their names.",
"role": "user"
},
{
"content": "SELECT T2.Name, T3.Location FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID = T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID = T3.Performance_ID ORDER BY T2.Name",
"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 (tenure VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What is Gary David Saunders' Tenure?",
"role": "user"
},
{
"content": "SELECT tenure FROM table_name_23 WHERE name = \"gary david saunders\"",
"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_73 (name VARCHAR, county VARCHAR, proposed VARCHAR)",
"role": "system"
},
{
"content": "What name was proposed on 09/08/1983 in hillsborough county?",
"role": "user"
},
{
"content": "SELECT name FROM table_name_73 WHERE county = \"hillsborough\" AND proposed = \"09/08/1983\"",
"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 (sno INTEGER, state VARCHAR, completion_schedule VARCHAR)",
"role": "system"
},
{
"content": "When the completion schedule is 2016 for the state of jammu & kashmir, what is the smallest S.no.?",
"role": "user"
},
{
"content": "SELECT MIN(sno) FROM table_name_9 WHERE state = \"jammu & kashmir\" AND completion_schedule = \"2016\"",
"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 (catalog VARCHAR, label VARCHAR, format VARCHAR)",
"role": "system"
},
{
"content": "What catalog had an Epic Records label in CD format?",
"role": "user"
},
{
"content": "SELECT catalog FROM table_name_16 WHERE label = \"epic records\" AND format = \"cd\"",
"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_17628022_2 (play_by_play VARCHAR, pregame_analysts VARCHAR)",
"role": "system"
},
{
"content": "How many different play-by-play announcers also had pregame analysis by Darren Flutie, Eric Tillman and Greg Frers?",
"role": "user"
},
{
"content": "SELECT COUNT(play_by_play) FROM table_17628022_2 WHERE pregame_analysts = \"Darren Flutie, Eric Tillman and Greg Frers\"",
"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 (nationality VARCHAR, time VARCHAR)",
"role": "system"
},
{
"content": "What nationality has 1:55.35 as the time?",
"role": "user"
},
{
"content": "SELECT nationality FROM table_name_96 WHERE time = \"1:55.35\"",
"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 (date VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "When was a competition held at Pietermaritzburg?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_83 WHERE venue = \"pietermaritzburg\"",
"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_11703336_1 (cpu VARCHAR, ram VARCHAR, display_size VARCHAR)",
"role": "system"
},
{
"content": "what is the cpu for the calculator with 28 kb of ram and display size 128×64 pixels 21×8 characters?",
"role": "user"
},
{
"content": "SELECT cpu FROM table_11703336_1 WHERE ram = \"28 KB of ram\" AND display_size = \"128×64 pixels 21×8 characters\"",
"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_77 (stake VARCHAR, organized VARCHAR)",
"role": "system"
},
{
"content": "What was the stake president when the organized date is April 18, 1965?",
"role": "user"
},
{
"content": "SELECT stake AS President FROM table_name_77 WHERE organized = \"april 18, 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_24399615_4 (viewers VARCHAR, bbc_three_weekly_ranking VARCHAR)",
"role": "system"
},
{
"content": "How many items are listed under viewers column when the bbd three weekly ranking was 1?",
"role": "user"
},
{
"content": "SELECT COUNT(viewers) FROM table_24399615_4 WHERE bbc_three_weekly_ranking = \"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_3 (pick INTEGER, player VARCHAR)",
"role": "system"
},
{
"content": "What is the average pick of player jim h. mitchell?",
"role": "user"
},
{
"content": "SELECT AVG(pick) FROM table_name_3 WHERE player = \"jim h. mitchell\"",
"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_1506950_4 (player VARCHAR, finish VARCHAR)",
"role": "system"
},
{
"content": "What players finished 2nd?",
"role": "user"
},
{
"content": "SELECT player FROM table_1506950_4 WHERE finish = \"2nd\"",
"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 (dob VARCHAR, surname VARCHAR)",
"role": "system"
},
{
"content": "Which DOB has a Surname of cresswell?",
"role": "user"
},
{
"content": "SELECT dob FROM table_name_40 WHERE surname = \"cresswell\"",
"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 (erp_w INTEGER, frequency_mhz VARCHAR)",
"role": "system"
},
{
"content": "Which ERP W is the lowest one that has a Frequency MHz of 91.3?",
"role": "user"
},
{
"content": "SELECT MIN(erp_w) FROM table_name_58 WHERE frequency_mhz = 91.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_96 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)",
"role": "system"
},
{
"content": "How many grids have more than 24 laps with a time/retired of +1:12.208?",
"role": "user"
},
{
"content": "SELECT SUM(grid) FROM table_name_96 WHERE time_retired = \"+1:12.208\" AND laps > 24",
"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 (artist VARCHAR, draw INTEGER)",
"role": "system"
},
{
"content": "What is the artist with less than a 2 draw?",
"role": "user"
},
{
"content": "SELECT artist FROM table_name_88 WHERE draw < 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_22815568_6 (county VARCHAR, unemployment_rate VARCHAR)",
"role": "system"
},
{
"content": "What county is the unemployment rate 4.8%?",
"role": "user"
},
{
"content": "SELECT county FROM table_22815568_6 WHERE unemployment_rate = \"4.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_17103729_8 (location_attendance VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "Name the location of 64-74",
"role": "user"
},
{
"content": "SELECT location_attendance FROM table_17103729_8 WHERE score = \"64-74\"",
"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 (home VARCHAR, visitor VARCHAR)",
"role": "system"
},
{
"content": "Name the home with chicago visiting",
"role": "user"
},
{
"content": "SELECT home FROM table_name_76 WHERE visitor = \"chicago\"",
"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_22 (year VARCHAR, fleet_number VARCHAR)",
"role": "system"
},
{
"content": "Which year has a fleet number of 603?",
"role": "user"
},
{
"content": "SELECT year FROM table_name_22 WHERE fleet_number = \"603\"",
"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_22 (moving_from VARCHAR, type VARCHAR, nat VARCHAR)",
"role": "system"
},
{
"content": "What is the moving from with a transfer and the nationality of Bra?",
"role": "user"
},
{
"content": "SELECT moving_from FROM table_name_22 WHERE type = \"transfer\" AND nat = \"bra\"",
"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 (res VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "What is the result of the match with Jeff Monson as opponent?",
"role": "user"
},
{
"content": "SELECT res FROM table_name_96 WHERE opponent = \"jeff monson\"",
"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 (moving_to VARCHAR, country VARCHAR)",
"role": "system"
},
{
"content": "WHAT IS THE MOVING TO LOCATION WITH BEL AS COUNTRY?",
"role": "user"
},
{
"content": "SELECT moving_to FROM table_name_27 WHERE country = \"bel\"",
"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 mill (name VARCHAR, built_year VARCHAR, TYPE VARCHAR)",
"role": "system"
},
{
"content": "What are the names and year of construction for the mills of 'Grondzeiler' type?",
"role": "user"
},
{
"content": "SELECT name, built_year FROM mill WHERE TYPE = 'Grondzeiler'",
"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 (ratings VARCHAR, host VARCHAR, viewers VARCHAR)",
"role": "system"
},
{
"content": "What were the ratings for host Chris Economaki who had 12.3 million viewers?",
"role": "user"
},
{
"content": "SELECT ratings FROM table_name_83 WHERE host = \"chris economaki\" AND viewers = \"12.3 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_5 (player VARCHAR, to_par VARCHAR, country VARCHAR)",
"role": "system"
},
{
"content": "Which Player has a To par of –5, and a Country of england?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_5 WHERE to_par = \"–5\" AND country = \"england\"",
"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 (rank INTEGER, location VARCHAR, current_seating_capacity VARCHAR)",
"role": "system"
},
{
"content": "What is the highest Rank, when Location is Kinshasa, DR Congo, and when Current Seating Capacity is less than 80,000?",
"role": "user"
},
{
"content": "SELECT MAX(rank) FROM table_name_90 WHERE location = \"kinshasa, dr congo\" AND current_seating_capacity < 80 OFFSET 000",
"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_44 (game INTEGER, date VARCHAR)",
"role": "system"
},
{
"content": "What number game happened on November 19?",
"role": "user"
},
{
"content": "SELECT MAX(game) FROM table_name_44 WHERE date = \"november 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_11694832_1 (title VARCHAR, production_code VARCHAR)",
"role": "system"
},
{
"content": "What is the episode title of the show that had a production code of 3T5764?",
"role": "user"
},
{
"content": "SELECT title FROM table_11694832_1 WHERE production_code = \"3T5764\"",
"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 departments (department_name VARCHAR, department_id VARCHAR); CREATE TABLE employees (department_id VARCHAR)",
"role": "system"
},
{
"content": "find the name of all departments that do actually have one or more employees assigned to them.",
"role": "user"
},
{
"content": "SELECT DISTINCT T2.department_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_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_86 (draws INTEGER, season VARCHAR, wins VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest Draws for a season later than 1919 with more than 0 wins?",
"role": "user"
},
{
"content": "SELECT MIN(draws) FROM table_name_86 WHERE season > 1919 AND wins > 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_70 (b_score INTEGER, total VARCHAR, position VARCHAR)",
"role": "system"
},
{
"content": "What is the B Score when the total is more than 16.125, and position is 3rd?",
"role": "user"
},
{
"content": "SELECT SUM(b_score) FROM table_name_70 WHERE total > 16.125 AND position = \"3rd\"",
"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_22765887_1 (track VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Which track was used on September 12, 1981? ",
"role": "user"
},
{
"content": "SELECT track FROM table_22765887_1 WHERE date = \"September 12, 1981\"",
"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 (voice_actor__harmony_gold_ova_dub_ VARCHAR, japanese_voice_actor VARCHAR)",
"role": "system"
},
{
"content": "Who is the voice actor of the character with the Japanese voice actor Yoku Shioya?",
"role": "user"
},
{
"content": "SELECT voice_actor__harmony_gold_ova_dub_ FROM table_name_48 WHERE japanese_voice_actor = \"yoku shioya\"",
"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_1670921_2 (wicket VARCHAR, runs VARCHAR, fielding_team VARCHAR)",
"role": "system"
},
{
"content": "What are the wickets when there are 451 runs and india is the fielding team?",
"role": "user"
},
{
"content": "SELECT wicket FROM table_1670921_2 WHERE runs = \"451\" AND fielding_team = \"India\"",
"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 (pick INTEGER, player VARCHAR, position VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest pick number for Arturo McDowell, who plays the OF position for the San Francisco Giants?",
"role": "user"
},
{
"content": "SELECT MIN(pick) FROM table_name_13 WHERE position = \"of\" AND team = \"san francisco giants\" AND player = \"arturo mcdowell\"",
"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_11603006_1 (tournament VARCHAR, location VARCHAR)",
"role": "system"
},
{
"content": "How many tournaments were held in Maryland?",
"role": "user"
},
{
"content": "SELECT COUNT(tournament) FROM table_11603006_1 WHERE location = \"Maryland\"",
"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 (president VARCHAR, elected VARCHAR)",
"role": "system"
},
{
"content": "What president was elected in 2010?",
"role": "user"
},
{
"content": "SELECT president FROM table_name_69 WHERE elected = 2010",
"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 (goals VARCHAR, latest_cap VARCHAR)",
"role": "system"
},
{
"content": "Latest cap of september 5, 2011 had how many goals?",
"role": "user"
},
{
"content": "SELECT goals FROM table_name_39 WHERE latest_cap = \"september 5, 2011\"",
"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 (date VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "Which Date has a Record of 7-9?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_48 WHERE record = \"7-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_7 (to_par VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What is the To par of the Player with a Score of 70-72-73=215?",
"role": "user"
},
{
"content": "SELECT to_par FROM table_name_7 WHERE score = 70 - 72 - 73 = 215",
"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 (races INTEGER, pole VARCHAR, season VARCHAR, flaps VARCHAR, podiums VARCHAR)",
"role": "system"
},
{
"content": "WHAT ARE THE RACES WHEN FLAPS ARE ZERO, PODIUMS ARE LARGER THAN 0, SEASON IS 2008, AND POLE SMALLER THAN 1?",
"role": "user"
},
{
"content": "SELECT SUM(races) FROM table_name_93 WHERE flaps = 0 AND podiums > 0 AND season = \"2008\" AND pole < 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_21 (year VARCHAR, reg_season VARCHAR, open_cup VARCHAR)",
"role": "system"
},
{
"content": "What year was the team 8th in the season and made it to the 3rd round in Open Cup?",
"role": "user"
},
{
"content": "SELECT year FROM table_name_21 WHERE reg_season = \"8th\" AND open_cup = \"3rd round\"",
"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 (place VARCHAR, building VARCHAR)",
"role": "system"
},
{
"content": "Name the place with building of victoria hall",
"role": "user"
},
{
"content": "SELECT place FROM table_name_93 WHERE building = \"victoria hall\"",
"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_7 (position VARCHAR, first_team_appearances VARCHAR)",
"role": "system"
},
{
"content": "Which position has had 7 first-team appearances?",
"role": "user"
},
{
"content": "SELECT position FROM table_name_7 WHERE first_team_appearances = \"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_21 (winner VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is the name of the winner on 18 may?",
"role": "user"
},
{
"content": "SELECT winner FROM table_name_21 WHERE date = \"18 may\"",
"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 (class_aA VARCHAR, class_a VARCHAR, class_aAA VARCHAR, burnet VARCHAR)",
"role": "system"
},
{
"content": "If the Class A is Anton and Class AAA is Burnet, what is Class AA?",
"role": "user"
},
{
"content": "SELECT class_aA FROM table_name_88 WHERE class_a = \"anton\" AND class_aAA = burnet",
"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, date VARCHAR)",
"role": "system"
},
{
"content": "What is the result for the game on May 27, 2006?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_19 WHERE date = \"may 27, 2006\"",
"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 (crowd INTEGER, home_team VARCHAR)",
"role": "system"
},
{
"content": "What is the highest crowd for Home team of geelong?",
"role": "user"
},
{
"content": "SELECT MAX(crowd) FROM table_name_47 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_2 (film_of_the_year VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Which movie was awarded Film of the Year on May 8, 1964?",
"role": "user"
},
{
"content": "SELECT film_of_the_year FROM table_name_2 WHERE date = \"may 8, 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_name_73 (date VARCHAR, attendance VARCHAR)",
"role": "system"
},
{
"content": "Which Date has an Attendance of 9,535?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_73 WHERE attendance = \"9,535\"",
"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 (team_2 VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What is Team 2, when Score is 2 - 1?",
"role": "user"
},
{
"content": "SELECT team_2 FROM table_name_86 WHERE score = \"2 - 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_18 (country VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What country is Retief Goosen from?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_18 WHERE player = \"retief goosen\"",
"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_23286112_8 (game INTEGER, date VARCHAR)",
"role": "system"
},
{
"content": "Name the least game for january 29",
"role": "user"
},
{
"content": "SELECT MIN(game) FROM table_23286112_8 WHERE date = \"January 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_51 (result VARCHAR, week VARCHAR)",
"role": "system"
},
{
"content": "what was the result in week 10?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_51 WHERE week = 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_1505809_2 (Ends VARCHAR, blank_ends VARCHAR)",
"role": "system"
},
{
"content": "What is the value of Ends Lost when Blank Ends is 9.",
"role": "user"
},
{
"content": "SELECT Ends AS lost FROM table_1505809_2 WHERE blank_ends = 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_25107064_2 (Ends VARCHAR, blank_ends VARCHAR)",
"role": "system"
},
{
"content": "Name the ends won for blank ends for 0",
"role": "user"
},
{
"content": "SELECT Ends AS won FROM table_25107064_2 WHERE blank_ends = 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_45 (name VARCHAR, team VARCHAR, birthdate VARCHAR)",
"role": "system"
},
{
"content": "What is the Name when the team is the st. paul a.c., with a Birthdate of 3 august 1890?",
"role": "user"
},
{
"content": "SELECT name FROM table_name_45 WHERE team = \"st. paul a.c.\" AND birthdate = \"3 august 1890\"",
"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_16575609_5 (position VARCHAR, pick__number VARCHAR)",
"role": "system"
},
{
"content": "What position is the player drafted with pick 34?",
"role": "user"
},
{
"content": "SELECT position FROM table_16575609_5 WHERE pick__number = 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_87 (fastest_lap VARCHAR, race VARCHAR)",
"role": "system"
},
{
"content": "Who had the fastest lap at the German Grand Prix?",
"role": "user"
},
{
"content": "SELECT fastest_lap FROM table_name_87 WHERE race = \"german grand prix\"",
"role": "assistant"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.