context
stringlengths
27
489
answer
stringlengths
18
557
question
stringlengths
12
243
text
stringlengths
103
1.05k
CREATE TABLE table_name_84 (date VARCHAR, score VARCHAR, loss VARCHAR)
SELECT date FROM table_name_84 WHERE score = "5-2" AND loss = "greinke (1-2)"
On what Date had a Score of 5-2 and a Loss of Greinke (1-2)?
<s>[INST]On what Date had a Score of 5-2 and a Loss of Greinke (1-2)? Context: CREATE TABLE table_name_84 (date VARCHAR, score VARCHAR, loss VARCHAR)[/INST]SELECT date FROM table_name_84 WHERE score = "5-2" AND loss = "greinke (1-2)"</s>
CREATE TABLE table_name_97 (vs_protoss VARCHAR, vs_terran VARCHAR)
SELECT vs_protoss FROM table_name_97 WHERE vs_terran = "10 wins"
What is the score vs. Protoss when the score vs. Terran is 10 wins?
<s>[INST]What is the score vs. Protoss when the score vs. Terran is 10 wins? Context: CREATE TABLE table_name_97 (vs_protoss VARCHAR, vs_terran VARCHAR)[/INST]SELECT vs_protoss FROM table_name_97 WHERE vs_terran = "10 wins"</s>
CREATE TABLE table_name_54 (division VARCHAR, season VARCHAR, goals VARCHAR)
SELECT COUNT(division) FROM table_name_54 WHERE season = "2006/07" AND goals > 1
What's the total number of all divisions during the 2006/07 season where they scored more than 1 goal?
<s>[INST]What's the total number of all divisions during the 2006/07 season where they scored more than 1 goal? Context: CREATE TABLE table_name_54 (division VARCHAR, season VARCHAR, goals VARCHAR)[/INST]SELECT COUNT(division) FROM table_name_54 WHERE season = "2006/07" AND goals > 1</s>
CREATE TABLE table_name_82 (year INTEGER, co_drivers VARCHAR)
SELECT SUM(year) FROM table_name_82 WHERE co_drivers = "jérôme policand christopher campbell"
In what year Year has a Co-Drivers of jérôme policand christopher campbell?
<s>[INST]In what year Year has a Co-Drivers of jérôme policand christopher campbell? Context: CREATE TABLE table_name_82 (year INTEGER, co_drivers VARCHAR)[/INST]SELECT SUM(year) FROM table_name_82 WHERE co_drivers = "jérôme policand christopher campbell"</s>
CREATE TABLE table_name_56 (points VARCHAR, year INTEGER)
SELECT points FROM table_name_56 WHERE year > 1987
Name the points for year more than 1987
<s>[INST]Name the points for year more than 1987 Context: CREATE TABLE table_name_56 (points VARCHAR, year INTEGER)[/INST]SELECT points FROM table_name_56 WHERE year > 1987</s>
CREATE TABLE table_name_70 (last_final_lost VARCHAR, last_win VARCHAR)
SELECT last_final_lost FROM table_name_70 WHERE last_win = "1959"
When was the last final lost of the club with a last win in 1959?
<s>[INST]When was the last final lost of the club with a last win in 1959? Context: CREATE TABLE table_name_70 (last_final_lost VARCHAR, last_win VARCHAR)[/INST]SELECT last_final_lost FROM table_name_70 WHERE last_win = "1959"</s>
CREATE TABLE table_name_86 (res VARCHAR, opponent VARCHAR)
SELECT res FROM table_name_86 WHERE opponent = "mark hunt"
The match against Mark Hunt had what result?
<s>[INST]The match against Mark Hunt had what result? Context: CREATE TABLE table_name_86 (res VARCHAR, opponent VARCHAR)[/INST]SELECT res FROM table_name_86 WHERE opponent = "mark hunt"</s>
CREATE TABLE table_1682026_6 (profits__billion_$_ VARCHAR, company VARCHAR)
SELECT profits__billion_$_ FROM table_1682026_6 WHERE company = "Berkshire Hathaway"
What are the profits in billions for Berkshire Hathaway?
<s>[INST]What are the profits in billions for Berkshire Hathaway? Context: CREATE TABLE table_1682026_6 (profits__billion_$_ VARCHAR, company VARCHAR)[/INST]SELECT profits__billion_$_ FROM table_1682026_6 WHERE company = "Berkshire Hathaway"</s>
CREATE TABLE table_name_9 (tonnage VARCHAR, ship VARCHAR, builder VARCHAR, original_operator VARCHAR)
SELECT tonnage FROM table_name_9 WHERE builder = "ag vulcan" AND original_operator = "ndl" AND ship = "prinzess irene"
What is the Tonnage that has builder AG Vulcan, and the original operator NDL, and the ship, Prinzess Irene?
<s>[INST]What is the Tonnage that has builder AG Vulcan, and the original operator NDL, and the ship, Prinzess Irene? Context: CREATE TABLE table_name_9 (tonnage VARCHAR, ship VARCHAR, builder VARCHAR, original_operator VARCHAR)[/INST]SELECT tonnage FROM table_name_9 WHERE builder = "ag vulcan" AND original_operator = ...
CREATE TABLE table_1802522_3 (reason_for_change VARCHAR, successor VARCHAR)
SELECT COUNT(reason_for_change) FROM table_1802522_3 WHERE successor = "Leonard B. Jordan (R)"
How many total reason for change are listed corresponding to the successor Leonard B. Jordan (r)?
<s>[INST]How many total reason for change are listed corresponding to the successor Leonard B. Jordan (r)? Context: CREATE TABLE table_1802522_3 (reason_for_change VARCHAR, successor VARCHAR)[/INST]SELECT COUNT(reason_for_change) FROM table_1802522_3 WHERE successor = "Leonard B. Jordan (R)"</s>
CREATE TABLE table_name_40 (family VARCHAR, name VARCHAR)
SELECT family FROM table_name_40 WHERE name = "humpback whale"
Which family has a Name of humpback whale?
<s>[INST]Which family has a Name of humpback whale? Context: CREATE TABLE table_name_40 (family VARCHAR, name VARCHAR)[/INST]SELECT family FROM table_name_40 WHERE name = "humpback whale"</s>
CREATE TABLE table_18598175_2 (elimination_number INTEGER, time VARCHAR)
SELECT MIN(elimination_number) FROM table_18598175_2 WHERE time = "27:27"
What was the elimination number of the fighter who fought within 27:27?
<s>[INST]What was the elimination number of the fighter who fought within 27:27? Context: CREATE TABLE table_18598175_2 (elimination_number INTEGER, time VARCHAR)[/INST]SELECT MIN(elimination_number) FROM table_18598175_2 WHERE time = "27:27"</s>
CREATE TABLE table_name_31 (d_42 VARCHAR, d_47 VARCHAR)
SELECT d_42 FROM table_name_31 WHERE d_47 = "d 27"
What is the D42 associated with a D47 of d 27?
<s>[INST]What is the D42 associated with a D47 of d 27? Context: CREATE TABLE table_name_31 (d_42 VARCHAR, d_47 VARCHAR)[/INST]SELECT d_42 FROM table_name_31 WHERE d_47 = "d 27"</s>
CREATE TABLE table_name_9 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_9 WHERE player = "billy ray brown"
Billy Ray Brown plays for what country?
<s>[INST]Billy Ray Brown plays for what country? Context: CREATE TABLE table_name_9 (country VARCHAR, player VARCHAR)[/INST]SELECT country FROM table_name_9 WHERE player = "billy ray brown"</s>
CREATE TABLE table_name_65 (time___et__ VARCHAR, date VARCHAR)
SELECT time___et__ FROM table_name_65 WHERE date = "sun. oct. 29"
Date of sun. oct. 29 has what time (et)?
<s>[INST]Date of sun. oct. 29 has what time (et)? Context: CREATE TABLE table_name_65 (time___et__ VARCHAR, date VARCHAR)[/INST]SELECT time___et__ FROM table_name_65 WHERE date = "sun. oct. 29"</s>
CREATE TABLE table_15055594_6 (fall_06 INTEGER)
SELECT MIN(fall_06) FROM table_15055594_6
What is the lowest number of students from a state during the Fall 06 semester?
<s>[INST]What is the lowest number of students from a state during the Fall 06 semester? Context: CREATE TABLE table_15055594_6 (fall_06 INTEGER)[/INST]SELECT MIN(fall_06) FROM table_15055594_6</s>
CREATE TABLE table_name_28 (eliminated VARCHAR, entered VARCHAR, wrestler VARCHAR)
SELECT eliminated FROM table_name_28 WHERE entered < 4 AND wrestler = "shawn michaels"
What is the Eliminated when there are less than 4 entered and the wrestler was shawn michaels?
<s>[INST]What is the Eliminated when there are less than 4 entered and the wrestler was shawn michaels? Context: CREATE TABLE table_name_28 (eliminated VARCHAR, entered VARCHAR, wrestler VARCHAR)[/INST]SELECT eliminated FROM table_name_28 WHERE entered < 4 AND wrestler = "shawn michaels"</s>
CREATE TABLE table_name_68 (points INTEGER, drawn INTEGER)
SELECT AVG(points) FROM table_name_68 WHERE drawn < 0
What is the average points when the drawn is less than 0?
<s>[INST]What is the average points when the drawn is less than 0? Context: CREATE TABLE table_name_68 (points INTEGER, drawn INTEGER)[/INST]SELECT AVG(points) FROM table_name_68 WHERE drawn < 0</s>
CREATE TABLE table_name_70 (winner VARCHAR, distance VARCHAR)
SELECT winner FROM table_name_70 WHERE distance = "175.6km"
Who was the winner of the race that had a distance of 175.6km?
<s>[INST]Who was the winner of the race that had a distance of 175.6km? Context: CREATE TABLE table_name_70 (winner VARCHAR, distance VARCHAR)[/INST]SELECT winner FROM table_name_70 WHERE distance = "175.6km"</s>
CREATE TABLE table_22993636_2 (overall_record VARCHAR, road_record VARCHAR)
SELECT overall_record FROM table_22993636_2 WHERE road_record = "4-3"
What's the overall record of the team with 4-3 road record?
<s>[INST]What's the overall record of the team with 4-3 road record? Context: CREATE TABLE table_22993636_2 (overall_record VARCHAR, road_record VARCHAR)[/INST]SELECT overall_record FROM table_22993636_2 WHERE road_record = "4-3"</s>
CREATE TABLE table_2840500_2 (player VARCHAR, nhl_team VARCHAR)
SELECT COUNT(player) FROM table_2840500_2 WHERE nhl_team = "Edmonton Oilers"
How many players were drafted by the Edmonton Oilers?
<s>[INST]How many players were drafted by the Edmonton Oilers? Context: CREATE TABLE table_2840500_2 (player VARCHAR, nhl_team VARCHAR)[/INST]SELECT COUNT(player) FROM table_2840500_2 WHERE nhl_team = "Edmonton Oilers"</s>
CREATE TABLE table_name_93 (city_of_license VARCHAR, network VARCHAR)
SELECT city_of_license FROM table_name_93 WHERE network = "latv"
In which city is the network latv licensed?
<s>[INST]In which city is the network latv licensed? Context: CREATE TABLE table_name_93 (city_of_license VARCHAR, network VARCHAR)[/INST]SELECT city_of_license FROM table_name_93 WHERE network = "latv"</s>
CREATE TABLE table_name_59 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_59 WHERE away_team = "carlton"
What was the home team when Carlton was the away team?
<s>[INST]What was the home team when Carlton was the away team? Context: CREATE TABLE table_name_59 (home_team VARCHAR, away_team VARCHAR)[/INST]SELECT home_team FROM table_name_59 WHERE away_team = "carlton"</s>
CREATE TABLE table_25037577_1 (gorham_principal VARCHAR, year VARCHAR)
SELECT gorham_principal FROM table_25037577_1 WHERE year = "2010-2011"
Who was the gorham principal in 2010-2011?
<s>[INST]Who was the gorham principal in 2010-2011? Context: CREATE TABLE table_25037577_1 (gorham_principal VARCHAR, year VARCHAR)[/INST]SELECT gorham_principal FROM table_25037577_1 WHERE year = "2010-2011"</s>
CREATE TABLE table_245711_2 (season VARCHAR, final_record VARCHAR)
SELECT COUNT(season) FROM table_245711_2 WHERE final_record = "9–16–5"
how many time is the final record is 9–16–5?
<s>[INST]how many time is the final record is 9–16–5? Context: CREATE TABLE table_245711_2 (season VARCHAR, final_record VARCHAR)[/INST]SELECT COUNT(season) FROM table_245711_2 WHERE final_record = "9–16–5"</s>
CREATE TABLE table_name_7 (volume VARCHAR, weeks_on_top VARCHAR, artist VARCHAR)
SELECT volume AS :issue FROM table_name_7 WHERE weeks_on_top = "3" AND artist = "sheryl crow"
What's the volume:issue of Sheryl Crow with 3 weeks on top?
<s>[INST]What's the volume:issue of Sheryl Crow with 3 weeks on top? Context: CREATE TABLE table_name_7 (volume VARCHAR, weeks_on_top VARCHAR, artist VARCHAR)[/INST]SELECT volume AS :issue FROM table_name_7 WHERE weeks_on_top = "3" AND artist = "sheryl crow"</s>
CREATE TABLE table_25374338_1 (theme VARCHAR, original_artist VARCHAR)
SELECT theme FROM table_25374338_1 WHERE original_artist = "Noemi feat. Fiorella Mannoia"
What is the theme where the original artist is Noemi feat. Fiorella Mannoia?
<s>[INST]What is the theme where the original artist is Noemi feat. Fiorella Mannoia? Context: CREATE TABLE table_25374338_1 (theme VARCHAR, original_artist VARCHAR)[/INST]SELECT theme FROM table_25374338_1 WHERE original_artist = "Noemi feat. Fiorella Mannoia"</s>
CREATE TABLE table_name_78 (venue VARCHAR, competition VARCHAR)
SELECT venue FROM table_name_78 WHERE competition = "2013 eaff east asian cup qualifier"
Where was the 2013 Eaff East Asian Cup Qualifier played?
<s>[INST]Where was the 2013 Eaff East Asian Cup Qualifier played? Context: CREATE TABLE table_name_78 (venue VARCHAR, competition VARCHAR)[/INST]SELECT venue FROM table_name_78 WHERE competition = "2013 eaff east asian cup qualifier"</s>
CREATE TABLE table_24910737_1 (written_by VARCHAR, us_viewers__millions_ VARCHAR)
SELECT written_by FROM table_24910737_1 WHERE us_viewers__millions_ = "7.14"
Who wrote the episodes that had a viewership of 7.14?
<s>[INST]Who wrote the episodes that had a viewership of 7.14? Context: CREATE TABLE table_24910737_1 (written_by VARCHAR, us_viewers__millions_ VARCHAR)[/INST]SELECT written_by FROM table_24910737_1 WHERE us_viewers__millions_ = "7.14"</s>
CREATE TABLE table_1857216_1 (acceleration_0_100km_h__0_62mph_ VARCHAR, production VARCHAR)
SELECT acceleration_0_100km_h__0_62mph_ FROM table_1857216_1 WHERE production = "2002-2006"
What is the acceleration 0-100km/h that was produced in 2002-2006?
<s>[INST]What is the acceleration 0-100km/h that was produced in 2002-2006? Context: CREATE TABLE table_1857216_1 (acceleration_0_100km_h__0_62mph_ VARCHAR, production VARCHAR)[/INST]SELECT acceleration_0_100km_h__0_62mph_ FROM table_1857216_1 WHERE production = "2002-2006"</s>
CREATE TABLE table_name_83 (loss VARCHAR, date VARCHAR)
SELECT loss FROM table_name_83 WHERE date = "may 9"
Who did they lose to on may 9?
<s>[INST]Who did they lose to on may 9? Context: CREATE TABLE table_name_83 (loss VARCHAR, date VARCHAR)[/INST]SELECT loss FROM table_name_83 WHERE date = "may 9"</s>
CREATE TABLE table_name_68 (crowd VARCHAR, away_team VARCHAR)
SELECT COUNT(crowd) FROM table_name_68 WHERE away_team = "essendon"
What is the listed crowd when essendon is the away squad?
<s>[INST]What is the listed crowd when essendon is the away squad? Context: CREATE TABLE table_name_68 (crowd VARCHAR, away_team VARCHAR)[/INST]SELECT COUNT(crowd) FROM table_name_68 WHERE away_team = "essendon"</s>
CREATE TABLE table_name_71 (gold VARCHAR, bronze VARCHAR, total VARCHAR, silver VARCHAR)
SELECT gold FROM table_name_71 WHERE total < 4 AND silver = "1" AND bronze = "1"
What is Gold, when Total is less than 4, when Silver is 1, and when Bronze is 1?
<s>[INST]What is Gold, when Total is less than 4, when Silver is 1, and when Bronze is 1? Context: CREATE TABLE table_name_71 (gold VARCHAR, bronze VARCHAR, total VARCHAR, silver VARCHAR)[/INST]SELECT gold FROM table_name_71 WHERE total < 4 AND silver = "1" AND bronze = "1"</s>
CREATE TABLE table_name_67 (date VARCHAR, pictorials VARCHAR)
SELECT date FROM table_name_67 WHERE pictorials = "mercedes mcnab, girls of hawaiian tropic"
Which Date has a Pictorials of mercedes mcnab, girls of hawaiian tropic?
<s>[INST]Which Date has a Pictorials of mercedes mcnab, girls of hawaiian tropic? Context: CREATE TABLE table_name_67 (date VARCHAR, pictorials VARCHAR)[/INST]SELECT date FROM table_name_67 WHERE pictorials = "mercedes mcnab, girls of hawaiian tropic"</s>
CREATE TABLE table_name_14 (category VARCHAR, year VARCHAR)
SELECT category FROM table_name_14 WHERE year = 1964
What category was in 1964?
<s>[INST]What category was in 1964? Context: CREATE TABLE table_name_14 (category VARCHAR, year VARCHAR)[/INST]SELECT category FROM table_name_14 WHERE year = 1964</s>
CREATE TABLE table_name_58 (crowd INTEGER, venue VARCHAR)
SELECT MAX(crowd) FROM table_name_58 WHERE venue = "arden street oval"
What was the largest crowd size at arden street oval?
<s>[INST]What was the largest crowd size at arden street oval? Context: CREATE TABLE table_name_58 (crowd INTEGER, venue VARCHAR)[/INST]SELECT MAX(crowd) FROM table_name_58 WHERE venue = "arden street oval"</s>
CREATE TABLE table_name_61 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_61 WHERE date = "july 29"
Who was the Opponent on July 29?
<s>[INST]Who was the Opponent on July 29? Context: CREATE TABLE table_name_61 (opponent VARCHAR, date VARCHAR)[/INST]SELECT opponent FROM table_name_61 WHERE date = "july 29"</s>
CREATE TABLE table_name_57 (works_number INTEGER, builder VARCHAR, name VARCHAR)
SELECT AVG(works_number) FROM table_name_57 WHERE builder = "vulcan foundry" AND name = "snowdon ranger"
What is the average work number of Snowdon Ranger with the builder Vulcan Foundry?
<s>[INST]What is the average work number of Snowdon Ranger with the builder Vulcan Foundry? Context: CREATE TABLE table_name_57 (works_number INTEGER, builder VARCHAR, name VARCHAR)[/INST]SELECT AVG(works_number) FROM table_name_57 WHERE builder = "vulcan foundry" AND name = "snowdon ranger"</s>
CREATE TABLE table_name_76 (third VARCHAR, lead VARCHAR)
SELECT third FROM table_name_76 WHERE lead = "cindy simmons"
WHAT IS THE THIRD WITH LEAD CINDY SIMMONS?
<s>[INST]WHAT IS THE THIRD WITH LEAD CINDY SIMMONS? Context: CREATE TABLE table_name_76 (third VARCHAR, lead VARCHAR)[/INST]SELECT third FROM table_name_76 WHERE lead = "cindy simmons"</s>
CREATE TABLE table_name_62 (high_assists VARCHAR, score VARCHAR)
SELECT high_assists FROM table_name_62 WHERE score = "l 86–94 (ot)"
What were the high assists when the score was l 86–94 (ot)?
<s>[INST]What were the high assists when the score was l 86–94 (ot)? Context: CREATE TABLE table_name_62 (high_assists VARCHAR, score VARCHAR)[/INST]SELECT high_assists FROM table_name_62 WHERE score = "l 86–94 (ot)"</s>
CREATE TABLE table_name_61 (outcome VARCHAR, partner VARCHAR, score VARCHAR)
SELECT outcome FROM table_name_61 WHERE partner = "marcella mesker" AND score = "6–4, 4–6, 4–6"
What is the Outcome of the match with Partner Marcella Mesker and a Score of 6–4, 4–6, 4–6?
<s>[INST]What is the Outcome of the match with Partner Marcella Mesker and a Score of 6–4, 4–6, 4–6? Context: CREATE TABLE table_name_61 (outcome VARCHAR, partner VARCHAR, score VARCHAR)[/INST]SELECT outcome FROM table_name_61 WHERE partner = "marcella mesker" AND score = "6–4, 4–6, 4–6"</s>
CREATE TABLE table_name_66 (date VARCHAR, race_name VARCHAR)
SELECT date FROM table_name_66 WHERE race_name = "i dessau autobahnspinne"
On what date was the I Dessau Autobahnspinne race?
<s>[INST]On what date was the I Dessau Autobahnspinne race? Context: CREATE TABLE table_name_66 (date VARCHAR, race_name VARCHAR)[/INST]SELECT date FROM table_name_66 WHERE race_name = "i dessau autobahnspinne"</s>
CREATE TABLE table_name_32 (team VARCHAR, rider VARCHAR)
SELECT team FROM table_name_32 WHERE rider = "anthony redmond"
What team does Anthony Redmond ride for?
<s>[INST]What team does Anthony Redmond ride for? Context: CREATE TABLE table_name_32 (team VARCHAR, rider VARCHAR)[/INST]SELECT team FROM table_name_32 WHERE rider = "anthony redmond"</s>
CREATE TABLE table_name_23 (rank INTEGER, gold VARCHAR, total VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT MIN(rank) FROM table_name_23 WHERE bronze > 0 AND silver = 8 AND total = 19 AND gold < 9
What is the lowest Rank with more than 0 bronze, 8 silver, and a total of 19, with less than 9 gold?
<s>[INST]What is the lowest Rank with more than 0 bronze, 8 silver, and a total of 19, with less than 9 gold? Context: CREATE TABLE table_name_23 (rank INTEGER, gold VARCHAR, total VARCHAR, bronze VARCHAR, silver VARCHAR)[/INST]SELECT MIN(rank) FROM table_name_23 WHERE bronze > 0 AND silver = 8 AND total = 19 AND gold ...
CREATE TABLE table_name_53 (song VARCHAR, year VARCHAR, us_r VARCHAR, b VARCHAR)
SELECT song FROM table_name_53 WHERE year = 2010 AND us_r & b = "100"
Which song has a U.S. R&B 100 in 2010?
<s>[INST]Which song has a U.S. R&B 100 in 2010? Context: CREATE TABLE table_name_53 (song VARCHAR, year VARCHAR, us_r VARCHAR, b VARCHAR)[/INST]SELECT song FROM table_name_53 WHERE year = 2010 AND us_r & b = "100"</s>
CREATE TABLE table_name_92 (venue VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_92 WHERE home_team = "essendon"
In what venue is Essendon the home team?
<s>[INST]In what venue is Essendon the home team? Context: CREATE TABLE table_name_92 (venue VARCHAR, home_team VARCHAR)[/INST]SELECT venue FROM table_name_92 WHERE home_team = "essendon"</s>
CREATE TABLE table_name_8 (round VARCHAR, college VARCHAR)
SELECT COUNT(round) FROM table_name_8 WHERE college = "florida state"
What is the sum of all the rounds when a Florida State player was drafted?
<s>[INST]What is the sum of all the rounds when a Florida State player was drafted? Context: CREATE TABLE table_name_8 (round VARCHAR, college VARCHAR)[/INST]SELECT COUNT(round) FROM table_name_8 WHERE college = "florida state"</s>
CREATE TABLE table_1213511_2 (position VARCHAR, nhl_team VARCHAR)
SELECT COUNT(position) FROM table_1213511_2 WHERE nhl_team = "Chicago Black Hawks"
How many positions do the players of Chicago Black Hawks play in?
<s>[INST]How many positions do the players of Chicago Black Hawks play in? Context: CREATE TABLE table_1213511_2 (position VARCHAR, nhl_team VARCHAR)[/INST]SELECT COUNT(position) FROM table_1213511_2 WHERE nhl_team = "Chicago Black Hawks"</s>
CREATE TABLE table_name_99 (stage VARCHAR, yellow_jersey VARCHAR)
SELECT stage AS winner FROM table_name_99 WHERE stage > 10 AND yellow_jersey = "joseph planckaert"
Who was the stage winner when the stage was more than 10 and yellow jersey was Joseph Planckaert?
<s>[INST]Who was the stage winner when the stage was more than 10 and yellow jersey was Joseph Planckaert? Context: CREATE TABLE table_name_99 (stage VARCHAR, yellow_jersey VARCHAR)[/INST]SELECT stage AS winner FROM table_name_99 WHERE stage > 10 AND yellow_jersey = "joseph planckaert"</s>
CREATE TABLE table_name_88 (competition VARCHAR, venue VARCHAR, opponent VARCHAR)
SELECT competition FROM table_name_88 WHERE venue = "away" AND opponent = "bracknell bees"
When the venue is away and the opponents are the bracknell bees, what is the competition?
<s>[INST]When the venue is away and the opponents are the bracknell bees, what is the competition? Context: CREATE TABLE table_name_88 (competition VARCHAR, venue VARCHAR, opponent VARCHAR)[/INST]SELECT competition FROM table_name_88 WHERE venue = "away" AND opponent = "bracknell bees"</s>
CREATE TABLE table_name_13 (ship_size VARCHAR)
SELECT 2004 FROM table_name_13 WHERE ship_size = "ship size"
What was the cargo value in 2004 for ship size?
<s>[INST]What was the cargo value in 2004 for ship size? Context: CREATE TABLE table_name_13 (ship_size VARCHAR)[/INST]SELECT 2004 FROM table_name_13 WHERE ship_size = "ship size"</s>
CREATE TABLE table_name_51 (office VARCHAR, law_preservation_ticket VARCHAR)
SELECT office FROM table_name_51 WHERE law_preservation_ticket = "william e. barron"
What office was law preservation ticket holder William E. Barron running for?
<s>[INST]What office was law preservation ticket holder William E. Barron running for? Context: CREATE TABLE table_name_51 (office VARCHAR, law_preservation_ticket VARCHAR)[/INST]SELECT office FROM table_name_51 WHERE law_preservation_ticket = "william e. barron"</s>
CREATE TABLE table_30049462_8 (game VARCHAR, score VARCHAR)
SELECT game FROM table_30049462_8 WHERE score = "L 111–126"
Name the game for l 111–126
<s>[INST]Name the game for l 111–126 Context: CREATE TABLE table_30049462_8 (game VARCHAR, score VARCHAR)[/INST]SELECT game FROM table_30049462_8 WHERE score = "L 111–126"</s>
CREATE TABLE table_2876467_3 (total_top_3_placements VARCHAR, region_represented VARCHAR)
SELECT COUNT(total_top_3_placements) FROM table_2876467_3 WHERE region_represented = "Taiwan"
How many values of total top 3 placements does Taiwan have?
<s>[INST]How many values of total top 3 placements does Taiwan have? Context: CREATE TABLE table_2876467_3 (total_top_3_placements VARCHAR, region_represented VARCHAR)[/INST]SELECT COUNT(total_top_3_placements) FROM table_2876467_3 WHERE region_represented = "Taiwan"</s>
CREATE TABLE table_148535_2 (hand VARCHAR)
SELECT MIN(2 AS _credits) FROM table_148535_2 WHERE hand = "Flush"
Name the least 2 credits for flush
<s>[INST]Name the least 2 credits for flush Context: CREATE TABLE table_148535_2 (hand VARCHAR)[/INST]SELECT MIN(2 AS _credits) FROM table_148535_2 WHERE hand = "Flush"</s>
CREATE TABLE table_name_85 (venue VARCHAR, city VARCHAR, year VARCHAR)
SELECT venue FROM table_name_85 WHERE city = "manchester" AND year = 2003
Which venue had a city of Manchester in 2003?
<s>[INST]Which venue had a city of Manchester in 2003? Context: CREATE TABLE table_name_85 (venue VARCHAR, city VARCHAR, year VARCHAR)[/INST]SELECT venue FROM table_name_85 WHERE city = "manchester" AND year = 2003</s>
CREATE TABLE table_2801185_2 (status VARCHAR, district VARCHAR)
SELECT COUNT(status) FROM table_2801185_2 WHERE district = "Durham"
How many statuses are there for the Durham district?
<s>[INST]How many statuses are there for the Durham district? Context: CREATE TABLE table_2801185_2 (status VARCHAR, district VARCHAR)[/INST]SELECT COUNT(status) FROM table_2801185_2 WHERE district = "Durham"</s>
CREATE TABLE table_20217811_1 (green VARCHAR, electorate VARCHAR)
SELECT green FROM table_20217811_1 WHERE electorate = "Otaki"
Name the green for otaki
<s>[INST]Name the green for otaki Context: CREATE TABLE table_20217811_1 (green VARCHAR, electorate VARCHAR)[/INST]SELECT green FROM table_20217811_1 WHERE electorate = "Otaki"</s>
CREATE TABLE table_24481478_1 (week INTEGER, team_record VARCHAR)
SELECT MIN(week) FROM table_24481478_1 WHERE team_record = "7–2"
In which week was the team record 7–2?
<s>[INST]In which week was the team record 7–2? Context: CREATE TABLE table_24481478_1 (week INTEGER, team_record VARCHAR)[/INST]SELECT MIN(week) FROM table_24481478_1 WHERE team_record = "7–2"</s>
CREATE TABLE table_name_15 (placings VARCHAR, total VARCHAR, nation VARCHAR)
SELECT placings FROM table_name_15 WHERE total < 96.07 AND nation = "united states"
What is the placing value for a total less than 96.07 in the United States?
<s>[INST]What is the placing value for a total less than 96.07 in the United States? Context: CREATE TABLE table_name_15 (placings VARCHAR, total VARCHAR, nation VARCHAR)[/INST]SELECT placings FROM table_name_15 WHERE total < 96.07 AND nation = "united states"</s>
CREATE TABLE table_17157367_1 (max_fs VARCHAR)
SELECT max_fs FROM table_17157367_1 WHERE "status" = "status" AND "method" = "method"
what is the max fs where the status is status and the method is method?
<s>[INST]what is the max fs where the status is status and the method is method? Context: CREATE TABLE table_17157367_1 (max_fs VARCHAR)[/INST]SELECT max_fs FROM table_17157367_1 WHERE "status" = "status" AND "method" = "method"</s>
CREATE TABLE SECTION (building VARCHAR, room_number VARCHAR, semester VARCHAR, year VARCHAR, course_id VARCHAR); CREATE TABLE course (course_id VARCHAR, dept_name VARCHAR, title VARCHAR)
SELECT T2.building, T2.room_number, T2.semester, T2.year FROM course AS T1 JOIN SECTION AS T2 ON T1.course_id = T2.course_id WHERE T1.dept_name = 'Psychology' ORDER BY T1.title
Find the building, room number, semester and year of all courses offered by Psychology department sorted by course titles.
<s>[INST]Find the building, room number, semester and year of all courses offered by Psychology department sorted by course titles. Context: CREATE TABLE SECTION (building VARCHAR, room_number VARCHAR, semester VARCHAR, year VARCHAR, course_id VARCHAR); CREATE TABLE course (course_id VARCHAR, dept_name VARCHAR, title V...
CREATE TABLE table_name_40 (club VARCHAR, goals VARCHAR, season VARCHAR)
SELECT club FROM table_name_40 WHERE goals > 0 AND season = "2011"
What club had over 0 goals in 2011?
<s>[INST]What club had over 0 goals in 2011? Context: CREATE TABLE table_name_40 (club VARCHAR, goals VARCHAR, season VARCHAR)[/INST]SELECT club FROM table_name_40 WHERE goals > 0 AND season = "2011"</s>
CREATE TABLE table_2076516_1 (control VARCHAR, school VARCHAR)
SELECT control FROM table_2076516_1 WHERE school = "Western Carolina University"
When western carolina university is the school what is the control?
<s>[INST]When western carolina university is the school what is the control? Context: CREATE TABLE table_2076516_1 (control VARCHAR, school VARCHAR)[/INST]SELECT control FROM table_2076516_1 WHERE school = "Western Carolina University"</s>
CREATE TABLE table_18811741_15 (pos INTEGER, podiums VARCHAR)
SELECT MAX(pos) FROM table_18811741_15 WHERE podiums = 1
What is the highest pos for a driver with 1 podium?
<s>[INST]What is the highest pos for a driver with 1 podium? Context: CREATE TABLE table_18811741_15 (pos INTEGER, podiums VARCHAR)[/INST]SELECT MAX(pos) FROM table_18811741_15 WHERE podiums = 1</s>
CREATE TABLE table_name_98 (height__m_ INTEGER, prominence__m_ VARCHAR)
SELECT MAX(height__m_) FROM table_name_98 WHERE prominence__m_ = 3 OFFSET 118
What is the largest height when the prominence is 3,118?
<s>[INST]What is the largest height when the prominence is 3,118? Context: CREATE TABLE table_name_98 (height__m_ INTEGER, prominence__m_ VARCHAR)[/INST]SELECT MAX(height__m_) FROM table_name_98 WHERE prominence__m_ = 3 OFFSET 118</s>
CREATE TABLE Attribute_Definitions (attribute_data_type VARCHAR)
SELECT attribute_data_type FROM Attribute_Definitions GROUP BY attribute_data_type HAVING COUNT(*) > 3
Find the list of attribute data types possessed by more than 3 attribute definitions.
<s>[INST]Find the list of attribute data types possessed by more than 3 attribute definitions. Context: CREATE TABLE Attribute_Definitions (attribute_data_type VARCHAR)[/INST]SELECT attribute_data_type FROM Attribute_Definitions GROUP BY attribute_data_type HAVING COUNT(*) > 3</s>
CREATE TABLE table_name_17 (goals INTEGER, seasons VARCHAR, order VARCHAR)
SELECT MIN(goals) FROM table_name_17 WHERE seasons = "1996 – 2001" AND order > 939
What is the low goal for orders more than 939 during Seasons of 1996 – 2001?
<s>[INST]What is the low goal for orders more than 939 during Seasons of 1996 – 2001? Context: CREATE TABLE table_name_17 (goals INTEGER, seasons VARCHAR, order VARCHAR)[/INST]SELECT MIN(goals) FROM table_name_17 WHERE seasons = "1996 – 2001" AND order > 939</s>
CREATE TABLE table_name_2 (date VARCHAR, week VARCHAR)
SELECT date FROM table_name_2 WHERE week = "4"
On what date was Tampa Bay's Week 4 game?
<s>[INST]On what date was Tampa Bay's Week 4 game? Context: CREATE TABLE table_name_2 (date VARCHAR, week VARCHAR)[/INST]SELECT date FROM table_name_2 WHERE week = "4"</s>
CREATE TABLE table_name_53 (points INTEGER, assists VARCHAR)
SELECT MAX(points) FROM table_name_53 WHERE assists = 46
What are the most Points with an Assist of 46?
<s>[INST]What are the most Points with an Assist of 46? Context: CREATE TABLE table_name_53 (points INTEGER, assists VARCHAR)[/INST]SELECT MAX(points) FROM table_name_53 WHERE assists = 46</s>
CREATE TABLE table_name_94 (record VARCHAR, date VARCHAR, loss VARCHAR)
SELECT record FROM table_name_94 WHERE date = "may 1" AND loss = "speier (1–3)"
What was the record at the game held on May 1st with a loss of Speier (1–3)?
<s>[INST]What was the record at the game held on May 1st with a loss of Speier (1–3)? Context: CREATE TABLE table_name_94 (record VARCHAR, date VARCHAR, loss VARCHAR)[/INST]SELECT record FROM table_name_94 WHERE date = "may 1" AND loss = "speier (1–3)"</s>
CREATE TABLE table_26611679_3 (average VARCHAR, category VARCHAR)
SELECT COUNT(average) FROM table_26611679_3 WHERE category = "Steals per game"
Name the number of average for steals per game
<s>[INST]Name the number of average for steals per game Context: CREATE TABLE table_26611679_3 (average VARCHAR, category VARCHAR)[/INST]SELECT COUNT(average) FROM table_26611679_3 WHERE category = "Steals per game"</s>
CREATE TABLE table_170097_1 (pressure_in_hpa__mbar_ VARCHAR, vacuum_range VARCHAR)
SELECT pressure_in_hpa__mbar_ FROM table_170097_1 WHERE vacuum_range = "Ultra high vacuum"
What is the pressure in ultra high vacuum?
<s>[INST]What is the pressure in ultra high vacuum? Context: CREATE TABLE table_170097_1 (pressure_in_hpa__mbar_ VARCHAR, vacuum_range VARCHAR)[/INST]SELECT pressure_in_hpa__mbar_ FROM table_170097_1 WHERE vacuum_range = "Ultra high vacuum"</s>
CREATE TABLE table_name_65 (socialist_labor_ticket VARCHAR, liberal_ticket VARCHAR)
SELECT socialist_labor_ticket FROM table_name_65 WHERE liberal_ticket = "w. averell harriman"
Who was on the Socialist Labor ticket in the race against W. Averell Harriman?
<s>[INST]Who was on the Socialist Labor ticket in the race against W. Averell Harriman? Context: CREATE TABLE table_name_65 (socialist_labor_ticket VARCHAR, liberal_ticket VARCHAR)[/INST]SELECT socialist_labor_ticket FROM table_name_65 WHERE liberal_ticket = "w. averell harriman"</s>
CREATE TABLE table_name_71 (tuesday VARCHAR, thursday VARCHAR)
SELECT tuesday FROM table_name_71 WHERE thursday = "fox sports tonight (ends 1 am next day)"
What is shown on Tuesday when Thursday shows Fox Sports Tonight (ends 1 am next day)?
<s>[INST]What is shown on Tuesday when Thursday shows Fox Sports Tonight (ends 1 am next day)? Context: CREATE TABLE table_name_71 (tuesday VARCHAR, thursday VARCHAR)[/INST]SELECT tuesday FROM table_name_71 WHERE thursday = "fox sports tonight (ends 1 am next day)"</s>
CREATE TABLE table_1373768_1 (torque VARCHAR, fuel_mileage__latest_epa_mpg___us__ VARCHAR)
SELECT torque FROM table_1373768_1 WHERE fuel_mileage__latest_epa_mpg___us__ = "22 city, 30 hwy, 25 comb"
what's the torque with fuel mileage (latest epa mpg - us ) being 22 city, 30 hwy, 25 comb
<s>[INST]what's the torque with fuel mileage (latest epa mpg - us ) being 22 city, 30 hwy, 25 comb Context: CREATE TABLE table_1373768_1 (torque VARCHAR, fuel_mileage__latest_epa_mpg___us__ VARCHAR)[/INST]SELECT torque FROM table_1373768_1 WHERE fuel_mileage__latest_epa_mpg___us__ = "22 city, 30 hwy, 25 comb"</s>
CREATE TABLE inst (country VARCHAR, instid VARCHAR); CREATE TABLE authorship (instid VARCHAR, paperid VARCHAR); CREATE TABLE papers (paperid VARCHAR)
SELECT t1.country FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.country ORDER BY COUNT(*) DESC LIMIT 1
Retrieve the country that has published the most papers.
<s>[INST]Retrieve the country that has published the most papers. Context: CREATE TABLE inst (country VARCHAR, instid VARCHAR); CREATE TABLE authorship (instid VARCHAR, paperid VARCHAR); CREATE TABLE papers (paperid VARCHAR)[/INST]SELECT t1.country FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN pap...
CREATE TABLE Restaurant (ResName VARCHAR, Rating VARCHAR)
SELECT ResName, Rating FROM Restaurant ORDER BY Rating DESC LIMIT 1
Which restaurants have highest rating? List the restaurant name and its rating.
<s>[INST]Which restaurants have highest rating? List the restaurant name and its rating. Context: CREATE TABLE Restaurant (ResName VARCHAR, Rating VARCHAR)[/INST]SELECT ResName, Rating FROM Restaurant ORDER BY Rating DESC LIMIT 1</s>
CREATE TABLE table_name_18 (team VARCHAR, game VARCHAR)
SELECT team FROM table_name_18 WHERE game = 49
Which team has a Game of 49?
<s>[INST]Which team has a Game of 49? Context: CREATE TABLE table_name_18 (team VARCHAR, game VARCHAR)[/INST]SELECT team FROM table_name_18 WHERE game = 49</s>
CREATE TABLE table_name_64 (school VARCHAR, position VARCHAR)
SELECT school FROM table_name_64 WHERE position = "c"
Which school had a player who played the C position?
<s>[INST]Which school had a player who played the C position? Context: CREATE TABLE table_name_64 (school VARCHAR, position VARCHAR)[/INST]SELECT school FROM table_name_64 WHERE position = "c"</s>
CREATE TABLE table_name_6 (score VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_6 WHERE away_team = "ipswich town"
What is the score for the away team, Ipswich Town?
<s>[INST]What is the score for the away team, Ipswich Town? Context: CREATE TABLE table_name_6 (score VARCHAR, away_team VARCHAR)[/INST]SELECT score FROM table_name_6 WHERE away_team = "ipswich town"</s>
CREATE TABLE table_name_55 (player VARCHAR, round VARCHAR)
SELECT player FROM table_name_55 WHERE round = 1
Who was the player in round 1?
<s>[INST]Who was the player in round 1? Context: CREATE TABLE table_name_55 (player VARCHAR, round VARCHAR)[/INST]SELECT player FROM table_name_55 WHERE round = 1</s>
CREATE TABLE table_name_80 (game VARCHAR, record VARCHAR)
SELECT game FROM table_name_80 WHERE record = "31-15"
What was the game when the record was 31-15?
<s>[INST]What was the game when the record was 31-15? Context: CREATE TABLE table_name_80 (game VARCHAR, record VARCHAR)[/INST]SELECT game FROM table_name_80 WHERE record = "31-15"</s>
CREATE TABLE table_1751142_2 (distance__m_ INTEGER, shuttle_time__seconds_ VARCHAR)
SELECT MIN(distance__m_) FROM table_1751142_2 WHERE shuttle_time__seconds_ = "6.86"
What is the distance (in meters) when the shuttle time is 6.86 seconds?
<s>[INST]What is the distance (in meters) when the shuttle time is 6.86 seconds? Context: CREATE TABLE table_1751142_2 (distance__m_ INTEGER, shuttle_time__seconds_ VARCHAR)[/INST]SELECT MIN(distance__m_) FROM table_1751142_2 WHERE shuttle_time__seconds_ = "6.86"</s>
CREATE TABLE table_name_62 (country VARCHAR, money__$_ VARCHAR)
SELECT country FROM table_name_62 WHERE money__$_ = "9,000"
What country is the player who earned $9,000 from?
<s>[INST]What country is the player who earned $9,000 from? Context: CREATE TABLE table_name_62 (country VARCHAR, money__$_ VARCHAR)[/INST]SELECT country FROM table_name_62 WHERE money__$_ = "9,000"</s>
CREATE TABLE table_name_72 (name VARCHAR, transfer_window VARCHAR, transfer_fee VARCHAR)
SELECT name FROM table_name_72 WHERE transfer_window = "winter" AND transfer_fee = "free"
What player had a transfer window of winter, and free as the transfer fee?
<s>[INST]What player had a transfer window of winter, and free as the transfer fee? Context: CREATE TABLE table_name_72 (name VARCHAR, transfer_window VARCHAR, transfer_fee VARCHAR)[/INST]SELECT name FROM table_name_72 WHERE transfer_window = "winter" AND transfer_fee = "free"</s>
CREATE TABLE table_name_63 (attendance INTEGER, week VARCHAR)
SELECT MIN(attendance) FROM table_name_63 WHERE week = 12
What is the attendance of week 12?
<s>[INST]What is the attendance of week 12? Context: CREATE TABLE table_name_63 (attendance INTEGER, week VARCHAR)[/INST]SELECT MIN(attendance) FROM table_name_63 WHERE week = 12</s>
CREATE TABLE table_20505342_1 (penalties VARCHAR, conversions VARCHAR)
SELECT COUNT(penalties) FROM table_20505342_1 WHERE conversions = 29
How many seasons featured 29 conversions?
<s>[INST]How many seasons featured 29 conversions? Context: CREATE TABLE table_20505342_1 (penalties VARCHAR, conversions VARCHAR)[/INST]SELECT COUNT(penalties) FROM table_20505342_1 WHERE conversions = 29</s>
CREATE TABLE table_name_84 (quantity INTEGER, ptrd_nos VARCHAR)
SELECT MAX(quantity) FROM table_name_84 WHERE ptrd_nos = "3, 15"
What is the highest Quantity for PTRD Nos. 3, 15?
<s>[INST]What is the highest Quantity for PTRD Nos. 3, 15? Context: CREATE TABLE table_name_84 (quantity INTEGER, ptrd_nos VARCHAR)[/INST]SELECT MAX(quantity) FROM table_name_84 WHERE ptrd_nos = "3, 15"</s>
CREATE TABLE table_name_99 (location VARCHAR, country VARCHAR, event VARCHAR)
SELECT location FROM table_name_99 WHERE country = "australia" AND event = "havaianas beachley classic"
What was the location of the Havaianas Beachley Classic, held in Australia?
<s>[INST]What was the location of the Havaianas Beachley Classic, held in Australia? Context: CREATE TABLE table_name_99 (location VARCHAR, country VARCHAR, event VARCHAR)[/INST]SELECT location FROM table_name_99 WHERE country = "australia" AND event = "havaianas beachley classic"</s>
CREATE TABLE table_name_37 (opponent VARCHAR, game VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_37 WHERE game < 43 AND record = "23-14-3"
Who has a Game smaller than 43, and a Record of 23-14-3?
<s>[INST]Who has a Game smaller than 43, and a Record of 23-14-3? Context: CREATE TABLE table_name_37 (opponent VARCHAR, game VARCHAR, record VARCHAR)[/INST]SELECT opponent FROM table_name_37 WHERE game < 43 AND record = "23-14-3"</s>
CREATE TABLE table_2071644_2 (flange_thickness__mm_ VARCHAR, weight__kg_m_ VARCHAR)
SELECT flange_thickness__mm_ FROM table_2071644_2 WHERE weight__kg_m_ = "19.9"
What is the flange thickness when the weight is 19.9?
<s>[INST]What is the flange thickness when the weight is 19.9? Context: CREATE TABLE table_2071644_2 (flange_thickness__mm_ VARCHAR, weight__kg_m_ VARCHAR)[/INST]SELECT flange_thickness__mm_ FROM table_2071644_2 WHERE weight__kg_m_ = "19.9"</s>
CREATE TABLE table_name_66 (_2_clubs VARCHAR, total VARCHAR)
SELECT MIN(4 AS _hoops), _2_clubs FROM table_name_66 WHERE total = 38.25
What is the lowest 4 hoops, 2 clubs of the nation with a total of 38.25?
<s>[INST]What is the lowest 4 hoops, 2 clubs of the nation with a total of 38.25? Context: CREATE TABLE table_name_66 (_2_clubs VARCHAR, total VARCHAR)[/INST]SELECT MIN(4 AS _hoops), _2_clubs FROM table_name_66 WHERE total = 38.25</s>
CREATE TABLE table_name_62 (draft INTEGER, player VARCHAR, pick VARCHAR, round VARCHAR)
SELECT MIN(draft) FROM table_name_62 WHERE pick > 197 AND round = 14 AND player = "jim farrell"
What is the lowest draft of player jim farrell, who has a pick greater than 197 and a round of 14?
<s>[INST]What is the lowest draft of player jim farrell, who has a pick greater than 197 and a round of 14? Context: CREATE TABLE table_name_62 (draft INTEGER, player VARCHAR, pick VARCHAR, round VARCHAR)[/INST]SELECT MIN(draft) FROM table_name_62 WHERE pick > 197 AND round = 14 AND player = "jim farrell"</s>
CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR); CREATE TABLE loan (cust_id VARCHAR)
SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING COUNT(*) > 1
Find the name of customers who have more than one loan.
<s>[INST]Find the name of customers who have more than one loan. Context: CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR); CREATE TABLE loan (cust_id VARCHAR)[/INST]SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING COUNT(*) > 1</s>
CREATE TABLE table_29545336_2 (us_viewers__millions_ VARCHAR, written_by VARCHAR)
SELECT us_viewers__millions_ FROM table_29545336_2 WHERE written_by = "Matt Pelfrey"
How many million U.S. viewers was written by Matt Pelfrey?
<s>[INST]How many million U.S. viewers was written by Matt Pelfrey? Context: CREATE TABLE table_29545336_2 (us_viewers__millions_ VARCHAR, written_by VARCHAR)[/INST]SELECT us_viewers__millions_ FROM table_29545336_2 WHERE written_by = "Matt Pelfrey"</s>
CREATE TABLE table_name_72 (reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR)
SELECT reserved_for___sc___st__none_ FROM table_name_72 WHERE constituency_number = "169"
What was reserved in the district that has 169 constituents?
<s>[INST]What was reserved in the district that has 169 constituents? Context: CREATE TABLE table_name_72 (reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR)[/INST]SELECT reserved_for___sc___st__none_ FROM table_name_72 WHERE constituency_number = "169"</s>
CREATE TABLE table_name_12 (class VARCHAR, rank VARCHAR)
SELECT class FROM table_name_12 WHERE rank = "89th"
Tell me the class with rank of 89th
<s>[INST]Tell me the class with rank of 89th Context: CREATE TABLE table_name_12 (class VARCHAR, rank VARCHAR)[/INST]SELECT class FROM table_name_12 WHERE rank = "89th"</s>
CREATE TABLE table_name_7 (to_par VARCHAR, total VARCHAR, country VARCHAR)
SELECT to_par FROM table_name_7 WHERE total < 148 AND country = "south africa"
What is To par, when Total is less than 148, and when Country is "South Africa"?
<s>[INST]What is To par, when Total is less than 148, and when Country is "South Africa"? Context: CREATE TABLE table_name_7 (to_par VARCHAR, total VARCHAR, country VARCHAR)[/INST]SELECT to_par FROM table_name_7 WHERE total < 148 AND country = "south africa"</s>
CREATE TABLE table_10601843_2 (opening INTEGER, tenant VARCHAR)
SELECT MIN(opening) FROM table_10601843_2 WHERE tenant = "Bursaspor"
When did the stadium where Bursaspor is the tenant open?
<s>[INST]When did the stadium where Bursaspor is the tenant open? Context: CREATE TABLE table_10601843_2 (opening INTEGER, tenant VARCHAR)[/INST]SELECT MIN(opening) FROM table_10601843_2 WHERE tenant = "Bursaspor"</s>