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_2439728_1 (location VARCHAR, varsity_teams VARCHAR)",
"role": "system"
},
{
"content": "how many places have 17 varsity teams?",
"role": "user"
},
{
"content": "SELECT COUNT(location) FROM table_2439728_1 WHERE varsity_teams = 17",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (samurai VARCHAR, stampede VARCHAR)",
"role": "system"
},
{
"content": "Name the samurai for stampede of t. mask",
"role": "user"
},
{
"content": "SELECT samurai FROM table_name_97 WHERE stampede = \"t. mask\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_90 (capacity INTEGER, average VARCHAR, highest VARCHAR)",
"role": "system"
},
{
"content": "What is the high capacity that has an average under 489 and a highest over 778?",
"role": "user"
},
{
"content": "SELECT MAX(capacity) FROM table_name_90 WHERE average < 489 AND highest > 778",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (opposing_teams VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Who was the name of the opposing team on 11/02/1961?",
"role": "user"
},
{
"content": "SELECT opposing_teams FROM table_name_36 WHERE date = \"11/02/1961\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1644876_2 (l INTEGER)",
"role": "system"
},
{
"content": "What is the fewest number of losses?",
"role": "user"
},
{
"content": "SELECT MIN(l) FROM table_1644876_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_13857700_1 (mens_doubles VARCHAR, mixed_doubles VARCHAR)",
"role": "system"
},
{
"content": "who is the the mens doubles with mixed doubles being jimm aalto nina sarnesto",
"role": "user"
},
{
"content": "SELECT mens_doubles FROM table_13857700_1 WHERE mixed_doubles = \"Jimm Aalto Nina Sarnesto\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2679061_6 (nhl_team VARCHAR, position VARCHAR, nationality VARCHAR)",
"role": "system"
},
{
"content": "What is the nhl team for the position centre and nationality united states?",
"role": "user"
},
{
"content": "SELECT nhl_team FROM table_2679061_6 WHERE position = \"Centre\" AND nationality = \"United States\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_4 (title VARCHAR, genre VARCHAR, year VARCHAR, network VARCHAR)",
"role": "system"
},
{
"content": "What's the title when the genre is drama and network of KBS2 happening before 2011?",
"role": "user"
},
{
"content": "SELECT title FROM table_name_4 WHERE year < 2011 AND network = \"kbs2\" AND genre = \"drama\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (tournament VARCHAR)",
"role": "system"
},
{
"content": "Which in 2004 has a 2003 of 1r and Wimbledon Tournament",
"role": "user"
},
{
"content": "SELECT 2004 FROM table_name_34 WHERE 2003 = \"1r\" AND tournament = \"wimbledon\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_19 (lost INTEGER, drawn INTEGER)",
"role": "system"
},
{
"content": "What's the Lost average that has a Drawn less than 0?",
"role": "user"
},
{
"content": "SELECT AVG(lost) FROM table_name_19 WHERE drawn < 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_2135222_2 (traditional VARCHAR, simplified VARCHAR)",
"role": "system"
},
{
"content": "What is the traditional form for 永城市?",
"role": "user"
},
{
"content": "SELECT traditional FROM table_2135222_2 WHERE simplified = \"永城市\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (home_team VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "Who was the home team when VFL played at Windy Hill?",
"role": "user"
},
{
"content": "SELECT home_team FROM table_name_16 WHERE venue = \"windy hill\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (cyclist VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "Who is Gerolsteiner's cyclist?",
"role": "user"
},
{
"content": "SELECT cyclist FROM table_name_89 WHERE team = \"gerolsteiner\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL 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_category (category_id VARCHAR); CREATE TABLE category (name VARCHAR, category_id VARCHAR)",
"role": "system"
},
{
"content": "How many films are there in each category? List the genre name, genre id and the count.",
"role": "user"
},
{
"content": "SELECT T2.name, T1.category_id, COUNT(*) FROM film_category AS T1 JOIN category AS T2 ON T1.category_id = T2.category_id GROUP BY T1.category_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_32 (bullet_diameter VARCHAR, neck_diameter VARCHAR)",
"role": "system"
},
{
"content": "Which Bullet diameter has a Neck diameter of 12.17 (.479)?",
"role": "user"
},
{
"content": "SELECT bullet_diameter FROM table_name_32 WHERE neck_diameter = \"12.17 (.479)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (pick INTEGER, school_club_team VARCHAR)",
"role": "system"
},
{
"content": "What was the highest pick for a player from a school or club team of Arkansas?",
"role": "user"
},
{
"content": "SELECT MAX(pick) FROM table_name_9 WHERE school_club_team = \"arkansas\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17482534_1 (us_viewers__millions_ VARCHAR, written_by VARCHAR)",
"role": "system"
},
{
"content": "How many viewers did the episode written by Warren Lieberstein & Halsted Sullivan have?",
"role": "user"
},
{
"content": "SELECT us_viewers__millions_ FROM table_17482534_1 WHERE written_by = \"Warren Lieberstein & Halsted Sullivan\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (circuit VARCHAR, team VARCHAR, series VARCHAR)",
"role": "system"
},
{
"content": "What was the circuit for Team Peter Jackson Racing in the ATCC Round 4 series?",
"role": "user"
},
{
"content": "SELECT circuit FROM table_name_64 WHERE team = \"peter jackson racing\" AND series = \"atcc round 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_87 (player VARCHAR, round INTEGER)",
"role": "system"
},
{
"content": "Which Player has a Round larger than 8?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_87 WHERE 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_30083499_1 (coefficient VARCHAR, tournament VARCHAR)",
"role": "system"
},
{
"content": " the 2010 clausura tournament?",
"role": "user"
},
{
"content": "SELECT coefficient FROM table_30083499_1 WHERE tournament = \"2010 Clausura\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (city__town VARCHAR, year_founded VARCHAR)",
"role": "system"
},
{
"content": "In what City/town was their institution founded in 1860?",
"role": "user"
},
{
"content": "SELECT city__town FROM table_name_34 WHERE year_founded = 1860",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_42 (wins VARCHAR, byes VARCHAR, losses VARCHAR, against VARCHAR)",
"role": "system"
},
{
"content": "What is the total number of Wins, when Losses is less than 10, when Against is less than 1253, and when Byes is less than 0?",
"role": "user"
},
{
"content": "SELECT COUNT(wins) FROM table_name_42 WHERE losses < 10 AND against < 1253 AND byes < 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 Addresses (address_id VARCHAR, state_province_county VARCHAR); CREATE TABLE Students (last_name VARCHAR, current_address_id VARCHAR); CREATE TABLE Students (last_name VARCHAR, student_id VARCHAR); CREATE TABLE Student_Enrolment (student_id VARCHAR)",
"role": "system"
},
{
"content": "Find the last name of the students who currently live in the state of North Carolina but have not registered in any degree program.",
"role": "user"
},
{
"content": "SELECT T1.last_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.current_address_id = T2.address_id WHERE T2.state_province_county = 'NorthCarolina' EXCEPT SELECT DISTINCT T3.last_name FROM Students AS T3 JOIN Student_Enrolment AS T4 ON T3.student_id = T4.student_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_3 (cospar_id VARCHAR, satellite VARCHAR)",
"role": "system"
},
{
"content": "What is Ariel 3's COSPAR ID?",
"role": "user"
},
{
"content": "SELECT cospar_id FROM table_name_3 WHERE satellite = \"ariel 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_42 (team_name VARCHAR, school VARCHAR)",
"role": "system"
},
{
"content": "What is the team name from Hammond Bishop Noll?",
"role": "user"
},
{
"content": "SELECT team_name FROM table_name_42 WHERE school = \"hammond bishop noll\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (h___a VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is the H/A for 20 february 2007?",
"role": "user"
},
{
"content": "SELECT h___a FROM table_name_54 WHERE date = \"20 february 2007\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_85 (pos VARCHAR, asts VARCHAR, rebs VARCHAR)",
"role": "system"
},
{
"content": "What is the position of the player with more than 11 assists and 219 rebounds?",
"role": "user"
},
{
"content": "SELECT pos FROM table_name_85 WHERE asts > 11 AND rebs = 219",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_20 (score VARCHAR, visitor VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "WHAT IS THE SCORE WITH VISITORS CHICAGO BLACK HAWKS ON MARCH 24?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_20 WHERE visitor = \"chicago black hawks\" AND date = \"march 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_10577579_2 (founded INTEGER, location VARCHAR)",
"role": "system"
},
{
"content": "That is the year founded for the institution location of Nashville, Tennessee?",
"role": "user"
},
{
"content": "SELECT MIN(founded) FROM table_10577579_2 WHERE location = \"Nashville, Tennessee\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_16710541_2 (position VARCHAR, motorcycle VARCHAR)",
"role": "system"
},
{
"content": "What result did the ktm motorcycle achieve?",
"role": "user"
},
{
"content": "SELECT position FROM table_16710541_2 WHERE motorcycle = \"KTM\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE APPELLATIONS (County VARCHAR)",
"role": "system"
},
{
"content": "How many appelations are in Napa Country?",
"role": "user"
},
{
"content": "SELECT COUNT(*) FROM APPELLATIONS WHERE County = \"Napa\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25721_3 (dave_viewers INTEGER, dave_ja_vu_viewers VARCHAR)",
"role": "system"
},
{
"content": "What is the highest number of dave viewers of an episode with 119000 dave ja vu viewers?",
"role": "user"
},
{
"content": "SELECT MAX(dave_viewers) FROM table_25721_3 WHERE dave_ja_vu_viewers = 119000",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_49 (website VARCHAR, head_coach VARCHAR)",
"role": "system"
},
{
"content": "What is the Website of Head Coach Yuriy Korotkevich?",
"role": "user"
},
{
"content": "SELECT website FROM table_name_49 WHERE head_coach = \"yuriy korotkevich\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (core__number INTEGER, part_number_opn_ VARCHAR, tdp__w_ VARCHAR)",
"role": "system"
},
{
"content": "What is the sum of core# with a part number of osa242cep5au and TDP greater than 82.1?",
"role": "user"
},
{
"content": "SELECT SUM(core__number) FROM table_name_80 WHERE part_number_opn_ = \"osa242cep5au\" AND tdp__w_ > 82.1",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_3 (qual VARCHAR, laps INTEGER)",
"role": "system"
},
{
"content": "What is the Qual with less than 68 laps?",
"role": "user"
},
{
"content": "SELECT qual FROM table_name_3 WHERE laps < 68",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27539808_3 (opponent VARCHAR, october VARCHAR)",
"role": "system"
},
{
"content": "How many games did they play on october 9?",
"role": "user"
},
{
"content": "SELECT COUNT(opponent) FROM table_27539808_3 WHERE october = 9",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_64 (distance VARCHAR, pilot VARCHAR)",
"role": "system"
},
{
"content": "What is Distance, when Pilot is \"Stanislaw Wujczak\"?",
"role": "user"
},
{
"content": "SELECT distance FROM table_name_64 WHERE pilot = \"stanislaw wujczak\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (danish_title VARCHAR, year VARCHAR, director VARCHAR)",
"role": "system"
},
{
"content": "Prior to 1978, what is the Danish of the Film directed by Bent Christensen?",
"role": "user"
},
{
"content": "SELECT danish_title FROM table_name_16 WHERE year < 1978 AND director = \"bent christensen\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (us_ac VARCHAR, year VARCHAR, us_hot_100 VARCHAR)",
"role": "system"
},
{
"content": "What is th US A.C. in 1985 with a US hot 100 of 57?",
"role": "user"
},
{
"content": "SELECT us_ac FROM table_name_16 WHERE year = 1985 AND us_hot_100 = \"57\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1304443_2 (county VARCHAR, bush_percentage VARCHAR)",
"role": "system"
},
{
"content": "What's the name of the county where 54.6% voted for Bush?",
"role": "user"
},
{
"content": "SELECT county FROM table_1304443_2 WHERE bush_percentage = \"54.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_20195922_3 (odds_of_winning__1in_ VARCHAR, divisions VARCHAR)",
"role": "system"
},
{
"content": "How many odd of winning have 6th as the division?",
"role": "user"
},
{
"content": "SELECT odds_of_winning__1in_ FROM table_20195922_3 WHERE divisions = \"6th\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24901152_2 (year INTEGER, championship VARCHAR)",
"role": "system"
},
{
"content": "When Australian open is the championship what is the lowest year?",
"role": "user"
},
{
"content": "SELECT MIN(year) FROM table_24901152_2 WHERE championship = \"Australian Open\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_10707142_2 (report VARCHAR, race_name VARCHAR)",
"role": "system"
},
{
"content": "what is the name of the report that lists the race name as long beach grand prix?",
"role": "user"
},
{
"content": "SELECT report FROM table_10707142_2 WHERE race_name = \"Long Beach 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_12 (country VARCHAR, place VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What country was the player in t10 place with a score of 66-72-70=207?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_12 WHERE place = \"t10\" AND score = 66 - 72 - 70 = 207",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_142159_1 (arrival INTEGER, name VARCHAR)",
"role": "system"
},
{
"content": "What is the arrival time of greenbat",
"role": "user"
},
{
"content": "SELECT MAX(arrival) FROM table_142159_1 WHERE name = \"Greenbat\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (country VARCHAR, icao VARCHAR)",
"role": "system"
},
{
"content": "What is the country of the airport with ICAO of WADD?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_88 WHERE icao = \"wadd\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (player VARCHAR, team VARCHAR, position VARCHAR)",
"role": "system"
},
{
"content": "Who is the player that plays position f from Fort Wayne Pistons?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_89 WHERE team = \"fort wayne pistons\" AND position = \"f\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (height VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What is the height of the player, Larry Hughes?",
"role": "user"
},
{
"content": "SELECT height FROM table_name_71 WHERE player = \"larry hughes\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (total_goals INTEGER, position VARCHAR, fa_cup_goals VARCHAR, fa_cup_apps VARCHAR)",
"role": "system"
},
{
"content": "Which Total Goals have an FA Cup Goals of 0, and an FA Cup Apps of 3, and a Position of fw?",
"role": "user"
},
{
"content": "SELECT AVG(total_goals) FROM table_name_92 WHERE fa_cup_goals = 0 AND fa_cup_apps = \"3\" AND position = \"fw\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (home_team VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "What is the home team at princes park?",
"role": "user"
},
{
"content": "SELECT home_team FROM table_name_54 WHERE venue = \"princes park\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_42 (year VARCHAR, result VARCHAR)",
"role": "system"
},
{
"content": "How many years have a Result of nominated?",
"role": "user"
},
{
"content": "SELECT COUNT(year) FROM table_name_42 WHERE result = \"nominated\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Maintenance_Contracts (maintenance_contract_company_id VARCHAR); CREATE TABLE Maintenance_Engineers (company_id VARCHAR); CREATE TABLE Third_Party_Companies (company_id VARCHAR, company_name VARCHAR)",
"role": "system"
},
{
"content": "Which third party companies have at least 2 maintenance engineers or have at least 2 maintenance contracts? List the company id and name.",
"role": "user"
},
{
"content": "SELECT T1.company_id, T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Engineers AS T2 ON T1.company_id = T2.company_id GROUP BY T1.company_id HAVING COUNT(*) >= 2 UNION SELECT T3.company_id, T3.company_name FROM Third_Party_Companies AS T3 JOIN Maintenance_Contracts AS T4 ON T3.company_id = T4.maintenance_contract_company_id GROUP BY T3.company_id HAVING COUNT(*) >= 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_11545282_6 (player VARCHAR, years_for_jazz VARCHAR)",
"role": "system"
},
{
"content": "How many players have played for Jazz during 2006-2007?",
"role": "user"
},
{
"content": "SELECT COUNT(player) FROM table_11545282_6 WHERE years_for_jazz = \"2006-2007\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_19753079_8 (incumbent VARCHAR, first_elected VARCHAR)",
"role": "system"
},
{
"content": "What incumbent was first elected in 2009?",
"role": "user"
},
{
"content": "SELECT incumbent FROM table_19753079_8 WHERE first_elected = 2009",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (power VARCHAR, fuel_system VARCHAR, displacement VARCHAR)",
"role": "system"
},
{
"content": "How much power does the fuel injection system have with a displacement of 1991cc?",
"role": "user"
},
{
"content": "SELECT power FROM table_name_47 WHERE fuel_system = \"fuel injection\" AND displacement = \"1991cc\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2077192_2 (phonetic_greek VARCHAR, french VARCHAR)",
"role": "system"
},
{
"content": "How many Phonetic Greek words translate to grenouille in French?",
"role": "user"
},
{
"content": "SELECT COUNT(phonetic_greek) FROM table_2077192_2 WHERE french = \"grenouille\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (player VARCHAR, place VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "What T9 Player had a Score of 70-74-69-70=283?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_93 WHERE place = \"t9\" AND score = 70 - 74 - 69 - 70 = 283",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25751274_2 (rating VARCHAR, share VARCHAR)",
"role": "system"
},
{
"content": "What is the rating of the episode with a share of 4 and a rating/share (18-49) of 0.7/2?",
"role": "user"
},
{
"content": "SELECT rating FROM table_25751274_2 WHERE share = 4 AND rating / SHARE(18 - 49) = 0.7 / 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_19 (score VARCHAR, game VARCHAR)",
"role": "system"
},
{
"content": "What is the score at game 31?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_19 WHERE game = 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_70 (score_in_the_final VARCHAR, surface VARCHAR, tournament VARCHAR)",
"role": "system"
},
{
"content": "Played on Clay Surface, what was the Score of the Dortmund Tournament?",
"role": "user"
},
{
"content": "SELECT score_in_the_final FROM table_name_70 WHERE surface = \"clay\" AND tournament = \"dortmund\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (isbn_uk VARCHAR, author VARCHAR, isbn_us VARCHAR)",
"role": "system"
},
{
"content": "What is ISBN UK, when Author is \"Dave Martin\", and when ISBN US is \"N/A\"?",
"role": "user"
},
{
"content": "SELECT isbn_uk FROM table_name_38 WHERE author = \"dave martin\" AND isbn_us = \"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_62 (out_of VARCHAR, source VARCHAR)",
"role": "system"
},
{
"content": "Concerning protestantism by country, the ranking is out of how many total?",
"role": "user"
},
{
"content": "SELECT out_of FROM table_name_62 WHERE source = \"protestantism by country\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24565004_17 (period VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "Name the period for michel prost",
"role": "user"
},
{
"content": "SELECT period FROM table_24565004_17 WHERE name = \"Michel Prost\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (title VARCHAR, language VARCHAR)",
"role": "system"
},
{
"content": "Which title is in Portuguese?",
"role": "user"
},
{
"content": "SELECT title FROM table_name_28 WHERE language = \"portuguese\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25355501_2 (november_3 VARCHAR, august_21_22 VARCHAR)",
"role": "system"
},
{
"content": "What is shown for november 3 when august 21-22 is august 22, 1998?",
"role": "user"
},
{
"content": "SELECT november_3 FROM table_25355501_2 WHERE august_21_22 = \"August 22, 1998\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE debate_people (Negative VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR)",
"role": "system"
},
{
"content": "Show the names of people who have been on the negative side of debates at least twice.",
"role": "user"
},
{
"content": "SELECT T2.Name FROM debate_people AS T1 JOIN people AS T2 ON T1.Negative = T2.People_ID GROUP BY T2.Name HAVING COUNT(*) >= 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_25034983_2 (start INTEGER, owner VARCHAR)",
"role": "system"
},
{
"content": "In what year was cumulus founded?",
"role": "user"
},
{
"content": "SELECT MIN(start) FROM table_25034983_2 WHERE owner = \"Cumulus\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1682026_3 (profits__billion_$_ VARCHAR, company VARCHAR)",
"role": "system"
},
{
"content": "What are the profits of Wells Fargo (in billions)?",
"role": "user"
},
{
"content": "SELECT profits__billion_$_ FROM table_1682026_3 WHERE company = \"Wells Fargo\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (score INTEGER, country VARCHAR, venue VARCHAR)",
"role": "system"
},
{
"content": "What was France's highest score when the venue was Bokskogens?",
"role": "user"
},
{
"content": "SELECT MAX(score) FROM table_name_1 WHERE country = \"france\" AND venue = \"bokskogens\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2076595_1 (founded INTEGER, school VARCHAR)",
"role": "system"
},
{
"content": "When was Southern Vermont College founded?",
"role": "user"
},
{
"content": "SELECT MAX(founded) FROM table_2076595_1 WHERE school = \"Southern Vermont College\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (venue VARCHAR, competition VARCHAR)",
"role": "system"
},
{
"content": "What was the Venue of the King's Cup 1998?",
"role": "user"
},
{
"content": "SELECT venue FROM table_name_3 WHERE competition = \"king's cup 1998\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23197088_4 (score_in_final VARCHAR, championship VARCHAR)",
"role": "system"
},
{
"content": "such as are entire the rating of closing where championship is moscow",
"role": "user"
},
{
"content": "SELECT score_in_final FROM table_23197088_4 WHERE championship = \"Moscow\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25017530_6 (cfl_team VARCHAR, position VARCHAR)",
"role": "system"
},
{
"content": "Name the cfl team for lb position",
"role": "user"
},
{
"content": "SELECT cfl_team FROM table_25017530_6 WHERE position = \"LB\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22073745_1 (languages VARCHAR, original_title VARCHAR)",
"role": "system"
},
{
"content": "How many languages have le roman de renart as the original title?",
"role": "user"
},
{
"content": "SELECT COUNT(languages) FROM table_22073745_1 WHERE original_title = \"Le Roman de Renart\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (date VARCHAR, home_team VARCHAR)",
"role": "system"
},
{
"content": "On what date did Melbourne play as the home team?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_45 WHERE home_team = \"melbourne\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (song VARCHAR, draw VARCHAR, points VARCHAR, place VARCHAR)",
"role": "system"
},
{
"content": "Which Song has Points smaller than 53, and a Place larger than 8, and a Draw larger than 1?",
"role": "user"
},
{
"content": "SELECT song FROM table_name_52 WHERE points < 53 AND place > 8 AND draw > 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_23 (wins INTEGER, games VARCHAR, losses VARCHAR, teams VARCHAR)",
"role": "system"
},
{
"content": "what is the highest wins when the losses is less than 1, team is rams and the games is more than 8?",
"role": "user"
},
{
"content": "SELECT MAX(wins) FROM table_name_23 WHERE losses < 1 AND teams = \"rams\" AND games > 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_36 (game_site VARCHAR, result VARCHAR)",
"role": "system"
},
{
"content": "Name the game site with result of l 7-38",
"role": "user"
},
{
"content": "SELECT game_site FROM table_name_36 WHERE result = \"l 7-38\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_28 (rank VARCHAR, country VARCHAR)",
"role": "system"
},
{
"content": "What was the rank for Great Britain?",
"role": "user"
},
{
"content": "SELECT COUNT(rank) FROM table_name_28 WHERE country = \"great britain\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (year VARCHAR, laps VARCHAR)",
"role": "system"
},
{
"content": "What year had 134 laps?",
"role": "user"
},
{
"content": "SELECT year FROM table_name_75 WHERE laps = 134",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (result VARCHAR, venue VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Which Result has a Venue of home, and a Date of 3 october 1987?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_54 WHERE venue = \"home\" AND date = \"3 october 1987\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2226817_12 (title VARCHAR, production_code VARCHAR)",
"role": "system"
},
{
"content": "what is the name of the episode when the production code is 11.01?",
"role": "user"
},
{
"content": "SELECT title FROM table_2226817_12 WHERE production_code = \"11.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_5 (location VARCHAR, manager VARCHAR)",
"role": "system"
},
{
"content": "What is the Location of the Stadium where Job Dragtsma is Manager?",
"role": "user"
},
{
"content": "SELECT location FROM table_name_5 WHERE manager = \"job dragtsma\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23528223_2 (written_by VARCHAR, us_viewers__millions_ VARCHAR)",
"role": "system"
},
{
"content": "Who wrote the episode seen by 10.64 million people in the US?",
"role": "user"
},
{
"content": "SELECT written_by FROM table_23528223_2 WHERE us_viewers__millions_ = \"10.64\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_30133_3 (economy VARCHAR)",
"role": "system"
},
{
"content": "What is the maximum 2010 value for China?",
"role": "user"
},
{
"content": "SELECT MAX(2010) FROM table_30133_3 WHERE economy = \"China\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_98 (title VARCHAR, role VARCHAR, year VARCHAR, studio VARCHAR)",
"role": "system"
},
{
"content": "What is the title where the studio was RKO, the role was Dolly, and the year was later than 1943?",
"role": "user"
},
{
"content": "SELECT title FROM table_name_98 WHERE year > 1943 AND studio = \"rko\" AND role = \"dolly\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1805919_1 (traditional_chinese VARCHAR, english_translation VARCHAR)",
"role": "system"
},
{
"content": "How many traditional Chinese for the translation of \"Crossing the River\"?",
"role": "user"
},
{
"content": "SELECT COUNT(traditional_chinese) FROM table_1805919_1 WHERE english_translation = \"Crossing the River\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (event VARCHAR)",
"role": "system"
},
{
"content": "What is the 2010–11 when the Event is colonial square ladies classic?",
"role": "user"
},
{
"content": "SELECT 2010 AS _11 FROM table_name_75 WHERE event = \"colonial square ladies classic\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_6 (tournament VARCHAR)",
"role": "system"
},
{
"content": "What is the tournament in 2012 results that has a 2003 results of 2r and played at Wimbledon?",
"role": "user"
},
{
"content": "SELECT 2012 FROM table_name_6 WHERE 2003 = \"2r\" AND tournament = \"wimbledon\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (engine_s_ VARCHAR, chassis VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "What is the engine(s) on the car before 1978 with ensign n177 chassis?",
"role": "user"
},
{
"content": "SELECT engine_s_ FROM table_name_71 WHERE chassis = \"ensign n177\" AND year < 1978",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (time VARCHAR, rank VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "Which time has a Rank larger than 3, and a Name of andrey kapralov?",
"role": "user"
},
{
"content": "SELECT time FROM table_name_31 WHERE rank > 3 AND name = \"andrey kapralov\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (programming VARCHAR, channel VARCHAR)",
"role": "system"
},
{
"content": "Which Programming is on Channel 26.5?",
"role": "user"
},
{
"content": "SELECT programming FROM table_name_98 WHERE channel = 26.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_36 (verb_meaning VARCHAR, part_2 VARCHAR)",
"role": "system"
},
{
"content": "What is the verb meaning when part 2 is band?",
"role": "user"
},
{
"content": "SELECT verb_meaning FROM table_name_36 WHERE part_2 = \"band\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (third VARCHAR, lead VARCHAR, season VARCHAR)",
"role": "system"
},
{
"content": "What is the Third in the 1993-94 season where Philippe Caux was a lead?",
"role": "user"
},
{
"content": "SELECT third FROM table_name_39 WHERE lead = \"philippe caux\" AND season = \"1993-94\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_58 (laps INTEGER, driver VARCHAR)",
"role": "system"
},
{
"content": "What is the least number of laps for the driver Jo Siffert?",
"role": "user"
},
{
"content": "SELECT MIN(laps) FROM table_name_58 WHERE driver = \"jo siffert\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_42 (rank VARCHAR, primary_industry VARCHAR)",
"role": "system"
},
{
"content": "How many ranks have an industry of health care?",
"role": "user"
},
{
"content": "SELECT COUNT(rank) FROM table_name_42 WHERE primary_industry = \"health care\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20799905_1 (county VARCHAR, mccain_percentage VARCHAR)",
"role": "system"
},
{
"content": "In what county did McCain get 57.8%?",
"role": "user"
},
{
"content": "SELECT county FROM table_20799905_1 WHERE mccain_percentage = \"57.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_28 (round VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "What round was the opponent Sergiy Stakhovsky?",
"role": "user"
},
{
"content": "SELECT round FROM table_name_28 WHERE opponent = \"sergiy stakhovsky\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. 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 (no_s_ INTEGER, position VARCHAR, school_club_team_country VARCHAR)",
"role": "system"
},
{
"content": "What is the total number of years did he play the forward position and what school/club/team/country of Oregon State did he play?",
"role": "user"
},
{
"content": "SELECT SUM(no_s_) FROM table_name_92 WHERE position = \"forward\" AND school_club_team_country = \"oregon 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_name_19 (color VARCHAR, thai_name VARCHAR)",
"role": "system"
},
{
"content": "Show the Color which has a Thai name of วันพฤหัสบดี?",
"role": "user"
},
{
"content": "SELECT color FROM table_name_19 WHERE thai_name = \"วันพฤหัสบดี\"",
"role": "assistant"
}
] |
End of preview. Expand
in Data Studio
README.md exists but content is empty.
- Downloads last month
- 3