context stringlengths 27 489 | answer stringlengths 18 557 | question stringlengths 12 243 | text stringlengths 103 1.05k |
|---|---|---|---|
CREATE TABLE CMI_cross_references (source_system_code VARCHAR) | SELECT COUNT(DISTINCT source_system_code) FROM CMI_cross_references | How many different source system code for the cmi cross references are there? | <s>[INST]How many different source system code for the cmi cross references are there? Context: CREATE TABLE CMI_cross_references (source_system_code VARCHAR)[/INST]SELECT COUNT(DISTINCT source_system_code) FROM CMI_cross_references</s> |
CREATE TABLE table_1011906_1 (population_canada_2011_census INTEGER, seat_of_rcm VARCHAR) | SELECT MIN(population_canada_2011_census) FROM table_1011906_1 WHERE seat_of_rcm = "Cowansville" | what is the minimum population canada 2011 census with seat of rcm being cowansville | <s>[INST]what is the minimum population canada 2011 census with seat of rcm being cowansville Context: CREATE TABLE table_1011906_1 (population_canada_2011_census INTEGER, seat_of_rcm VARCHAR)[/INST]SELECT MIN(population_canada_2011_census) FROM table_1011906_1 WHERE seat_of_rcm = "Cowansville"</s> |
CREATE TABLE table_name_29 (constructor VARCHAR, grid VARCHAR) | SELECT constructor FROM table_name_29 WHERE grid = "6" | Who constructed the car that had a grid of 6? | <s>[INST]Who constructed the car that had a grid of 6? Context: CREATE TABLE table_name_29 (constructor VARCHAR, grid VARCHAR)[/INST]SELECT constructor FROM table_name_29 WHERE grid = "6"</s> |
CREATE TABLE table_12142298_2 (second_baseman VARCHAR, first_baseman VARCHAR) | SELECT second_baseman FROM table_12142298_2 WHERE first_baseman = "Nomar Garciaparra" | Who played 2nd base when nomar garciaparra was at 1st base? | <s>[INST]Who played 2nd base when nomar garciaparra was at 1st base? Context: CREATE TABLE table_12142298_2 (second_baseman VARCHAR, first_baseman VARCHAR)[/INST]SELECT second_baseman FROM table_12142298_2 WHERE first_baseman = "Nomar Garciaparra"</s> |
CREATE TABLE table_28138035_6 (womens_doubles VARCHAR, womens_singles VARCHAR, mens_singles VARCHAR) | SELECT COUNT(womens_doubles) FROM table_28138035_6 WHERE womens_singles = "Li Ju" AND mens_singles = "Wang Liqin" | How many times did li ju win the womens singles and wang liqin win the mens singles? | <s>[INST]How many times did li ju win the womens singles and wang liqin win the mens singles? Context: CREATE TABLE table_28138035_6 (womens_doubles VARCHAR, womens_singles VARCHAR, mens_singles VARCHAR)[/INST]SELECT COUNT(womens_doubles) FROM table_28138035_6 WHERE womens_singles = "Li Ju" AND mens_singles = "Wang Liqin"</s> |
CREATE TABLE table_name_51 (hpfs VARCHAR, refs VARCHAR) | SELECT hpfs FROM table_name_51 WHERE refs = "no" | Which HPFS has a no for ReFS? | <s>[INST]Which HPFS has a no for ReFS? Context: CREATE TABLE table_name_51 (hpfs VARCHAR, refs VARCHAR)[/INST]SELECT hpfs FROM table_name_51 WHERE refs = "no"</s> |
CREATE TABLE music_festival (Category VARCHAR) | SELECT Category, COUNT(*) FROM music_festival GROUP BY Category | Please show the categories of the music festivals and the count. | <s>[INST]Please show the categories of the music festivals and the count. Context: CREATE TABLE music_festival (Category VARCHAR)[/INST]SELECT Category, COUNT(*) FROM music_festival GROUP BY Category</s> |
CREATE TABLE table_name_21 (grid VARCHAR, laps VARCHAR) | SELECT grid FROM table_name_21 WHERE laps = 2 | what is the grid when the laps is 2? | <s>[INST]what is the grid when the laps is 2? Context: CREATE TABLE table_name_21 (grid VARCHAR, laps VARCHAR)[/INST]SELECT grid FROM table_name_21 WHERE laps = 2</s> |
CREATE TABLE table_name_41 (year VARCHAR, producer VARCHAR, title VARCHAR) | SELECT year FROM table_name_41 WHERE producer = "viva films" AND title = "magkapatid" | Which Year has a Producer of viva films, and a Title of magkapatid? | <s>[INST]Which Year has a Producer of viva films, and a Title of magkapatid? Context: CREATE TABLE table_name_41 (year VARCHAR, producer VARCHAR, title VARCHAR)[/INST]SELECT year FROM table_name_41 WHERE producer = "viva films" AND title = "magkapatid"</s> |
CREATE TABLE table_name_23 (drew VARCHAR, played VARCHAR, lost VARCHAR) | SELECT drew FROM table_name_23 WHERE played = "9" AND lost = "3" | What is the number of draws when the played 9 and lost 3? | <s>[INST]What is the number of draws when the played 9 and lost 3? Context: CREATE TABLE table_name_23 (drew VARCHAR, played VARCHAR, lost VARCHAR)[/INST]SELECT drew FROM table_name_23 WHERE played = "9" AND lost = "3"</s> |
CREATE TABLE table_name_82 (rank VARCHAR, games VARCHAR, team VARCHAR) | SELECT COUNT(rank) FROM table_name_82 WHERE games = 25 AND team = "maccabi tel aviv" | What is the Rank of the Maccabi Tel Aviv Player with 25 Games? | <s>[INST]What is the Rank of the Maccabi Tel Aviv Player with 25 Games? Context: CREATE TABLE table_name_82 (rank VARCHAR, games VARCHAR, team VARCHAR)[/INST]SELECT COUNT(rank) FROM table_name_82 WHERE games = 25 AND team = "maccabi tel aviv"</s> |
CREATE TABLE table_27666856_3 (outgoing_manager VARCHAR, replaced_by VARCHAR) | SELECT COUNT(outgoing_manager) FROM table_27666856_3 WHERE replaced_by = "Esteban Vigo" | Name the outgoing manager for esteban vigo | <s>[INST]Name the outgoing manager for esteban vigo Context: CREATE TABLE table_27666856_3 (outgoing_manager VARCHAR, replaced_by VARCHAR)[/INST]SELECT COUNT(outgoing_manager) FROM table_27666856_3 WHERE replaced_by = "Esteban Vigo"</s> |
CREATE TABLE table_name_52 (drawn INTEGER, points VARCHAR, lost VARCHAR) | SELECT MIN(drawn) FROM table_name_52 WHERE points < 4 AND lost > 4 | What is the smallest number of drawn games when there are fewer than 4 points and more than 4 lost games? | <s>[INST]What is the smallest number of drawn games when there are fewer than 4 points and more than 4 lost games? Context: CREATE TABLE table_name_52 (drawn INTEGER, points VARCHAR, lost VARCHAR)[/INST]SELECT MIN(drawn) FROM table_name_52 WHERE points < 4 AND lost > 4</s> |
CREATE TABLE table_name_29 (location VARCHAR, record VARCHAR) | SELECT location FROM table_name_29 WHERE record = "9-7" | What is the location when the record is 9-7? | <s>[INST]What is the location when the record is 9-7? Context: CREATE TABLE table_name_29 (location VARCHAR, record VARCHAR)[/INST]SELECT location FROM table_name_29 WHERE record = "9-7"</s> |
CREATE TABLE table_name_29 (position INTEGER, lost VARCHAR, team VARCHAR) | SELECT SUM(position) FROM table_name_29 WHERE lost = 6 AND team = "caernarfon town" | WHAT IS THE POSITION WITH A LOST OF 6, FOR CAERNARFON TOWN? | <s>[INST]WHAT IS THE POSITION WITH A LOST OF 6, FOR CAERNARFON TOWN? Context: CREATE TABLE table_name_29 (position INTEGER, lost VARCHAR, team VARCHAR)[/INST]SELECT SUM(position) FROM table_name_29 WHERE lost = 6 AND team = "caernarfon town"</s> |
CREATE TABLE table_1416612_1 (mean_elevation VARCHAR, lowest_point VARCHAR, state VARCHAR) | SELECT COUNT(mean_elevation) FROM table_1416612_1 WHERE lowest_point = "Gulf of Mexico" AND state = "Texas" | how many mean elevation with lowest point being gulf of mexico and state being texas | <s>[INST] how many mean elevation with lowest point being gulf of mexico and state being texas Context: CREATE TABLE table_1416612_1 (mean_elevation VARCHAR, lowest_point VARCHAR, state VARCHAR)[/INST]SELECT COUNT(mean_elevation) FROM table_1416612_1 WHERE lowest_point = "Gulf of Mexico" AND state = "Texas"</s> |
CREATE TABLE table_name_93 (lost INTEGER, drawn VARCHAR, played VARCHAR) | SELECT MAX(lost) FROM table_name_93 WHERE drawn < 4 AND played < 9 | Which Lost is the highest one that has a Drawn smaller than 4, and a Played smaller than 9? | <s>[INST]Which Lost is the highest one that has a Drawn smaller than 4, and a Played smaller than 9? Context: CREATE TABLE table_name_93 (lost INTEGER, drawn VARCHAR, played VARCHAR)[/INST]SELECT MAX(lost) FROM table_name_93 WHERE drawn < 4 AND played < 9</s> |
CREATE TABLE table_name_34 (last_win VARCHAR, last_final_lost VARCHAR) | SELECT last_win FROM table_name_34 WHERE last_final_lost = "2011" | When was the last win for the club that had a final loss in 2011? | <s>[INST]When was the last win for the club that had a final loss in 2011? Context: CREATE TABLE table_name_34 (last_win VARCHAR, last_final_lost VARCHAR)[/INST]SELECT last_win FROM table_name_34 WHERE last_final_lost = "2011"</s> |
CREATE TABLE table_name_60 (interview INTEGER, evening_gown VARCHAR, state VARCHAR, swimsuit VARCHAR, average VARCHAR) | SELECT MIN(interview) FROM table_name_60 WHERE swimsuit > 9.021 AND average < 9.513 AND state = "north carolina" AND evening_gown > 9.5 | What is the lowest interview for a contestant from North Carolina with a swimsuit larger than 9.021, an average smaller than 9.513, and an evening gown larger than 9.5? | <s>[INST]What is the lowest interview for a contestant from North Carolina with a swimsuit larger than 9.021, an average smaller than 9.513, and an evening gown larger than 9.5? Context: CREATE TABLE table_name_60 (interview INTEGER, evening_gown VARCHAR, state VARCHAR, swimsuit VARCHAR, average VARCHAR)[/INST]SELECT MIN(interview) FROM table_name_60 WHERE swimsuit > 9.021 AND average < 9.513 AND state = "north carolina" AND evening_gown > 9.5</s> |
CREATE TABLE table_23982399_12 (winner VARCHAR, iron_chef VARCHAR) | SELECT winner FROM table_23982399_12 WHERE iron_chef = "Hiroyuki Sakai" | Who was the winner when the iron chef is hiroyuki sakai? | <s>[INST]Who was the winner when the iron chef is hiroyuki sakai? Context: CREATE TABLE table_23982399_12 (winner VARCHAR, iron_chef VARCHAR)[/INST]SELECT winner FROM table_23982399_12 WHERE iron_chef = "Hiroyuki Sakai"</s> |
CREATE TABLE table_10236830_6 (actors_name VARCHAR, film_name VARCHAR, nomination VARCHAR) | SELECT actors_name FROM table_10236830_6 WHERE film_name = "Chopin: Desire for Love" AND nomination = "Best Actress in a Leading Role" | What is the name of the actress that was nominated for best actress in a leading role in the film Chopin: Desire for love? | <s>[INST]What is the name of the actress that was nominated for best actress in a leading role in the film Chopin: Desire for love? Context: CREATE TABLE table_10236830_6 (actors_name VARCHAR, film_name VARCHAR, nomination VARCHAR)[/INST]SELECT actors_name FROM table_10236830_6 WHERE film_name = "Chopin: Desire for Love" AND nomination = "Best Actress in a Leading Role"</s> |
CREATE TABLE products (product_name VARCHAR, product_id VARCHAR); CREATE TABLE order_items (order_quantity INTEGER, product_id VARCHAR) | SELECT T1.product_name, SUM(T2.order_quantity) FROM products AS T1 JOIN order_items AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_id | Show the product name and total order quantity for each product. | <s>[INST]Show the product name and total order quantity for each product. Context: CREATE TABLE products (product_name VARCHAR, product_id VARCHAR); CREATE TABLE order_items (order_quantity INTEGER, product_id VARCHAR)[/INST]SELECT T1.product_name, SUM(T2.order_quantity) FROM products AS T1 JOIN order_items AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_id</s> |
CREATE TABLE table_name_35 (date VARCHAR, year VARCHAR) | SELECT date FROM table_name_35 WHERE year = "2004" | Tell me the date for 2004 | <s>[INST]Tell me the date for 2004 Context: CREATE TABLE table_name_35 (date VARCHAR, year VARCHAR)[/INST]SELECT date FROM table_name_35 WHERE year = "2004"</s> |
CREATE TABLE table_name_85 (sprint INTEGER, wins VARCHAR, feature VARCHAR) | SELECT AVG(sprint) FROM table_name_85 WHERE wins = 10 AND feature < 5 | How many sprints on average had 10 wins and less than 5 features? | <s>[INST]How many sprints on average had 10 wins and less than 5 features? Context: CREATE TABLE table_name_85 (sprint INTEGER, wins VARCHAR, feature VARCHAR)[/INST]SELECT AVG(sprint) FROM table_name_85 WHERE wins = 10 AND feature < 5</s> |
CREATE TABLE table_18475946_2 (lyric_fm__mhz_ VARCHAR, rnag__mhz_ VARCHAR) | SELECT lyric_fm__mhz_ FROM table_18475946_2 WHERE rnag__mhz_ = "93.2" | What is the lyric fm for rnag 93.2? | <s>[INST]What is the lyric fm for rnag 93.2? Context: CREATE TABLE table_18475946_2 (lyric_fm__mhz_ VARCHAR, rnag__mhz_ VARCHAR)[/INST]SELECT lyric_fm__mhz_ FROM table_18475946_2 WHERE rnag__mhz_ = "93.2"</s> |
CREATE TABLE table_name_18 (points VARCHAR, team_name VARCHAR, losses VARCHAR, games VARCHAR) | SELECT COUNT(points) FROM table_name_18 WHERE losses < 9 AND games > 24 AND team_name = "vancouver burrards" | What's the total number of points when the vancouver burrards have fewer than 9 losses and more than 24 games? | <s>[INST]What's the total number of points when the vancouver burrards have fewer than 9 losses and more than 24 games? Context: CREATE TABLE table_name_18 (points VARCHAR, team_name VARCHAR, losses VARCHAR, games VARCHAR)[/INST]SELECT COUNT(points) FROM table_name_18 WHERE losses < 9 AND games > 24 AND team_name = "vancouver burrards"</s> |
CREATE TABLE table_25352324_5 (assists VARCHAR, player VARCHAR) | SELECT assists FROM table_25352324_5 WHERE player = "Lynn Pride" | What is every entry for assists if the player is Lynn Pride? | <s>[INST]What is every entry for assists if the player is Lynn Pride? Context: CREATE TABLE table_25352324_5 (assists VARCHAR, player VARCHAR)[/INST]SELECT assists FROM table_25352324_5 WHERE player = "Lynn Pride"</s> |
CREATE TABLE table_2850912_10 (nhl_team VARCHAR, college_junior_club_team VARCHAR) | SELECT nhl_team FROM table_2850912_10 WHERE college_junior_club_team = "HC Slavia Praha (Czechoslovakia)" | Which team drafted a player from HC Slavia Praha (Czechoslovakia)? | <s>[INST]Which team drafted a player from HC Slavia Praha (Czechoslovakia)? Context: CREATE TABLE table_2850912_10 (nhl_team VARCHAR, college_junior_club_team VARCHAR)[/INST]SELECT nhl_team FROM table_2850912_10 WHERE college_junior_club_team = "HC Slavia Praha (Czechoslovakia)"</s> |
CREATE TABLE table_name_47 (duration VARCHAR, province VARCHAR) | SELECT duration FROM table_name_47 WHERE province = "zeeland" | What is the duration of the commissioner from the zeeland province? | <s>[INST]What is the duration of the commissioner from the zeeland province? Context: CREATE TABLE table_name_47 (duration VARCHAR, province VARCHAR)[/INST]SELECT duration FROM table_name_47 WHERE province = "zeeland"</s> |
CREATE TABLE table_name_22 (date VARCHAR, result VARCHAR) | SELECT date FROM table_name_22 WHERE result = "3-1" | When was the result 3-1? | <s>[INST]When was the result 3-1? Context: CREATE TABLE table_name_22 (date VARCHAR, result VARCHAR)[/INST]SELECT date FROM table_name_22 WHERE result = "3-1"</s> |
CREATE TABLE table_24852622_1 (class_c_winner VARCHAR, round VARCHAR) | SELECT class_c_winner FROM table_24852622_1 WHERE round = "8" | Who was the Class C winner in round 8? | <s>[INST]Who was the Class C winner in round 8? Context: CREATE TABLE table_24852622_1 (class_c_winner VARCHAR, round VARCHAR)[/INST]SELECT class_c_winner FROM table_24852622_1 WHERE round = "8"</s> |
CREATE TABLE table_name_71 (location VARCHAR, school VARCHAR) | SELECT location FROM table_name_71 WHERE school = "muncie burris" | what is the location when the school is muncie burris? | <s>[INST]what is the location when the school is muncie burris? Context: CREATE TABLE table_name_71 (location VARCHAR, school VARCHAR)[/INST]SELECT location FROM table_name_71 WHERE school = "muncie burris"</s> |
CREATE TABLE table_name_49 (player VARCHAR, round VARCHAR, school_club_team VARCHAR) | SELECT player FROM table_name_49 WHERE round = 2 AND school_club_team = "xavier" | What is Player, when Round is "2", and when School/Club Team is "Xavier"? | <s>[INST]What is Player, when Round is "2", and when School/Club Team is "Xavier"? Context: CREATE TABLE table_name_49 (player VARCHAR, round VARCHAR, school_club_team VARCHAR)[/INST]SELECT player FROM table_name_49 WHERE round = 2 AND school_club_team = "xavier"</s> |
CREATE TABLE table_name_86 (stadium VARCHAR, runs VARCHAR) | SELECT stadium FROM table_name_86 WHERE runs = "144" | What is the stadium name that has 144 as the runs? | <s>[INST]What is the stadium name that has 144 as the runs? Context: CREATE TABLE table_name_86 (stadium VARCHAR, runs VARCHAR)[/INST]SELECT stadium FROM table_name_86 WHERE runs = "144"</s> |
CREATE TABLE table_name_9 (heat INTEGER, lane VARCHAR, nationality VARCHAR) | SELECT MIN(heat) FROM table_name_9 WHERE lane = 4 AND nationality = "canada" | Who was the 4 lane person from Canada? | <s>[INST]Who was the 4 lane person from Canada? Context: CREATE TABLE table_name_9 (heat INTEGER, lane VARCHAR, nationality VARCHAR)[/INST]SELECT MIN(heat) FROM table_name_9 WHERE lane = 4 AND nationality = "canada"</s> |
CREATE TABLE table_name_6 (emit__nm_ VARCHAR, absorb__nm_ VARCHAR) | SELECT emit__nm_ FROM table_name_6 WHERE absorb__nm_ = "593" | Which Emission (in nanometers) has an absorbtion of 593 nm? | <s>[INST]Which Emission (in nanometers) has an absorbtion of 593 nm? Context: CREATE TABLE table_name_6 (emit__nm_ VARCHAR, absorb__nm_ VARCHAR)[/INST]SELECT emit__nm_ FROM table_name_6 WHERE absorb__nm_ = "593"</s> |
CREATE TABLE table_27755603_2 (record VARCHAR, high_rebounds VARCHAR) | SELECT record FROM table_27755603_2 WHERE high_rebounds = "Greg Monroe (8)" | What's the record in the game where Greg Monroe (8) did the high rebounds? | <s>[INST]What's the record in the game where Greg Monroe (8) did the high rebounds? Context: CREATE TABLE table_27755603_2 (record VARCHAR, high_rebounds VARCHAR)[/INST]SELECT record FROM table_27755603_2 WHERE high_rebounds = "Greg Monroe (8)"</s> |
CREATE TABLE table_17311759_7 (high_assists VARCHAR, date VARCHAR) | SELECT COUNT(high_assists) FROM table_17311759_7 WHERE date = "February 4" | how many high assists stats were maade on february 4 | <s>[INST]how many high assists stats were maade on february 4 Context: CREATE TABLE table_17311759_7 (high_assists VARCHAR, date VARCHAR)[/INST]SELECT COUNT(high_assists) FROM table_17311759_7 WHERE date = "February 4"</s> |
CREATE TABLE table_24518475_1 (latitude VARCHAR, time__utc_ VARCHAR) | SELECT latitude FROM table_24518475_1 WHERE time__utc_ = "18:19:36" | What was the latitude that had a UTC time of 18:19:36? | <s>[INST]What was the latitude that had a UTC time of 18:19:36? Context: CREATE TABLE table_24518475_1 (latitude VARCHAR, time__utc_ VARCHAR)[/INST]SELECT latitude FROM table_24518475_1 WHERE time__utc_ = "18:19:36"</s> |
CREATE TABLE STUDENT (Age INTEGER, Sex VARCHAR) | SELECT AVG(Age) FROM STUDENT WHERE Sex = "F" | What is the average age of female (sex is F) students? | <s>[INST]What is the average age of female (sex is F) students? Context: CREATE TABLE STUDENT (Age INTEGER, Sex VARCHAR)[/INST]SELECT AVG(Age) FROM STUDENT WHERE Sex = "F"</s> |
CREATE TABLE table_name_56 (fa_cup INTEGER, malaysia_cup VARCHAR, league VARCHAR, player VARCHAR) | SELECT AVG(fa_cup) FROM table_name_56 WHERE league = 0 AND player = "fahmi hatta" AND malaysia_cup < 0 | What is the average FA cup that has a league of 0, fahmi hatta as the player, with a Malaysia cup less than 0? | <s>[INST]What is the average FA cup that has a league of 0, fahmi hatta as the player, with a Malaysia cup less than 0? Context: CREATE TABLE table_name_56 (fa_cup INTEGER, malaysia_cup VARCHAR, league VARCHAR, player VARCHAR)[/INST]SELECT AVG(fa_cup) FROM table_name_56 WHERE league = 0 AND player = "fahmi hatta" AND malaysia_cup < 0</s> |
CREATE TABLE table_name_94 (tournament VARCHAR, opponent VARCHAR) | SELECT tournament FROM table_name_94 WHERE opponent = "andreas haider-maurer" | Which tournament was andreas haider-maurer the opponent in? | <s>[INST]Which tournament was andreas haider-maurer the opponent in? Context: CREATE TABLE table_name_94 (tournament VARCHAR, opponent VARCHAR)[/INST]SELECT tournament FROM table_name_94 WHERE opponent = "andreas haider-maurer"</s> |
CREATE TABLE table_18159601_1 (collegiate_institution VARCHAR, city VARCHAR) | SELECT collegiate_institution FROM table_18159601_1 WHERE city = "Queens" | what is the collegiate institution in queens | <s>[INST]what is the collegiate institution in queens Context: CREATE TABLE table_18159601_1 (collegiate_institution VARCHAR, city VARCHAR)[/INST]SELECT collegiate_institution FROM table_18159601_1 WHERE city = "Queens"</s> |
CREATE TABLE table_name_87 (time VARCHAR, date VARCHAR) | SELECT time FROM table_name_87 WHERE date = "april 5" | What was the time of the game on April 5? | <s>[INST]What was the time of the game on April 5? Context: CREATE TABLE table_name_87 (time VARCHAR, date VARCHAR)[/INST]SELECT time FROM table_name_87 WHERE date = "april 5"</s> |
CREATE TABLE table_name_64 (year INTEGER, sideline_reporter_s_ VARCHAR) | SELECT MIN(year) FROM table_name_64 WHERE sideline_reporter_s_ = "michelle tafoya and suzy kolber" | What was the earliest year featuring Sideline reporter(s) of michelle tafoya and suzy kolber? | <s>[INST]What was the earliest year featuring Sideline reporter(s) of michelle tafoya and suzy kolber? Context: CREATE TABLE table_name_64 (year INTEGER, sideline_reporter_s_ VARCHAR)[/INST]SELECT MIN(year) FROM table_name_64 WHERE sideline_reporter_s_ = "michelle tafoya and suzy kolber"</s> |
CREATE TABLE table_name_59 (notes VARCHAR, venue VARCHAR, date VARCHAR) | SELECT notes FROM table_name_59 WHERE venue = "rome" AND date = "july 30, 2009" | For a venue of Rome on July 30, 2009, what are the notes? | <s>[INST]For a venue of Rome on July 30, 2009, what are the notes? Context: CREATE TABLE table_name_59 (notes VARCHAR, venue VARCHAR, date VARCHAR)[/INST]SELECT notes FROM table_name_59 WHERE venue = "rome" AND date = "july 30, 2009"</s> |
CREATE TABLE table_name_13 (total INTEGER, all_around VARCHAR, rope VARCHAR) | SELECT MIN(total) FROM table_name_13 WHERE all_around = 10 AND rope > 10 | What is the lowest total with an all around of 10 and a rope higher than 10? | <s>[INST]What is the lowest total with an all around of 10 and a rope higher than 10? Context: CREATE TABLE table_name_13 (total INTEGER, all_around VARCHAR, rope VARCHAR)[/INST]SELECT MIN(total) FROM table_name_13 WHERE all_around = 10 AND rope > 10</s> |
CREATE TABLE table_11206916_1 (highest INTEGER, stadium VARCHAR) | SELECT MAX(highest) FROM table_11206916_1 WHERE stadium = "Gayfield Park" | The gayfield park stadium had a highest attendance of what? | <s>[INST]The gayfield park stadium had a highest attendance of what? Context: CREATE TABLE table_11206916_1 (highest INTEGER, stadium VARCHAR)[/INST]SELECT MAX(highest) FROM table_11206916_1 WHERE stadium = "Gayfield Park"</s> |
CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE student (stu_fname VARCHAR, stu_num VARCHAR); CREATE TABLE enroll (class_code VARCHAR, stu_num VARCHAR, enroll_grade VARCHAR) | SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T2.stu_num = T3.stu_num WHERE T1.crs_code = 'ACCT-211' AND T2.enroll_grade = 'C' | What is the first name of students enrolled in class ACCT-211 and got grade C? | <s>[INST]What is the first name of students enrolled in class ACCT-211 and got grade C? Context: CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE student (stu_fname VARCHAR, stu_num VARCHAR); CREATE TABLE enroll (class_code VARCHAR, stu_num VARCHAR, enroll_grade VARCHAR)[/INST]SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T2.stu_num = T3.stu_num WHERE T1.crs_code = 'ACCT-211' AND T2.enroll_grade = 'C'</s> |
CREATE TABLE table_name_2 (venue VARCHAR, result VARCHAR) | SELECT venue FROM table_name_2 WHERE result = "2–0" | Which Venue has a Result of 2–0? | <s>[INST]Which Venue has a Result of 2–0? Context: CREATE TABLE table_name_2 (venue VARCHAR, result VARCHAR)[/INST]SELECT venue FROM table_name_2 WHERE result = "2–0"</s> |
CREATE TABLE table_name_55 (opponent_in_final VARCHAR, surface VARCHAR) | SELECT opponent_in_final FROM table_name_55 WHERE surface = "carpet" | Who was the opponent on carpet in a final? | <s>[INST]Who was the opponent on carpet in a final? Context: CREATE TABLE table_name_55 (opponent_in_final VARCHAR, surface VARCHAR)[/INST]SELECT opponent_in_final FROM table_name_55 WHERE surface = "carpet"</s> |
CREATE TABLE table_name_13 (crowd VARCHAR, score VARCHAR) | SELECT crowd FROM table_name_13 WHERE score = "101-105" | What was the crowd size for the game with a score of 101-105? | <s>[INST]What was the crowd size for the game with a score of 101-105? Context: CREATE TABLE table_name_13 (crowd VARCHAR, score VARCHAR)[/INST]SELECT crowd FROM table_name_13 WHERE score = "101-105"</s> |
CREATE TABLE table_name_22 (bronze INTEGER, silver INTEGER) | SELECT MAX(bronze) FROM table_name_22 WHERE silver > 2 | What is the most bronze a team with more than 2 silvers has? | <s>[INST]What is the most bronze a team with more than 2 silvers has? Context: CREATE TABLE table_name_22 (bronze INTEGER, silver INTEGER)[/INST]SELECT MAX(bronze) FROM table_name_22 WHERE silver > 2</s> |
CREATE TABLE table_name_57 (maximum_diameter VARCHAR, name__year_commissioned_ VARCHAR) | SELECT maximum_diameter FROM table_name_57 WHERE name__year_commissioned_ = "mid west gas pipeline (1999)" | What is the maximum diameter of the Mid West Gas Pipeline (1999)? | <s>[INST]What is the maximum diameter of the Mid West Gas Pipeline (1999)? Context: CREATE TABLE table_name_57 (maximum_diameter VARCHAR, name__year_commissioned_ VARCHAR)[/INST]SELECT maximum_diameter FROM table_name_57 WHERE name__year_commissioned_ = "mid west gas pipeline (1999)"</s> |
CREATE TABLE table_name_18 (game_1 VARCHAR, game_2 VARCHAR) | SELECT game_1 FROM table_name_18 WHERE game_2 = "bob lindner" | What game 1 has bob lindner as game 2? | <s>[INST]What game 1 has bob lindner as game 2? Context: CREATE TABLE table_name_18 (game_1 VARCHAR, game_2 VARCHAR)[/INST]SELECT game_1 FROM table_name_18 WHERE game_2 = "bob lindner"</s> |
CREATE TABLE table_name_53 (duration VARCHAR, count_palatine_of_the_rhine VARCHAR) | SELECT duration FROM table_name_53 WHERE count_palatine_of_the_rhine = "charles albert, elector of bavaria" | What is the duration for Count Palatine of the Rhine of charles albert, elector of bavaria? | <s>[INST]What is the duration for Count Palatine of the Rhine of charles albert, elector of bavaria? Context: CREATE TABLE table_name_53 (duration VARCHAR, count_palatine_of_the_rhine VARCHAR)[/INST]SELECT duration FROM table_name_53 WHERE count_palatine_of_the_rhine = "charles albert, elector of bavaria"</s> |
CREATE TABLE table_1414743_1 (fte_teachers VARCHAR, school_level VARCHAR, city VARCHAR) | SELECT fte_teachers FROM table_1414743_1 WHERE school_level = "Middle" AND city = "Sunnyvale" | List all FTE middle school teachers in Sunnyvale. | <s>[INST]List all FTE middle school teachers in Sunnyvale. Context: CREATE TABLE table_1414743_1 (fte_teachers VARCHAR, school_level VARCHAR, city VARCHAR)[/INST]SELECT fte_teachers FROM table_1414743_1 WHERE school_level = "Middle" AND city = "Sunnyvale"</s> |
CREATE TABLE table_name_20 (against INTEGER, status VARCHAR, date VARCHAR) | SELECT SUM(against) FROM table_name_20 WHERE status = "six nations" AND date = "30/03/2003" | What is the sum of Against, when Status is "Six Nations", and when Date is "30/03/2003"? | <s>[INST]What is the sum of Against, when Status is "Six Nations", and when Date is "30/03/2003"? Context: CREATE TABLE table_name_20 (against INTEGER, status VARCHAR, date VARCHAR)[/INST]SELECT SUM(against) FROM table_name_20 WHERE status = "six nations" AND date = "30/03/2003"</s> |
CREATE TABLE table_name_63 (plant_patent_number VARCHAR, habit VARCHAR, mutated_from VARCHAR) | SELECT plant_patent_number FROM table_name_63 WHERE habit = "standard" AND mutated_from = "yakata 7001" | What's the patent number when it was mutated from Yakata 7001 and a standard habit? | <s>[INST]What's the patent number when it was mutated from Yakata 7001 and a standard habit? Context: CREATE TABLE table_name_63 (plant_patent_number VARCHAR, habit VARCHAR, mutated_from VARCHAR)[/INST]SELECT plant_patent_number FROM table_name_63 WHERE habit = "standard" AND mutated_from = "yakata 7001"</s> |
CREATE TABLE table_name_64 (against INTEGER, date VARCHAR) | SELECT SUM(against) FROM table_name_64 WHERE date = "08/06/1985" | How many against on the date of 08/06/1985? | <s>[INST]How many against on the date of 08/06/1985? Context: CREATE TABLE table_name_64 (against INTEGER, date VARCHAR)[/INST]SELECT SUM(against) FROM table_name_64 WHERE date = "08/06/1985"</s> |
CREATE TABLE table_28138035_26 (year_location VARCHAR, womens_singles VARCHAR) | SELECT year_location FROM table_28138035_26 WHERE womens_singles = "Fan Ying" | What year and where was the tournament when fan ying won the womens singles? | <s>[INST]What year and where was the tournament when fan ying won the womens singles? Context: CREATE TABLE table_28138035_26 (year_location VARCHAR, womens_singles VARCHAR)[/INST]SELECT year_location FROM table_28138035_26 WHERE womens_singles = "Fan Ying"</s> |
CREATE TABLE table_name_93 (tournament VARCHAR, date VARCHAR) | SELECT tournament FROM table_name_93 WHERE date = "may 31, 1987" | What tournament was on May 31, 1987? | <s>[INST]What tournament was on May 31, 1987? Context: CREATE TABLE table_name_93 (tournament VARCHAR, date VARCHAR)[/INST]SELECT tournament FROM table_name_93 WHERE date = "may 31, 1987"</s> |
CREATE TABLE votes (state VARCHAR, created VARCHAR) | SELECT DISTINCT state, created FROM votes | What are the distinct states and create time of all votes? | <s>[INST]What are the distinct states and create time of all votes? Context: CREATE TABLE votes (state VARCHAR, created VARCHAR)[/INST]SELECT DISTINCT state, created FROM votes</s> |
CREATE TABLE table_name_53 (english_title VARCHAR, director_s_ VARCHAR) | SELECT english_title FROM table_name_53 WHERE director_s_ = "fernando meirelles" | What is the English title of the film directed by Fernando Meirelles? | <s>[INST]What is the English title of the film directed by Fernando Meirelles? Context: CREATE TABLE table_name_53 (english_title VARCHAR, director_s_ VARCHAR)[/INST]SELECT english_title FROM table_name_53 WHERE director_s_ = "fernando meirelles"</s> |
CREATE TABLE table_name_12 (payment VARCHAR, type VARCHAR, release_date VARCHAR) | SELECT payment FROM table_name_12 WHERE type = "text" AND release_date = "26 september, 2003" | Which Payment has a Type of text, and a Release date of 26 september, 2003? | <s>[INST]Which Payment has a Type of text, and a Release date of 26 september, 2003? Context: CREATE TABLE table_name_12 (payment VARCHAR, type VARCHAR, release_date VARCHAR)[/INST]SELECT payment FROM table_name_12 WHERE type = "text" AND release_date = "26 september, 2003"</s> |
CREATE TABLE table_name_79 (report VARCHAR, winning_drivers VARCHAR) | SELECT report FROM table_name_79 WHERE winning_drivers = "frank lockhart" | Which report shows that Frank Lockhart was a winning driver? | <s>[INST]Which report shows that Frank Lockhart was a winning driver? Context: CREATE TABLE table_name_79 (report VARCHAR, winning_drivers VARCHAR)[/INST]SELECT report FROM table_name_79 WHERE winning_drivers = "frank lockhart"</s> |
CREATE TABLE table_15187735_11 (segment_d VARCHAR, series_ep VARCHAR) | SELECT segment_d FROM table_15187735_11 WHERE series_ep = "11-05" | What is the title of series episode 11-05's segment d? | <s>[INST]What is the title of series episode 11-05's segment d? Context: CREATE TABLE table_15187735_11 (segment_d VARCHAR, series_ep VARCHAR)[/INST]SELECT segment_d FROM table_15187735_11 WHERE series_ep = "11-05"</s> |
CREATE TABLE table_1342218_17 (party VARCHAR, district VARCHAR) | SELECT party FROM table_1342218_17 WHERE district = "Kentucky 5" | Which party won in the election in voting district Kentucky 5? | <s>[INST]Which party won in the election in voting district Kentucky 5? Context: CREATE TABLE table_1342218_17 (party VARCHAR, district VARCHAR)[/INST]SELECT party FROM table_1342218_17 WHERE district = "Kentucky 5"</s> |
CREATE TABLE table_name_54 (games INTEGER, assist INTEGER) | SELECT SUM(games) FROM table_name_54 WHERE assist > 54 | How many games had an assist number greater than 54? | <s>[INST]How many games had an assist number greater than 54? Context: CREATE TABLE table_name_54 (games INTEGER, assist INTEGER)[/INST]SELECT SUM(games) FROM table_name_54 WHERE assist > 54</s> |
CREATE TABLE table_name_57 (year INTEGER, accolade VARCHAR) | SELECT AVG(year) FROM table_name_57 WHERE accolade = "100 greatest singles of all time" | What's the average year for the accolade 100 greatest singles of all time? | <s>[INST]What's the average year for the accolade 100 greatest singles of all time? Context: CREATE TABLE table_name_57 (year INTEGER, accolade VARCHAR)[/INST]SELECT AVG(year) FROM table_name_57 WHERE accolade = "100 greatest singles of all time"</s> |
CREATE TABLE table_17085724_1 (indianapolis_concerts VARCHAR, sarasota VARCHAR) | SELECT indianapolis_concerts FROM table_17085724_1 WHERE sarasota = "Les Minski" | Name the indianapolis concerts for les minski | <s>[INST]Name the indianapolis concerts for les minski Context: CREATE TABLE table_17085724_1 (indianapolis_concerts VARCHAR, sarasota VARCHAR)[/INST]SELECT indianapolis_concerts FROM table_17085724_1 WHERE sarasota = "Les Minski"</s> |
CREATE TABLE table_name_2 (name VARCHAR, round VARCHAR) | SELECT name FROM table_name_2 WHERE round = 23 | What is the name of the player taken in round 23? | <s>[INST]What is the name of the player taken in round 23? Context: CREATE TABLE table_name_2 (name VARCHAR, round VARCHAR)[/INST]SELECT name FROM table_name_2 WHERE round = 23</s> |
CREATE TABLE table_name_42 (constructor VARCHAR, laps VARCHAR, grid VARCHAR) | SELECT constructor FROM table_name_42 WHERE laps > 0 AND grid = 5 | What company constructed the car with more than 0 laps and shows 5 for grid? | <s>[INST]What company constructed the car with more than 0 laps and shows 5 for grid? Context: CREATE TABLE table_name_42 (constructor VARCHAR, laps VARCHAR, grid VARCHAR)[/INST]SELECT constructor FROM table_name_42 WHERE laps > 0 AND grid = 5</s> |
CREATE TABLE table_name_63 (result VARCHAR, team VARCHAR) | SELECT result FROM table_name_63 WHERE team = "giants" | I want the result for team of giants | <s>[INST]I want the result for team of giants Context: CREATE TABLE table_name_63 (result VARCHAR, team VARCHAR)[/INST]SELECT result FROM table_name_63 WHERE team = "giants"</s> |
CREATE TABLE table_name_91 (championship VARCHAR, score VARCHAR) | SELECT championship FROM table_name_91 WHERE score = "2–6, 4–6, 4–6" | Which Championship has a Score of 2–6, 4–6, 4–6? | <s>[INST]Which Championship has a Score of 2–6, 4–6, 4–6? Context: CREATE TABLE table_name_91 (championship VARCHAR, score VARCHAR)[/INST]SELECT championship FROM table_name_91 WHERE score = "2–6, 4–6, 4–6"</s> |
CREATE TABLE table_17088705_2 (average VARCHAR, evening_gown VARCHAR) | SELECT average FROM table_17088705_2 WHERE evening_gown = "9.226" | What are the average scores of participants with 9.226 in evening gown | <s>[INST]What are the average scores of participants with 9.226 in evening gown Context: CREATE TABLE table_17088705_2 (average VARCHAR, evening_gown VARCHAR)[/INST]SELECT average FROM table_17088705_2 WHERE evening_gown = "9.226"</s> |
CREATE TABLE table_1342218_24 (result VARCHAR, incumbent VARCHAR) | SELECT result FROM table_1342218_24 WHERE incumbent = "Jamie L. Whitten" | What was the result of the election with jamie l. whitten? | <s>[INST]What was the result of the election with jamie l. whitten? Context: CREATE TABLE table_1342218_24 (result VARCHAR, incumbent VARCHAR)[/INST]SELECT result FROM table_1342218_24 WHERE incumbent = "Jamie L. Whitten"</s> |
CREATE TABLE table_name_96 (record VARCHAR, score VARCHAR, opponent VARCHAR) | SELECT record FROM table_name_96 WHERE score = "6–4" AND opponent = "@ marlins" | Score of 6–4, and a Opponent of @ marlins had what record? | <s>[INST]Score of 6–4, and a Opponent of @ marlins had what record? Context: CREATE TABLE table_name_96 (record VARCHAR, score VARCHAR, opponent VARCHAR)[/INST]SELECT record FROM table_name_96 WHERE score = "6–4" AND opponent = "@ marlins"</s> |
CREATE TABLE table_18333678_2 (departure VARCHAR, arrival VARCHAR, going_to VARCHAR) | SELECT departure FROM table_18333678_2 WHERE arrival = "11.45" AND going_to = "Stamford East" | when does the train arriving at stamford east at 11.45 departure | <s>[INST]when does the train arriving at stamford east at 11.45 departure Context: CREATE TABLE table_18333678_2 (departure VARCHAR, arrival VARCHAR, going_to VARCHAR)[/INST]SELECT departure FROM table_18333678_2 WHERE arrival = "11.45" AND going_to = "Stamford East"</s> |
CREATE TABLE table_name_1 (country VARCHAR, place VARCHAR, player VARCHAR) | SELECT country FROM table_name_1 WHERE place = "t9" AND player = "michael campbell" | What is Country, when Place is "T9", and when Player is "Michael Campbell"? | <s>[INST]What is Country, when Place is "T9", and when Player is "Michael Campbell"? Context: CREATE TABLE table_name_1 (country VARCHAR, place VARCHAR, player VARCHAR)[/INST]SELECT country FROM table_name_1 WHERE place = "t9" AND player = "michael campbell"</s> |
CREATE TABLE table_28962227_1 (premiere VARCHAR, runners_up VARCHAR) | SELECT premiere FROM table_28962227_1 WHERE runners_up = "Holly Bell" | What is the premiere of the season where Holly Bell was the runner-up? | <s>[INST]What is the premiere of the season where Holly Bell was the runner-up? Context: CREATE TABLE table_28962227_1 (premiere VARCHAR, runners_up VARCHAR)[/INST]SELECT premiere FROM table_28962227_1 WHERE runners_up = "Holly Bell"</s> |
CREATE TABLE cinema (LOCATION VARCHAR) | SELECT DISTINCT LOCATION FROM cinema | What are all the locations with a cinema? | <s>[INST]What are all the locations with a cinema? Context: CREATE TABLE cinema (LOCATION VARCHAR)[/INST]SELECT DISTINCT LOCATION FROM cinema</s> |
CREATE TABLE table_30083499_1 (nationality VARCHAR, tournament VARCHAR) | SELECT nationality FROM table_30083499_1 WHERE tournament = "2012 Clausura" | What is the nationality of the 2012 clausura tournament? | <s>[INST]What is the nationality of the 2012 clausura tournament? Context: CREATE TABLE table_30083499_1 (nationality VARCHAR, tournament VARCHAR)[/INST]SELECT nationality FROM table_30083499_1 WHERE tournament = "2012 Clausura"</s> |
CREATE TABLE camera_lens (brand VARCHAR, name VARCHAR, max_aperture VARCHAR) | SELECT brand, name FROM camera_lens ORDER BY max_aperture DESC | Find the brand and name for each camera lens, and sort in descending order of maximum aperture. | <s>[INST]Find the brand and name for each camera lens, and sort in descending order of maximum aperture. Context: CREATE TABLE camera_lens (brand VARCHAR, name VARCHAR, max_aperture VARCHAR)[/INST]SELECT brand, name FROM camera_lens ORDER BY max_aperture DESC</s> |
CREATE TABLE table_177273_2 (outcome VARCHAR, year VARCHAR) | SELECT outcome FROM table_177273_2 WHERE year = 1975 | What was the outcome in 1975? | <s>[INST]What was the outcome in 1975? Context: CREATE TABLE table_177273_2 (outcome VARCHAR, year VARCHAR)[/INST]SELECT outcome FROM table_177273_2 WHERE year = 1975</s> |
CREATE TABLE table_name_22 (event VARCHAR, prize VARCHAR) | SELECT event FROM table_name_22 WHERE prize = "zł 1,226,711" | What is the name of the event that had a prize of zł 1,226,711? | <s>[INST]What is the name of the event that had a prize of zł 1,226,711? Context: CREATE TABLE table_name_22 (event VARCHAR, prize VARCHAR)[/INST]SELECT event FROM table_name_22 WHERE prize = "zł 1,226,711"</s> |
CREATE TABLE bank (state VARCHAR, no_of_customers INTEGER) | SELECT state FROM bank GROUP BY state ORDER BY SUM(no_of_customers) DESC LIMIT 1 | Find the state which has the most number of customers. | <s>[INST]Find the state which has the most number of customers. Context: CREATE TABLE bank (state VARCHAR, no_of_customers INTEGER)[/INST]SELECT state FROM bank GROUP BY state ORDER BY SUM(no_of_customers) DESC LIMIT 1</s> |
CREATE TABLE table_name_81 (home VARCHAR, record VARCHAR) | SELECT home FROM table_name_81 WHERE record = "16-8" | What is the home of the team with a 16-8 record? | <s>[INST]What is the home of the team with a 16-8 record? Context: CREATE TABLE table_name_81 (home VARCHAR, record VARCHAR)[/INST]SELECT home FROM table_name_81 WHERE record = "16-8"</s> |
CREATE TABLE table_name_88 (method VARCHAR, round VARCHAR, record VARCHAR) | SELECT method FROM table_name_88 WHERE round = "1" AND record = "10–2" | Round of 1, and a Record of 10–2 had what method? | <s>[INST]Round of 1, and a Record of 10–2 had what method? Context: CREATE TABLE table_name_88 (method VARCHAR, round VARCHAR, record VARCHAR)[/INST]SELECT method FROM table_name_88 WHERE round = "1" AND record = "10–2"</s> |
CREATE TABLE table_name_32 (grade VARCHAR) | SELECT MIN(2005) FROM table_name_32 WHERE grade < 6 AND 2008 < 80 AND 2006 > 72 | Which 2005 is the lowest one that has a Grade smaller than 6, and a 2008 smaller than 80, and a 2006 larger than 72? | <s>[INST]Which 2005 is the lowest one that has a Grade smaller than 6, and a 2008 smaller than 80, and a 2006 larger than 72? Context: CREATE TABLE table_name_32 (grade VARCHAR)[/INST]SELECT MIN(2005) FROM table_name_32 WHERE grade < 6 AND 2008 < 80 AND 2006 > 72</s> |
CREATE TABLE table_name_7 (apps INTEGER, rank VARCHAR, season VARCHAR) | SELECT MAX(apps) FROM table_name_7 WHERE rank = 8 AND season = "2012/13" | How many apps for the rank of 8 in the 2012/13 season? | <s>[INST]How many apps for the rank of 8 in the 2012/13 season? Context: CREATE TABLE table_name_7 (apps INTEGER, rank VARCHAR, season VARCHAR)[/INST]SELECT MAX(apps) FROM table_name_7 WHERE rank = 8 AND season = "2012/13"</s> |
CREATE TABLE players (country_code VARCHAR, first_name VARCHAR, player_id VARCHAR); CREATE TABLE rankings (player_id VARCHAR, tours VARCHAR) | SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.tours DESC LIMIT 1 | Find the first name and country code of the player who did the most number of tours. | <s>[INST]Find the first name and country code of the player who did the most number of tours. Context: CREATE TABLE players (country_code VARCHAR, first_name VARCHAR, player_id VARCHAR); CREATE TABLE rankings (player_id VARCHAR, tours VARCHAR)[/INST]SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.tours DESC LIMIT 1</s> |
CREATE TABLE table_name_48 (lost VARCHAR, points VARCHAR) | SELECT lost FROM table_name_48 WHERE points = "10" | Who was the team that lost but had 10 points? | <s>[INST]Who was the team that lost but had 10 points? Context: CREATE TABLE table_name_48 (lost VARCHAR, points VARCHAR)[/INST]SELECT lost FROM table_name_48 WHERE points = "10"</s> |
CREATE TABLE table_name_18 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_18 WHERE date = "7 may 2000" | Name the score for 7 may 2000 | <s>[INST]Name the score for 7 may 2000 Context: CREATE TABLE table_name_18 (score VARCHAR, date VARCHAR)[/INST]SELECT score FROM table_name_18 WHERE date = "7 may 2000"</s> |
CREATE TABLE table_name_71 (version VARCHAR, year VARCHAR) | SELECT version FROM table_name_71 WHERE year = "1940-45" | Tell me the version for 1940-45 | <s>[INST]Tell me the version for 1940-45 Context: CREATE TABLE table_name_71 (version VARCHAR, year VARCHAR)[/INST]SELECT version FROM table_name_71 WHERE year = "1940-45"</s> |
CREATE TABLE table_name_69 (away_captain VARCHAR, date VARCHAR) | SELECT away_captain FROM table_name_69 WHERE date = "2,3,4,5 january 1999" | Which Away captain has a Date of 2,3,4,5 january 1999? | <s>[INST]Which Away captain has a Date of 2,3,4,5 january 1999? Context: CREATE TABLE table_name_69 (away_captain VARCHAR, date VARCHAR)[/INST]SELECT away_captain FROM table_name_69 WHERE date = "2,3,4,5 january 1999"</s> |
CREATE TABLE table_name_40 (aircraft VARCHAR, quantity VARCHAR) | SELECT aircraft FROM table_name_40 WHERE quantity = "129" | What aircraft has 129 made? | <s>[INST]What aircraft has 129 made? Context: CREATE TABLE table_name_40 (aircraft VARCHAR, quantity VARCHAR)[/INST]SELECT aircraft FROM table_name_40 WHERE quantity = "129"</s> |
CREATE TABLE student (stu_fname VARCHAR, stu_num VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE enroll (class_code VARCHAR, stu_num VARCHAR) | SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T2.stu_num = T3.stu_num WHERE T1.crs_code = 'ACCT-211' | What is the first name of each student enrolled in class ACCT-211? | <s>[INST]What is the first name of each student enrolled in class ACCT-211? Context: CREATE TABLE student (stu_fname VARCHAR, stu_num VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE enroll (class_code VARCHAR, stu_num VARCHAR)[/INST]SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T2.stu_num = T3.stu_num WHERE T1.crs_code = 'ACCT-211'</s> |
CREATE TABLE table_name_31 (top_scorer VARCHAR, season VARCHAR) | SELECT top_scorer FROM table_name_31 WHERE season = "1890-91" | What was the top scorer in the 1890-91 season? | <s>[INST]What was the top scorer in the 1890-91 season? Context: CREATE TABLE table_name_31 (top_scorer VARCHAR, season VARCHAR)[/INST]SELECT top_scorer FROM table_name_31 WHERE season = "1890-91"</s> |
CREATE TABLE table_name_16 (opponent_in_the_final VARCHAR, date VARCHAR) | SELECT opponent_in_the_final FROM table_name_16 WHERE date = "4 april 2011" | Who is the Opponent in the final on 4 April 2011? | <s>[INST]Who is the Opponent in the final on 4 April 2011? Context: CREATE TABLE table_name_16 (opponent_in_the_final VARCHAR, date VARCHAR)[/INST]SELECT opponent_in_the_final FROM table_name_16 WHERE date = "4 april 2011"</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.