context stringlengths 27 489 | answer stringlengths 18 557 | question stringlengths 12 243 | text stringlengths 103 1.05k |
|---|---|---|---|
CREATE TABLE table_name_33 (points INTEGER, year VARCHAR, wins VARCHAR) | SELECT SUM(points) FROM table_name_33 WHERE year = 1975 AND wins < 0 | What is the sum of all points in 1975 with 0 wins? | <s>[INST]What is the sum of all points in 1975 with 0 wins? Context: CREATE TABLE table_name_33 (points INTEGER, year VARCHAR, wins VARCHAR)[/INST]SELECT SUM(points) FROM table_name_33 WHERE year = 1975 AND wins < 0</s> |
CREATE TABLE table_name_10 (sr_no INTEGER, builder VARCHAR, secr_no VARCHAR) | SELECT AVG(sr_no) FROM table_name_10 WHERE builder = "beyer peacock" AND secr_no = 769 | What is Beyer Peacock's SR number with a SECR number of 769? | <s>[INST]What is Beyer Peacock's SR number with a SECR number of 769? Context: CREATE TABLE table_name_10 (sr_no INTEGER, builder VARCHAR, secr_no VARCHAR)[/INST]SELECT AVG(sr_no) FROM table_name_10 WHERE builder = "beyer peacock" AND secr_no = 769</s> |
CREATE TABLE table_242785_1 (date_disband VARCHAR, main_legionary_base VARCHAR) | SELECT date_disband FROM table_242785_1 WHERE main_legionary_base = "Svishtov , Bulgaria" | When did svishtov , bulgaria disband? | <s>[INST]When did svishtov , bulgaria disband? Context: CREATE TABLE table_242785_1 (date_disband VARCHAR, main_legionary_base VARCHAR)[/INST]SELECT date_disband FROM table_242785_1 WHERE main_legionary_base = "Svishtov , Bulgaria"</s> |
CREATE TABLE table_name_86 (draws INTEGER, played VARCHAR, goal_difference VARCHAR, club VARCHAR) | SELECT MIN(draws) FROM table_name_86 WHERE goal_difference > -16 AND club = "elche cf" AND played > 38 | What was the number of draws when the Elche CF club played 38 and had a goal difference of -16? | <s>[INST]What was the number of draws when the Elche CF club played 38 and had a goal difference of -16? Context: CREATE TABLE table_name_86 (draws INTEGER, played VARCHAR, goal_difference VARCHAR, club VARCHAR)[/INST]SELECT MIN(draws) FROM table_name_86 WHERE goal_difference > -16 AND club = "elche cf" AND played > 38... |
CREATE TABLE table_name_33 (studio VARCHAR, gross_rental VARCHAR) | SELECT studio FROM table_name_33 WHERE gross_rental = "$7,500,000" | What is the Studio of the Film with a Gross rental of $7,500,000? | <s>[INST]What is the Studio of the Film with a Gross rental of $7,500,000? Context: CREATE TABLE table_name_33 (studio VARCHAR, gross_rental VARCHAR)[/INST]SELECT studio FROM table_name_33 WHERE gross_rental = "$7,500,000"</s> |
CREATE TABLE table_name_85 (game VARCHAR, location_attendance VARCHAR, series VARCHAR) | SELECT game FROM table_name_85 WHERE location_attendance = "the forum" AND series = "0-1" | Which game was played at the Forum and led to a series result of 0-1? | <s>[INST]Which game was played at the Forum and led to a series result of 0-1? Context: CREATE TABLE table_name_85 (game VARCHAR, location_attendance VARCHAR, series VARCHAR)[/INST]SELECT game FROM table_name_85 WHERE location_attendance = "the forum" AND series = "0-1"</s> |
CREATE TABLE table_23483182_1 (directed_by VARCHAR, production_code VARCHAR) | SELECT directed_by FROM table_23483182_1 WHERE production_code = 414 | Who directed 414? | <s>[INST]Who directed 414? Context: CREATE TABLE table_23483182_1 (directed_by VARCHAR, production_code VARCHAR)[/INST]SELECT directed_by FROM table_23483182_1 WHERE production_code = 414</s> |
CREATE TABLE WINE (YEAR VARCHAR, Price INTEGER) | SELECT AVG(Price), YEAR FROM WINE GROUP BY YEAR | What are the average prices of wines for different years? | <s>[INST]What are the average prices of wines for different years? Context: CREATE TABLE WINE (YEAR VARCHAR, Price INTEGER)[/INST]SELECT AVG(Price), YEAR FROM WINE GROUP BY YEAR</s> |
CREATE TABLE table_260938_1 (base_10 VARCHAR, peletier VARCHAR) | SELECT base_10 FROM table_260938_1 WHERE peletier = "Bi llion" | Name the base 10 for peletier for bi llion | <s>[INST]Name the base 10 for peletier for bi llion Context: CREATE TABLE table_260938_1 (base_10 VARCHAR, peletier VARCHAR)[/INST]SELECT base_10 FROM table_260938_1 WHERE peletier = "Bi llion"</s> |
CREATE TABLE table_name_77 (tournament VARCHAR) | SELECT tournament FROM table_name_77 WHERE 2004 = "1r" AND 2007 = "1r" | What tournament has 1r as a 2004, and 1r as a 2007? | <s>[INST]What tournament has 1r as a 2004, and 1r as a 2007? Context: CREATE TABLE table_name_77 (tournament VARCHAR)[/INST]SELECT tournament FROM table_name_77 WHERE 2004 = "1r" AND 2007 = "1r"</s> |
CREATE TABLE table_name_73 (down__up_to_kbit_s_ INTEGER, provider VARCHAR, up__up_to_kbit_s_ VARCHAR) | SELECT AVG(down__up_to_kbit_s_) FROM table_name_73 WHERE provider = "willy.tel" AND up__up_to_kbit_s_ > 1984 | What is the average down (up to kbit/s) when the provider is willy.tel and the up (kbit/s) is more than 1984? | <s>[INST]What is the average down (up to kbit/s) when the provider is willy.tel and the up (kbit/s) is more than 1984? Context: CREATE TABLE table_name_73 (down__up_to_kbit_s_ INTEGER, provider VARCHAR, up__up_to_kbit_s_ VARCHAR)[/INST]SELECT AVG(down__up_to_kbit_s_) FROM table_name_73 WHERE provider = "willy.tel" AND ... |
CREATE TABLE table_name_47 (season VARCHAR, position VARCHAR) | SELECT season FROM table_name_47 WHERE position = "14th" | What season had a 14th position? | <s>[INST]What season had a 14th position? Context: CREATE TABLE table_name_47 (season VARCHAR, position VARCHAR)[/INST]SELECT season FROM table_name_47 WHERE position = "14th"</s> |
CREATE TABLE table_18590048_1 (rank VARCHAR, release_date VARCHAR) | SELECT COUNT(rank) FROM table_18590048_1 WHERE release_date = "21 October 1992" | How many titles were released on 21 October 1992? | <s>[INST]How many titles were released on 21 October 1992? Context: CREATE TABLE table_18590048_1 (rank VARCHAR, release_date VARCHAR)[/INST]SELECT COUNT(rank) FROM table_18590048_1 WHERE release_date = "21 October 1992"</s> |
CREATE TABLE table_11662133_3 (date_withdrawn VARCHAR, ships_name VARCHAR) | SELECT date_withdrawn FROM table_11662133_3 WHERE ships_name = "Koningin Beatrix" | what are all the date withdrawn for koningin beatrix | <s>[INST]what are all the date withdrawn for koningin beatrix Context: CREATE TABLE table_11662133_3 (date_withdrawn VARCHAR, ships_name VARCHAR)[/INST]SELECT date_withdrawn FROM table_11662133_3 WHERE ships_name = "Koningin Beatrix"</s> |
CREATE TABLE table_name_8 (status VARCHAR, country VARCHAR, transfer_window VARCHAR) | SELECT status FROM table_name_8 WHERE country = "bel" AND transfer_window = "winter" | What is the status of bel with a Transfer window of winter? | <s>[INST]What is the status of bel with a Transfer window of winter? Context: CREATE TABLE table_name_8 (status VARCHAR, country VARCHAR, transfer_window VARCHAR)[/INST]SELECT status FROM table_name_8 WHERE country = "bel" AND transfer_window = "winter"</s> |
CREATE TABLE table_name_86 (competition VARCHAR, score VARCHAR) | SELECT competition FROM table_name_86 WHERE score = "4-3" | Which competition had a 4-3 score? | <s>[INST]Which competition had a 4-3 score? Context: CREATE TABLE table_name_86 (competition VARCHAR, score VARCHAR)[/INST]SELECT competition FROM table_name_86 WHERE score = "4-3"</s> |
CREATE TABLE table_1973842_2 (nickname VARCHAR, location VARCHAR) | SELECT nickname FROM table_1973842_2 WHERE location = "Maryville, Tennessee" | What's the nickname of the school in Maryville, Tennessee? | <s>[INST]What's the nickname of the school in Maryville, Tennessee? Context: CREATE TABLE table_1973842_2 (nickname VARCHAR, location VARCHAR)[/INST]SELECT nickname FROM table_1973842_2 WHERE location = "Maryville, Tennessee"</s> |
CREATE TABLE table_name_42 (l2_cache VARCHAR, frequency VARCHAR, model_number VARCHAR) | SELECT l2_cache FROM table_name_42 WHERE frequency = "1333 mhz" AND model_number = "c3 1.3a" | Which L2-Cache has a Frequency of 1333 mhz, and a Model Number of c3 1.3a? | <s>[INST]Which L2-Cache has a Frequency of 1333 mhz, and a Model Number of c3 1.3a? Context: CREATE TABLE table_name_42 (l2_cache VARCHAR, frequency VARCHAR, model_number VARCHAR)[/INST]SELECT l2_cache FROM table_name_42 WHERE frequency = "1333 mhz" AND model_number = "c3 1.3a"</s> |
CREATE TABLE table_name_71 (nickname VARCHAR, established VARCHAR) | SELECT nickname FROM table_name_71 WHERE established = 1958 | What was the nick name for the school established in 1958? | <s>[INST]What was the nick name for the school established in 1958? Context: CREATE TABLE table_name_71 (nickname VARCHAR, established VARCHAR)[/INST]SELECT nickname FROM table_name_71 WHERE established = 1958</s> |
CREATE TABLE savings (balance INTEGER) | SELECT COUNT(*) FROM savings WHERE balance > (SELECT AVG(balance) FROM savings) | How many accounts have a savings balance above the average savings balance? | <s>[INST]How many accounts have a savings balance above the average savings balance? Context: CREATE TABLE savings (balance INTEGER)[/INST]SELECT COUNT(*) FROM savings WHERE balance > (SELECT AVG(balance) FROM savings)</s> |
CREATE TABLE table_name_85 (rr_romaja VARCHAR, hangul_chosongul VARCHAR, capital VARCHAR) | SELECT rr_romaja FROM table_name_85 WHERE hangul_chosongul = "강원도" AND capital = "wonsan" | What is the RR Romaja for the province that has Hangul of 강원도 and capital of Wonsan? | <s>[INST]What is the RR Romaja for the province that has Hangul of 강원도 and capital of Wonsan? Context: CREATE TABLE table_name_85 (rr_romaja VARCHAR, hangul_chosongul VARCHAR, capital VARCHAR)[/INST]SELECT rr_romaja FROM table_name_85 WHERE hangul_chosongul = "강원도" AND capital = "wonsan"</s> |
CREATE TABLE table_name_71 (grid VARCHAR, driver VARCHAR) | SELECT COUNT(grid) FROM table_name_71 WHERE driver = "peter collins" | How many grids for peter collins? | <s>[INST]How many grids for peter collins? Context: CREATE TABLE table_name_71 (grid VARCHAR, driver VARCHAR)[/INST]SELECT COUNT(grid) FROM table_name_71 WHERE driver = "peter collins"</s> |
CREATE TABLE table_name_81 (place VARCHAR, score VARCHAR) | SELECT place FROM table_name_81 WHERE score = 70 - 67 - 69 - 69 = 275 | Can you tell me the Place that has the Score of 70-67-69-69=275? | <s>[INST]Can you tell me the Place that has the Score of 70-67-69-69=275? Context: CREATE TABLE table_name_81 (place VARCHAR, score VARCHAR)[/INST]SELECT place FROM table_name_81 WHERE score = 70 - 67 - 69 - 69 = 275</s> |
CREATE TABLE table_name_85 (rank VARCHAR, location VARCHAR) | SELECT rank FROM table_name_85 WHERE location = "porto alegre" | In Which rank was there a location of porto alegre? | <s>[INST]In Which rank was there a location of porto alegre? Context: CREATE TABLE table_name_85 (rank VARCHAR, location VARCHAR)[/INST]SELECT rank FROM table_name_85 WHERE location = "porto alegre"</s> |
CREATE TABLE table_name_5 (competition VARCHAR, year VARCHAR, venue VARCHAR) | SELECT competition FROM table_name_5 WHERE year > 1990 AND venue = "seville , spain" | Which Competition has a Year larger than 1990 in seville , spain? | <s>[INST]Which Competition has a Year larger than 1990 in seville , spain? Context: CREATE TABLE table_name_5 (competition VARCHAR, year VARCHAR, venue VARCHAR)[/INST]SELECT competition FROM table_name_5 WHERE year > 1990 AND venue = "seville , spain"</s> |
CREATE TABLE table_name_82 (Id VARCHAR) | SELECT COUNT(2008) FROM table_name_82 WHERE 2006 = 6.9 AND 2007 < 7.1 | How many 2008s have 6.9 as a 2006, with a 2007 less than 7.1? | <s>[INST]How many 2008s have 6.9 as a 2006, with a 2007 less than 7.1? Context: CREATE TABLE table_name_82 (Id VARCHAR)[/INST]SELECT COUNT(2008) FROM table_name_82 WHERE 2006 = 6.9 AND 2007 < 7.1</s> |
CREATE TABLE table_1977630_2 (yo VARCHAR, vosotros___vosotras VARCHAR) | SELECT yo FROM table_1977630_2 WHERE vosotros___vosotras = "moláis" | What are all the conjugated forms of the verb moler where the vosotros / vosotras is moláis for the yo tense? | <s>[INST]What are all the conjugated forms of the verb moler where the vosotros / vosotras is moláis for the yo tense? Context: CREATE TABLE table_1977630_2 (yo VARCHAR, vosotros___vosotras VARCHAR)[/INST]SELECT yo FROM table_1977630_2 WHERE vosotros___vosotras = "moláis"</s> |
CREATE TABLE user_profiles (followers INTEGER, UID VARCHAR); CREATE TABLE tweets (followers INTEGER, UID VARCHAR) | SELECT AVG(followers) FROM user_profiles WHERE NOT UID IN (SELECT UID FROM tweets) | Find the average number of followers for the users who do not have any tweet. | <s>[INST]Find the average number of followers for the users who do not have any tweet. Context: CREATE TABLE user_profiles (followers INTEGER, UID VARCHAR); CREATE TABLE tweets (followers INTEGER, UID VARCHAR)[/INST]SELECT AVG(followers) FROM user_profiles WHERE NOT UID IN (SELECT UID FROM tweets)</s> |
CREATE TABLE table_name_92 (win_lose_percentage VARCHAR, champs VARCHAR, draw VARCHAR) | SELECT win_lose_percentage FROM table_name_92 WHERE champs > 0 AND draw > 3 | Which Win/Lose Percentage has Champs larger than 0, and a Draw larger than 3? | <s>[INST]Which Win/Lose Percentage has Champs larger than 0, and a Draw larger than 3? Context: CREATE TABLE table_name_92 (win_lose_percentage VARCHAR, champs VARCHAR, draw VARCHAR)[/INST]SELECT win_lose_percentage FROM table_name_92 WHERE champs > 0 AND draw > 3</s> |
CREATE TABLE table_2780146_6 (pm__g_kwh_ VARCHAR, co__g_kwh_ VARCHAR) | SELECT pm__g_kwh_ FROM table_2780146_6 WHERE co__g_kwh_ = "12.3" | What's the PM for the standard with 12.3 g/kWh CO? | <s>[INST]What's the PM for the standard with 12.3 g/kWh CO? Context: CREATE TABLE table_2780146_6 (pm__g_kwh_ VARCHAR, co__g_kwh_ VARCHAR)[/INST]SELECT pm__g_kwh_ FROM table_2780146_6 WHERE co__g_kwh_ = "12.3"</s> |
CREATE TABLE table_name_88 (touchdowns VARCHAR, player VARCHAR) | SELECT touchdowns FROM table_name_88 WHERE player = "william cole" | How many touchdowns were scored by William Cole? | <s>[INST]How many touchdowns were scored by William Cole? Context: CREATE TABLE table_name_88 (touchdowns VARCHAR, player VARCHAR)[/INST]SELECT touchdowns FROM table_name_88 WHERE player = "william cole"</s> |
CREATE TABLE table_name_82 (event VARCHAR, opponent VARCHAR) | SELECT event FROM table_name_82 WHERE opponent = "masato shiozawa" | What event did he fight masato shiozawa? | <s>[INST]What event did he fight masato shiozawa? Context: CREATE TABLE table_name_82 (event VARCHAR, opponent VARCHAR)[/INST]SELECT event FROM table_name_82 WHERE opponent = "masato shiozawa"</s> |
CREATE TABLE table_name_51 (losses VARCHAR, conference VARCHAR, season VARCHAR) | SELECT losses FROM table_name_51 WHERE conference = "western" AND season = "2004–05" | What is the Losses at the western conference and the 2004–05 season? | <s>[INST]What is the Losses at the western conference and the 2004–05 season? Context: CREATE TABLE table_name_51 (losses VARCHAR, conference VARCHAR, season VARCHAR)[/INST]SELECT losses FROM table_name_51 WHERE conference = "western" AND season = "2004–05"</s> |
CREATE TABLE table_name_55 (country VARCHAR, province_region VARCHAR, airport VARCHAR) | SELECT country FROM table_name_55 WHERE province_region = "hokkaidō" AND airport = "new chitose airport" | In what country is Hokkaidō and New Chitose airport located? | <s>[INST]In what country is Hokkaidō and New Chitose airport located? Context: CREATE TABLE table_name_55 (country VARCHAR, province_region VARCHAR, airport VARCHAR)[/INST]SELECT country FROM table_name_55 WHERE province_region = "hokkaidō" AND airport = "new chitose airport"</s> |
CREATE TABLE table_10015132_11 (school_club_team VARCHAR, no VARCHAR) | SELECT school_club_team FROM table_10015132_11 WHERE no = "21" | What school did player number 21 play for? | <s>[INST]What school did player number 21 play for? Context: CREATE TABLE table_10015132_11 (school_club_team VARCHAR, no VARCHAR)[/INST]SELECT school_club_team FROM table_10015132_11 WHERE no = "21"</s> |
CREATE TABLE table_19908651_3 (fastest_lap VARCHAR, pole_position VARCHAR, winning_driver VARCHAR) | SELECT fastest_lap FROM table_19908651_3 WHERE pole_position = "Emerson Fittipaldi" AND winning_driver = "Paul Tracy" | Who did the fastest lap in the race won by Paul Tracy, with Emerson Fittipaldi at the pole position? | <s>[INST]Who did the fastest lap in the race won by Paul Tracy, with Emerson Fittipaldi at the pole position? Context: CREATE TABLE table_19908651_3 (fastest_lap VARCHAR, pole_position VARCHAR, winning_driver VARCHAR)[/INST]SELECT fastest_lap FROM table_19908651_3 WHERE pole_position = "Emerson Fittipaldi" AND winning_... |
CREATE TABLE table_15736385_1 (location VARCHAR, driver VARCHAR) | SELECT location FROM table_15736385_1 WHERE driver = "Rick Mears" | At which location did Rick Mears drive? | <s>[INST]At which location did Rick Mears drive? Context: CREATE TABLE table_15736385_1 (location VARCHAR, driver VARCHAR)[/INST]SELECT location FROM table_15736385_1 WHERE driver = "Rick Mears"</s> |
CREATE TABLE table_17881033_1 (division_north VARCHAR, season VARCHAR) | SELECT division_north FROM table_17881033_1 WHERE season = "2007–08" | what is the division north in 2007–08 | <s>[INST]what is the division north in 2007–08 Context: CREATE TABLE table_17881033_1 (division_north VARCHAR, season VARCHAR)[/INST]SELECT division_north FROM table_17881033_1 WHERE season = "2007–08"</s> |
CREATE TABLE table_name_57 (gold INTEGER, bronze VARCHAR, silver VARCHAR, rank VARCHAR) | SELECT SUM(gold) FROM table_name_57 WHERE silver > 6 AND rank = "1" AND bronze < 61 | What is the sum of Gold, when Silver is greater than 6, when Rank is 1, and when Bronze is less than 61? | <s>[INST]What is the sum of Gold, when Silver is greater than 6, when Rank is 1, and when Bronze is less than 61? Context: CREATE TABLE table_name_57 (gold INTEGER, bronze VARCHAR, silver VARCHAR, rank VARCHAR)[/INST]SELECT SUM(gold) FROM table_name_57 WHERE silver > 6 AND rank = "1" AND bronze < 61</s> |
CREATE TABLE table_19283982_4 (leader VARCHAR, _percentage_of_popular_vote VARCHAR) | SELECT COUNT(leader) FROM table_19283982_4 WHERE _percentage_of_popular_vote = "11.05%" | Name the number of leaders for % of popular vote being 11.05% | <s>[INST]Name the number of leaders for % of popular vote being 11.05% Context: CREATE TABLE table_19283982_4 (leader VARCHAR, _percentage_of_popular_vote VARCHAR)[/INST]SELECT COUNT(leader) FROM table_19283982_4 WHERE _percentage_of_popular_vote = "11.05%"</s> |
CREATE TABLE table_name_63 (release_price___usd__ VARCHAR, socket VARCHAR) | SELECT release_price___usd__ FROM table_name_63 WHERE socket = "without quickassist" | Socket of without quickassist has what release price? | <s>[INST]Socket of without quickassist has what release price? Context: CREATE TABLE table_name_63 (release_price___usd__ VARCHAR, socket VARCHAR)[/INST]SELECT release_price___usd__ FROM table_name_63 WHERE socket = "without quickassist"</s> |
CREATE TABLE table_name_7 (covered_song VARCHAR, album VARCHAR) | SELECT covered_song FROM table_name_7 WHERE album = "cover version iii" | What is the name of the Covered Song when the Album shows cover version iii? | <s>[INST]What is the name of the Covered Song when the Album shows cover version iii? Context: CREATE TABLE table_name_7 (covered_song VARCHAR, album VARCHAR)[/INST]SELECT covered_song FROM table_name_7 WHERE album = "cover version iii"</s> |
CREATE TABLE table_name_58 (trofeo_fast_team VARCHAR, winner VARCHAR) | SELECT trofeo_fast_team FROM table_name_58 WHERE winner = "roberto visentini" | Name the Trofeo Fast team for roberto visentini | <s>[INST]Name the Trofeo Fast team for roberto visentini Context: CREATE TABLE table_name_58 (trofeo_fast_team VARCHAR, winner VARCHAR)[/INST]SELECT trofeo_fast_team FROM table_name_58 WHERE winner = "roberto visentini"</s> |
CREATE TABLE table_name_45 (university_of_dublin VARCHAR, labour_panel INTEGER) | SELECT COUNT(university_of_dublin) FROM table_name_45 WHERE labour_panel > 11 | What is the total University of Dublin value with a labour panel greater than 11? | <s>[INST]What is the total University of Dublin value with a labour panel greater than 11? Context: CREATE TABLE table_name_45 (university_of_dublin VARCHAR, labour_panel INTEGER)[/INST]SELECT COUNT(university_of_dublin) FROM table_name_45 WHERE labour_panel > 11</s> |
CREATE TABLE table_name_31 (name VARCHAR, terminated VARCHAR) | SELECT name FROM table_name_31 WHERE terminated = "march 1993" | What is the Name of the Space Telescope Terminated on March 1993? | <s>[INST]What is the Name of the Space Telescope Terminated on March 1993? Context: CREATE TABLE table_name_31 (name VARCHAR, terminated VARCHAR)[/INST]SELECT name FROM table_name_31 WHERE terminated = "march 1993"</s> |
CREATE TABLE table_name_71 (runner_s__up VARCHAR, winning_score VARCHAR) | SELECT runner_s__up FROM table_name_71 WHERE winning_score = –9(71 - 68 - 72 - 68 = 279) | Which Runner(s)-up has a Winning score of –9 (71-68-72-68=279)? | <s>[INST]Which Runner(s)-up has a Winning score of –9 (71-68-72-68=279)? Context: CREATE TABLE table_name_71 (runner_s__up VARCHAR, winning_score VARCHAR)[/INST]SELECT runner_s__up FROM table_name_71 WHERE winning_score = –9(71 - 68 - 72 - 68 = 279)</s> |
CREATE TABLE table_name_52 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team AS score FROM table_name_52 WHERE away_team = "footscray" | Who was the home team of the game where Footscray is the away team? | <s>[INST]Who was the home team of the game where Footscray is the away team? Context: CREATE TABLE table_name_52 (home_team VARCHAR, away_team VARCHAR)[/INST]SELECT home_team AS score FROM table_name_52 WHERE away_team = "footscray"</s> |
CREATE TABLE Student (StuID VARCHAR, advisor VARCHAR); CREATE TABLE Faculty (FacID VARCHAR, rank VARCHAR) | SELECT T2.StuID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T1.rank = "Professor" | Show the ids of students whose advisors are professors. | <s>[INST]Show the ids of students whose advisors are professors. Context: CREATE TABLE Student (StuID VARCHAR, advisor VARCHAR); CREATE TABLE Faculty (FacID VARCHAR, rank VARCHAR)[/INST]SELECT T2.StuID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T1.rank = "Professor"</s> |
CREATE TABLE table_1341453_37 (incumbent VARCHAR, first_elected VARCHAR) | SELECT incumbent FROM table_1341453_37 WHERE first_elected = 1972 | Which incumbent was first elected in 1972? | <s>[INST]Which incumbent was first elected in 1972? Context: CREATE TABLE table_1341453_37 (incumbent VARCHAR, first_elected VARCHAR)[/INST]SELECT incumbent FROM table_1341453_37 WHERE first_elected = 1972</s> |
CREATE TABLE table_name_63 (moving_from VARCHAR, country VARCHAR) | SELECT moving_from FROM table_name_63 WHERE country = "fra" | What moving has fra as the country? | <s>[INST]What moving has fra as the country? Context: CREATE TABLE table_name_63 (moving_from VARCHAR, country VARCHAR)[/INST]SELECT moving_from FROM table_name_63 WHERE country = "fra"</s> |
CREATE TABLE table_name_92 (round INTEGER, opponent VARCHAR) | SELECT MIN(round) FROM table_name_92 WHERE opponent = "kazushi sakuraba" | What is the lowest round that has kazushi sakuraba as the opponent? | <s>[INST]What is the lowest round that has kazushi sakuraba as the opponent? Context: CREATE TABLE table_name_92 (round INTEGER, opponent VARCHAR)[/INST]SELECT MIN(round) FROM table_name_92 WHERE opponent = "kazushi sakuraba"</s> |
CREATE TABLE table_name_76 (potassium VARCHAR, lithium VARCHAR, sodium VARCHAR) | SELECT potassium FROM table_name_76 WHERE lithium = "h a l o g e n s" AND sodium = "bromine" | what is the properties of potassium when lithium is h a l o g e n s and sodium is bromine? | <s>[INST]what is the properties of potassium when lithium is h a l o g e n s and sodium is bromine? Context: CREATE TABLE table_name_76 (potassium VARCHAR, lithium VARCHAR, sodium VARCHAR)[/INST]SELECT potassium FROM table_name_76 WHERE lithium = "h a l o g e n s" AND sodium = "bromine"</s> |
CREATE TABLE table_name_47 (attendance VARCHAR, result VARCHAR) | SELECT attendance FROM table_name_47 WHERE result = "l 26–16" | Which Attendance has a Result of l 26–16? | <s>[INST]Which Attendance has a Result of l 26–16? Context: CREATE TABLE table_name_47 (attendance VARCHAR, result VARCHAR)[/INST]SELECT attendance FROM table_name_47 WHERE result = "l 26–16"</s> |
CREATE TABLE table_name_40 (score VARCHAR, game VARCHAR, high_points VARCHAR) | SELECT score FROM table_name_40 WHERE game < 4 AND high_points = "williams (28)" | What is the score for the game that is less than 4 and a high points of williams (28)? | <s>[INST]What is the score for the game that is less than 4 and a high points of williams (28)? Context: CREATE TABLE table_name_40 (score VARCHAR, game VARCHAR, high_points VARCHAR)[/INST]SELECT score FROM table_name_40 WHERE game < 4 AND high_points = "williams (28)"</s> |
CREATE TABLE table_17058116_7 (date VARCHAR, score VARCHAR) | SELECT date FROM table_17058116_7 WHERE score = "L 99–107 (OT)" | When was the game with score l 99–107 (ot) | <s>[INST]When was the game with score l 99–107 (ot) Context: CREATE TABLE table_17058116_7 (date VARCHAR, score VARCHAR)[/INST]SELECT date FROM table_17058116_7 WHERE score = "L 99–107 (OT)"</s> |
CREATE TABLE table_name_79 (attendance VARCHAR, result VARCHAR) | SELECT attendance FROM table_name_79 WHERE result = "bye" | What was the attendance when the result was a bye? | <s>[INST]What was the attendance when the result was a bye? Context: CREATE TABLE table_name_79 (attendance VARCHAR, result VARCHAR)[/INST]SELECT attendance FROM table_name_79 WHERE result = "bye"</s> |
CREATE TABLE table_name_32 (drawn INTEGER, games INTEGER) | SELECT SUM(drawn) FROM table_name_32 WHERE games > 6 | How many Drawn has a Games larger than 6? | <s>[INST]How many Drawn has a Games larger than 6? Context: CREATE TABLE table_name_32 (drawn INTEGER, games INTEGER)[/INST]SELECT SUM(drawn) FROM table_name_32 WHERE games > 6</s> |
CREATE TABLE table_1242447_1 (strongs_transliteration VARCHAR, hebrew_word VARCHAR) | SELECT strongs_transliteration FROM table_1242447_1 WHERE hebrew_word = "יוֹחָנָן" | What is the strongs transliteration of the hebrew word יוֹחָנָן? | <s>[INST]What is the strongs transliteration of the hebrew word יוֹחָנָן? Context: CREATE TABLE table_1242447_1 (strongs_transliteration VARCHAR, hebrew_word VARCHAR)[/INST]SELECT strongs_transliteration FROM table_1242447_1 WHERE hebrew_word = "יוֹחָנָן"</s> |
CREATE TABLE table_name_70 (record VARCHAR, game VARCHAR) | SELECT record FROM table_name_70 WHERE game = 37 | What was the record after game 37? | <s>[INST]What was the record after game 37? Context: CREATE TABLE table_name_70 (record VARCHAR, game VARCHAR)[/INST]SELECT record FROM table_name_70 WHERE game = 37</s> |
CREATE TABLE table_name_13 (score VARCHAR, country VARCHAR) | SELECT score FROM table_name_13 WHERE country = "australia" | What did the golfer from Australia score? | <s>[INST]What did the golfer from Australia score? Context: CREATE TABLE table_name_13 (score VARCHAR, country VARCHAR)[/INST]SELECT score FROM table_name_13 WHERE country = "australia"</s> |
CREATE TABLE table_name_69 (elected INTEGER, incumbent VARCHAR, party VARCHAR, district VARCHAR) | SELECT AVG(elected) FROM table_name_69 WHERE party = "democrat" AND district > 2 AND incumbent = "nydia velazquez" | What's the elected year of Nydia Velazquez in a district bigger than 2 and a democrat? | <s>[INST]What's the elected year of Nydia Velazquez in a district bigger than 2 and a democrat? Context: CREATE TABLE table_name_69 (elected INTEGER, incumbent VARCHAR, party VARCHAR, district VARCHAR)[/INST]SELECT AVG(elected) FROM table_name_69 WHERE party = "democrat" AND district > 2 AND incumbent = "nydia velazque... |
CREATE TABLE table_225200_3 (successor VARCHAR, date_of_successors_formal_installation VARCHAR) | SELECT COUNT(successor) FROM table_225200_3 WHERE date_of_successors_formal_installation = "Elected January 26, 1837" | Name the successor for elected january 26, 1837 | <s>[INST]Name the successor for elected january 26, 1837 Context: CREATE TABLE table_225200_3 (successor VARCHAR, date_of_successors_formal_installation VARCHAR)[/INST]SELECT COUNT(successor) FROM table_225200_3 WHERE date_of_successors_formal_installation = "Elected January 26, 1837"</s> |
CREATE TABLE table_name_76 (location VARCHAR, runner_s__up VARCHAR) | SELECT location FROM table_name_76 WHERE runner_s__up = "betsy rawls" | Where is runner-up Betsy Rawls from? | <s>[INST]Where is runner-up Betsy Rawls from? Context: CREATE TABLE table_name_76 (location VARCHAR, runner_s__up VARCHAR)[/INST]SELECT location FROM table_name_76 WHERE runner_s__up = "betsy rawls"</s> |
CREATE TABLE table_name_61 (results VARCHAR, first_elected VARCHAR, incumbent VARCHAR) | SELECT results FROM table_name_61 WHERE first_elected < 2004 AND incumbent = "eric cantor" | What was the election result before 2004 where Eric Cantor was the incumbent? | <s>[INST]What was the election result before 2004 where Eric Cantor was the incumbent? Context: CREATE TABLE table_name_61 (results VARCHAR, first_elected VARCHAR, incumbent VARCHAR)[/INST]SELECT results FROM table_name_61 WHERE first_elected < 2004 AND incumbent = "eric cantor"</s> |
CREATE TABLE table_name_75 (home_team VARCHAR) | SELECT home_team AS score FROM table_name_75 WHERE home_team = "essendon" | What was the score when essendon was the home team? | <s>[INST]What was the score when essendon was the home team? Context: CREATE TABLE table_name_75 (home_team VARCHAR)[/INST]SELECT home_team AS score FROM table_name_75 WHERE home_team = "essendon"</s> |
CREATE TABLE table_name_71 (total VARCHAR, gold VARCHAR, silver VARCHAR, nation VARCHAR) | SELECT COUNT(total) FROM table_name_71 WHERE silver < 2 AND nation = "ukraine" AND gold < 3 | How many Totals have a Silver smaller than 2, and a Nation of ukraine, and a Gold smaller than 3? | <s>[INST]How many Totals have a Silver smaller than 2, and a Nation of ukraine, and a Gold smaller than 3? Context: CREATE TABLE table_name_71 (total VARCHAR, gold VARCHAR, silver VARCHAR, nation VARCHAR)[/INST]SELECT COUNT(total) FROM table_name_71 WHERE silver < 2 AND nation = "ukraine" AND gold < 3</s> |
CREATE TABLE table_name_87 (last_year INTEGER, hosted INTEGER) | SELECT MIN(last_year) FROM table_name_87 WHERE hosted > 176 | What is the lowest attendance last year when more than 176 were hosted? | <s>[INST]What is the lowest attendance last year when more than 176 were hosted? Context: CREATE TABLE table_name_87 (last_year INTEGER, hosted INTEGER)[/INST]SELECT MIN(last_year) FROM table_name_87 WHERE hosted > 176</s> |
CREATE TABLE table_name_63 (rank VARCHAR, s_wicket VARCHAR, player VARCHAR) | SELECT rank FROM table_name_63 WHERE s_wicket = "40" AND player = "daniel marsh" | Which rank is 40 for s Wicket with a player of Daniel Marsh? | <s>[INST]Which rank is 40 for s Wicket with a player of Daniel Marsh? Context: CREATE TABLE table_name_63 (rank VARCHAR, s_wicket VARCHAR, player VARCHAR)[/INST]SELECT rank FROM table_name_63 WHERE s_wicket = "40" AND player = "daniel marsh"</s> |
CREATE TABLE table_name_96 (city VARCHAR, stadium VARCHAR) | SELECT city FROM table_name_96 WHERE stadium = "estadio san cristóbal" | Which City has a Stadium of estadio san cristóbal? | <s>[INST]Which City has a Stadium of estadio san cristóbal? Context: CREATE TABLE table_name_96 (city VARCHAR, stadium VARCHAR)[/INST]SELECT city FROM table_name_96 WHERE stadium = "estadio san cristóbal"</s> |
CREATE TABLE table_name_31 (production_year VARCHAR) | SELECT AVG(2002) FROM table_name_31 WHERE 2010 < 5587 AND production_year = "sunflower" AND 2007 > 546 | What is the average 2002 value for Sunflower, which had a 2010 value less than 5587 and a 2007 value greater than 546? | <s>[INST]What is the average 2002 value for Sunflower, which had a 2010 value less than 5587 and a 2007 value greater than 546? Context: CREATE TABLE table_name_31 (production_year VARCHAR)[/INST]SELECT AVG(2002) FROM table_name_31 WHERE 2010 < 5587 AND production_year = "sunflower" AND 2007 > 546</s> |
CREATE TABLE table_name_55 (year INTEGER, wins INTEGER) | SELECT MIN(year) FROM table_name_55 WHERE wins < 0 | What is the earliest year associated with under 0 wins? | <s>[INST]What is the earliest year associated with under 0 wins? Context: CREATE TABLE table_name_55 (year INTEGER, wins INTEGER)[/INST]SELECT MIN(year) FROM table_name_55 WHERE wins < 0</s> |
CREATE TABLE table_name_83 (place VARCHAR, total VARCHAR) | SELECT SUM(5 AS _hoops) FROM table_name_83 WHERE place > 7 AND total > 38.525 | 5 Hoops that has a Place larger than 7, and a Total larger than 38.525 had what sum? | <s>[INST]5 Hoops that has a Place larger than 7, and a Total larger than 38.525 had what sum? Context: CREATE TABLE table_name_83 (place VARCHAR, total VARCHAR)[/INST]SELECT SUM(5 AS _hoops) FROM table_name_83 WHERE place > 7 AND total > 38.525</s> |
CREATE TABLE table_name_69 (call_sign VARCHAR, class VARCHAR) | SELECT call_sign FROM table_name_69 WHERE class = "a" | What is the call sign for a class of A? | <s>[INST]What is the call sign for a class of A? Context: CREATE TABLE table_name_69 (call_sign VARCHAR, class VARCHAR)[/INST]SELECT call_sign FROM table_name_69 WHERE class = "a"</s> |
CREATE TABLE table_224839_3 (state__class_ VARCHAR, reason_for_change VARCHAR, vacator VARCHAR) | SELECT state__class_ FROM table_224839_3 WHERE reason_for_change = "Resigned November 26, 1798" AND vacator = "John Hunter ( DR )" | What are all the states (class) when the reason for change was resigned November 26, 1798 and the vacator was John Hunter ( DR )? | <s>[INST]What are all the states (class) when the reason for change was resigned November 26, 1798 and the vacator was John Hunter ( DR )? Context: CREATE TABLE table_224839_3 (state__class_ VARCHAR, reason_for_change VARCHAR, vacator VARCHAR)[/INST]SELECT state__class_ FROM table_224839_3 WHERE reason_for_change = "Re... |
CREATE TABLE table_17311797_10 (score VARCHAR, game VARCHAR) | SELECT score FROM table_17311797_10 WHERE game = 81 | What was the score in game 81? | <s>[INST]What was the score in game 81? Context: CREATE TABLE table_17311797_10 (score VARCHAR, game VARCHAR)[/INST]SELECT score FROM table_17311797_10 WHERE game = 81</s> |
CREATE TABLE table_name_87 (attendance INTEGER, week VARCHAR, opponent VARCHAR) | SELECT MAX(attendance) FROM table_name_87 WHERE week > 1 AND opponent = "new york jets" | What is the highest attendance for the game after week 1 against the New York Jets? | <s>[INST]What is the highest attendance for the game after week 1 against the New York Jets? Context: CREATE TABLE table_name_87 (attendance INTEGER, week VARCHAR, opponent VARCHAR)[/INST]SELECT MAX(attendance) FROM table_name_87 WHERE week > 1 AND opponent = "new york jets"</s> |
CREATE TABLE table_name_45 (network_brand_name VARCHAR, company_name VARCHAR, country VARCHAR) | SELECT network_brand_name FROM table_name_45 WHERE company_name = "vodafone group" AND country = "germany" | What is the network brand name of the company vodafone group in Germany? | <s>[INST]What is the network brand name of the company vodafone group in Germany? Context: CREATE TABLE table_name_45 (network_brand_name VARCHAR, company_name VARCHAR, country VARCHAR)[/INST]SELECT network_brand_name FROM table_name_45 WHERE company_name = "vodafone group" AND country = "germany"</s> |
CREATE TABLE table_name_54 (attendance INTEGER, opponent VARCHAR, week VARCHAR) | SELECT AVG(attendance) FROM table_name_54 WHERE opponent = "at boston patriots" AND week > 3 | Opponent of at boston patriots, and a Week larger than 3 had what average attendance? | <s>[INST]Opponent of at boston patriots, and a Week larger than 3 had what average attendance? Context: CREATE TABLE table_name_54 (attendance INTEGER, opponent VARCHAR, week VARCHAR)[/INST]SELECT AVG(attendance) FROM table_name_54 WHERE opponent = "at boston patriots" AND week > 3</s> |
CREATE TABLE Person (name VARCHAR, job VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE person (name VARCHAR) | SELECT name FROM person EXCEPT SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.job = 'student' | Find the name of the person who has no student friends. | <s>[INST]Find the name of the person who has no student friends. Context: CREATE TABLE Person (name VARCHAR, job VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE person (name VARCHAR)[/INST]SELECT name FROM person EXCEPT SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name... |
CREATE TABLE table_name_61 (electorate VARCHAR, member VARCHAR) | SELECT electorate FROM table_name_61 WHERE member = "rex connor" | Who was the electorate when the member was rex connor? | <s>[INST]Who was the electorate when the member was rex connor? Context: CREATE TABLE table_name_61 (electorate VARCHAR, member VARCHAR)[/INST]SELECT electorate FROM table_name_61 WHERE member = "rex connor"</s> |
CREATE TABLE table_name_84 (pole_position VARCHAR, fastest_lap VARCHAR, location VARCHAR) | SELECT pole_position FROM table_name_84 WHERE fastest_lap = "ben spies" AND location = "barber motorsports park" | What is Pole Position, when Fastest Lap is Ben Spies, and when Location is Barber Motorsports Park? | <s>[INST]What is Pole Position, when Fastest Lap is Ben Spies, and when Location is Barber Motorsports Park? Context: CREATE TABLE table_name_84 (pole_position VARCHAR, fastest_lap VARCHAR, location VARCHAR)[/INST]SELECT pole_position FROM table_name_84 WHERE fastest_lap = "ben spies" AND location = "barber motorsports... |
CREATE TABLE table_name_12 (years_as_tallest VARCHAR, street_address VARCHAR) | SELECT years_as_tallest FROM table_name_12 WHERE street_address = "324 e. 11th street" | What's the Years as tallest with a Street address of 324 E. 11th Street? | <s>[INST]What's the Years as tallest with a Street address of 324 E. 11th Street? Context: CREATE TABLE table_name_12 (years_as_tallest VARCHAR, street_address VARCHAR)[/INST]SELECT years_as_tallest FROM table_name_12 WHERE street_address = "324 e. 11th street"</s> |
CREATE TABLE table_name_12 (format VARCHAR, catalogue VARCHAR, label VARCHAR, date VARCHAR) | SELECT format FROM table_name_12 WHERE label = "bronze" AND date = "1982" AND catalogue = "204 636" | What is Format, when Label is Bronze, when Date is 1982, and when Catalogue is 204 636? | <s>[INST]What is Format, when Label is Bronze, when Date is 1982, and when Catalogue is 204 636? Context: CREATE TABLE table_name_12 (format VARCHAR, catalogue VARCHAR, label VARCHAR, date VARCHAR)[/INST]SELECT format FROM table_name_12 WHERE label = "bronze" AND date = "1982" AND catalogue = "204 636"</s> |
CREATE TABLE table_name_35 (incumbent VARCHAR, party VARCHAR, district VARCHAR) | SELECT incumbent FROM table_name_35 WHERE party = "democratic" AND district = "washington 7" | Who is the incumbent from the democratic party in the washington 7 district? | <s>[INST]Who is the incumbent from the democratic party in the washington 7 district? Context: CREATE TABLE table_name_35 (incumbent VARCHAR, party VARCHAR, district VARCHAR)[/INST]SELECT incumbent FROM table_name_35 WHERE party = "democratic" AND district = "washington 7"</s> |
CREATE TABLE table_name_45 (surface VARCHAR, opponent VARCHAR) | SELECT surface FROM table_name_45 WHERE opponent = "chris evert-lloyd" | Which Surface had an Opponent of chris evert-lloyd? | <s>[INST]Which Surface had an Opponent of chris evert-lloyd? Context: CREATE TABLE table_name_45 (surface VARCHAR, opponent VARCHAR)[/INST]SELECT surface FROM table_name_45 WHERE opponent = "chris evert-lloyd"</s> |
CREATE TABLE table_name_62 (opponent VARCHAR, time VARCHAR, result VARCHAR) | SELECT opponent FROM table_name_62 WHERE time = "2:05 p.m." AND result = "w 26–20" | What is the Opponent with a time of 2:05 p.m., and the results were w 26–20? | <s>[INST]What is the Opponent with a time of 2:05 p.m., and the results were w 26–20? Context: CREATE TABLE table_name_62 (opponent VARCHAR, time VARCHAR, result VARCHAR)[/INST]SELECT opponent FROM table_name_62 WHERE time = "2:05 p.m." AND result = "w 26–20"</s> |
CREATE TABLE musical (Nominee VARCHAR) | SELECT Nominee FROM musical GROUP BY Nominee ORDER BY COUNT(*) DESC LIMIT 1 | Please show the nominee who has been nominated the greatest number of times. | <s>[INST]Please show the nominee who has been nominated the greatest number of times. Context: CREATE TABLE musical (Nominee VARCHAR)[/INST]SELECT Nominee FROM musical GROUP BY Nominee ORDER BY COUNT(*) DESC LIMIT 1</s> |
CREATE TABLE table_10015132_7 (position VARCHAR, school_club_team VARCHAR) | SELECT position FROM table_10015132_7 WHERE school_club_team = "Connecticut" | what position did the player from connecticut play | <s>[INST]what position did the player from connecticut play Context: CREATE TABLE table_10015132_7 (position VARCHAR, school_club_team VARCHAR)[/INST]SELECT position FROM table_10015132_7 WHERE school_club_team = "Connecticut"</s> |
CREATE TABLE table_name_79 (time VARCHAR, race VARCHAR) | SELECT time FROM table_name_79 WHERE race = "kentucky derby" | What was the time of the Kentucky Derby? | <s>[INST]What was the time of the Kentucky Derby? Context: CREATE TABLE table_name_79 (time VARCHAR, race VARCHAR)[/INST]SELECT time FROM table_name_79 WHERE race = "kentucky derby"</s> |
CREATE TABLE candidate (people_id VARCHAR, support_rate VARCHAR); CREATE TABLE people (name VARCHAR, sex VARCHAR, people_id VARCHAR) | SELECT t1.name, t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id ORDER BY t2.support_rate DESC LIMIT 1 | Find the name and gender of the candidate who got the highest support rate. | <s>[INST]Find the name and gender of the candidate who got the highest support rate. Context: CREATE TABLE candidate (people_id VARCHAR, support_rate VARCHAR); CREATE TABLE people (name VARCHAR, sex VARCHAR, people_id VARCHAR)[/INST]SELECT t1.name, t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.peop... |
CREATE TABLE table_name_62 (status VARCHAR, issn VARCHAR) | SELECT status FROM table_name_62 WHERE issn = "0149-1830" | What is the status for a journal with the ISSN of 0149-1830? | <s>[INST]What is the status for a journal with the ISSN of 0149-1830? Context: CREATE TABLE table_name_62 (status VARCHAR, issn VARCHAR)[/INST]SELECT status FROM table_name_62 WHERE issn = "0149-1830"</s> |
CREATE TABLE table_name_40 (goals VARCHAR, name VARCHAR, debut_year VARCHAR) | SELECT COUNT(goals) FROM table_name_40 WHERE name = "diego milito" AND debut_year > 2008 | How many goals occurred with Diego Milito in a debut year later than 2008? | <s>[INST]How many goals occurred with Diego Milito in a debut year later than 2008? Context: CREATE TABLE table_name_40 (goals VARCHAR, name VARCHAR, debut_year VARCHAR)[/INST]SELECT COUNT(goals) FROM table_name_40 WHERE name = "diego milito" AND debut_year > 2008</s> |
CREATE TABLE table_27146868_1 (Id VARCHAR) | SELECT 2010 FROM table_27146868_1 WHERE 2003 = "5.6" | What is 2010 when 2003 is 5.6? | <s>[INST]What is 2010 when 2003 is 5.6? Context: CREATE TABLE table_27146868_1 (Id VARCHAR)[/INST]SELECT 2010 FROM table_27146868_1 WHERE 2003 = "5.6"</s> |
CREATE TABLE table_name_66 (round VARCHAR, position VARCHAR) | SELECT COUNT(round) FROM table_name_66 WHERE position = "offensive tackle" | How many rounds were there an offensive tackle position? | <s>[INST]How many rounds were there an offensive tackle position? Context: CREATE TABLE table_name_66 (round VARCHAR, position VARCHAR)[/INST]SELECT COUNT(round) FROM table_name_66 WHERE position = "offensive tackle"</s> |
CREATE TABLE table_name_89 (status VARCHAR, opened VARCHAR, model VARCHAR) | SELECT status FROM table_name_89 WHERE opened = "2008" AND model = "junior coaster" | What is the status of the junior coaster model that opened in 2008? | <s>[INST]What is the status of the junior coaster model that opened in 2008? Context: CREATE TABLE table_name_89 (status VARCHAR, opened VARCHAR, model VARCHAR)[/INST]SELECT status FROM table_name_89 WHERE opened = "2008" AND model = "junior coaster"</s> |
CREATE TABLE table_name_7 (events VARCHAR, rank VARCHAR) | SELECT events FROM table_name_7 WHERE rank = 1 | Which events have a Rank of 1? | <s>[INST]Which events have a Rank of 1? Context: CREATE TABLE table_name_7 (events VARCHAR, rank VARCHAR)[/INST]SELECT events FROM table_name_7 WHERE rank = 1</s> |
CREATE TABLE table_name_49 (home VARCHAR, attendance VARCHAR) | SELECT home FROM table_name_49 WHERE attendance = 2709 | Who was the home team during the match where there were 2709 in attendance? | <s>[INST]Who was the home team during the match where there were 2709 in attendance? Context: CREATE TABLE table_name_49 (home VARCHAR, attendance VARCHAR)[/INST]SELECT home FROM table_name_49 WHERE attendance = 2709</s> |
CREATE TABLE table_name_80 (field_goals INTEGER, position VARCHAR, touchdowns VARCHAR) | SELECT AVG(field_goals) FROM table_name_80 WHERE position = "right halfback" AND touchdowns > 3 | What is the average number of field goals scored by a right halfback who had more than 3 touchdowns? | <s>[INST]What is the average number of field goals scored by a right halfback who had more than 3 touchdowns? Context: CREATE TABLE table_name_80 (field_goals INTEGER, position VARCHAR, touchdowns VARCHAR)[/INST]SELECT AVG(field_goals) FROM table_name_80 WHERE position = "right halfback" AND touchdowns > 3</s> |
CREATE TABLE table_2840500_2 (nhl_team VARCHAR, player VARCHAR) | SELECT nhl_team FROM table_2840500_2 WHERE player = "Travis Brigley" | Which team drafted Travis Brigley? | <s>[INST]Which team drafted Travis Brigley? Context: CREATE TABLE table_2840500_2 (nhl_team VARCHAR, player VARCHAR)[/INST]SELECT nhl_team FROM table_2840500_2 WHERE player = "Travis Brigley"</s> |
CREATE TABLE table_name_2 (total VARCHAR, gold VARCHAR, nation VARCHAR) | SELECT total FROM table_name_2 WHERE gold = 2 AND nation = "brazil (bra)" | What is the medal total when there is 2 gold medals, and Brazil (BRA) is the nation? | <s>[INST]What is the medal total when there is 2 gold medals, and Brazil (BRA) is the nation? Context: CREATE TABLE table_name_2 (total VARCHAR, gold VARCHAR, nation VARCHAR)[/INST]SELECT total FROM table_name_2 WHERE gold = 2 AND nation = "brazil (bra)"</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.