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_73 (date VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "WHich Date has a Record of 2–7–0–1?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_73 WHERE record = \"2–7–0–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_93 (podiums VARCHAR, class VARCHAR)",
"role": "system"
},
{
"content": "If the class is total, what is the total number of podiums?",
"role": "user"
},
{
"content": "SELECT COUNT(podiums) FROM table_name_93 WHERE class = \"total\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (team VARCHAR, qual_1 VARCHAR)",
"role": "system"
},
{
"content": "What is the team name for the racer who had a first qualification time of 1:22.655?",
"role": "user"
},
{
"content": "SELECT team FROM table_name_17 WHERE qual_1 = \"1:22.655\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (voice_actor__adv_tv_sentai_ova_dub_ VARCHAR, gatchaman VARCHAR)",
"role": "system"
},
{
"content": "Who was the voice actor (ADV TV/Sentai OVA dub) for the Gatchaman, jun?",
"role": "user"
},
{
"content": "SELECT voice_actor__adv_tv_sentai_ova_dub_ FROM table_name_22 WHERE gatchaman = \"jun\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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_18 (couple VARCHAR, rank VARCHAR)",
"role": "system"
},
{
"content": "When 9 is the rank who are the couple?",
"role": "user"
},
{
"content": "SELECT couple FROM table_19744915_18 WHERE rank = 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_1966992_1 (administrative_capital VARCHAR, lga_name VARCHAR)",
"role": "system"
},
{
"content": "What is the administrative capital of LGA name Akuku-Toru?",
"role": "user"
},
{
"content": "SELECT administrative_capital FROM table_1966992_1 WHERE lga_name = \"Akuku-Toru\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (total INTEGER, silver VARCHAR, bronze VARCHAR, gold VARCHAR)",
"role": "system"
},
{
"content": "What is the highest total that has a bronze greater than 1, a gold greater than 1, with a silver less than 4?",
"role": "user"
},
{
"content": "SELECT MAX(total) FROM table_name_34 WHERE bronze > 1 AND gold > 1 AND silver < 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 Highschooler (grade VARCHAR)",
"role": "system"
},
{
"content": "How many high schoolers are there in grade 9 or 10?",
"role": "user"
},
{
"content": "SELECT COUNT(*) FROM Highschooler WHERE grade = 9 OR grade = 10",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_20 (ovrs INTEGER, econ VARCHAR)",
"role": "system"
},
{
"content": "What is the highest Ovrs, when Econ is 2.02?",
"role": "user"
},
{
"content": "SELECT MAX(ovrs) FROM table_name_20 WHERE econ = 2.02",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE CARS_DATA (Id VARCHAR, Horsepower INTEGER, Cylinders VARCHAR); CREATE TABLE CAR_NAMES (MakeId VARCHAR, Make VARCHAR); CREATE TABLE CARS_DATA (Horsepower INTEGER)",
"role": "system"
},
{
"content": "Among the cars with more than lowest horsepower, which ones do not have more than 3 cylinders? List the car makeid and make name.",
"role": "user"
},
{
"content": "SELECT T2.MakeId, T2.Make FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Horsepower > (SELECT MIN(Horsepower) FROM CARS_DATA) AND T1.Cylinders <= 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_1404984_1 (virtual_channel VARCHAR, network VARCHAR)",
"role": "system"
},
{
"content": "What is HSN's official virtual channel in Minneapolis-St. Paul?",
"role": "user"
},
{
"content": "SELECT virtual_channel FROM table_1404984_1 WHERE network = \"HSN\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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_98 (format VARCHAR, code VARCHAR)",
"role": "system"
},
{
"content": "What is the format of code pro-cd-4662?",
"role": "user"
},
{
"content": "SELECT format FROM table_name_98 WHERE code = \"pro-cd-4662\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_19333752_1 (national_cup VARCHAR, championship VARCHAR)",
"role": "system"
},
{
"content": "What is the national cup statistics when the Championship is 21 app / 6 goals?",
"role": "user"
},
{
"content": "SELECT national_cup FROM table_19333752_1 WHERE championship = \"21 app / 6 goals\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2803662_3 (type VARCHAR, town VARCHAR)",
"role": "system"
},
{
"content": "When stuttgart is the town what is the type?",
"role": "user"
},
{
"content": "SELECT type FROM table_2803662_3 WHERE town = \"Stuttgart\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (venue VARCHAR, tournament VARCHAR)",
"role": "system"
},
{
"content": "Where was the Olympic Games held?",
"role": "user"
},
{
"content": "SELECT venue FROM table_name_29 WHERE tournament = \"olympic games\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (winning_driver VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What Winning driver has a Name of mugello circuit?",
"role": "user"
},
{
"content": "SELECT winning_driver FROM table_name_55 WHERE name = \"mugello circuit\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (gold INTEGER, bronze VARCHAR, total VARCHAR)",
"role": "system"
},
{
"content": "Which Gold has a Bronze of 1, and a Total smaller than 3?",
"role": "user"
},
{
"content": "SELECT AVG(gold) FROM table_name_21 WHERE bronze = 1 AND total < 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_20860739_1 (college VARCHAR, height VARCHAR)",
"role": "system"
},
{
"content": "What college has a player that is 6'1?",
"role": "user"
},
{
"content": "SELECT college FROM table_20860739_1 WHERE height = \"6'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_77 (entrant VARCHAR, year VARCHAR, engine VARCHAR)",
"role": "system"
},
{
"content": "What entrant has a year earlier than 1960 and a veritas straight-6 engine?",
"role": "user"
},
{
"content": "SELECT entrant FROM table_name_77 WHERE year < 1960 AND engine = \"veritas straight-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_11803648_22 (position VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What is the position of player Tobias Lindberg?",
"role": "user"
},
{
"content": "SELECT position FROM table_11803648_22 WHERE player = \"Tobias Lindberg\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (n117_2400_iec3 VARCHAR, n100_iec3 VARCHAR)",
"role": "system"
},
{
"content": "What is the N117/2400 IEC3 associated with an N100IEC3 of 25?",
"role": "user"
},
{
"content": "SELECT n117_2400_iec3 FROM table_name_10 WHERE n100_iec3 = \"25\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_43 (comparative VARCHAR, link VARCHAR)",
"role": "system"
},
{
"content": "Which Comparative has a Link of sourcecode webserver?",
"role": "user"
},
{
"content": "SELECT comparative FROM table_name_43 WHERE link = \"sourcecode webserver\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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_94 (no_10 VARCHAR, no_8 VARCHAR, no_9 VARCHAR)",
"role": "system"
},
{
"content": "Name the No. 10 which has a No. 8 of jackson, and a No. 9 of jayden?",
"role": "user"
},
{
"content": "SELECT no_10 FROM table_name_94 WHERE no_8 = \"jackson\" AND no_9 = \"jayden\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_78 (runner_up VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "Who is the runner-up in 1901?",
"role": "user"
},
{
"content": "SELECT runner_up FROM table_name_78 WHERE year = \"1901\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14649522_1 (college VARCHAR, position VARCHAR, pick__number VARCHAR)",
"role": "system"
},
{
"content": "Which college was the wide receiver whose pick was less than 130.0 picked from?",
"role": "user"
},
{
"content": "SELECT college FROM table_14649522_1 WHERE position = \"Wide Receiver\" AND pick__number < 130.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 (episode VARCHAR, performer_3 VARCHAR)",
"role": "system"
},
{
"content": "What is the total number of episodes where hugh laurie was the 3rd performer?",
"role": "user"
},
{
"content": "SELECT COUNT(episode) FROM table_name_70 WHERE performer_3 = \"hugh laurie\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17356205_1 (title VARCHAR, directed_by VARCHAR)",
"role": "system"
},
{
"content": "How many titles are given for the episode directed by Joanna Kerns?",
"role": "user"
},
{
"content": "SELECT COUNT(title) FROM table_17356205_1 WHERE directed_by = \"Joanna Kerns\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (perpetrator VARCHAR, location VARCHAR)",
"role": "system"
},
{
"content": "Who went on a rampage in Baghdad?",
"role": "user"
},
{
"content": "SELECT perpetrator FROM table_name_85 WHERE location = \"baghdad\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1140074_2 (pole_position VARCHAR, location VARCHAR)",
"role": "system"
},
{
"content": "what's the pole position with location being hockenheimring",
"role": "user"
},
{
"content": "SELECT pole_position FROM table_1140074_2 WHERE location = \"Hockenheimring\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2581397_5 (date VARCHAR, race VARCHAR)",
"role": "system"
},
{
"content": "What date was the Doncaster race? ",
"role": "user"
},
{
"content": "SELECT date FROM table_2581397_5 WHERE race = \"Doncaster\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (week INTEGER, attendance VARCHAR, result VARCHAR)",
"role": "system"
},
{
"content": "What is the Week of the game with an Attendance of 64,900 and a Result of L 34-13?",
"role": "user"
},
{
"content": "SELECT MAX(week) FROM table_name_83 WHERE attendance = \"64,900\" AND result = \"l 34-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_65 (laps VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "How many laps have 50 points?",
"role": "user"
},
{
"content": "SELECT laps FROM table_name_65 WHERE points = \"50\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_33 (composer_s_ VARCHAR, time VARCHAR)",
"role": "system"
},
{
"content": "Which composer has a track length of 2:50?",
"role": "user"
},
{
"content": "SELECT composer_s_ FROM table_name_33 WHERE time = \"2:50\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_5 (set_2 VARCHAR, set_3 VARCHAR, time VARCHAR)",
"role": "system"
},
{
"content": "Which Set 2 has a Set 3 of 25–20, and a Time of 13:45?",
"role": "user"
},
{
"content": "SELECT set_2 FROM table_name_5 WHERE set_3 = \"25–20\" AND time = \"13:45\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (name VARCHAR, avg_g VARCHAR)",
"role": "system"
},
{
"content": "what is the name when avg/g is 13.7?",
"role": "user"
},
{
"content": "SELECT name FROM table_name_1 WHERE avg_g = 13.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_71 (region VARCHAR, japanese VARCHAR)",
"role": "system"
},
{
"content": "What region has the symbol 八尾?",
"role": "user"
},
{
"content": "SELECT region FROM table_name_71 WHERE japanese = \"八尾\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (venue VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is Venue, when Date is 23,24,26,27,28,29 Feb, 1 Mar 1912?",
"role": "user"
},
{
"content": "SELECT venue FROM table_name_82 WHERE date = \"23,24,26,27,28,29 feb, 1 mar 1912\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (overall INTEGER, position VARCHAR, round VARCHAR)",
"role": "system"
},
{
"content": "During round 8 when the Position being picked was rb, what was the highest overall pick?",
"role": "user"
},
{
"content": "SELECT MAX(overall) FROM table_name_62 WHERE position = \"rb\" AND round = 8",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_77 (cardinalatial_title VARCHAR, elevator VARCHAR)",
"role": "system"
},
{
"content": "Which Cardinalatial Title has an Elevator of pope eugenius iv?",
"role": "user"
},
{
"content": "SELECT cardinalatial_title FROM table_name_77 WHERE elevator = \"pope eugenius iv\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE country (Code VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR)",
"role": "system"
},
{
"content": "Which countries have either English or Dutch as an official language?",
"role": "user"
},
{
"content": "SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" AND IsOfficial = \"T\" UNION SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Dutch\" AND IsOfficial = \"T\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22517564_3 (jockey VARCHAR, opening_odds VARCHAR)",
"role": "system"
},
{
"content": "Who was the jockey with opening odds of 4-1?",
"role": "user"
},
{
"content": "SELECT jockey FROM table_22517564_3 WHERE opening_odds = \"4-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_87 (award_ceremony VARCHAR, nominee VARCHAR, category VARCHAR)",
"role": "system"
},
{
"content": "Which Award Ceremony has a Nominee of sarah travis, and a Category of the best orchestrations?",
"role": "user"
},
{
"content": "SELECT award_ceremony FROM table_name_87 WHERE nominee = \"sarah travis\" AND category = \"best orchestrations\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (ungegn VARCHAR, khmer VARCHAR)",
"role": "system"
},
{
"content": "what's the ungegn for the ១០០ khmer?",
"role": "user"
},
{
"content": "SELECT ungegn FROM table_name_23 WHERE khmer = \"១០០\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (semi_finalists VARCHAR, runner_up VARCHAR)",
"role": "system"
},
{
"content": "Who were semi-finalists in the event with a runner-up of Lisa Raymond?",
"role": "user"
},
{
"content": "SELECT semi_finalists FROM table_name_3 WHERE runner_up = \"lisa raymond\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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_59 (year VARCHAR, definition VARCHAR, borough VARCHAR, rank VARCHAR)",
"role": "system"
},
{
"content": "Which Year has a Borough of harrogate, and a Rank smaller than 6, and a Definition of civil parish?",
"role": "user"
},
{
"content": "SELECT year FROM table_name_59 WHERE borough = \"harrogate\" AND rank < 6 AND definition = \"civil parish\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (home_team VARCHAR, date VARCHAR, tie_no VARCHAR)",
"role": "system"
},
{
"content": "Who was the home team on 8 January 1946 with a tie no of 4?",
"role": "user"
},
{
"content": "SELECT home_team FROM table_name_71 WHERE date = \"8 january 1946\" AND tie_no = \"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_name_65 (gauthier VARCHAR, liscumb VARCHAR)",
"role": "system"
},
{
"content": "What Gauthier had a 15 Liscumb?",
"role": "user"
},
{
"content": "SELECT gauthier FROM table_name_65 WHERE liscumb = \"15\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_12 (match_report VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is the match report of the match on 20 August?",
"role": "user"
},
{
"content": "SELECT match_report FROM table_name_12 WHERE date = \"20 august\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (opponent VARCHAR, round VARCHAR)",
"role": "system"
},
{
"content": "Who was the opponent at the qf(r) round?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_9 WHERE round = \"qf(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_19839391_3 (no_decisions INTEGER, winning__percentage VARCHAR, wins VARCHAR)",
"role": "system"
},
{
"content": "how many \"no decisions\" are there with 3 wins and a win percentage of 1.000?",
"role": "user"
},
{
"content": "SELECT MIN(no_decisions) FROM table_19839391_3 WHERE winning__percentage = \"1.000\" AND wins = 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_89 (season_7 VARCHAR, seat VARCHAR, season_3 VARCHAR)",
"role": "system"
},
{
"content": "Which Season 7 has a Seat larger than 1, and a Season 3 of w. brett wilson?",
"role": "user"
},
{
"content": "SELECT season_7 FROM table_name_89 WHERE seat > 1 AND season_3 = \"w. brett wilson\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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_54 (on_air_id VARCHAR, band VARCHAR, callsign VARCHAR)",
"role": "system"
},
{
"content": "What is the On-air ID of FM broadcaster 4nsa?",
"role": "user"
},
{
"content": "SELECT on_air_id FROM table_name_54 WHERE band = \"fm\" AND callsign = \"4nsa\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (bronze INTEGER, nation VARCHAR, total VARCHAR)",
"role": "system"
},
{
"content": "What is the least amount of bronze Andorra, who has more than 6 total medals, has?",
"role": "user"
},
{
"content": "SELECT MIN(bronze) FROM table_name_86 WHERE nation = \"andorra\" AND total > 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_56 (country VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What is Country, when Player is \"Jack Nicklaus\"?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_56 WHERE player = \"jack nicklaus\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (wins INTEGER, poles INTEGER)",
"role": "system"
},
{
"content": "What is the highest number of wins associated with under 0 poles?",
"role": "user"
},
{
"content": "SELECT MAX(wins) FROM table_name_36 WHERE poles < 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_28 (margin_of_victory VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What was the margin of victory on Apr 8, 1979?",
"role": "user"
},
{
"content": "SELECT margin_of_victory FROM table_name_28 WHERE date = \"apr 8, 1979\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (branding VARCHAR, frequency VARCHAR)",
"role": "system"
},
{
"content": "What's the branding for frequency 1233khz?",
"role": "user"
},
{
"content": "SELECT branding FROM table_name_5 WHERE frequency = \"1233khz\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2876467_3 (second_place INTEGER, region_represented VARCHAR)",
"role": "system"
},
{
"content": "What is the maximum number of 2nd places for Tajikistan?",
"role": "user"
},
{
"content": "SELECT MAX(second_place) FROM table_2876467_3 WHERE region_represented = \"Tajikistan\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (home VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "what team scored 5–5–1–1?",
"role": "user"
},
{
"content": "SELECT home FROM table_name_71 WHERE record = \"5–5–1–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_9 (driver VARCHAR, laps VARCHAR)",
"role": "system"
},
{
"content": "Which driver had 248 laps?",
"role": "user"
},
{
"content": "SELECT driver FROM table_name_9 WHERE laps = 248",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23466021_4 (opponent VARCHAR, attendance VARCHAR)",
"role": "system"
},
{
"content": "Which opponent has 32194 as the attendance?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_23466021_4 WHERE attendance = 32194",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (wins INTEGER, club VARCHAR, goals_for VARCHAR)",
"role": "system"
},
{
"content": "Can you tell me the sum of Wins that has the Club of abuls smiltene, and the Goals smaller than 18?",
"role": "user"
},
{
"content": "SELECT SUM(wins) FROM table_name_47 WHERE club = \"abuls smiltene\" AND goals_for < 18",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (score VARCHAR, opponent VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is the score from September 15 that has the Indians as the opponent?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_35 WHERE opponent = \"indians\" AND date = \"september 15\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (goals_for INTEGER, goals_against VARCHAR, played VARCHAR)",
"role": "system"
},
{
"content": "What is the highest amount of goals with more than 51 goals against and less than 30 played?",
"role": "user"
},
{
"content": "SELECT MAX(goals_for) FROM table_name_66 WHERE goals_against > 51 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_14 (date VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "What was date of the game when the record was 31-15?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_14 WHERE record = \"31-15\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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_32 (team VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "WHAT IS THE TEAM WITH DAVE COGGIN?",
"role": "user"
},
{
"content": "SELECT team FROM table_name_32 WHERE player = \"dave coggin\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (points INTEGER, best_time VARCHAR)",
"role": "system"
},
{
"content": "How many points associated with a Best time of 01:46.367?",
"role": "user"
},
{
"content": "SELECT AVG(points) FROM table_name_76 WHERE best_time = \"01:46.367\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20174050_24 (reader VARCHAR, author VARCHAR, release_date VARCHAR)",
"role": "system"
},
{
"content": "who is the reader of the audiobook authored by cole, stephen stephen cole and released on 2008-11-13 13 november 2008",
"role": "user"
},
{
"content": "SELECT reader FROM table_20174050_24 WHERE author = \"Cole, Stephen Stephen Cole\" AND release_date = \"2008-11-13 13 November 2008\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_13114949_3 (event VARCHAR, qualifying_score VARCHAR)",
"role": "system"
},
{
"content": "how many times was the qualifying score 60.750?",
"role": "user"
},
{
"content": "SELECT COUNT(event) FROM table_13114949_3 WHERE qualifying_score = \"60.750\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (website VARCHAR, language VARCHAR, frequency VARCHAR)",
"role": "system"
},
{
"content": "Which website is in english and has the frequency of an online newspaper ?",
"role": "user"
},
{
"content": "SELECT website FROM table_name_77 WHERE language = \"english\" AND frequency = \"online newspaper\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (score_points VARCHAR, event VARCHAR, rank_points VARCHAR)",
"role": "system"
},
{
"content": "What is the score points in WC Kerrville, when rank was points of 8?",
"role": "user"
},
{
"content": "SELECT score_points FROM table_name_99 WHERE event = \"wc kerrville\" AND rank_points = \"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 customers (customer_details VARCHAR, customer_id VARCHAR); CREATE TABLE claim_headers (amount_claimed INTEGER); CREATE TABLE policies (policy_id VARCHAR, customer_id VARCHAR); CREATE TABLE claim_headers (policy_id VARCHAR, amount_claimed INTEGER)",
"role": "system"
},
{
"content": "What is the name of the customer who has made the largest amount of claim in a single claim?",
"role": "user"
},
{
"content": "SELECT t3.customer_details FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id = t2.policy_id JOIN customers AS t3 ON t2.customer_id = t3.customer_id WHERE t1.amount_claimed = (SELECT MAX(amount_claimed) FROM claim_headers)",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (draws INTEGER, wins INTEGER)",
"role": "system"
},
{
"content": "What draws are the lowest when wins are larger than 18?",
"role": "user"
},
{
"content": "SELECT MIN(draws) FROM table_name_44 WHERE wins > 18",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_80 (home_team VARCHAR, date VARCHAR, away_team VARCHAR)",
"role": "system"
},
{
"content": "Who was the home team on April 13, 2008 when Itabuna was the away team?",
"role": "user"
},
{
"content": "SELECT home_team FROM table_name_80 WHERE date = \"april 13, 2008\" AND away_team = \"itabuna\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (three VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Name the three for 16 december 1676",
"role": "user"
},
{
"content": "SELECT three FROM table_name_83 WHERE date = \"16 december 1676\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (away_team VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "What was the away team's score at Western Oval?",
"role": "user"
},
{
"content": "SELECT away_team AS score FROM table_name_75 WHERE venue = \"western oval\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE COUNTRIES (continent VARCHAR, CountryId VARCHAR); CREATE TABLE CONTINENTS (Continent VARCHAR, ContId VARCHAR); CREATE TABLE car_makers (Country VARCHAR)",
"role": "system"
},
{
"content": "How many car makers are there in each continents? List the continent name and the count.",
"role": "user"
},
{
"content": "SELECT T1.Continent, COUNT(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.continent JOIN car_makers AS T3 ON T2.CountryId = T3.Country GROUP BY T1.Continent",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (gold INTEGER, silver VARCHAR, bronze VARCHAR)",
"role": "system"
},
{
"content": "What is the highest number of gold medals won by a team that won fewer than 2 silver and fewer than 4 bronze medals?",
"role": "user"
},
{
"content": "SELECT MAX(gold) FROM table_name_83 WHERE silver < 2 AND bronze < 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_name_17 (club VARCHAR, group VARCHAR, stadium VARCHAR)",
"role": "system"
},
{
"content": "When in 2009 season has a Group of group b, and cancha del mystic with a Club of el tecal?",
"role": "user"
},
{
"content": "SELECT 2009 AS _season FROM table_name_17 WHERE group = \"group b\" AND stadium = \"cancha del mystic\" AND club = \"el tecal\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22883210_10 (score VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "Name the score for 49-31",
"role": "user"
},
{
"content": "SELECT score FROM table_22883210_10 WHERE record = \"49-31\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_26 (model VARCHAR, years VARCHAR)",
"role": "system"
},
{
"content": "What was the model that had years 2004-?",
"role": "user"
},
{
"content": "SELECT model FROM table_name_26 WHERE years = \"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_67 (date VARCHAR, catalogue VARCHAR)",
"role": "system"
},
{
"content": "What was Catalogue tojp 60121-22's Date?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_67 WHERE catalogue = \"tojp 60121-22\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_11 (away_team VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "What is moorabbin oval's away team?",
"role": "user"
},
{
"content": "SELECT away_team FROM table_name_11 WHERE venue = \"moorabbin oval\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (type_of_game VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What Type of game was played on Date of July 29?",
"role": "user"
},
{
"content": "SELECT type_of_game FROM table_name_28 WHERE date = \"july 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_59 (record VARCHAR, home VARCHAR, visitor VARCHAR)",
"role": "system"
},
{
"content": "Can you tell me the Record that has the Home of detroit, and the Visitor of phoenix?",
"role": "user"
},
{
"content": "SELECT record FROM table_name_59 WHERE home = \"detroit\" AND visitor = \"phoenix\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (worldwide_gross VARCHAR, director_s_ VARCHAR, rank VARCHAR, studio VARCHAR)",
"role": "system"
},
{
"content": "For the movie directed by Martin Campbell at Columbia pictures with a ranking larger than 8, what is its worldwide gross?",
"role": "user"
},
{
"content": "SELECT worldwide_gross FROM table_name_43 WHERE rank > 8 AND studio = \"columbia pictures\" AND director_s_ = \"martin campbell\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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_32 (home_team VARCHAR, date VARCHAR, away_team VARCHAR)",
"role": "system"
},
{
"content": "On 27 January 1968 who was the Home Team when the Away team was Carlisle United?",
"role": "user"
},
{
"content": "SELECT home_team FROM table_name_32 WHERE date = \"27 january 1968\" AND away_team = \"carlisle united\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Staff (date_of_birth VARCHAR, first_name VARCHAR, last_name VARCHAR)",
"role": "system"
},
{
"content": "What is the birthday of the staff member with first name as Janessa and last name as Sawayn?",
"role": "user"
},
{
"content": "SELECT date_of_birth FROM Staff WHERE first_name = \"Janessa\" AND last_name = \"Sawayn\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (winning_driver VARCHAR, race VARCHAR)",
"role": "system"
},
{
"content": "Who was the winning driver of the Argentine Grand Prix?",
"role": "user"
},
{
"content": "SELECT winning_driver FROM table_name_96 WHERE race = \"argentine grand prix\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_64 (year VARCHAR, runner_s__up VARCHAR)",
"role": "system"
},
{
"content": "What Year had a Runner(s)-up of flory van donck?",
"role": "user"
},
{
"content": "SELECT year FROM table_name_64 WHERE runner_s__up = \"flory van donck\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (district VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What is district has a name of Rajnagar?",
"role": "user"
},
{
"content": "SELECT district FROM table_name_88 WHERE name = \"rajnagar\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_16105186_2 (us_national_average_electric_mix VARCHAR, midwest__des_moines_ VARCHAR)",
"role": "system"
},
{
"content": "What was the US national average electric mix rating for the vehicle that was rated 280 g/mi (174 g/km) in the Midwest?",
"role": "user"
},
{
"content": "SELECT us_national_average_electric_mix FROM table_16105186_2 WHERE midwest__des_moines_ = \"280 g/mi (174 g/km)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (round VARCHAR, position VARCHAR)",
"role": "system"
},
{
"content": "Which round's position is according to official website?",
"role": "user"
},
{
"content": "SELECT round FROM table_name_30 WHERE position = \"according to official website\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (Id VARCHAR)",
"role": "system"
},
{
"content": "Which 1965 has a 1962 of 0.35000000000000003, and a 1967 smaller than 0.53?",
"role": "user"
},
{
"content": "SELECT MIN(1965) FROM table_name_38 WHERE 1962 = 0.35000000000000003 AND 1967 < 0.53",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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_94 (no_opinion INTEGER, date VARCHAR, favorable VARCHAR)",
"role": "system"
},
{
"content": "What is the average no opinion score during 1954 November that is more favorable than 35?",
"role": "user"
},
{
"content": "SELECT AVG(no_opinion) FROM table_name_94 WHERE date = \"1954 november\" AND favorable > 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_18733814_2 (general_classification VARCHAR, points_classification VARCHAR, young_rider_classification VARCHAR)",
"role": "system"
},
{
"content": "When thomas löfkvist is the young rider classification and alessandro petacchi is the points classification who are the general classifications? ",
"role": "user"
},
{
"content": "SELECT general_classification FROM table_18733814_2 WHERE points_classification = \"Alessandro Petacchi\" AND young_rider_classification = \"Thomas Löfkvist\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (pick VARCHAR, year VARCHAR, round VARCHAR)",
"role": "system"
},
{
"content": "What is the pick number in a year earlier than 2009, with a round higher than 1?",
"role": "user"
},
{
"content": "SELECT COUNT(pick) FROM table_name_60 WHERE year < 2009 AND round > 1",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17118006_2 (department VARCHAR, irrigated_ha VARCHAR)",
"role": "system"
},
{
"content": "What department irrigated 2170 Ha?",
"role": "user"
},
{
"content": "SELECT department FROM table_17118006_2 WHERE irrigated_ha = 2170",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (position VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What is the Postion, when the Name is Rod Paavola?",
"role": "user"
},
{
"content": "SELECT position FROM table_name_27 WHERE name = \"rod paavola\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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 (position INTEGER, lost VARCHAR, against VARCHAR)",
"role": "system"
},
{
"content": "What is the position of the team with more than 16 losses and an against greater than 74?",
"role": "user"
},
{
"content": "SELECT SUM(position) FROM table_name_43 WHERE lost > 16 AND against > 74",
"role": "assistant"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.