context stringlengths 27 489 | answer stringlengths 18 557 | question stringlengths 12 243 | text stringlengths 103 1.05k |
|---|---|---|---|
CREATE TABLE table_name_83 (player VARCHAR, year_s__won VARCHAR) | SELECT player FROM table_name_83 WHERE year_s__won = "1993" | Who is the player who won in 1993? | <s>[INST]Who is the player who won in 1993? Context: CREATE TABLE table_name_83 (player VARCHAR, year_s__won VARCHAR)[/INST]SELECT player FROM table_name_83 WHERE year_s__won = "1993"</s> |
CREATE TABLE table_name_27 (rim_diameter VARCHAR, neck_diameter VARCHAR) | SELECT rim_diameter FROM table_name_27 WHERE neck_diameter = "11.84 (.466)" | Which Rim diameter has a Neck diameter of 11.84 (.466)? | <s>[INST]Which Rim diameter has a Neck diameter of 11.84 (.466)? Context: CREATE TABLE table_name_27 (rim_diameter VARCHAR, neck_diameter VARCHAR)[/INST]SELECT rim_diameter FROM table_name_27 WHERE neck_diameter = "11.84 (.466)"</s> |
CREATE TABLE table_2394927_1 (max_downstream_throughput___mbit_s__ VARCHAR, power___dbm__ VARCHAR) | SELECT max_downstream_throughput___mbit_s__ FROM table_2394927_1 WHERE power___dbm__ = "+17.5" | What are the highest mbit/s when the dbm is +17.5? | <s>[INST]What are the highest mbit/s when the dbm is +17.5? Context: CREATE TABLE table_2394927_1 (max_downstream_throughput___mbit_s__ VARCHAR, power___dbm__ VARCHAR)[/INST]SELECT max_downstream_throughput___mbit_s__ FROM table_2394927_1 WHERE power___dbm__ = "+17.5"</s> |
CREATE TABLE people (Hometown VARCHAR) | SELECT COUNT(DISTINCT Hometown) FROM people | How many distinct hometowns did these people have? | <s>[INST]How many distinct hometowns did these people have? Context: CREATE TABLE people (Hometown VARCHAR)[/INST]SELECT COUNT(DISTINCT Hometown) FROM people</s> |
CREATE TABLE table_name_42 (host_country___countries VARCHAR, silver VARCHAR, bronze VARCHAR) | SELECT host_country___countries FROM table_name_42 WHERE silver = "[[|]] (2)" AND bronze = "czechoslovakia (3)" | What was the host country when the silver was [[|]] (2) and bronze is czechoslovakia (3)? | <s>[INST]What was the host country when the silver was [[|]] (2) and bronze is czechoslovakia (3)? Context: CREATE TABLE table_name_42 (host_country___countries VARCHAR, silver VARCHAR, bronze VARCHAR)[/INST]SELECT host_country___countries FROM table_name_42 WHERE silver = "[[|]] (2)" AND bronze = "czechoslovakia (3)"</s> |
CREATE TABLE table_name_12 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_12 WHERE date = "september 28" | Date of september 28 had what record? | <s>[INST]Date of september 28 had what record? Context: CREATE TABLE table_name_12 (record VARCHAR, date VARCHAR)[/INST]SELECT record FROM table_name_12 WHERE date = "september 28"</s> |
CREATE TABLE table_name_32 (qual_1 VARCHAR, team VARCHAR, name VARCHAR) | SELECT qual_1 FROM table_name_32 WHERE team = "newman/haas racing" AND name = "sébastien bourdais" | Sébastien Bourdais of the team Newman/Haas Racing has what qual 1? | <s>[INST]Sébastien Bourdais of the team Newman/Haas Racing has what qual 1? Context: CREATE TABLE table_name_32 (qual_1 VARCHAR, team VARCHAR, name VARCHAR)[/INST]SELECT qual_1 FROM table_name_32 WHERE team = "newman/haas racing" AND name = "sébastien bourdais"</s> |
CREATE TABLE table_name_11 (melbourne VARCHAR, adelaide VARCHAR, gold_coast VARCHAR, perth VARCHAR) | SELECT melbourne FROM table_name_11 WHERE gold_coast = "yes" AND perth = "cancelled" AND adelaide = "cancelled" | Which Melbourne has Gold Coast yes, Perth cancelled, and Adelaide cancelled? | <s>[INST]Which Melbourne has Gold Coast yes, Perth cancelled, and Adelaide cancelled? Context: CREATE TABLE table_name_11 (melbourne VARCHAR, adelaide VARCHAR, gold_coast VARCHAR, perth VARCHAR)[/INST]SELECT melbourne FROM table_name_11 WHERE gold_coast = "yes" AND perth = "cancelled" AND adelaide = "cancelled"</s> |
CREATE TABLE table_name_73 (attendance VARCHAR, tie_no VARCHAR) | SELECT attendance FROM table_name_73 WHERE tie_no = "45" | What is the attendance with a 45 tie no.? | <s>[INST]What is the attendance with a 45 tie no.? Context: CREATE TABLE table_name_73 (attendance VARCHAR, tie_no VARCHAR)[/INST]SELECT attendance FROM table_name_73 WHERE tie_no = "45"</s> |
CREATE TABLE CARS_DATA (Accelerate VARCHAR, Id VARCHAR); CREATE TABLE CAR_NAMES (MakeId VARCHAR, Make VARCHAR) | SELECT T1.Accelerate FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Make = 'amc hornet sportabout (sw)' | What is the accelerate of the car make amc hornet sportabout (sw)? | <s>[INST]What is the accelerate of the car make amc hornet sportabout (sw)? Context: CREATE TABLE CARS_DATA (Accelerate VARCHAR, Id VARCHAR); CREATE TABLE CAR_NAMES (MakeId VARCHAR, Make VARCHAR)[/INST]SELECT T1.Accelerate FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Make = 'amc hornet sportabout (sw)'</s> |
CREATE TABLE table_name_68 (championship INTEGER, league_cup VARCHAR, fa_cup VARCHAR) | SELECT MIN(championship) FROM table_name_68 WHERE league_cup > 0 AND fa_cup > 0 | Which Championship has a League Cup larger than 0, and a FA Cup larger than 0? | <s>[INST]Which Championship has a League Cup larger than 0, and a FA Cup larger than 0? Context: CREATE TABLE table_name_68 (championship INTEGER, league_cup VARCHAR, fa_cup VARCHAR)[/INST]SELECT MIN(championship) FROM table_name_68 WHERE league_cup > 0 AND fa_cup > 0</s> |
CREATE TABLE table_name_51 (label VARCHAR, date VARCHAR) | SELECT label FROM table_name_51 WHERE date = "29 july 1997" | What's listed for the Label with a Date of 29 July 1997? | <s>[INST]What's listed for the Label with a Date of 29 July 1997? Context: CREATE TABLE table_name_51 (label VARCHAR, date VARCHAR)[/INST]SELECT label FROM table_name_51 WHERE date = "29 july 1997"</s> |
CREATE TABLE table_name_77 (game INTEGER, record VARCHAR) | SELECT SUM(game) FROM table_name_77 WHERE record = "33-13-3" | What is the sum of games for a record of 33-13-3? | <s>[INST]What is the sum of games for a record of 33-13-3? Context: CREATE TABLE table_name_77 (game INTEGER, record VARCHAR)[/INST]SELECT SUM(game) FROM table_name_77 WHERE record = "33-13-3"</s> |
CREATE TABLE table_name_2 (rd__number INTEGER, player VARCHAR, pick__number VARCHAR) | SELECT AVG(rd__number) FROM table_name_2 WHERE player = "dane jackson" AND pick__number > 44 | What's the average Rd number for dane jackson with a pick number over 44? | <s>[INST]What's the average Rd number for dane jackson with a pick number over 44? Context: CREATE TABLE table_name_2 (rd__number INTEGER, player VARCHAR, pick__number VARCHAR)[/INST]SELECT AVG(rd__number) FROM table_name_2 WHERE player = "dane jackson" AND pick__number > 44</s> |
CREATE TABLE table_name_2 (judaism VARCHAR, christianity VARCHAR) | SELECT judaism FROM table_name_2 WHERE christianity = "2.51%" | What is the percentage of Judaism associated with Christianity at 2.51%? | <s>[INST]What is the percentage of Judaism associated with Christianity at 2.51%? Context: CREATE TABLE table_name_2 (judaism VARCHAR, christianity VARCHAR)[/INST]SELECT judaism FROM table_name_2 WHERE christianity = "2.51%"</s> |
CREATE TABLE table_name_75 (to_par VARCHAR, player VARCHAR) | SELECT to_par FROM table_name_75 WHERE player = "roger maltbie" | what is the to par when the player is roger maltbie? | <s>[INST]what is the to par when the player is roger maltbie? Context: CREATE TABLE table_name_75 (to_par VARCHAR, player VARCHAR)[/INST]SELECT to_par FROM table_name_75 WHERE player = "roger maltbie"</s> |
CREATE TABLE table_name_12 (season VARCHAR, episode_count VARCHAR, time_length VARCHAR) | SELECT season FROM table_name_12 WHERE episode_count > 5 AND time_length = "159 minutes" | Which season has more than 5 episodes each 159 minutes in length? | <s>[INST]Which season has more than 5 episodes each 159 minutes in length? Context: CREATE TABLE table_name_12 (season VARCHAR, episode_count VARCHAR, time_length VARCHAR)[/INST]SELECT season FROM table_name_12 WHERE episode_count > 5 AND time_length = "159 minutes"</s> |
CREATE TABLE manufacturers (revenue INTEGER, headquarter VARCHAR) | SELECT SUM(revenue) FROM manufacturers WHERE revenue > (SELECT MIN(revenue) FROM manufacturers WHERE headquarter = 'Austin') | Find the total revenue of companies whose revenue is larger than the revenue of some companies based in Austin. | <s>[INST]Find the total revenue of companies whose revenue is larger than the revenue of some companies based in Austin. Context: CREATE TABLE manufacturers (revenue INTEGER, headquarter VARCHAR)[/INST]SELECT SUM(revenue) FROM manufacturers WHERE revenue > (SELECT MIN(revenue) FROM manufacturers WHERE headquarter = 'Austin')</s> |
CREATE TABLE table_name_96 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_96 WHERE away_team = "essendon" | Who is the home team of the game against Essendon? | <s>[INST]Who is the home team of the game against Essendon? Context: CREATE TABLE table_name_96 (home_team VARCHAR, away_team VARCHAR)[/INST]SELECT home_team FROM table_name_96 WHERE away_team = "essendon"</s> |
CREATE TABLE table_298550_1 (area__km²_ VARCHAR, population_density__per_km²_ VARCHAR) | SELECT COUNT(area__km²_) FROM table_298550_1 WHERE population_density__per_km²_ = "207.9" | How many entries for area correspond to a population density of 207.9? | <s>[INST]How many entries for area correspond to a population density of 207.9? Context: CREATE TABLE table_298550_1 (area__km²_ VARCHAR, population_density__per_km²_ VARCHAR)[/INST]SELECT COUNT(area__km²_) FROM table_298550_1 WHERE population_density__per_km²_ = "207.9"</s> |
CREATE TABLE table_name_9 (result VARCHAR, episode VARCHAR, original_artist VARCHAR) | SELECT result FROM table_name_9 WHERE episode = "top 3" AND original_artist = "janis ian" | What result did Janis Ian have in the episode of top 3? | <s>[INST]What result did Janis Ian have in the episode of top 3? Context: CREATE TABLE table_name_9 (result VARCHAR, episode VARCHAR, original_artist VARCHAR)[/INST]SELECT result FROM table_name_9 WHERE episode = "top 3" AND original_artist = "janis ian"</s> |
CREATE TABLE table_name_82 (club VARCHAR, country VARCHAR, goals VARCHAR) | SELECT club FROM table_name_82 WHERE country = "netherlands" AND goals = "22" | What club was in Netherlands and had 22 goals? | <s>[INST]What club was in Netherlands and had 22 goals? Context: CREATE TABLE table_name_82 (club VARCHAR, country VARCHAR, goals VARCHAR)[/INST]SELECT club FROM table_name_82 WHERE country = "netherlands" AND goals = "22"</s> |
CREATE TABLE GRAPES (GRAPE VARCHAR, Color VARCHAR); CREATE TABLE WINE (Winery VARCHAR, GRAPE VARCHAR) | SELECT T2.Winery FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.GRAPE = T2.GRAPE WHERE T1.Color = "White" GROUP BY T2.Winery ORDER BY COUNT(*) DESC LIMIT 3 | Find the top 3 wineries with the greatest number of wines made of white color grapes. | <s>[INST]Find the top 3 wineries with the greatest number of wines made of white color grapes. Context: CREATE TABLE GRAPES (GRAPE VARCHAR, Color VARCHAR); CREATE TABLE WINE (Winery VARCHAR, GRAPE VARCHAR)[/INST]SELECT T2.Winery FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.GRAPE = T2.GRAPE WHERE T1.Color = "White" GROUP BY T2.Winery ORDER BY COUNT(*) DESC LIMIT 3</s> |
CREATE TABLE table_name_17 (attendance VARCHAR, result VARCHAR) | SELECT attendance FROM table_name_17 WHERE result = "t7-7" | What is the attendance for the t7-7 result? | <s>[INST]What is the attendance for the t7-7 result? Context: CREATE TABLE table_name_17 (attendance VARCHAR, result VARCHAR)[/INST]SELECT attendance FROM table_name_17 WHERE result = "t7-7"</s> |
CREATE TABLE table_name_82 (home_team VARCHAR, venue VARCHAR) | SELECT home_team FROM table_name_82 WHERE venue = "glenferrie oval" | Which team was the home team at Glenferrie Oval? | <s>[INST]Which team was the home team at Glenferrie Oval? Context: CREATE TABLE table_name_82 (home_team VARCHAR, venue VARCHAR)[/INST]SELECT home_team FROM table_name_82 WHERE venue = "glenferrie oval"</s> |
CREATE TABLE table_25017530_5 (college VARCHAR, player VARCHAR) | SELECT college FROM table_25017530_5 WHERE player = "Nate Binder" | Name the college for nate binder | <s>[INST]Name the college for nate binder Context: CREATE TABLE table_25017530_5 (college VARCHAR, player VARCHAR)[/INST]SELECT college FROM table_25017530_5 WHERE player = "Nate Binder"</s> |
CREATE TABLE table_name_3 (location VARCHAR, meet VARCHAR, time VARCHAR) | SELECT location FROM table_name_3 WHERE meet = "2008 championships" AND time = "7:56.90" | Where were the 2008 championships with a time of 7:56.90 held? | <s>[INST]Where were the 2008 championships with a time of 7:56.90 held? Context: CREATE TABLE table_name_3 (location VARCHAR, meet VARCHAR, time VARCHAR)[/INST]SELECT location FROM table_name_3 WHERE meet = "2008 championships" AND time = "7:56.90"</s> |
CREATE TABLE table_name_55 (winning_driver VARCHAR, winning_team VARCHAR, date VARCHAR) | SELECT winning_driver FROM table_name_55 WHERE winning_team = "engstler motorsport engstler motorsport" AND date = "22 july" | Who is the Winning Driver that has a Winning team of Engstler Motorsport Engstler Motorsport and also the Date 22 July? | <s>[INST]Who is the Winning Driver that has a Winning team of Engstler Motorsport Engstler Motorsport and also the Date 22 July? Context: CREATE TABLE table_name_55 (winning_driver VARCHAR, winning_team VARCHAR, date VARCHAR)[/INST]SELECT winning_driver FROM table_name_55 WHERE winning_team = "engstler motorsport engstler motorsport" AND date = "22 july"</s> |
CREATE TABLE table_name_3 (interview_subject VARCHAR, centerfold_model VARCHAR) | SELECT interview_subject FROM table_name_3 WHERE centerfold_model = "melissa deanne holliday" | Who was the Interview Subject when the Centerfold Model was Melissa Deanne Holliday? | <s>[INST]Who was the Interview Subject when the Centerfold Model was Melissa Deanne Holliday? Context: CREATE TABLE table_name_3 (interview_subject VARCHAR, centerfold_model VARCHAR)[/INST]SELECT interview_subject FROM table_name_3 WHERE centerfold_model = "melissa deanne holliday"</s> |
CREATE TABLE table_name_38 (league_apps VARCHAR, league_goals VARCHAR, flt_apps VARCHAR, total_goals VARCHAR) | SELECT league_apps FROM table_name_38 WHERE flt_apps = "1" AND total_goals > 0 AND league_goals > 1 | What league apps with 1 flt apps, 0 goals, and more than 1 league goals? | <s>[INST]What league apps with 1 flt apps, 0 goals, and more than 1 league goals? Context: CREATE TABLE table_name_38 (league_apps VARCHAR, league_goals VARCHAR, flt_apps VARCHAR, total_goals VARCHAR)[/INST]SELECT league_apps FROM table_name_38 WHERE flt_apps = "1" AND total_goals > 0 AND league_goals > 1</s> |
CREATE TABLE table_15647838_3 (result VARCHAR, attendance VARCHAR) | SELECT COUNT(result) FROM table_15647838_3 WHERE attendance = "74,111" | How many values for result correspond to attendance of 74,111? | <s>[INST]How many values for result correspond to attendance of 74,111? Context: CREATE TABLE table_15647838_3 (result VARCHAR, attendance VARCHAR)[/INST]SELECT COUNT(result) FROM table_15647838_3 WHERE attendance = "74,111"</s> |
CREATE TABLE student (fname VARCHAR, age VARCHAR, stuid VARCHAR); CREATE TABLE has_pet (stuid VARCHAR) | SELECT DISTINCT T1.fname, T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid | Find the first name and age of students who have a pet. | <s>[INST]Find the first name and age of students who have a pet. Context: CREATE TABLE student (fname VARCHAR, age VARCHAR, stuid VARCHAR); CREATE TABLE has_pet (stuid VARCHAR)[/INST]SELECT DISTINCT T1.fname, T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid</s> |
CREATE TABLE table_name_34 (declination___j2000__ VARCHAR, right_ascension___j2000__ VARCHAR) | SELECT declination___j2000__ FROM table_name_34 WHERE right_ascension___j2000__ = "11h53m41.9s" | What is the declination with a right ascension of 11h53m41.9s? | <s>[INST]What is the declination with a right ascension of 11h53m41.9s? Context: CREATE TABLE table_name_34 (declination___j2000__ VARCHAR, right_ascension___j2000__ VARCHAR)[/INST]SELECT declination___j2000__ FROM table_name_34 WHERE right_ascension___j2000__ = "11h53m41.9s"</s> |
CREATE TABLE table_18217753_1 (series__number VARCHAR, us_viewers__millions_ VARCHAR) | SELECT COUNT(series__number) FROM table_18217753_1 WHERE us_viewers__millions_ = "23.93" | How many series had viewers totaling 23.93 million? | <s>[INST]How many series had viewers totaling 23.93 million? Context: CREATE TABLE table_18217753_1 (series__number VARCHAR, us_viewers__millions_ VARCHAR)[/INST]SELECT COUNT(series__number) FROM table_18217753_1 WHERE us_viewers__millions_ = "23.93"</s> |
CREATE TABLE table_name_98 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_98 WHERE date = "december 14, 1985" | What is the score when the date is December 14, 1985? | <s>[INST]What is the score when the date is December 14, 1985? Context: CREATE TABLE table_name_98 (score VARCHAR, date VARCHAR)[/INST]SELECT score FROM table_name_98 WHERE date = "december 14, 1985"</s> |
CREATE TABLE table_23649244_1 (level VARCHAR, artist_1 VARCHAR, artist_2 VARCHAR) | SELECT level FROM table_23649244_1 WHERE artist_1 = "Marvin Gaye" AND artist_2 = "David Bowie" | Which level has marvin gaye as artist 1 and david bowie as artist 2? | <s>[INST]Which level has marvin gaye as artist 1 and david bowie as artist 2? Context: CREATE TABLE table_23649244_1 (level VARCHAR, artist_1 VARCHAR, artist_2 VARCHAR)[/INST]SELECT level FROM table_23649244_1 WHERE artist_1 = "Marvin Gaye" AND artist_2 = "David Bowie"</s> |
CREATE TABLE table_21146729_6 (series__number INTEGER, original_airdate VARCHAR) | SELECT MAX(series__number) FROM table_21146729_6 WHERE original_airdate = "October 23, 1967" | What was the series# with the original airdate of october 23, 1967? | <s>[INST]What was the series# with the original airdate of october 23, 1967? Context: CREATE TABLE table_21146729_6 (series__number INTEGER, original_airdate VARCHAR)[/INST]SELECT MAX(series__number) FROM table_21146729_6 WHERE original_airdate = "October 23, 1967"</s> |
CREATE TABLE table_name_34 (nationality VARCHAR, position VARCHAR, school_club_team VARCHAR) | SELECT nationality FROM table_name_34 WHERE position = "guard" AND school_club_team = "virginia" | What is the nationality of the guard for the chool/Club Team in Virginia? | <s>[INST]What is the nationality of the guard for the chool/Club Team in Virginia? Context: CREATE TABLE table_name_34 (nationality VARCHAR, position VARCHAR, school_club_team VARCHAR)[/INST]SELECT nationality FROM table_name_34 WHERE position = "guard" AND school_club_team = "virginia"</s> |
CREATE TABLE table_name_83 (player VARCHAR, college VARCHAR) | SELECT player FROM table_name_83 WHERE college = "arizona" | Which player has a College of arizona? | <s>[INST]Which player has a College of arizona? Context: CREATE TABLE table_name_83 (player VARCHAR, college VARCHAR)[/INST]SELECT player FROM table_name_83 WHERE college = "arizona"</s> |
CREATE TABLE table_28884858_2 (capacity_percentage VARCHAR, average_attendance VARCHAR) | SELECT capacity_percentage FROM table_28884858_2 WHERE average_attendance = 71080 | What was the capacity percentage when attendance was 71080? | <s>[INST]What was the capacity percentage when attendance was 71080? Context: CREATE TABLE table_28884858_2 (capacity_percentage VARCHAR, average_attendance VARCHAR)[/INST]SELECT capacity_percentage FROM table_28884858_2 WHERE average_attendance = 71080</s> |
CREATE TABLE table_name_28 (year VARCHAR, result VARCHAR, venue VARCHAR) | SELECT COUNT(year) FROM table_name_28 WHERE result = "3rd" AND venue = "edinburgh, scotland" | What is the total number of years wehre anna thompson had a 3rd place result at edinburgh, scotland? | <s>[INST]What is the total number of years wehre anna thompson had a 3rd place result at edinburgh, scotland? Context: CREATE TABLE table_name_28 (year VARCHAR, result VARCHAR, venue VARCHAR)[/INST]SELECT COUNT(year) FROM table_name_28 WHERE result = "3rd" AND venue = "edinburgh, scotland"</s> |
CREATE TABLE table_name_36 (duration VARCHAR, actor VARCHAR) | SELECT duration FROM table_name_36 WHERE actor = "nickolas grace" | What is the duration for nickolas grace as the actor? | <s>[INST]What is the duration for nickolas grace as the actor? Context: CREATE TABLE table_name_36 (duration VARCHAR, actor VARCHAR)[/INST]SELECT duration FROM table_name_36 WHERE actor = "nickolas grace"</s> |
CREATE TABLE HOST (Name VARCHAR, Nationality VARCHAR, Age VARCHAR) | SELECT Name, Nationality FROM HOST ORDER BY Age DESC LIMIT 1 | Show the name and the nationality of the oldest host. | <s>[INST]Show the name and the nationality of the oldest host. Context: CREATE TABLE HOST (Name VARCHAR, Nationality VARCHAR, Age VARCHAR)[/INST]SELECT Name, Nationality FROM HOST ORDER BY Age DESC LIMIT 1</s> |
CREATE TABLE table_29012710_1 (province VARCHAR, number_of_dairy_farms VARCHAR) | SELECT province FROM table_29012710_1 WHERE number_of_dairy_farms = 200 | what is the location where there are over 200 cattle businesses | <s>[INST]what is the location where there are over 200 cattle businesses Context: CREATE TABLE table_29012710_1 (province VARCHAR, number_of_dairy_farms VARCHAR)[/INST]SELECT province FROM table_29012710_1 WHERE number_of_dairy_farms = 200</s> |
CREATE TABLE follows (f1 VARCHAR) | SELECT COUNT(*) FROM follows GROUP BY f1 | Find the number of followers for each user. | <s>[INST]Find the number of followers for each user. Context: CREATE TABLE follows (f1 VARCHAR)[/INST]SELECT COUNT(*) FROM follows GROUP BY f1</s> |
CREATE TABLE table_name_9 (top_10 INTEGER, cuts_made VARCHAR, events VARCHAR) | SELECT MAX(top_10) FROM table_name_9 WHERE cuts_made > 1 AND events = 8 | For majors with 8 events played and more than 1 made cut, what is the most top-10s recorded? | <s>[INST]For majors with 8 events played and more than 1 made cut, what is the most top-10s recorded? Context: CREATE TABLE table_name_9 (top_10 INTEGER, cuts_made VARCHAR, events VARCHAR)[/INST]SELECT MAX(top_10) FROM table_name_9 WHERE cuts_made > 1 AND events = 8</s> |
CREATE TABLE table_name_43 (fa_cup INTEGER, total VARCHAR, championship VARCHAR) | SELECT MAX(fa_cup) FROM table_name_43 WHERE total = "0 4" AND championship < 4 | What is the highest value for FA cups, that has a total of 0 4, with less than 4 championships? | <s>[INST]What is the highest value for FA cups, that has a total of 0 4, with less than 4 championships? Context: CREATE TABLE table_name_43 (fa_cup INTEGER, total VARCHAR, championship VARCHAR)[/INST]SELECT MAX(fa_cup) FROM table_name_43 WHERE total = "0 4" AND championship < 4</s> |
CREATE TABLE table_28561455_1 (no_in_series INTEGER, written_by VARCHAR) | SELECT MAX(no_in_series) FROM table_28561455_1 WHERE written_by = "Meredith Averill" | What was the latest episode number that Meredith Averill wrote? | <s>[INST]What was the latest episode number that Meredith Averill wrote? Context: CREATE TABLE table_28561455_1 (no_in_series INTEGER, written_by VARCHAR)[/INST]SELECT MAX(no_in_series) FROM table_28561455_1 WHERE written_by = "Meredith Averill"</s> |
CREATE TABLE table_1341568_14 (incumbent VARCHAR, elected VARCHAR, party VARCHAR) | SELECT incumbent FROM table_1341568_14 WHERE elected = 1974 AND party = "Republican" | What Republican incumbent was elected in 1974? | <s>[INST]What Republican incumbent was elected in 1974? Context: CREATE TABLE table_1341568_14 (incumbent VARCHAR, elected VARCHAR, party VARCHAR)[/INST]SELECT incumbent FROM table_1341568_14 WHERE elected = 1974 AND party = "Republican"</s> |
CREATE TABLE table_name_18 (gold VARCHAR, year VARCHAR) | SELECT gold FROM table_name_18 WHERE year = "1958" | Who won the gold in 1958? | <s>[INST]Who won the gold in 1958? Context: CREATE TABLE table_name_18 (gold VARCHAR, year VARCHAR)[/INST]SELECT gold FROM table_name_18 WHERE year = "1958"</s> |
CREATE TABLE table_name_96 (opponent VARCHAR, game VARCHAR) | SELECT opponent FROM table_name_96 WHERE game = 75 | Who was the opponent for game 75? | <s>[INST]Who was the opponent for game 75? Context: CREATE TABLE table_name_96 (opponent VARCHAR, game VARCHAR)[/INST]SELECT opponent FROM table_name_96 WHERE game = 75</s> |
CREATE TABLE table_name_2 (date VARCHAR, home_team VARCHAR) | SELECT date FROM table_name_2 WHERE home_team = "fitzroy" | What date was fitzroy the home team? | <s>[INST]What date was fitzroy the home team? Context: CREATE TABLE table_name_2 (date VARCHAR, home_team VARCHAR)[/INST]SELECT date FROM table_name_2 WHERE home_team = "fitzroy"</s> |
CREATE TABLE table_174151_5 (devices_per_channel VARCHAR, raw_bandwidth__mbit_s_ VARCHAR) | SELECT devices_per_channel FROM table_174151_5 WHERE raw_bandwidth__mbit_s_ = 2560 | Name the devices per channel for 2560 | <s>[INST]Name the devices per channel for 2560 Context: CREATE TABLE table_174151_5 (devices_per_channel VARCHAR, raw_bandwidth__mbit_s_ VARCHAR)[/INST]SELECT devices_per_channel FROM table_174151_5 WHERE raw_bandwidth__mbit_s_ = 2560</s> |
CREATE TABLE Documents (document_id VARCHAR, document_name VARCHAR) | SELECT document_id, document_name FROM Documents | Show the ids and names of all documents. | <s>[INST]Show the ids and names of all documents. Context: CREATE TABLE Documents (document_id VARCHAR, document_name VARCHAR)[/INST]SELECT document_id, document_name FROM Documents</s> |
CREATE TABLE table_name_8 (kapampangan VARCHAR, malay VARCHAR) | SELECT kapampangan FROM table_name_8 WHERE malay = "aku" | What is the Kapampangan word for the Malay word aku? | <s>[INST]What is the Kapampangan word for the Malay word aku? Context: CREATE TABLE table_name_8 (kapampangan VARCHAR, malay VARCHAR)[/INST]SELECT kapampangan FROM table_name_8 WHERE malay = "aku"</s> |
CREATE TABLE table_name_99 (date VARCHAR, major VARCHAR, country VARCHAR) | SELECT date FROM table_name_99 WHERE major = "the open championship" AND country = "japan" | On what Date was The Open Championship in Japan? | <s>[INST]On what Date was The Open Championship in Japan? Context: CREATE TABLE table_name_99 (date VARCHAR, major VARCHAR, country VARCHAR)[/INST]SELECT date FROM table_name_99 WHERE major = "the open championship" AND country = "japan"</s> |
CREATE TABLE table_name_52 (grid INTEGER, laps VARCHAR, driver VARCHAR) | SELECT MIN(grid) FROM table_name_52 WHERE laps > 67 AND driver = "stefan bellof" | What is the lowest grid that has over 67 laps with stefan bellof driving? | <s>[INST]What is the lowest grid that has over 67 laps with stefan bellof driving? Context: CREATE TABLE table_name_52 (grid INTEGER, laps VARCHAR, driver VARCHAR)[/INST]SELECT MIN(grid) FROM table_name_52 WHERE laps > 67 AND driver = "stefan bellof"</s> |
CREATE TABLE table_name_23 (headquarters VARCHAR, employees__world_ VARCHAR) | SELECT headquarters FROM table_name_23 WHERE employees__world_ = 100 | Which HQ is associated with a number of employees of 100? | <s>[INST]Which HQ is associated with a number of employees of 100? Context: CREATE TABLE table_name_23 (headquarters VARCHAR, employees__world_ VARCHAR)[/INST]SELECT headquarters FROM table_name_23 WHERE employees__world_ = 100</s> |
CREATE TABLE undergoes (AssistingNurse VARCHAR); CREATE TABLE nurse (name VARCHAR, EmployeeID VARCHAR) | SELECT DISTINCT T2.name FROM undergoes AS T1 JOIN nurse AS T2 ON T1.AssistingNurse = T2.EmployeeID | Find the names of nurses who are nursing an undergoing treatment. | <s>[INST]Find the names of nurses who are nursing an undergoing treatment. Context: CREATE TABLE undergoes (AssistingNurse VARCHAR); CREATE TABLE nurse (name VARCHAR, EmployeeID VARCHAR)[/INST]SELECT DISTINCT T2.name FROM undergoes AS T1 JOIN nurse AS T2 ON T1.AssistingNurse = T2.EmployeeID</s> |
CREATE TABLE table_name_91 (losses INTEGER, wins VARCHAR, byes VARCHAR) | SELECT SUM(losses) FROM table_name_91 WHERE wins = 8 AND byes < 2 | What's the total losses when there are 8 wins and less than 2 byes? | <s>[INST]What's the total losses when there are 8 wins and less than 2 byes? Context: CREATE TABLE table_name_91 (losses INTEGER, wins VARCHAR, byes VARCHAR)[/INST]SELECT SUM(losses) FROM table_name_91 WHERE wins = 8 AND byes < 2</s> |
CREATE TABLE table_name_30 (podium INTEGER, season VARCHAR, pole VARCHAR) | SELECT MIN(podium) FROM table_name_30 WHERE season = "2005" AND pole < 0 | What are the fewest podiums in 2005 with fewer than 0 poles? | <s>[INST]What are the fewest podiums in 2005 with fewer than 0 poles? Context: CREATE TABLE table_name_30 (podium INTEGER, season VARCHAR, pole VARCHAR)[/INST]SELECT MIN(podium) FROM table_name_30 WHERE season = "2005" AND pole < 0</s> |
CREATE TABLE table_name_48 (model_number VARCHAR, socket VARCHAR) | SELECT model_number FROM table_name_48 WHERE socket = "standard voltage" | What model number uses standard voltage socket? | <s>[INST]What model number uses standard voltage socket? Context: CREATE TABLE table_name_48 (model_number VARCHAR, socket VARCHAR)[/INST]SELECT model_number FROM table_name_48 WHERE socket = "standard voltage"</s> |
CREATE TABLE table_name_71 (right_ascension___j2000__ VARCHAR, apparent_magnitude VARCHAR) | SELECT right_ascension___j2000__ FROM table_name_71 WHERE apparent_magnitude = 10.5 | When the apparent magnitude is 10.5, what is the right ascension? | <s>[INST]When the apparent magnitude is 10.5, what is the right ascension? Context: CREATE TABLE table_name_71 (right_ascension___j2000__ VARCHAR, apparent_magnitude VARCHAR)[/INST]SELECT right_ascension___j2000__ FROM table_name_71 WHERE apparent_magnitude = 10.5</s> |
CREATE TABLE table_298550_1 (country_with_flag VARCHAR, population__1_july_2005_est_ VARCHAR) | SELECT country_with_flag FROM table_298550_1 WHERE population__1_july_2005_est_ = 11346670 | What is every country with a flag with population of 11346670? | <s>[INST]What is every country with a flag with population of 11346670? Context: CREATE TABLE table_298550_1 (country_with_flag VARCHAR, population__1_july_2005_est_ VARCHAR)[/INST]SELECT country_with_flag FROM table_298550_1 WHERE population__1_july_2005_est_ = 11346670</s> |
CREATE TABLE table_name_97 (party VARCHAR, year VARCHAR, candidate VARCHAR) | SELECT party FROM table_name_97 WHERE year = "1955" AND candidate = "thomas mitchell" | In 1955 which party did Thomas Mitchell belong to? | <s>[INST]In 1955 which party did Thomas Mitchell belong to? Context: CREATE TABLE table_name_97 (party VARCHAR, year VARCHAR, candidate VARCHAR)[/INST]SELECT party FROM table_name_97 WHERE year = "1955" AND candidate = "thomas mitchell"</s> |
CREATE TABLE table_25042332_26 (region VARCHAR, none VARCHAR) | SELECT region FROM table_25042332_26 WHERE none = "0.6%" | Which region has 0.6% none? | <s>[INST]Which region has 0.6% none? Context: CREATE TABLE table_25042332_26 (region VARCHAR, none VARCHAR)[/INST]SELECT region FROM table_25042332_26 WHERE none = "0.6%"</s> |
CREATE TABLE table_name_64 (name VARCHAR, county VARCHAR) | SELECT name FROM table_name_64 WHERE county = "sør-trøndelag" | Tell me the name with sør-trøndelag | <s>[INST]Tell me the name with sør-trøndelag Context: CREATE TABLE table_name_64 (name VARCHAR, county VARCHAR)[/INST]SELECT name FROM table_name_64 WHERE county = "sør-trøndelag"</s> |
CREATE TABLE table_name_16 (region VARCHAR, city VARCHAR) | SELECT region FROM table_name_16 WHERE city = "philadelphia" | What region is the city of Philadelphia located in? | <s>[INST]What region is the city of Philadelphia located in? Context: CREATE TABLE table_name_16 (region VARCHAR, city VARCHAR)[/INST]SELECT region FROM table_name_16 WHERE city = "philadelphia"</s> |
CREATE TABLE table_name_55 (dáil VARCHAR, seats VARCHAR) | SELECT dáil FROM table_name_55 WHERE seats = 61 | What is the number of the dail with 61 seats? | <s>[INST]What is the number of the dail with 61 seats? Context: CREATE TABLE table_name_55 (dáil VARCHAR, seats VARCHAR)[/INST]SELECT dáil FROM table_name_55 WHERE seats = 61</s> |
CREATE TABLE table_name_86 (points INTEGER, engine_s_ VARCHAR) | SELECT SUM(points) FROM table_name_86 WHERE engine_s_ = "ford dfz 3.5 v8" | How many points were awarded to the Ford DFZ 3.5 V8? | <s>[INST]How many points were awarded to the Ford DFZ 3.5 V8? Context: CREATE TABLE table_name_86 (points INTEGER, engine_s_ VARCHAR)[/INST]SELECT SUM(points) FROM table_name_86 WHERE engine_s_ = "ford dfz 3.5 v8"</s> |
CREATE TABLE table_name_82 (city VARCHAR, date VARCHAR) | SELECT city FROM table_name_82 WHERE date = "october 8" | On October 8, what city was the game played? | <s>[INST]On October 8, what city was the game played? Context: CREATE TABLE table_name_82 (city VARCHAR, date VARCHAR)[/INST]SELECT city FROM table_name_82 WHERE date = "october 8"</s> |
CREATE TABLE table_name_11 (host VARCHAR, original_airdate VARCHAR) | SELECT host FROM table_name_11 WHERE original_airdate = "june 11, 2007" | What host has an original air date of june 11, 2007? | <s>[INST]What host has an original air date of june 11, 2007? Context: CREATE TABLE table_name_11 (host VARCHAR, original_airdate VARCHAR)[/INST]SELECT host FROM table_name_11 WHERE original_airdate = "june 11, 2007"</s> |
CREATE TABLE table_30120664_1 (civil_parish VARCHAR, townland VARCHAR) | SELECT civil_parish FROM table_30120664_1 WHERE townland = "Garryduff" | name the civil parish for garryduff | <s>[INST]name the civil parish for garryduff Context: CREATE TABLE table_30120664_1 (civil_parish VARCHAR, townland VARCHAR)[/INST]SELECT civil_parish FROM table_30120664_1 WHERE townland = "Garryduff"</s> |
CREATE TABLE table_name_72 (college VARCHAR, position VARCHAR, pick__number VARCHAR, round VARCHAR) | SELECT college FROM table_name_72 WHERE pick__number < 46 AND round = 5 AND position = "defensive tackle" | Pick # smaller than 46, and a Round of 5, and a Position of defensive tackle involves which college? | <s>[INST]Pick # smaller than 46, and a Round of 5, and a Position of defensive tackle involves which college? Context: CREATE TABLE table_name_72 (college VARCHAR, position VARCHAR, pick__number VARCHAR, round VARCHAR)[/INST]SELECT college FROM table_name_72 WHERE pick__number < 46 AND round = 5 AND position = "defensive tackle"</s> |
CREATE TABLE table_name_32 (producer VARCHAR, director VARCHAR) | SELECT producer FROM table_name_32 WHERE director = "bona fajardo" | What is Director Bona Fajardo's Producer? | <s>[INST]What is Director Bona Fajardo's Producer? Context: CREATE TABLE table_name_32 (producer VARCHAR, director VARCHAR)[/INST]SELECT producer FROM table_name_32 WHERE director = "bona fajardo"</s> |
CREATE TABLE table_name_66 (date VARCHAR, catalog VARCHAR) | SELECT date FROM table_name_66 WHERE catalog = "alca-9198" | Name the date with catalog of alca-9198 | <s>[INST]Name the date with catalog of alca-9198 Context: CREATE TABLE table_name_66 (date VARCHAR, catalog VARCHAR)[/INST]SELECT date FROM table_name_66 WHERE catalog = "alca-9198"</s> |
CREATE TABLE table_name_35 (game INTEGER, opponent VARCHAR) | SELECT MIN(game) FROM table_name_35 WHERE opponent = "boston bruins" | What is the lowest Game, when Opponent is "Boston Bruins"? | <s>[INST]What is the lowest Game, when Opponent is "Boston Bruins"? Context: CREATE TABLE table_name_35 (game INTEGER, opponent VARCHAR)[/INST]SELECT MIN(game) FROM table_name_35 WHERE opponent = "boston bruins"</s> |
CREATE TABLE table_name_60 (combined_consumption VARCHAR, name VARCHAR) | SELECT combined_consumption FROM table_name_60 WHERE name = "1.6 16v" | What is the combined consumption of 1.6 16v? | <s>[INST]What is the combined consumption of 1.6 16v? Context: CREATE TABLE table_name_60 (combined_consumption VARCHAR, name VARCHAR)[/INST]SELECT combined_consumption FROM table_name_60 WHERE name = "1.6 16v"</s> |
CREATE TABLE table_name_67 (power VARCHAR, chassis_code VARCHAR) | SELECT power FROM table_name_67 WHERE chassis_code = "w123.130" | What is the power of the Chassis code w123.130? | <s>[INST]What is the power of the Chassis code w123.130? Context: CREATE TABLE table_name_67 (power VARCHAR, chassis_code VARCHAR)[/INST]SELECT power FROM table_name_67 WHERE chassis_code = "w123.130"</s> |
CREATE TABLE table_name_42 (gold INTEGER, silver VARCHAR, total VARCHAR) | SELECT MIN(gold) FROM table_name_42 WHERE silver = 2 AND total < 3 | What is the smallest number of gold where the total is less than 3 and the silver count is 2? | <s>[INST]What is the smallest number of gold where the total is less than 3 and the silver count is 2? Context: CREATE TABLE table_name_42 (gold INTEGER, silver VARCHAR, total VARCHAR)[/INST]SELECT MIN(gold) FROM table_name_42 WHERE silver = 2 AND total < 3</s> |
CREATE TABLE table_11630008_8 (title VARCHAR, production_code VARCHAR) | SELECT title FROM table_11630008_8 WHERE production_code = 624 | What is the title of the episode with the production code 624? | <s>[INST]What is the title of the episode with the production code 624? Context: CREATE TABLE table_11630008_8 (title VARCHAR, production_code VARCHAR)[/INST]SELECT title FROM table_11630008_8 WHERE production_code = 624</s> |
CREATE TABLE table_name_20 (against VARCHAR, status VARCHAR) | SELECT COUNT(against) FROM table_name_20 WHERE status = "first test" | How many against have a status of first test? | <s>[INST]How many against have a status of first test? Context: CREATE TABLE table_name_20 (against VARCHAR, status VARCHAR)[/INST]SELECT COUNT(against) FROM table_name_20 WHERE status = "first test"</s> |
CREATE TABLE table_21721351_18 (position VARCHAR, player VARCHAR) | SELECT COUNT(position) FROM table_21721351_18 WHERE player = "Tom Glavine" | How many positions is player Tom Glavine? | <s>[INST]How many positions is player Tom Glavine? Context: CREATE TABLE table_21721351_18 (position VARCHAR, player VARCHAR)[/INST]SELECT COUNT(position) FROM table_21721351_18 WHERE player = "Tom Glavine"</s> |
CREATE TABLE table_name_87 (model VARCHAR, resolution VARCHAR, sensor_size VARCHAR, active_pixels VARCHAR) | SELECT model FROM table_name_87 WHERE sensor_size = "48x36 mm" AND active_pixels = "6726 x 5040" AND resolution = "33 mp" | Which model has a sensor sized 48x36 mm, pixels of 6726 x 5040, and a 33 mp resolution? | <s>[INST]Which model has a sensor sized 48x36 mm, pixels of 6726 x 5040, and a 33 mp resolution? Context: CREATE TABLE table_name_87 (model VARCHAR, resolution VARCHAR, sensor_size VARCHAR, active_pixels VARCHAR)[/INST]SELECT model FROM table_name_87 WHERE sensor_size = "48x36 mm" AND active_pixels = "6726 x 5040" AND resolution = "33 mp"</s> |
CREATE TABLE table_name_62 (top_10 INTEGER, top_25 VARCHAR, top_5 VARCHAR) | SELECT MAX(top_10) FROM table_name_62 WHERE top_25 = 4 AND top_5 > 1 | What is the highest Top-10, when Top-25 is 4, and when Top-5 is greater than 1? | <s>[INST]What is the highest Top-10, when Top-25 is 4, and when Top-5 is greater than 1? Context: CREATE TABLE table_name_62 (top_10 INTEGER, top_25 VARCHAR, top_5 VARCHAR)[/INST]SELECT MAX(top_10) FROM table_name_62 WHERE top_25 = 4 AND top_5 > 1</s> |
CREATE TABLE table_23777640_1 (other VARCHAR, gn_divisions VARCHAR) | SELECT COUNT(other) FROM table_23777640_1 WHERE gn_divisions = 95 | How many figures for Other in the district where the GN division is 95? | <s>[INST]How many figures for Other in the district where the GN division is 95? Context: CREATE TABLE table_23777640_1 (other VARCHAR, gn_divisions VARCHAR)[/INST]SELECT COUNT(other) FROM table_23777640_1 WHERE gn_divisions = 95</s> |
CREATE TABLE table_name_13 (Id VARCHAR) | SELECT 2012 FROM table_name_13 WHERE 2010 = "1r" AND 2006 = "2r" | What is the 2012 value with 1r in 2010 and 2r in 2006? | <s>[INST]What is the 2012 value with 1r in 2010 and 2r in 2006? Context: CREATE TABLE table_name_13 (Id VARCHAR)[/INST]SELECT 2012 FROM table_name_13 WHERE 2010 = "1r" AND 2006 = "2r"</s> |
CREATE TABLE dorm_amenity (amenity_name VARCHAR) | SELECT amenity_name FROM dorm_amenity ORDER BY amenity_name | List in alphabetic order all different amenities. | <s>[INST]List in alphabetic order all different amenities. Context: CREATE TABLE dorm_amenity (amenity_name VARCHAR)[/INST]SELECT amenity_name FROM dorm_amenity ORDER BY amenity_name</s> |
CREATE TABLE table_2618152_1 (written_by VARCHAR, original_air_date VARCHAR) | SELECT written_by FROM table_2618152_1 WHERE original_air_date = "January 13, 1999" | The episode with original air date January 13, 1999 is written by who? | <s>[INST]The episode with original air date January 13, 1999 is written by who? Context: CREATE TABLE table_2618152_1 (written_by VARCHAR, original_air_date VARCHAR)[/INST]SELECT written_by FROM table_2618152_1 WHERE original_air_date = "January 13, 1999"</s> |
CREATE TABLE table_name_97 (label VARCHAR, date VARCHAR) | SELECT label FROM table_name_97 WHERE date = "january 24, 2005" | Name the label for january 24, 2005 | <s>[INST]Name the label for january 24, 2005 Context: CREATE TABLE table_name_97 (label VARCHAR, date VARCHAR)[/INST]SELECT label FROM table_name_97 WHERE date = "january 24, 2005"</s> |
CREATE TABLE table_name_92 (position VARCHAR, birthdate VARCHAR) | SELECT position FROM table_name_92 WHERE birthdate = "august 17, 1980" | What is the Position with a Birthdate that is august 17, 1980? | <s>[INST]What is the Position with a Birthdate that is august 17, 1980? Context: CREATE TABLE table_name_92 (position VARCHAR, birthdate VARCHAR)[/INST]SELECT position FROM table_name_92 WHERE birthdate = "august 17, 1980"</s> |
CREATE TABLE table_14752049_6 (country VARCHAR, change__2011_to_2012_ VARCHAR) | SELECT country FROM table_14752049_6 WHERE change__2011_to_2012_ = "-0.1%" | When the change (2011 to 2012) is -0.1% what is the country? | <s>[INST]When the change (2011 to 2012) is -0.1% what is the country? Context: CREATE TABLE table_14752049_6 (country VARCHAR, change__2011_to_2012_ VARCHAR)[/INST]SELECT country FROM table_14752049_6 WHERE change__2011_to_2012_ = "-0.1%"</s> |
CREATE TABLE table_name_43 (date VARCHAR, pole_position VARCHAR, circuit VARCHAR) | SELECT date FROM table_name_43 WHERE pole_position = "jack brabham" AND circuit = "spa-francorchamps" | What is the date of the race when Jack Brabham is in the pole position and the circuit is Spa-Francorchamps? | <s>[INST]What is the date of the race when Jack Brabham is in the pole position and the circuit is Spa-Francorchamps? Context: CREATE TABLE table_name_43 (date VARCHAR, pole_position VARCHAR, circuit VARCHAR)[/INST]SELECT date FROM table_name_43 WHERE pole_position = "jack brabham" AND circuit = "spa-francorchamps"</s> |
CREATE TABLE people (Name VARCHAR, People_ID VARCHAR); CREATE TABLE body_builder (People_ID VARCHAR, Total INTEGER) | SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Total > 300 | What are the names of body builders whose total score is higher than 300? | <s>[INST]What are the names of body builders whose total score is higher than 300? Context: CREATE TABLE people (Name VARCHAR, People_ID VARCHAR); CREATE TABLE body_builder (People_ID VARCHAR, Total INTEGER)[/INST]SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Total > 300</s> |
CREATE TABLE STUDENT (city_code VARCHAR) | SELECT city_code FROM STUDENT GROUP BY city_code ORDER BY COUNT(*) DESC LIMIT 1 | What is the city_code of the city that the most students live in? | <s>[INST]What is the city_code of the city that the most students live in? Context: CREATE TABLE STUDENT (city_code VARCHAR)[/INST]SELECT city_code FROM STUDENT GROUP BY city_code ORDER BY COUNT(*) DESC LIMIT 1</s> |
CREATE TABLE table_name_54 (source VARCHAR, michael_signer VARCHAR) | SELECT source FROM table_name_54 WHERE michael_signer = "5%" | Which polling source gave Michael Signer 5%? | <s>[INST]Which polling source gave Michael Signer 5%? Context: CREATE TABLE table_name_54 (source VARCHAR, michael_signer VARCHAR)[/INST]SELECT source FROM table_name_54 WHERE michael_signer = "5%"</s> |
CREATE TABLE table_256286_39 (passed VARCHAR, _percentage_yes VARCHAR) | SELECT COUNT(passed) FROM table_256286_39 WHERE _percentage_yes = "52.11%" | How many ballot measures had a percentage yes of 52.11%? | <s>[INST]How many ballot measures had a percentage yes of 52.11%? Context: CREATE TABLE table_256286_39 (passed VARCHAR, _percentage_yes VARCHAR)[/INST]SELECT COUNT(passed) FROM table_256286_39 WHERE _percentage_yes = "52.11%"</s> |
CREATE TABLE table_name_7 (winner_and_score VARCHAR, week VARCHAR) | SELECT winner_and_score FROM table_name_7 WHERE week = "august 10" | Who won on the week of August 10? | <s>[INST]Who won on the week of August 10? Context: CREATE TABLE table_name_7 (winner_and_score VARCHAR, week VARCHAR)[/INST]SELECT winner_and_score FROM table_name_7 WHERE week = "august 10"</s> |
CREATE TABLE complaints (complaint_status_code VARCHAR) | SELECT complaint_status_code FROM complaints GROUP BY complaint_status_code HAVING COUNT(*) > 3 | Which complaint status has more than 3 records on file? | <s>[INST]Which complaint status has more than 3 records on file? Context: CREATE TABLE complaints (complaint_status_code VARCHAR)[/INST]SELECT complaint_status_code FROM complaints GROUP BY complaint_status_code HAVING COUNT(*) > 3</s> |
CREATE TABLE table_name_41 (away_team VARCHAR) | SELECT away_team AS score FROM table_name_41 WHERE away_team = "fitzroy" | I want the away team score for away team of fitzroy | <s>[INST]I want the away team score for away team of fitzroy Context: CREATE TABLE table_name_41 (away_team VARCHAR)[/INST]SELECT away_team AS score FROM table_name_41 WHERE away_team = "fitzroy"</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.