context stringlengths 27 489 | answer stringlengths 18 557 | question stringlengths 12 243 | text stringlengths 103 1.05k |
|---|---|---|---|
CREATE TABLE table_name_17 (attendance INTEGER, date VARCHAR, week VARCHAR) | SELECT MIN(attendance) FROM table_name_17 WHERE date = "september 29, 1968" AND week < 3 | Which Attendance has a Date of september 29, 1968, and a Week smaller than 3? | <s>[INST]Which Attendance has a Date of september 29, 1968, and a Week smaller than 3? Context: CREATE TABLE table_name_17 (attendance INTEGER, date VARCHAR, week VARCHAR)[/INST]SELECT MIN(attendance) FROM table_name_17 WHERE date = "september 29, 1968" AND week < 3</s> |
CREATE TABLE table_name_53 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_53 WHERE record = "2–1" | On what date was the record 2–1? | <s>[INST]On what date was the record 2–1? Context: CREATE TABLE table_name_53 (date VARCHAR, record VARCHAR)[/INST]SELECT date FROM table_name_53 WHERE record = "2–1"</s> |
CREATE TABLE table_17598822_11 (challenge_cup INTEGER, player VARCHAR) | SELECT MAX(challenge_cup) FROM table_17598822_11 WHERE player = "Damon Gray" | Name the most challenge cup for damon gray | <s>[INST]Name the most challenge cup for damon gray Context: CREATE TABLE table_17598822_11 (challenge_cup INTEGER, player VARCHAR)[/INST]SELECT MAX(challenge_cup) FROM table_17598822_11 WHERE player = "Damon Gray"</s> |
CREATE TABLE table_1341884_20 (candidates VARCHAR, first_elected VARCHAR) | SELECT candidates FROM table_1341884_20 WHERE first_elected = 1961 | Who were all the candidates when the first elected year was 1961? | <s>[INST]Who were all the candidates when the first elected year was 1961? Context: CREATE TABLE table_1341884_20 (candidates VARCHAR, first_elected VARCHAR)[/INST]SELECT candidates FROM table_1341884_20 WHERE first_elected = 1961</s> |
CREATE TABLE table_name_50 (cuts_made INTEGER, tournaments_played VARCHAR, year VARCHAR) | SELECT AVG(cuts_made) FROM table_name_50 WHERE tournaments_played > 2 AND year = 2011 | What is the average number of cuts made when there were more than 2 tournaments played in 2011? | <s>[INST]What is the average number of cuts made when there were more than 2 tournaments played in 2011? Context: CREATE TABLE table_name_50 (cuts_made INTEGER, tournaments_played VARCHAR, year VARCHAR)[/INST]SELECT AVG(cuts_made) FROM table_name_50 WHERE tournaments_played > 2 AND year = 2011</s> |
CREATE TABLE employee (emp_fname VARCHAR, emp_lname VARCHAR, emp_dob VARCHAR) | SELECT emp_fname, emp_lname FROM employee ORDER BY emp_dob LIMIT 1 | What is the first and last name of the oldest employee? | <s>[INST]What is the first and last name of the oldest employee? Context: CREATE TABLE employee (emp_fname VARCHAR, emp_lname VARCHAR, emp_dob VARCHAR)[/INST]SELECT emp_fname, emp_lname FROM employee ORDER BY emp_dob LIMIT 1</s> |
CREATE TABLE table_148578_1 (altitude__km_ VARCHAR, yield__approximate_ VARCHAR) | SELECT altitude__km_ FROM table_148578_1 WHERE yield__approximate_ = "1.4 megatons" | What was the altitude of the yield of 1.4 megatons? | <s>[INST]What was the altitude of the yield of 1.4 megatons? Context: CREATE TABLE table_148578_1 (altitude__km_ VARCHAR, yield__approximate_ VARCHAR)[/INST]SELECT altitude__km_ FROM table_148578_1 WHERE yield__approximate_ = "1.4 megatons"</s> |
CREATE TABLE table_name_91 (record VARCHAR, method VARCHAR, res VARCHAR) | SELECT record FROM table_name_91 WHERE method = "decision" AND res = "win" | What's the record for the match when the res was a win and the method was a decision? | <s>[INST]What's the record for the match when the res was a win and the method was a decision? Context: CREATE TABLE table_name_91 (record VARCHAR, method VARCHAR, res VARCHAR)[/INST]SELECT record FROM table_name_91 WHERE method = "decision" AND res = "win"</s> |
CREATE TABLE Participants_in_Events (Participant_ID VARCHAR, Event_ID VARCHAR); CREATE TABLE services (Service_Type_Code VARCHAR, service_id VARCHAR); CREATE TABLE EVENTS (service_id VARCHAR, Event_ID VARCHAR); CREATE TABLE participants (Participant_ID VARCHAR) | SELECT T3.service_id, T4.Service_Type_Code FROM participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID = T2.Participant_ID JOIN EVENTS AS T3 ON T2.Event_ID = T3.Event_ID JOIN services AS T4 ON T3.service_id = T4.service_id GROUP BY T3.service_id ORDER BY COUNT(*) LIMIT 1 | Which service id and type has the least number of participants? | <s>[INST]Which service id and type has the least number of participants? Context: CREATE TABLE Participants_in_Events (Participant_ID VARCHAR, Event_ID VARCHAR); CREATE TABLE services (Service_Type_Code VARCHAR, service_id VARCHAR); CREATE TABLE EVENTS (service_id VARCHAR, Event_ID VARCHAR); CREATE TABLE participants (... |
CREATE TABLE table_2503102_1 (engine VARCHAR, car_sponsor_s_ VARCHAR) | SELECT engine FROM table_2503102_1 WHERE car_sponsor_s_ = "Fuzzy's Ultra Premium Vodka" | What engine does the Fuzzy's Ultra Premium Vodka sponsored car use? | <s>[INST]What engine does the Fuzzy's Ultra Premium Vodka sponsored car use? Context: CREATE TABLE table_2503102_1 (engine VARCHAR, car_sponsor_s_ VARCHAR)[/INST]SELECT engine FROM table_2503102_1 WHERE car_sponsor_s_ = "Fuzzy's Ultra Premium Vodka"</s> |
CREATE TABLE table_name_12 (drawn VARCHAR, tries_for VARCHAR) | SELECT drawn FROM table_name_12 WHERE tries_for = "58" | What is the drawn number when there are 58 tries? | <s>[INST]What is the drawn number when there are 58 tries? Context: CREATE TABLE table_name_12 (drawn VARCHAR, tries_for VARCHAR)[/INST]SELECT drawn FROM table_name_12 WHERE tries_for = "58"</s> |
CREATE TABLE table_name_21 (sport VARCHAR, event VARCHAR) | SELECT sport FROM table_name_21 WHERE event = "men's 400 m hurdles" | Which Sport had an Event of men's 400 m hurdles? | <s>[INST]Which Sport had an Event of men's 400 m hurdles? Context: CREATE TABLE table_name_21 (sport VARCHAR, event VARCHAR)[/INST]SELECT sport FROM table_name_21 WHERE event = "men's 400 m hurdles"</s> |
CREATE TABLE table_name_70 (birthplace VARCHAR, birthdate VARCHAR, height__in_ VARCHAR, position VARCHAR) | SELECT birthplace FROM table_name_70 WHERE height__in_ > 192 AND position = "d" AND birthdate = "april 5, 1983" | Which birthplace's height in inches was more than 192 when the position was d and the birthday was April 5, 1983? | <s>[INST]Which birthplace's height in inches was more than 192 when the position was d and the birthday was April 5, 1983? Context: CREATE TABLE table_name_70 (birthplace VARCHAR, birthdate VARCHAR, height__in_ VARCHAR, position VARCHAR)[/INST]SELECT birthplace FROM table_name_70 WHERE height__in_ > 192 AND position = ... |
CREATE TABLE table_20614109_1 (revenue__ INTEGER, earnings_per_share__€_ VARCHAR) | SELECT MAX(revenue__) AS €million_ FROM table_20614109_1 WHERE earnings_per_share__€_ = "1.19" | Name the revenue for eps being 1.19 | <s>[INST]Name the revenue for eps being 1.19 Context: CREATE TABLE table_20614109_1 (revenue__ INTEGER, earnings_per_share__€_ VARCHAR)[/INST]SELECT MAX(revenue__) AS €million_ FROM table_20614109_1 WHERE earnings_per_share__€_ = "1.19"</s> |
CREATE TABLE table_name_75 (capacity INTEGER, year_opened VARCHAR) | SELECT MIN(capacity) FROM table_name_75 WHERE year_opened = "1903" | What is the lowest capacity for 1903? | <s>[INST]What is the lowest capacity for 1903? Context: CREATE TABLE table_name_75 (capacity INTEGER, year_opened VARCHAR)[/INST]SELECT MIN(capacity) FROM table_name_75 WHERE year_opened = "1903"</s> |
CREATE TABLE table_name_77 (res VARCHAR, location VARCHAR, record VARCHAR) | SELECT res FROM table_name_77 WHERE location = "canada" AND record = "3-3" | Which result has a Location of canada, and a Record of 3-3? | <s>[INST]Which result has a Location of canada, and a Record of 3-3? Context: CREATE TABLE table_name_77 (res VARCHAR, location VARCHAR, record VARCHAR)[/INST]SELECT res FROM table_name_77 WHERE location = "canada" AND record = "3-3"</s> |
CREATE TABLE phone (Carrier VARCHAR, Memory_in_G INTEGER) | SELECT DISTINCT Carrier FROM phone WHERE Memory_in_G > 32 | List the distinct carriers of phones with memories bigger than 32. | <s>[INST]List the distinct carriers of phones with memories bigger than 32. Context: CREATE TABLE phone (Carrier VARCHAR, Memory_in_G INTEGER)[/INST]SELECT DISTINCT Carrier FROM phone WHERE Memory_in_G > 32</s> |
CREATE TABLE table_name_50 (developer_s_ VARCHAR, platform_s_ VARCHAR) | SELECT developer_s_ FROM table_name_50 WHERE platform_s_ = "wii" | Who was the developer of Wii? | <s>[INST]Who was the developer of Wii? Context: CREATE TABLE table_name_50 (developer_s_ VARCHAR, platform_s_ VARCHAR)[/INST]SELECT developer_s_ FROM table_name_50 WHERE platform_s_ = "wii"</s> |
CREATE TABLE table_name_67 (save VARCHAR, score VARCHAR) | SELECT save FROM table_name_67 WHERE score = "7-6" | What is the save of the game with a 7-6 score? | <s>[INST]What is the save of the game with a 7-6 score? Context: CREATE TABLE table_name_67 (save VARCHAR, score VARCHAR)[/INST]SELECT save FROM table_name_67 WHERE score = "7-6"</s> |
CREATE TABLE table_11677691_4 (college VARCHAR, school VARCHAR) | SELECT college FROM table_11677691_4 WHERE school = "Mission Viejo High school" | Which college did the player attend that went to Mission Viejo High School? | <s>[INST]Which college did the player attend that went to Mission Viejo High School? Context: CREATE TABLE table_11677691_4 (college VARCHAR, school VARCHAR)[/INST]SELECT college FROM table_11677691_4 WHERE school = "Mission Viejo High school"</s> |
CREATE TABLE table_name_57 (max_1_min_wind_mph__km_h_ VARCHAR, min_press___mbar__ VARCHAR) | SELECT max_1_min_wind_mph__km_h_ FROM table_name_57 WHERE min_press___mbar__ = "997" | What is the max 1-min wind mph when the minimum press is 997? | <s>[INST]What is the max 1-min wind mph when the minimum press is 997? Context: CREATE TABLE table_name_57 (max_1_min_wind_mph__km_h_ VARCHAR, min_press___mbar__ VARCHAR)[/INST]SELECT max_1_min_wind_mph__km_h_ FROM table_name_57 WHERE min_press___mbar__ = "997"</s> |
CREATE TABLE table_name_24 (colour_commentator_s_ VARCHAR, network VARCHAR, year VARCHAR) | SELECT colour_commentator_s_ FROM table_name_24 WHERE network = "cbc" AND year = 1987 | On CBC, who was the colour commentator in 1987? | <s>[INST]On CBC, who was the colour commentator in 1987? Context: CREATE TABLE table_name_24 (colour_commentator_s_ VARCHAR, network VARCHAR, year VARCHAR)[/INST]SELECT colour_commentator_s_ FROM table_name_24 WHERE network = "cbc" AND year = 1987</s> |
CREATE TABLE table_name_95 (runners_up VARCHAR, champions VARCHAR, year VARCHAR) | SELECT runners_up FROM table_name_95 WHERE champions = "stefan edberg" AND year = 1987 | In 1987, what is the Runners-up when Stefan Edberg is Champion? | <s>[INST]In 1987, what is the Runners-up when Stefan Edberg is Champion? Context: CREATE TABLE table_name_95 (runners_up VARCHAR, champions VARCHAR, year VARCHAR)[/INST]SELECT runners_up FROM table_name_95 WHERE champions = "stefan edberg" AND year = 1987</s> |
CREATE TABLE table_27698941_8 (team VARCHAR, date VARCHAR) | SELECT team FROM table_27698941_8 WHERE date = "January 17" | Who were the 76ers opponents on January 17? | <s>[INST]Who were the 76ers opponents on January 17? Context: CREATE TABLE table_27698941_8 (team VARCHAR, date VARCHAR)[/INST]SELECT team FROM table_27698941_8 WHERE date = "January 17"</s> |
CREATE TABLE table_name_88 (top_5 INTEGER, cuts_made VARCHAR, events VARCHAR) | SELECT MIN(top_5) FROM table_name_88 WHERE cuts_made = 10 AND events > 10 | Which Top-5 is the lowest one that has Cuts made of 10, and Events larger than 10? | <s>[INST]Which Top-5 is the lowest one that has Cuts made of 10, and Events larger than 10? Context: CREATE TABLE table_name_88 (top_5 INTEGER, cuts_made VARCHAR, events VARCHAR)[/INST]SELECT MIN(top_5) FROM table_name_88 WHERE cuts_made = 10 AND events > 10</s> |
CREATE TABLE table_1942683_1 (house_mascot VARCHAR, house_colour VARCHAR) | SELECT COUNT(house_mascot) FROM table_1942683_1 WHERE house_colour = "Yellow" | How many house mascots are associated with yellow house colours? | <s>[INST]How many house mascots are associated with yellow house colours? Context: CREATE TABLE table_1942683_1 (house_mascot VARCHAR, house_colour VARCHAR)[/INST]SELECT COUNT(house_mascot) FROM table_1942683_1 WHERE house_colour = "Yellow"</s> |
CREATE TABLE table_11208143_9 (capacity INTEGER, stadium VARCHAR) | SELECT MAX(capacity) FROM table_11208143_9 WHERE stadium = "Pittodrie" | What is Pittodrie Stadium's maximum capacity? | <s>[INST]What is Pittodrie Stadium's maximum capacity? Context: CREATE TABLE table_11208143_9 (capacity INTEGER, stadium VARCHAR)[/INST]SELECT MAX(capacity) FROM table_11208143_9 WHERE stadium = "Pittodrie"</s> |
CREATE TABLE table_name_7 (wins VARCHAR, races INTEGER) | SELECT wins FROM table_name_7 WHERE races > 16 | How many Wins in the Year with more than 16 Races? | <s>[INST]How many Wins in the Year with more than 16 Races? Context: CREATE TABLE table_name_7 (wins VARCHAR, races INTEGER)[/INST]SELECT wins FROM table_name_7 WHERE races > 16</s> |
CREATE TABLE table_27383390_4 (team VARCHAR, date_of_vacancy VARCHAR) | SELECT team FROM table_27383390_4 WHERE date_of_vacancy = "8 Dec 2010" | What is the team with the date of vacancy 8 dec 2010? | <s>[INST]What is the team with the date of vacancy 8 dec 2010? Context: CREATE TABLE table_27383390_4 (team VARCHAR, date_of_vacancy VARCHAR)[/INST]SELECT team FROM table_27383390_4 WHERE date_of_vacancy = "8 Dec 2010"</s> |
CREATE TABLE table_name_35 (grid VARCHAR, laps VARCHAR) | SELECT COUNT(grid) FROM table_name_35 WHERE laps = 18 | What is the grid total associated with 18 laps? | <s>[INST]What is the grid total associated with 18 laps? Context: CREATE TABLE table_name_35 (grid VARCHAR, laps VARCHAR)[/INST]SELECT COUNT(grid) FROM table_name_35 WHERE laps = 18</s> |
CREATE TABLE Ref_template_types (template_type_code VARCHAR, template_type_description VARCHAR) | SELECT template_type_code, template_type_description FROM Ref_template_types | Show all template type codes and descriptions. | <s>[INST]Show all template type codes and descriptions. Context: CREATE TABLE Ref_template_types (template_type_code VARCHAR, template_type_description VARCHAR)[/INST]SELECT template_type_code, template_type_description FROM Ref_template_types</s> |
CREATE TABLE csu_fees (campusfee INTEGER, YEAR VARCHAR) | SELECT AVG(campusfee) FROM csu_fees WHERE YEAR = 1996 | Find the average fee on a CSU campus in 1996 | <s>[INST]Find the average fee on a CSU campus in 1996 Context: CREATE TABLE csu_fees (campusfee INTEGER, YEAR VARCHAR)[/INST]SELECT AVG(campusfee) FROM csu_fees WHERE YEAR = 1996</s> |
CREATE TABLE table_22879323_9 (record VARCHAR, score VARCHAR) | SELECT record FROM table_22879323_9 WHERE score = "L 90–100 (OT)" | Name the record for l 90–100 (ot) | <s>[INST]Name the record for l 90–100 (ot) Context: CREATE TABLE table_22879323_9 (record VARCHAR, score VARCHAR)[/INST]SELECT record FROM table_22879323_9 WHERE score = "L 90–100 (OT)"</s> |
CREATE TABLE table_name_19 (points_against VARCHAR, tries_against VARCHAR, lost VARCHAR) | SELECT points_against FROM table_name_19 WHERE tries_against = "49" AND lost = "14" | What is the number of points for the team with 49 tries against and 14 lost? | <s>[INST]What is the number of points for the team with 49 tries against and 14 lost? Context: CREATE TABLE table_name_19 (points_against VARCHAR, tries_against VARCHAR, lost VARCHAR)[/INST]SELECT points_against FROM table_name_19 WHERE tries_against = "49" AND lost = "14"</s> |
CREATE TABLE table_name_61 (average INTEGER, lowest VARCHAR, team VARCHAR) | SELECT MIN(average) FROM table_name_61 WHERE lowest > 288 AND team = "east stirlingshire" | Lowest larger than 288, and a Team of east stirlingshire has what lowest average? | <s>[INST]Lowest larger than 288, and a Team of east stirlingshire has what lowest average? Context: CREATE TABLE table_name_61 (average INTEGER, lowest VARCHAR, team VARCHAR)[/INST]SELECT MIN(average) FROM table_name_61 WHERE lowest > 288 AND team = "east stirlingshire"</s> |
CREATE TABLE table_1140090_6 (circuit VARCHAR, winning_driver VARCHAR) | SELECT circuit FROM table_1140090_6 WHERE winning_driver = "Clay Regazzoni" | What circuit did Clay Regazzoni win? | <s>[INST]What circuit did Clay Regazzoni win? Context: CREATE TABLE table_1140090_6 (circuit VARCHAR, winning_driver VARCHAR)[/INST]SELECT circuit FROM table_1140090_6 WHERE winning_driver = "Clay Regazzoni"</s> |
CREATE TABLE table_name_25 (club VARCHAR, founded VARCHAR) | SELECT club FROM table_name_25 WHERE founded = 1962 | Which club was founded in 1962? | <s>[INST]Which club was founded in 1962? Context: CREATE TABLE table_name_25 (club VARCHAR, founded VARCHAR)[/INST]SELECT club FROM table_name_25 WHERE founded = 1962</s> |
CREATE TABLE table_name_29 (displacement VARCHAR, redline__rpm_ VARCHAR, year VARCHAR) | SELECT displacement FROM table_name_29 WHERE redline__rpm_ > 4750 AND year = 2005 | What is the displacement of the engine that has a Redline rpm higher than 4750, from 2005? | <s>[INST]What is the displacement of the engine that has a Redline rpm higher than 4750, from 2005? Context: CREATE TABLE table_name_29 (displacement VARCHAR, redline__rpm_ VARCHAR, year VARCHAR)[/INST]SELECT displacement FROM table_name_29 WHERE redline__rpm_ > 4750 AND year = 2005</s> |
CREATE TABLE table_name_96 (country VARCHAR, fis_nordic_world_ski_championships VARCHAR) | SELECT country FROM table_name_96 WHERE fis_nordic_world_ski_championships = "1948, 1950" | Which Country has a FIS Nordic World Ski Championships of 1948, 1950? | <s>[INST]Which Country has a FIS Nordic World Ski Championships of 1948, 1950? Context: CREATE TABLE table_name_96 (country VARCHAR, fis_nordic_world_ski_championships VARCHAR)[/INST]SELECT country FROM table_name_96 WHERE fis_nordic_world_ski_championships = "1948, 1950"</s> |
CREATE TABLE department (school_code VARCHAR, dept_name VARCHAR) | SELECT COUNT(DISTINCT dept_name), school_code FROM department GROUP BY school_code | Find the number of departments in each school. | <s>[INST]Find the number of departments in each school. Context: CREATE TABLE department (school_code VARCHAR, dept_name VARCHAR)[/INST]SELECT COUNT(DISTINCT dept_name), school_code FROM department GROUP BY school_code</s> |
CREATE TABLE table_name_34 (purpose VARCHAR, callsign VARCHAR) | SELECT purpose FROM table_name_34 WHERE callsign = "6nan" | Callsign of 6nan has what purpose? | <s>[INST]Callsign of 6nan has what purpose? Context: CREATE TABLE table_name_34 (purpose VARCHAR, callsign VARCHAR)[/INST]SELECT purpose FROM table_name_34 WHERE callsign = "6nan"</s> |
CREATE TABLE table_name_28 (opponent VARCHAR, week VARCHAR) | SELECT opponent FROM table_name_28 WHERE week = 14 | Who was the opponent in week 14? | <s>[INST]Who was the opponent in week 14? Context: CREATE TABLE table_name_28 (opponent VARCHAR, week VARCHAR)[/INST]SELECT opponent FROM table_name_28 WHERE week = 14</s> |
CREATE TABLE table_name_54 (trainer VARCHAR, time VARCHAR, jockey VARCHAR) | SELECT trainer FROM table_name_54 WHERE time = "1:44.80" AND jockey = "william jenkins" | What Trainer had Jockey William Jenkins in a race with Time of 1:44.80? | <s>[INST]What Trainer had Jockey William Jenkins in a race with Time of 1:44.80? Context: CREATE TABLE table_name_54 (trainer VARCHAR, time VARCHAR, jockey VARCHAR)[/INST]SELECT trainer FROM table_name_54 WHERE time = "1:44.80" AND jockey = "william jenkins"</s> |
CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR, customer_address VARCHAR) | SELECT customer_name, customer_id FROM customers WHERE customer_address LIKE "%TN%" | What are the names and ids of customers whose address contains TN? | <s>[INST]What are the names and ids of customers whose address contains TN? Context: CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR, customer_address VARCHAR)[/INST]SELECT customer_name, customer_id FROM customers WHERE customer_address LIKE "%TN%"</s> |
CREATE TABLE table_name_75 (score VARCHAR, result VARCHAR, record VARCHAR) | SELECT score FROM table_name_75 WHERE result = "loss" AND record = "1-1" | WHAT SCORE HAD A LOSS AND RECORD OF 1-1? | <s>[INST]WHAT SCORE HAD A LOSS AND RECORD OF 1-1? Context: CREATE TABLE table_name_75 (score VARCHAR, result VARCHAR, record VARCHAR)[/INST]SELECT score FROM table_name_75 WHERE result = "loss" AND record = "1-1"</s> |
CREATE TABLE table_23670057_4 (year_born INTEGER, player VARCHAR) | SELECT MAX(year_born) FROM table_23670057_4 WHERE player = "Ido Kozikaro" | What is the date of birth for basket baller called ido kozikaro | <s>[INST]What is the date of birth for basket baller called ido kozikaro Context: CREATE TABLE table_23670057_4 (year_born INTEGER, player VARCHAR)[/INST]SELECT MAX(year_born) FROM table_23670057_4 WHERE player = "Ido Kozikaro"</s> |
CREATE TABLE table_name_29 (goals VARCHAR, Game VARCHAR, appearances VARCHAR) | SELECT goals / Game AS Ratio FROM table_name_29 WHERE goals < 201 AND appearances < 170 | Which goals/game ratio has fewer than 201 goals and fewer than 170 appearances? | <s>[INST]Which goals/game ratio has fewer than 201 goals and fewer than 170 appearances? Context: CREATE TABLE table_name_29 (goals VARCHAR, Game VARCHAR, appearances VARCHAR)[/INST]SELECT goals / Game AS Ratio FROM table_name_29 WHERE goals < 201 AND appearances < 170</s> |
CREATE TABLE college (enr INTEGER, cName VARCHAR, pPos VARCHAR); CREATE TABLE tryout (enr INTEGER, cName VARCHAR, pPos VARCHAR) | SELECT SUM(enr) FROM college WHERE NOT cName IN (SELECT cName FROM tryout WHERE pPos = "goalie") | What is the total number of enrollment of schools that do not have any goalie player? | <s>[INST]What is the total number of enrollment of schools that do not have any goalie player? Context: CREATE TABLE college (enr INTEGER, cName VARCHAR, pPos VARCHAR); CREATE TABLE tryout (enr INTEGER, cName VARCHAR, pPos VARCHAR)[/INST]SELECT SUM(enr) FROM college WHERE NOT cName IN (SELECT cName FROM tryout WHERE pP... |
CREATE TABLE table_name_59 (position VARCHAR, club_province VARCHAR, player VARCHAR) | SELECT position FROM table_name_59 WHERE club_province = "meralomas" AND player = "david biddle" | Which position has a club of Meralomas and a player named David Biddle? | <s>[INST]Which position has a club of Meralomas and a player named David Biddle? Context: CREATE TABLE table_name_59 (position VARCHAR, club_province VARCHAR, player VARCHAR)[/INST]SELECT position FROM table_name_59 WHERE club_province = "meralomas" AND player = "david biddle"</s> |
CREATE TABLE table_name_33 (points_for VARCHAR, drawn VARCHAR, points VARCHAR) | SELECT points_for FROM table_name_33 WHERE drawn = "0" AND points = "88" | Name the points for with drawn of 0 and points of 88 | <s>[INST]Name the points for with drawn of 0 and points of 88 Context: CREATE TABLE table_name_33 (points_for VARCHAR, drawn VARCHAR, points VARCHAR)[/INST]SELECT points_for FROM table_name_33 WHERE drawn = "0" AND points = "88"</s> |
CREATE TABLE table_name_68 (runners INTEGER, jockey VARCHAR, placing VARCHAR) | SELECT MAX(runners) FROM table_name_68 WHERE jockey = "frankie dettori" AND placing > 1 | what is the highest runners when the jockey is frankie dettori and the placing is higher than 1? | <s>[INST]what is the highest runners when the jockey is frankie dettori and the placing is higher than 1? Context: CREATE TABLE table_name_68 (runners INTEGER, jockey VARCHAR, placing VARCHAR)[/INST]SELECT MAX(runners) FROM table_name_68 WHERE jockey = "frankie dettori" AND placing > 1</s> |
CREATE TABLE table_name_37 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_37 WHERE away_team = "adelaide" | What date was the away team from Adelaide? | <s>[INST]What date was the away team from Adelaide? Context: CREATE TABLE table_name_37 (date VARCHAR, away_team VARCHAR)[/INST]SELECT date FROM table_name_37 WHERE away_team = "adelaide"</s> |
CREATE TABLE table_name_42 (tournament VARCHAR) | SELECT tournament FROM table_name_42 WHERE 1996 = "qf" | Which one of the tournaments had a QF in 1996? | <s>[INST]Which one of the tournaments had a QF in 1996? Context: CREATE TABLE table_name_42 (tournament VARCHAR)[/INST]SELECT tournament FROM table_name_42 WHERE 1996 = "qf"</s> |
CREATE TABLE table_name_43 (number_of_households INTEGER, median_household_income VARCHAR) | SELECT SUM(number_of_households) FROM table_name_43 WHERE median_household_income = "$44,718" | What is the sum of households that makes a median household income of $44,718? | <s>[INST]What is the sum of households that makes a median household income of $44,718? Context: CREATE TABLE table_name_43 (number_of_households INTEGER, median_household_income VARCHAR)[/INST]SELECT SUM(number_of_households) FROM table_name_43 WHERE median_household_income = "$44,718"</s> |
CREATE TABLE table_name_66 (week INTEGER, attendance VARCHAR) | SELECT MIN(week) FROM table_name_66 WHERE attendance = 51 OFFSET 499 | What is the lowest week that has 51,499 as the attendance? | <s>[INST]What is the lowest week that has 51,499 as the attendance? Context: CREATE TABLE table_name_66 (week INTEGER, attendance VARCHAR)[/INST]SELECT MIN(week) FROM table_name_66 WHERE attendance = 51 OFFSET 499</s> |
CREATE TABLE table_name_7 (tie_no VARCHAR, home_team VARCHAR) | SELECT tie_no FROM table_name_7 WHERE home_team = "queens park rangers" | What was the tie number of the game when the queens park rangers were the home team? | <s>[INST]What was the tie number of the game when the queens park rangers were the home team? Context: CREATE TABLE table_name_7 (tie_no VARCHAR, home_team VARCHAR)[/INST]SELECT tie_no FROM table_name_7 WHERE home_team = "queens park rangers"</s> |
CREATE TABLE Paragraphs (document_id VARCHAR) | SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY COUNT(*) LIMIT 1 | What is the document id with least number of paragraphs? | <s>[INST]What is the document id with least number of paragraphs? Context: CREATE TABLE Paragraphs (document_id VARCHAR)[/INST]SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY COUNT(*) LIMIT 1</s> |
CREATE TABLE table_name_5 (result VARCHAR, date VARCHAR) | SELECT result FROM table_name_5 WHERE date = "may 29" | what game was on may 29 | <s>[INST]what game was on may 29 Context: CREATE TABLE table_name_5 (result VARCHAR, date VARCHAR)[/INST]SELECT result FROM table_name_5 WHERE date = "may 29"</s> |
CREATE TABLE table_name_54 (viewership__millions_ INTEGER, broadcast_date VARCHAR) | SELECT MIN(viewership__millions_) FROM table_name_54 WHERE broadcast_date = "7 september 2001" | What is the lowest viewership in millions of the episode broadcast on 7 September 2001? | <s>[INST]What is the lowest viewership in millions of the episode broadcast on 7 September 2001? Context: CREATE TABLE table_name_54 (viewership__millions_ INTEGER, broadcast_date VARCHAR)[/INST]SELECT MIN(viewership__millions_) FROM table_name_54 WHERE broadcast_date = "7 september 2001"</s> |
CREATE TABLE table_name_53 (result VARCHAR, captain_1 VARCHAR, date VARCHAR) | SELECT result FROM table_name_53 WHERE captain_1 = "louis burger" AND date = "30 october–2 november" | Which Result has a Captain 1 of louis burger, and a Date of 30 october–2 november? | <s>[INST]Which Result has a Captain 1 of louis burger, and a Date of 30 october–2 november? Context: CREATE TABLE table_name_53 (result VARCHAR, captain_1 VARCHAR, date VARCHAR)[/INST]SELECT result FROM table_name_53 WHERE captain_1 = "louis burger" AND date = "30 october–2 november"</s> |
CREATE TABLE table_name_41 (round INTEGER, position VARCHAR) | SELECT SUM(round) FROM table_name_41 WHERE position = "defenceman" | What is the sum of the round with the defenceman? | <s>[INST]What is the sum of the round with the defenceman? Context: CREATE TABLE table_name_41 (round INTEGER, position VARCHAR)[/INST]SELECT SUM(round) FROM table_name_41 WHERE position = "defenceman"</s> |
CREATE TABLE table_13755296_1 (title VARCHAR, teleplay_by VARCHAR) | SELECT title FROM table_13755296_1 WHERE teleplay_by = "David Simon" | What's the title of the episode written by David Simon? | <s>[INST]What's the title of the episode written by David Simon? Context: CREATE TABLE table_13755296_1 (title VARCHAR, teleplay_by VARCHAR)[/INST]SELECT title FROM table_13755296_1 WHERE teleplay_by = "David Simon"</s> |
CREATE TABLE table_name_97 (venue VARCHAR, runs VARCHAR) | SELECT venue FROM table_name_97 WHERE runs = "62" | What was the venue where there were 62 runs? | <s>[INST]What was the venue where there were 62 runs? Context: CREATE TABLE table_name_97 (venue VARCHAR, runs VARCHAR)[/INST]SELECT venue FROM table_name_97 WHERE runs = "62"</s> |
CREATE TABLE table_name_73 (theme VARCHAR, mintage VARCHAR) | SELECT theme FROM table_name_73 WHERE mintage = 700 | In the Endangered Wildlife Series from the Royal Canadian Mint numismatic coins printed in the 2000s, what theme had a mintage of 700? | <s>[INST]In the Endangered Wildlife Series from the Royal Canadian Mint numismatic coins printed in the 2000s, what theme had a mintage of 700? Context: CREATE TABLE table_name_73 (theme VARCHAR, mintage VARCHAR)[/INST]SELECT theme FROM table_name_73 WHERE mintage = 700</s> |
CREATE TABLE table_24319661_5 (no_in_season VARCHAR, production_code VARCHAR) | SELECT no_in_season FROM table_24319661_5 WHERE production_code = "BCW410" | What episode number of the season had BCW410 as a production code? | <s>[INST]What episode number of the season had BCW410 as a production code? Context: CREATE TABLE table_24319661_5 (no_in_season VARCHAR, production_code VARCHAR)[/INST]SELECT no_in_season FROM table_24319661_5 WHERE production_code = "BCW410"</s> |
CREATE TABLE table_name_75 (time VARCHAR, round VARCHAR, opponent VARCHAR) | SELECT time FROM table_name_75 WHERE round = "n/a" AND opponent = "mikhail ilyukhin" | What's the time for a round of n/a when the opponent is mikhail ilyukhin? | <s>[INST]What's the time for a round of n/a when the opponent is mikhail ilyukhin? Context: CREATE TABLE table_name_75 (time VARCHAR, round VARCHAR, opponent VARCHAR)[/INST]SELECT time FROM table_name_75 WHERE round = "n/a" AND opponent = "mikhail ilyukhin"</s> |
CREATE TABLE table_name_38 (Id VARCHAR) | SELECT 2007 FROM table_name_38 WHERE 2009 = "1r" | What is the 2007 value with a 1r in 2009? | <s>[INST]What is the 2007 value with a 1r in 2009? Context: CREATE TABLE table_name_38 (Id VARCHAR)[/INST]SELECT 2007 FROM table_name_38 WHERE 2009 = "1r"</s> |
CREATE TABLE table_name_22 (caps VARCHAR, player VARCHAR) | SELECT caps FROM table_name_22 WHERE player = "mile sterjovski" | How many caps did the player Mile Sterjovski have? | <s>[INST]How many caps did the player Mile Sterjovski have? Context: CREATE TABLE table_name_22 (caps VARCHAR, player VARCHAR)[/INST]SELECT caps FROM table_name_22 WHERE player = "mile sterjovski"</s> |
CREATE TABLE table_18847736_2 (date VARCHAR, dolphins_points VARCHAR) | SELECT date FROM table_18847736_2 WHERE dolphins_points = 6 | How many dates do the dolphins have 6 points? | <s>[INST]How many dates do the dolphins have 6 points? Context: CREATE TABLE table_18847736_2 (date VARCHAR, dolphins_points VARCHAR)[/INST]SELECT date FROM table_18847736_2 WHERE dolphins_points = 6</s> |
CREATE TABLE table_name_35 (tournament VARCHAR) | SELECT 1993 FROM table_name_35 WHERE tournament = "cincinnati" | What is 1993, when Tournament is "Cincinnati"? | <s>[INST]What is 1993, when Tournament is "Cincinnati"? Context: CREATE TABLE table_name_35 (tournament VARCHAR)[/INST]SELECT 1993 FROM table_name_35 WHERE tournament = "cincinnati"</s> |
CREATE TABLE individuals (individual_first_name VARCHAR, individual_middle_name VARCHAR, individual_last_name VARCHAR) | SELECT individual_first_name, individual_middle_name, individual_last_name FROM individuals ORDER BY individual_last_name | List every individual's first name, middle name and last name in alphabetical order by last name. | <s>[INST]List every individual's first name, middle name and last name in alphabetical order by last name. Context: CREATE TABLE individuals (individual_first_name VARCHAR, individual_middle_name VARCHAR, individual_last_name VARCHAR)[/INST]SELECT individual_first_name, individual_middle_name, individual_last_name FROM... |
CREATE TABLE employees (employee_id VARCHAR, salary VARCHAR, manager_id VARCHAR, first_name VARCHAR) | SELECT employee_id, salary FROM employees WHERE manager_id = (SELECT employee_id FROM employees WHERE first_name = 'Payam') | display the employee id and salary of all employees who report to Payam (first name). | <s>[INST]display the employee id and salary of all employees who report to Payam (first name). Context: CREATE TABLE employees (employee_id VARCHAR, salary VARCHAR, manager_id VARCHAR, first_name VARCHAR)[/INST]SELECT employee_id, salary FROM employees WHERE manager_id = (SELECT employee_id FROM employees WHERE first_n... |
CREATE TABLE table_name_95 (money___ INTEGER, player VARCHAR) | SELECT MAX(money___) AS £__ FROM table_name_95 WHERE player = "peter hedblom" | What is the highest Money ( £ ), when Player is "Peter Hedblom"? | <s>[INST]What is the highest Money ( £ ), when Player is "Peter Hedblom"? Context: CREATE TABLE table_name_95 (money___ INTEGER, player VARCHAR)[/INST]SELECT MAX(money___) AS £__ FROM table_name_95 WHERE player = "peter hedblom"</s> |
CREATE TABLE table_name_3 (opponent_in_the_final VARCHAR, date VARCHAR) | SELECT opponent_in_the_final FROM table_name_3 WHERE date = "august 14, 2006" | Who is the opponent in the final on August 14, 2006? | <s>[INST]Who is the opponent in the final on August 14, 2006? Context: CREATE TABLE table_name_3 (opponent_in_the_final VARCHAR, date VARCHAR)[/INST]SELECT opponent_in_the_final FROM table_name_3 WHERE date = "august 14, 2006"</s> |
CREATE TABLE table_name_44 (d_43 VARCHAR, d_41 VARCHAR) | SELECT d_43 FROM table_name_44 WHERE d_41 = "r 21" | What is the D43 associated with a D41 of r 21? | <s>[INST]What is the D43 associated with a D41 of r 21? Context: CREATE TABLE table_name_44 (d_43 VARCHAR, d_41 VARCHAR)[/INST]SELECT d_43 FROM table_name_44 WHERE d_41 = "r 21"</s> |
CREATE TABLE table_13336122_3 (title VARCHAR, directed_by VARCHAR) | SELECT COUNT(title) FROM table_13336122_3 WHERE directed_by = "David Duchovny" | How many episodes have been directed by David Duchovny? | <s>[INST]How many episodes have been directed by David Duchovny? Context: CREATE TABLE table_13336122_3 (title VARCHAR, directed_by VARCHAR)[/INST]SELECT COUNT(title) FROM table_13336122_3 WHERE directed_by = "David Duchovny"</s> |
CREATE TABLE table_name_55 (poll_source VARCHAR, steve_poizner VARCHAR) | SELECT poll_source FROM table_name_55 WHERE steve_poizner = "37%" | What poll had Steve Poizner at 37%? | <s>[INST]What poll had Steve Poizner at 37%? Context: CREATE TABLE table_name_55 (poll_source VARCHAR, steve_poizner VARCHAR)[/INST]SELECT poll_source FROM table_name_55 WHERE steve_poizner = "37%"</s> |
CREATE TABLE table_name_34 (grantee VARCHAR, concession VARCHAR) | SELECT grantee FROM table_name_34 WHERE concession = "san ysidro" | Tell me the Grantee for san ysidro | <s>[INST]Tell me the Grantee for san ysidro Context: CREATE TABLE table_name_34 (grantee VARCHAR, concession VARCHAR)[/INST]SELECT grantee FROM table_name_34 WHERE concession = "san ysidro"</s> |
CREATE TABLE table_name_87 (glendale VARCHAR, pasadena VARCHAR) | SELECT glendale FROM table_name_87 WHERE pasadena = "14%" | What is the percentage of Glendale when Pasadena is 14%? | <s>[INST]What is the percentage of Glendale when Pasadena is 14%? Context: CREATE TABLE table_name_87 (glendale VARCHAR, pasadena VARCHAR)[/INST]SELECT glendale FROM table_name_87 WHERE pasadena = "14%"</s> |
CREATE TABLE table_name_4 (competing_entities VARCHAR, first_held INTEGER) | SELECT competing_entities FROM table_name_4 WHERE first_held < 1970 | Can you tell me the Competing entities that has the First held smaller than 1970? | <s>[INST]Can you tell me the Competing entities that has the First held smaller than 1970? Context: CREATE TABLE table_name_4 (competing_entities VARCHAR, first_held INTEGER)[/INST]SELECT competing_entities FROM table_name_4 WHERE first_held < 1970</s> |
CREATE TABLE table_1341604_19 (incumbent VARCHAR, first_elected VARCHAR) | SELECT incumbent FROM table_1341604_19 WHERE first_elected = 1976 | Who's the incumbent in the district first elected in 1976? | <s>[INST]Who's the incumbent in the district first elected in 1976? Context: CREATE TABLE table_1341604_19 (incumbent VARCHAR, first_elected VARCHAR)[/INST]SELECT incumbent FROM table_1341604_19 WHERE first_elected = 1976</s> |
CREATE TABLE table_name_7 (grid INTEGER, rider VARCHAR, laps VARCHAR, bike VARCHAR) | SELECT AVG(grid) FROM table_name_7 WHERE laps < 24 AND bike = "honda cbr1000rr" AND rider = "jason pridmore" | What is the average Grid, when Laps is less than 24, when Bike is "Honda CBR1000RR", and when Rider is "Jason Pridmore"? | <s>[INST]What is the average Grid, when Laps is less than 24, when Bike is "Honda CBR1000RR", and when Rider is "Jason Pridmore"? Context: CREATE TABLE table_name_7 (grid INTEGER, rider VARCHAR, laps VARCHAR, bike VARCHAR)[/INST]SELECT AVG(grid) FROM table_name_7 WHERE laps < 24 AND bike = "honda cbr1000rr" AND rider =... |
CREATE TABLE table_name_6 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR) | SELECT time_retired FROM table_name_6 WHERE laps > 56 AND grid = 5 | What is the Time/Retired with over 56 laps and a grid of 5? | <s>[INST]What is the Time/Retired with over 56 laps and a grid of 5? Context: CREATE TABLE table_name_6 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)[/INST]SELECT time_retired FROM table_name_6 WHERE laps > 56 AND grid = 5</s> |
CREATE TABLE table_name_72 (place VARCHAR, artist VARCHAR, points VARCHAR) | SELECT COUNT(place) FROM table_name_72 WHERE artist = "vicky gordon" AND points > 23 | Name the total number of places for vicky gordon and points more than 23 | <s>[INST]Name the total number of places for vicky gordon and points more than 23 Context: CREATE TABLE table_name_72 (place VARCHAR, artist VARCHAR, points VARCHAR)[/INST]SELECT COUNT(place) FROM table_name_72 WHERE artist = "vicky gordon" AND points > 23</s> |
CREATE TABLE table_name_92 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_92 WHERE date = "october 9" | Name the score for october 9 | <s>[INST]Name the score for october 9 Context: CREATE TABLE table_name_92 (score VARCHAR, date VARCHAR)[/INST]SELECT score FROM table_name_92 WHERE date = "october 9"</s> |
CREATE TABLE table_name_98 (game VARCHAR, score VARCHAR) | SELECT COUNT(game) FROM table_name_98 WHERE score = "3–3 ot" | How many Games have a Score of 3–3 ot? | <s>[INST]How many Games have a Score of 3–3 ot? Context: CREATE TABLE table_name_98 (game VARCHAR, score VARCHAR)[/INST]SELECT COUNT(game) FROM table_name_98 WHERE score = "3–3 ot"</s> |
CREATE TABLE table_name_38 (third_vice_president VARCHAR, inaugurated VARCHAR) | SELECT third_vice_president FROM table_name_38 WHERE inaugurated = "15 march 1934" | What is Third Vice President, when Inaugurated is "15 March 1934"? | <s>[INST]What is Third Vice President, when Inaugurated is "15 March 1934"? Context: CREATE TABLE table_name_38 (third_vice_president VARCHAR, inaugurated VARCHAR)[/INST]SELECT third_vice_president FROM table_name_38 WHERE inaugurated = "15 march 1934"</s> |
CREATE TABLE table_name_54 (player VARCHAR, to_par VARCHAR, score VARCHAR) | SELECT player FROM table_name_54 WHERE to_par = "+3" AND score = 72 - 68 - 71 - 72 = 283 | Who is the player with a +3 to par and a 72-68-71-72=283 score? | <s>[INST]Who is the player with a +3 to par and a 72-68-71-72=283 score? Context: CREATE TABLE table_name_54 (player VARCHAR, to_par VARCHAR, score VARCHAR)[/INST]SELECT player FROM table_name_54 WHERE to_par = "+3" AND score = 72 - 68 - 71 - 72 = 283</s> |
CREATE TABLE table_name_74 (director VARCHAR, notes VARCHAR, title VARCHAR) | SELECT director FROM table_name_74 WHERE notes = "bbc radio 3" AND title = "carnival" | Notes of bbc radio 3, and a Title of carnival involves which director? | <s>[INST]Notes of bbc radio 3, and a Title of carnival involves which director? Context: CREATE TABLE table_name_74 (director VARCHAR, notes VARCHAR, title VARCHAR)[/INST]SELECT director FROM table_name_74 WHERE notes = "bbc radio 3" AND title = "carnival"</s> |
CREATE TABLE table_name_88 (original_air_date VARCHAR, series__number VARCHAR, season__number VARCHAR, production_code VARCHAR) | SELECT original_air_date FROM table_name_88 WHERE season__number < 14 AND production_code > 709 AND series__number < 183 | Name the air date for the seasons before 14 and series less than 183 with production code more than 709 | <s>[INST]Name the air date for the seasons before 14 and series less than 183 with production code more than 709 Context: CREATE TABLE table_name_88 (original_air_date VARCHAR, series__number VARCHAR, season__number VARCHAR, production_code VARCHAR)[/INST]SELECT original_air_date FROM table_name_88 WHERE season__number... |
CREATE TABLE photos (mountain_id VARCHAR); CREATE TABLE mountain (id VARCHAR, name VARCHAR, height INTEGER) | SELECT T1.id, T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id WHERE T1.height > 4000 | What are the id and name of the photos for mountains? | <s>[INST]What are the id and name of the photos for mountains? Context: CREATE TABLE photos (mountain_id VARCHAR); CREATE TABLE mountain (id VARCHAR, name VARCHAR, height INTEGER)[/INST]SELECT T1.id, T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id WHERE T1.height > 4000</s> |
CREATE TABLE table_name_4 (overall VARCHAR, college VARCHAR, position VARCHAR, pick VARCHAR, round VARCHAR) | SELECT COUNT(overall) FROM table_name_4 WHERE pick = 10 AND round < 8 AND position = "e" AND college = "tennessee" | How much Overall has a Pick of 10, and a Round smaller than 8, and a Position of e, and a College of tennessee? | <s>[INST]How much Overall has a Pick of 10, and a Round smaller than 8, and a Position of e, and a College of tennessee? Context: CREATE TABLE table_name_4 (overall VARCHAR, college VARCHAR, position VARCHAR, pick VARCHAR, round VARCHAR)[/INST]SELECT COUNT(overall) FROM table_name_4 WHERE pick = 10 AND round < 8 AND po... |
CREATE TABLE table_name_29 (away_team VARCHAR) | SELECT away_team AS score FROM table_name_29 WHERE away_team = "melbourne" | What is melbourne's away score? | <s>[INST]What is melbourne's away score? Context: CREATE TABLE table_name_29 (away_team VARCHAR)[/INST]SELECT away_team AS score FROM table_name_29 WHERE away_team = "melbourne"</s> |
CREATE TABLE table_name_2 (tournament VARCHAR) | SELECT 1983 FROM table_name_2 WHERE tournament = "wimbledon" | Which 1983 has a Tournament of wimbledon? | <s>[INST]Which 1983 has a Tournament of wimbledon? Context: CREATE TABLE table_name_2 (tournament VARCHAR)[/INST]SELECT 1983 FROM table_name_2 WHERE tournament = "wimbledon"</s> |
CREATE TABLE table_name_15 (lost INTEGER, team VARCHAR) | SELECT MAX(lost) FROM table_name_15 WHERE team = "quetta zorawar" | What is the most number of losses for Quetta Zorawar? | <s>[INST]What is the most number of losses for Quetta Zorawar? Context: CREATE TABLE table_name_15 (lost INTEGER, team VARCHAR)[/INST]SELECT MAX(lost) FROM table_name_15 WHERE team = "quetta zorawar"</s> |
CREATE TABLE course (dept_name VARCHAR, credits INTEGER) | SELECT SUM(credits), dept_name FROM course GROUP BY dept_name | Find the total credits of courses provided by different department. | <s>[INST]Find the total credits of courses provided by different department. Context: CREATE TABLE course (dept_name VARCHAR, credits INTEGER)[/INST]SELECT SUM(credits), dept_name FROM course GROUP BY dept_name</s> |
CREATE TABLE table_name_67 (rank INTEGER, year VARCHAR, accolade VARCHAR) | SELECT MIN(rank) FROM table_name_67 WHERE year > 1999 AND accolade = "the 100 greatest indie rock albums of all time" | What is the lowest rank for an album after 1999 and an Accolade of the 100 greatest indie rock albums of all time? | <s>[INST]What is the lowest rank for an album after 1999 and an Accolade of the 100 greatest indie rock albums of all time? Context: CREATE TABLE table_name_67 (rank INTEGER, year VARCHAR, accolade VARCHAR)[/INST]SELECT MIN(rank) FROM table_name_67 WHERE year > 1999 AND accolade = "the 100 greatest indie rock albums of... |
CREATE TABLE table_14700336_1 (revenue__millions_ VARCHAR, revenue_per_capita VARCHAR) | SELECT COUNT(revenue__millions_) FROM table_14700336_1 WHERE revenue_per_capita = "$6,126" | How many numbers were recorded under revenue when revenue per capita was $6,126? | <s>[INST]How many numbers were recorded under revenue when revenue per capita was $6,126? Context: CREATE TABLE table_14700336_1 (revenue__millions_ VARCHAR, revenue_per_capita VARCHAR)[/INST]SELECT COUNT(revenue__millions_) FROM table_14700336_1 WHERE revenue_per_capita = "$6,126"</s> |
CREATE TABLE Employee (name VARCHAR, eid VARCHAR); CREATE TABLE Certificate (eid VARCHAR, aid VARCHAR); CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR) | SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = "Boeing 737-800" | Show names for all employees who have certificate of Boeing 737-800. | <s>[INST]Show names for all employees who have certificate of Boeing 737-800. Context: CREATE TABLE Employee (name VARCHAR, eid VARCHAR); CREATE TABLE Certificate (eid VARCHAR, aid VARCHAR); CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR)[/INST]SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.... |
CREATE TABLE Employees (role_code VARCHAR) | SELECT role_code FROM Employees GROUP BY role_code HAVING COUNT(*) >= 3 | Show all role codes with at least 3 employees. | <s>[INST]Show all role codes with at least 3 employees. Context: CREATE TABLE Employees (role_code VARCHAR)[/INST]SELECT role_code FROM Employees GROUP BY role_code HAVING COUNT(*) >= 3</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.