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_62 (decile VARCHAR, area VARCHAR, authority VARCHAR)",
"role": "system"
},
{
"content": "Which decile has an Area of welcome bay, and an Authority of state?",
"role": "user"
},
{
"content": "SELECT decile FROM table_name_62 WHERE area = \"welcome bay\" AND authority = \"state\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11240028_3 (last_appearance VARCHAR, character VARCHAR)",
"role": "system"
},
{
"content": "What episode was the last appearance of the character, rikki sandoval?",
"role": "user"
},
{
"content": "SELECT last_appearance FROM table_11240028_3 WHERE character = \"Rikki Sandoval\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_19517448_3 (completion_percentage VARCHAR, yards_per_attempt VARCHAR)",
"role": "system"
},
{
"content": "What is the completion percentage when yards per attempt was done by Steve McNair : 2003?",
"role": "user"
},
{
"content": "SELECT completion_percentage FROM table_19517448_3 WHERE yards_per_attempt = \"Steve McNair : 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 table_name_44 (wins VARCHAR, points VARCHAR, rank VARCHAR)",
"role": "system"
},
{
"content": "How many wins had less than 91 points in 25th rank?",
"role": "user"
},
{
"content": "SELECT wins FROM table_name_44 WHERE points < 91 AND rank = \"25th\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20803241_1 (type_of_fare VARCHAR, cash_fare VARCHAR, day_pass VARCHAR)",
"role": "system"
},
{
"content": "When n/a is the cash fate and n/a is the 31-day pass how many types of fare are there?",
"role": "user"
},
{
"content": "SELECT COUNT(type_of_fare) FROM table_20803241_1 WHERE 31 - day_pass = \"N/A\" AND cash_fare = \"N/A\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_37 (score VARCHAR, competition VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Which friendly competition took place on 19 April 1979?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_37 WHERE competition = \"friendly\" AND date = \"19 april 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_41 (date VARCHAR, opponent_in_the_final VARCHAR)",
"role": "system"
},
{
"content": "What is the Date of the match with Opponent in the final Kenneth Carlsen?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_41 WHERE opponent_in_the_final = \"kenneth carlsen\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (skip VARCHAR, alternate VARCHAR)",
"role": "system"
},
{
"content": "Who is the skip of the nation with Laurens van der Windt as the alternate?",
"role": "user"
},
{
"content": "SELECT skip FROM table_name_74 WHERE alternate = \"laurens van der windt\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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_in_the_final VARCHAR, surface VARCHAR, score_in_the_final VARCHAR)",
"role": "system"
},
{
"content": "Who is the Opponent in the final of the match played on Clay Surface with a Score in the final of 4–6, 3–6?",
"role": "user"
},
{
"content": "SELECT opponent_in_the_final FROM table_name_9 WHERE surface = \"clay\" AND score_in_the_final = \"4–6, 3–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_10725629_2 (rnd VARCHAR, race_name VARCHAR)",
"role": "system"
},
{
"content": "How many rounds were there of the Bosch Spark Plug Grand Prix?",
"role": "user"
},
{
"content": "SELECT COUNT(rnd) FROM table_10725629_2 WHERE race_name = \"Bosch Spark Plug 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_13 (displacement_cc VARCHAR, engine VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "What cc displacement has an i6 engine in 1936?",
"role": "user"
},
{
"content": "SELECT displacement_cc FROM table_name_13 WHERE engine = \"i6\" AND year = \"1936\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (death VARCHAR, spouse VARCHAR)",
"role": "system"
},
{
"content": "When did the duchess, who was married to philippe, die?",
"role": "user"
},
{
"content": "SELECT death FROM table_name_56 WHERE spouse = \"philippe\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (father VARCHAR, date_of_birth VARCHAR)",
"role": "system"
},
{
"content": "Who is the father that was born on January 2, 1842?",
"role": "user"
},
{
"content": "SELECT father FROM table_name_30 WHERE date_of_birth = \"january 2, 1842\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (college_junior_club_team__league_ VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "Which College/Junior/Club Team (league) does Matthew Bartkowski play for?",
"role": "user"
},
{
"content": "SELECT college_junior_club_team__league_ FROM table_name_31 WHERE player = \"matthew bartkowski\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_25 (to_par VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What is the To par of the Player with a Score of 71-74-72-72=289?",
"role": "user"
},
{
"content": "SELECT to_par FROM table_name_25 WHERE score = 71 - 74 - 72 - 72 = 289",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (fatalities VARCHAR, tail_number VARCHAR)",
"role": "system"
},
{
"content": "How many fatalities occurred for an unknown tail number?",
"role": "user"
},
{
"content": "SELECT fatalities FROM table_name_60 WHERE tail_number = \"unknown\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_25 (opponent VARCHAR, week VARCHAR, game_site VARCHAR)",
"role": "system"
},
{
"content": "Who did the Giants play before week 7 in Tulane Stadium?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_25 WHERE week < 7 AND game_site = \"tulane stadium\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_19897294_8 (location_s_ VARCHAR, no_overall VARCHAR)",
"role": "system"
},
{
"content": "Name the number of locations for uk32",
"role": "user"
},
{
"content": "SELECT COUNT(location_s_) FROM table_19897294_8 WHERE no_overall = \"UK32\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query 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_1 (population INTEGER, market_income_per_capita VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest population in a county with market income per capita of $24,383?",
"role": "user"
},
{
"content": "SELECT MIN(population) FROM table_22815568_1 WHERE market_income_per_capita = \"$24,383\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Student (city_code VARCHAR, LName VARCHAR)",
"role": "system"
},
{
"content": "Which city does the student whose last name is \"Kim\" live in?",
"role": "user"
},
{
"content": "SELECT city_code FROM Student WHERE LName = \"Kim\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (graduated INTEGER, player VARCHAR)",
"role": "system"
},
{
"content": "What year did Omar Gonzalez graduate?",
"role": "user"
},
{
"content": "SELECT SUM(graduated) FROM table_name_94 WHERE player = \"omar gonzalez\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE region (region_name VARCHAR, region_id VARCHAR); CREATE TABLE affected_region (region_id VARCHAR)",
"role": "system"
},
{
"content": "Show the name for regions and the number of storms for each region.",
"role": "user"
},
{
"content": "SELECT T1.region_name, COUNT(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_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_41 (silver INTEGER, rank INTEGER)",
"role": "system"
},
{
"content": "What is the lowest number of silver owned by a nation that is not ranked number 1?",
"role": "user"
},
{
"content": "SELECT MIN(silver) FROM table_name_41 WHERE rank < 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_98 (winning_score VARCHAR, margin_of_victory VARCHAR, runner_s__up VARCHAR)",
"role": "system"
},
{
"content": "What was the winning score for the tournament where Garth Mulroy was the runner-up, and the margin of victory was 1 stroke?",
"role": "user"
},
{
"content": "SELECT winning_score FROM table_name_98 WHERE margin_of_victory = \"1 stroke\" AND runner_s__up = \"garth mulroy\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (gold INTEGER, total VARCHAR, bronze VARCHAR)",
"role": "system"
},
{
"content": "How many gold(s) for teams with a total of 14, and over 6 bronze medals?",
"role": "user"
},
{
"content": "SELECT SUM(gold) FROM table_name_26 WHERE total = 14 AND bronze > 6",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_67 (year INTEGER, award VARCHAR, nominee VARCHAR)",
"role": "system"
},
{
"content": "What was the year Bernadette Peters was a nominee for the Tony award?",
"role": "user"
},
{
"content": "SELECT SUM(year) FROM table_name_67 WHERE award = \"tony award\" AND nominee = \"bernadette peters\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1616608_2 (western_title VARCHAR, chinese_title VARCHAR)",
"role": "system"
},
{
"content": "How many games share their western title with the Chinese title of 摸摸耀西-云中漫步 ?",
"role": "user"
},
{
"content": "SELECT COUNT(western_title) FROM table_1616608_2 WHERE chinese_title = \"摸摸耀西-云中漫步\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_4 (tournament VARCHAR)",
"role": "system"
},
{
"content": "What is the 2012 that has tournament played as the tournament?",
"role": "user"
},
{
"content": "SELECT 2012 FROM table_name_4 WHERE tournament = \"tournament played\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE film (title VARCHAR, special_features VARCHAR)",
"role": "system"
},
{
"content": "Which movies have 'Deleted Scenes' as a substring in the special feature?",
"role": "user"
},
{
"content": "SELECT title FROM film WHERE special_features LIKE '%Deleted Scenes%'",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE bank (no_of_customers INTEGER, city VARCHAR)",
"role": "system"
},
{
"content": "Find the number of customers in the banks at New York City.",
"role": "user"
},
{
"content": "SELECT SUM(no_of_customers) FROM bank WHERE city = 'New York City'",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_16 (series VARCHAR, launch_date VARCHAR)",
"role": "system"
},
{
"content": "What is Series, when Launch Date is 23 February 2013?",
"role": "user"
},
{
"content": "SELECT series FROM table_name_16 WHERE launch_date = \"23 february 2013\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2771237_1 (overall_record VARCHAR, average_attendance VARCHAR)",
"role": "system"
},
{
"content": "What was the overall record in the season where average attendance was 16720?",
"role": "user"
},
{
"content": "SELECT overall_record FROM table_2771237_1 WHERE average_attendance = 16720",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (constructor VARCHAR, driver VARCHAR)",
"role": "system"
},
{
"content": "Who was the constructor of the car driven by Heikki Kovalainen?",
"role": "user"
},
{
"content": "SELECT constructor FROM table_name_39 WHERE driver = \"heikki kovalainen\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (position VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "Which Position has a Player of bernard thompson?",
"role": "user"
},
{
"content": "SELECT position FROM table_name_64 WHERE player = \"bernard thompson\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (engine VARCHAR, chassis VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "What engine with more than 2 points has Brabham bt58 as Chassis?",
"role": "user"
},
{
"content": "SELECT engine FROM table_name_66 WHERE chassis = \"brabham bt58\" AND points > 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_71 (nationality VARCHAR, rank VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "Which Nationality has a Rank larger than 3, and a Name of tom hilde?",
"role": "user"
},
{
"content": "SELECT nationality FROM table_name_71 WHERE rank > 3 AND name = \"tom hilde\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_50 (competition VARCHAR, date VARCHAR, result VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "Which Competition has a Result of w, and a Score of 2-0, and a Date of may 9, 1954?",
"role": "user"
},
{
"content": "SELECT competition FROM table_name_50 WHERE result = \"w\" AND score = \"2-0\" AND date = \"may 9, 1954\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE party_forms (form_id VARCHAR); CREATE TABLE parties (party_email VARCHAR, party_id VARCHAR); CREATE TABLE party_forms (party_id VARCHAR, form_id VARCHAR)",
"role": "system"
},
{
"content": "Find the emails of parties with the most popular party form.",
"role": "user"
},
{
"content": "SELECT t1.party_email FROM parties AS t1 JOIN party_forms AS t2 ON t1.party_id = t2.party_id WHERE t2.form_id = (SELECT form_id FROM party_forms GROUP BY form_id ORDER BY COUNT(*) DESC LIMIT 1)",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_87 (home_team VARCHAR, away_team VARCHAR)",
"role": "system"
},
{
"content": "What is the Home team with an Away team that is oxford united?",
"role": "user"
},
{
"content": "SELECT home_team FROM table_name_87 WHERE away_team = \"oxford 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 table_name_36 (current_club VARCHAR, position VARCHAR, year_born VARCHAR, height VARCHAR)",
"role": "system"
},
{
"content": "What is the current club of the Forward who was born after 1983 and who has a height under 2.12?",
"role": "user"
},
{
"content": "SELECT current_club FROM table_name_36 WHERE year_born > 1983 AND height < 2.12 AND position = \"forward\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (country VARCHAR, to_par VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What country has a to par larger than 5 and a player John Mahaffey?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_38 WHERE to_par > 5 AND player = \"john mahaffey\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (react VARCHAR, lane VARCHAR)",
"role": "system"
},
{
"content": "Can you tell me the total number of React that has the Lane of 5?",
"role": "user"
},
{
"content": "SELECT COUNT(react) FROM table_name_13 WHERE lane = 5",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_66 (flag VARCHAR, ship VARCHAR)",
"role": "system"
},
{
"content": "Which Flag did the Ship Aidavita have?",
"role": "user"
},
{
"content": "SELECT flag FROM table_name_66 WHERE ship = \"aidavita\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_84 (place VARCHAR, country VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What did United States place when the player was Raymond Floyd?",
"role": "user"
},
{
"content": "SELECT place FROM table_name_84 WHERE country = \"united states\" AND player = \"raymond floyd\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (rank INTEGER, nation VARCHAR, bronze VARCHAR)",
"role": "system"
},
{
"content": "What is the sum of a rank whose nation is West Germany and has bronze larger than 0?",
"role": "user"
},
{
"content": "SELECT SUM(rank) FROM table_name_45 WHERE nation = \"west germany\" AND bronze > 0",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_31 (venue VARCHAR, score VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What venue hosted a match with a 3-0 score on December 7, 2002?",
"role": "user"
},
{
"content": "SELECT venue FROM table_name_31 WHERE score = \"3-0\" AND date = \"december 7, 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 table_name_14 (listed VARCHAR, county VARCHAR)",
"role": "system"
},
{
"content": "when was the site listed when the county is cochise?",
"role": "user"
},
{
"content": "SELECT listed FROM table_name_14 WHERE county = \"cochise\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE ship (disposition_of_ship VARCHAR)",
"role": "system"
},
{
"content": "How many ships ended up being 'Captured'?",
"role": "user"
},
{
"content": "SELECT COUNT(*) FROM ship WHERE disposition_of_ship = 'Captured'",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (years_in_toronto VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "How long has Sebastian Telfair played for Toronto?",
"role": "user"
},
{
"content": "SELECT years_in_toronto FROM table_name_83 WHERE player = \"sebastian telfair\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_91 (indoor_track VARCHAR, tennis VARCHAR, golf VARCHAR)",
"role": "system"
},
{
"content": "What is the indoor track status for the school that has yes for tennis and no for golf?",
"role": "user"
},
{
"content": "SELECT indoor_track FROM table_name_91 WHERE tennis = \"yes\" AND golf = \"no\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (segment_a VARCHAR, segment_d VARCHAR)",
"role": "system"
},
{
"content": "What segment A is associated with a Segment D of manual motorcycle transmissions?",
"role": "user"
},
{
"content": "SELECT segment_a FROM table_name_76 WHERE segment_d = \"manual motorcycle transmissions\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27965906_2 (b_winning_car VARCHAR, a_winning_car VARCHAR)",
"role": "system"
},
{
"content": "Name the b winning car for #88 team mitsubishi 88 mitsubishi starion",
"role": "user"
},
{
"content": "SELECT b_winning_car FROM table_27965906_2 WHERE a_winning_car = \"#88 Team Mitsubishi 88 Mitsubishi Starion\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (population INTEGER, area_km_2 VARCHAR, status VARCHAR, census_ranking VARCHAR)",
"role": "system"
},
{
"content": "What is the Population of the Town with a Census Ranking of 1,379 of 5,008 and an Area km 2 smaller than 8.35?",
"role": "user"
},
{
"content": "SELECT MAX(population) FROM table_name_70 WHERE status = \"town\" AND census_ranking = \"1,379 of 5,008\" AND area_km_2 < 8.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_64 (record VARCHAR, time VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "What's the record that had an opponent of Krzysztof Soszynski and a time of 4:00?",
"role": "user"
},
{
"content": "SELECT record FROM table_name_64 WHERE time = \"4:00\" AND opponent = \"krzysztof soszynski\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (poll VARCHAR, wk_13 VARCHAR, wk_10 VARCHAR, wk_2 VARCHAR)",
"role": "system"
},
{
"content": "Which poll had a week 10 larger than 2, a week 2 of exactly 12, and a week 13 of 8?",
"role": "user"
},
{
"content": "SELECT poll FROM table_name_10 WHERE wk_10 > 2 AND wk_2 = \"12\" AND wk_13 = 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 Ref_budget_codes (budget_type_code VARCHAR, budget_type_description VARCHAR); CREATE TABLE Documents_with_expenses (document_id VARCHAR, budget_type_code VARCHAR)",
"role": "system"
},
{
"content": "Show the budget type code and description and the corresponding document id.",
"role": "user"
},
{
"content": "SELECT T2.budget_type_code, T2.budget_type_description, T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_budget_codes AS T2 ON T1.budget_type_code = T2.budget_type_code",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_97 (home_team VARCHAR, away_team VARCHAR)",
"role": "system"
},
{
"content": "What was the score of the team that played against Fitzroy?",
"role": "user"
},
{
"content": "SELECT home_team AS score FROM table_name_97 WHERE away_team = \"fitzroy\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (goals VARCHAR, name VARCHAR, debut_year VARCHAR)",
"role": "system"
},
{
"content": "How many goals occurred with Diego Milito in a debut year later than 2008?",
"role": "user"
},
{
"content": "SELECT COUNT(goals) FROM table_name_40 WHERE name = \"diego milito\" AND debut_year > 2008",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_78 (hindi VARCHAR, domari VARCHAR)",
"role": "system"
},
{
"content": "What is the Hindi associated with a Domari of tærən?",
"role": "user"
},
{
"content": "SELECT hindi FROM table_name_78 WHERE domari = \"tærən\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1139087_2 (constructor VARCHAR, grand_prix VARCHAR)",
"role": "system"
},
{
"content": "What is the make of the car that won the brazilian grand prix?",
"role": "user"
},
{
"content": "SELECT constructor FROM table_1139087_2 WHERE grand_prix = \"Brazilian 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_56 (loss VARCHAR, opponent VARCHAR, save VARCHAR)",
"role": "system"
},
{
"content": "What's the loss of who has a Save of Miguel Saladin and played against Chinatrust Whales?",
"role": "user"
},
{
"content": "SELECT loss FROM table_name_56 WHERE opponent = \"chinatrust whales\" AND save = \"miguel saladin\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2801442_1 (code VARCHAR, density_in_2011___km²_ VARCHAR)",
"role": "system"
},
{
"content": "What's the code of the district with 800.5 people per km2?",
"role": "user"
},
{
"content": "SELECT code FROM table_2801442_1 WHERE density_in_2011___km²_ = \"800.5\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_32 (entered_service VARCHAR, delivered_as VARCHAR)",
"role": "system"
},
{
"content": "What is the Entered service date of the T413?",
"role": "user"
},
{
"content": "SELECT entered_service FROM table_name_32 WHERE delivered_as = \"t413\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (played INTEGER, against VARCHAR, position VARCHAR, lost VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "What is the average number of played of the team with 3 losses, more than 9 points, a position of 5, and less than 12 against?",
"role": "user"
},
{
"content": "SELECT AVG(played) FROM table_name_51 WHERE lost = 3 AND points > 9 AND position = 5 AND against < 12",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_64 (overall INTEGER, round VARCHAR, pick__number VARCHAR)",
"role": "system"
},
{
"content": "Round of 11, and a Pick # larger than 14 is the highest overall pick?",
"role": "user"
},
{
"content": "SELECT MAX(overall) FROM table_name_64 WHERE round = 11 AND pick__number > 14",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_57 (ties INTEGER, team VARCHAR, goals_against VARCHAR)",
"role": "system"
},
{
"content": "How many ties did the Montreal Victorias have with a GA of less than 24?",
"role": "user"
},
{
"content": "SELECT MAX(ties) FROM table_name_57 WHERE team = \"montreal victorias\" AND goals_against < 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_56 (round VARCHAR, scorers VARCHAR)",
"role": "system"
},
{
"content": "Which round has the scorer of Di Matteo?",
"role": "user"
},
{
"content": "SELECT round FROM table_name_56 WHERE scorers = \"di matteo\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_92 (director_s_ VARCHAR, title VARCHAR)",
"role": "system"
},
{
"content": "Director for Star Wars Episode II: attack of the clones?",
"role": "user"
},
{
"content": "SELECT director_s_ FROM table_name_92 WHERE title = \"star wars episode ii: attack of the clones\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (week_5 VARCHAR, week_3 VARCHAR)",
"role": "system"
},
{
"content": "Who was the girl on week 5 that came after week 3's Shelly Louise?",
"role": "user"
},
{
"content": "SELECT week_5 FROM table_name_21 WHERE week_3 = \"shelly louise\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_84 (crowd INTEGER, home_team VARCHAR)",
"role": "system"
},
{
"content": "What is the average amount of spectators when Essendon played as the home team?",
"role": "user"
},
{
"content": "SELECT AVG(crowd) FROM table_name_84 WHERE home_team = \"essendon\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27374740_2 (_number INTEGER, viewers__m_ VARCHAR)",
"role": "system"
},
{
"content": "how many maximum # when viewers (m) is 8.01",
"role": "user"
},
{
"content": "SELECT MAX(_number) FROM table_27374740_2 WHERE viewers__m_ = \"8.01\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_25 (appearances VARCHAR, team VARCHAR, place VARCHAR)",
"role": "system"
},
{
"content": "What is the total number of appearances for players from Chaux-de-Fonds with places over 8?",
"role": "user"
},
{
"content": "SELECT COUNT(appearances) FROM table_name_25 WHERE team = \"chaux-de-fonds\" AND place > 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_66 (week INTEGER, date VARCHAR)",
"role": "system"
},
{
"content": "What's the highest week for the day of October 21, 1956?",
"role": "user"
},
{
"content": "SELECT MAX(week) FROM table_name_66 WHERE date = \"october 21, 1956\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (date VARCHAR, pole_position VARCHAR, circuit VARCHAR)",
"role": "system"
},
{
"content": "What is the date of the race when Jack Brabham is in the pole position and the circuit is Spa-Francorchamps?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_43 WHERE pole_position = \"jack brabham\" AND circuit = \"spa-francorchamps\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_63 (progressive_ticket VARCHAR, republican_ticket VARCHAR)",
"role": "system"
},
{
"content": "With the Republican ticket of Frank M. Williams who was the Progressive ticket?",
"role": "user"
},
{
"content": "SELECT progressive_ticket FROM table_name_63 WHERE republican_ticket = \"frank m. williams\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_61 (name VARCHAR, year VARCHAR, floors VARCHAR)",
"role": "system"
},
{
"content": "What is the name before 1954 with more than 15 floors?",
"role": "user"
},
{
"content": "SELECT name FROM table_name_61 WHERE year < 1954 AND floors > 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_25851971_1 (no INTEGER, written_by VARCHAR)",
"role": "system"
},
{
"content": "What episode number was written by Karin Gist?",
"role": "user"
},
{
"content": "SELECT MAX(no) FROM table_25851971_1 WHERE written_by = \"Karin Gist\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2610582_7 (power__kw_ VARCHAR, location VARCHAR)",
"role": "system"
},
{
"content": "What's the power for General Santos?",
"role": "user"
},
{
"content": "SELECT power__kw_ FROM table_2610582_7 WHERE location = \"General Santos\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (ship VARCHAR, builder VARCHAR)",
"role": "system"
},
{
"content": "What Ship was Built by Cammell Laird?",
"role": "user"
},
{
"content": "SELECT ship FROM table_name_70 WHERE builder = \"cammell laird\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (elected VARCHAR, district VARCHAR)",
"role": "system"
},
{
"content": "What was the year elected in District 15?",
"role": "user"
},
{
"content": "SELECT elected FROM table_name_56 WHERE district = 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_47 (first_elected INTEGER, result VARCHAR, incumbent VARCHAR)",
"role": "system"
},
{
"content": "What was the lowest re-elected result for Sylvester C. Smith?",
"role": "user"
},
{
"content": "SELECT MIN(first_elected) FROM table_name_47 WHERE result = \"re-elected\" AND incumbent = \"sylvester c. smith\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (molweight__daltons_ VARCHAR, percent_of_mass VARCHAR)",
"role": "system"
},
{
"content": "what is the mol.weight (daltons) when the percent of mass is 1.5?",
"role": "user"
},
{
"content": "SELECT molweight__daltons_ FROM table_name_47 WHERE percent_of_mass = \"1.5\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_229917_2 (tail_number VARCHAR, brief_description VARCHAR)",
"role": "system"
},
{
"content": "What's the tail number of the airplane involved in the accident described as crashed?",
"role": "user"
},
{
"content": "SELECT tail_number FROM table_229917_2 WHERE brief_description = \"Crashed\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_10015132_2 (years_in_toronto VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What years was the player Lonny Baxter in Toronto?",
"role": "user"
},
{
"content": "SELECT years_in_toronto FROM table_10015132_2 WHERE player = \"Lonny Baxter\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_52 (outcome VARCHAR, year VARCHAR, tournament VARCHAR)",
"role": "system"
},
{
"content": "Which Malaysia Satellite tournaments were played after 1998?",
"role": "user"
},
{
"content": "SELECT outcome FROM table_name_52 WHERE year > 1998 AND tournament = \"malaysia satellite\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_25 (home_team VARCHAR)",
"role": "system"
},
{
"content": "What was Fitzroy score at their home stadium?",
"role": "user"
},
{
"content": "SELECT home_team AS score FROM table_name_25 WHERE home_team = \"fitzroy\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_29584601_1 (written_by VARCHAR, no_in_series VARCHAR)",
"role": "system"
},
{
"content": "How many different pairs of writers wrote the episode with series number 56?",
"role": "user"
},
{
"content": "SELECT COUNT(written_by) FROM table_29584601_1 WHERE no_in_series = 56",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE election (Party VARCHAR); CREATE TABLE party (Party VARCHAR, Party_ID VARCHAR)",
"role": "system"
},
{
"content": "Show the name of the party that has the most delegates.",
"role": "user"
},
{
"content": "SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T1.Party ORDER BY COUNT(*) DESC LIMIT 1",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1139835_3 (grand_finalist VARCHAR, scores VARCHAR)",
"role": "system"
},
{
"content": " who is the grand finalist where scores is 8.9 (57) – 7.12 (54)",
"role": "user"
},
{
"content": "SELECT grand_finalist FROM table_1139835_3 WHERE scores = \"8.9 (57) – 7.12 (54)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22607062_1 (comptroller VARCHAR, ticket___office VARCHAR)",
"role": "system"
},
{
"content": "Name the comptroller for office of prohibition",
"role": "user"
},
{
"content": "SELECT comptroller FROM table_22607062_1 WHERE ticket___office = \"Prohibition\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (game INTEGER, record VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest game for a record of 32-12-3?",
"role": "user"
},
{
"content": "SELECT MIN(game) FROM table_name_48 WHERE record = \"32-12-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_74 (laps INTEGER, grid VARCHAR)",
"role": "system"
},
{
"content": "What is the average Laps, when Grid is 15?",
"role": "user"
},
{
"content": "SELECT AVG(laps) FROM table_name_74 WHERE grid = 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_23 (result VARCHAR, rank_number VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What was the result for Rank 2 on December 6, 1969?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_23 WHERE rank_number = \"2\" AND date = \"december 6, 1969\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_29598261_1 (hometown VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "what is the hometown for mike ladd?",
"role": "user"
},
{
"content": "SELECT hometown FROM table_29598261_1 WHERE name = \"Mike Ladd\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_171748_3 (change_over_previous_year_as_a_whole VARCHAR, change_over_same_quarter_the_previous_year VARCHAR)",
"role": "system"
},
{
"content": "What's the change over previous year as a whole in the period in which the change over same quarter the previous year was up 2.8%?",
"role": "user"
},
{
"content": "SELECT change_over_previous_year_as_a_whole FROM table_171748_3 WHERE change_over_same_quarter_the_previous_year = \"Up 2.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_12 (drawn VARCHAR, losing_bonus VARCHAR)",
"role": "system"
},
{
"content": "What is the value for Drawn, when the value for Losing bonus is 6?",
"role": "user"
},
{
"content": "SELECT drawn FROM table_name_12 WHERE losing_bonus = \"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_87 (games INTEGER, goal_ratio VARCHAR, goals VARCHAR)",
"role": "system"
},
{
"content": "What lowest games have a Goal Ratio of 0, and Goals smaller than 0?",
"role": "user"
},
{
"content": "SELECT MIN(games) FROM table_name_87 WHERE goal_ratio = 0 AND goals < 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_81 (time_retired VARCHAR, grid VARCHAR)",
"role": "system"
},
{
"content": "What is the time/retired for the driver with 16 grids?",
"role": "user"
},
{
"content": "SELECT time_retired FROM table_name_81 WHERE grid = 16",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_12 (overall_ranking VARCHAR, status VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What's the total number of overall rankings of 廖尹宁 jvnne leow's events that are eliminated?",
"role": "user"
},
{
"content": "SELECT COUNT(overall_ranking) FROM table_name_12 WHERE status = \"eliminated\" AND name = \"廖尹宁 jvnne leow\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (s_asset__billion_ VARCHAR, profits__billion_$_ VARCHAR, revenue__billion_$__ VARCHAR, headquarters VARCHAR, market_value__billion_$_ VARCHAR)",
"role": "system"
},
{
"content": "How much is the total assets of a company based in Stockholm, Sweden with a market capitalization smaller than 39.8 with revenues greater than 5.8 and profit of 1.1?",
"role": "user"
},
{
"content": "SELECT COUNT(s_asset__billion_) AS $_ FROM table_name_14 WHERE headquarters = \"stockholm, sweden\" AND market_value__billion_$_ < 39.8 AND revenue__billion_$__ > 5.8 AND profits__billion_$_ = 1.1",
"role": "assistant"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.