context stringlengths 27 489 | answer stringlengths 18 557 | question stringlengths 12 243 | text stringlengths 103 1.05k |
|---|---|---|---|
CREATE TABLE table_name_67 (win__number VARCHAR, season VARCHAR) | SELECT win__number FROM table_name_67 WHERE season = "2004-05" | How many wins were there in 2004-05? | <s>[INST]How many wins were there in 2004-05? Context: CREATE TABLE table_name_67 (win__number VARCHAR, season VARCHAR)[/INST]SELECT win__number FROM table_name_67 WHERE season = "2004-05"</s> |
CREATE TABLE table_22058547_1 (high_school VARCHAR, mascot VARCHAR) | SELECT high_school FROM table_22058547_1 WHERE mascot = "Storm" | How many high schools have storm mascots? | <s>[INST]How many high schools have storm mascots? Context: CREATE TABLE table_22058547_1 (high_school VARCHAR, mascot VARCHAR)[/INST]SELECT high_school FROM table_22058547_1 WHERE mascot = "Storm"</s> |
CREATE TABLE table_name_58 (nationality VARCHAR, time VARCHAR) | SELECT nationality FROM table_name_58 WHERE time = "9:01.70" | What Nationality has a Time of 9:01.70? | <s>[INST]What Nationality has a Time of 9:01.70? Context: CREATE TABLE table_name_58 (nationality VARCHAR, time VARCHAR)[/INST]SELECT nationality FROM table_name_58 WHERE time = "9:01.70"</s> |
CREATE TABLE table_name_13 (authors VARCHAR, novelty VARCHAR, name VARCHAR) | SELECT authors FROM table_name_13 WHERE novelty = "gen et sp nov" AND name = "lanthanocephalus" | What is Authors, when Novelty is Gen Et Sp Nov, and when Name is Lanthanocephalus? | <s>[INST]What is Authors, when Novelty is Gen Et Sp Nov, and when Name is Lanthanocephalus? Context: CREATE TABLE table_name_13 (authors VARCHAR, novelty VARCHAR, name VARCHAR)[/INST]SELECT authors FROM table_name_13 WHERE novelty = "gen et sp nov" AND name = "lanthanocephalus"</s> |
CREATE TABLE table_name_80 (gold INTEGER, total VARCHAR, silver VARCHAR) | SELECT MIN(gold) FROM table_name_80 WHERE total > 1 AND silver = 18 | How many gold medals when the total is more than 1 and 18 silver? | <s>[INST]How many gold medals when the total is more than 1 and 18 silver? Context: CREATE TABLE table_name_80 (gold INTEGER, total VARCHAR, silver VARCHAR)[/INST]SELECT MIN(gold) FROM table_name_80 WHERE total > 1 AND silver = 18</s> |
CREATE TABLE table_name_6 (date VARCHAR, venue VARCHAR) | SELECT date FROM table_name_6 WHERE venue = "windy hill" | On what date was a game played at Windy Hill? | <s>[INST]On what date was a game played at Windy Hill? Context: CREATE TABLE table_name_6 (date VARCHAR, venue VARCHAR)[/INST]SELECT date FROM table_name_6 WHERE venue = "windy hill"</s> |
CREATE TABLE table_name_90 (date VARCHAR, time VARCHAR) | SELECT date FROM table_name_90 WHERE time = "56.49" | What is Date, when Time is "56.49"? | <s>[INST]What is Date, when Time is "56.49"? Context: CREATE TABLE table_name_90 (date VARCHAR, time VARCHAR)[/INST]SELECT date FROM table_name_90 WHERE time = "56.49"</s> |
CREATE TABLE table_name_21 (shooter VARCHAR, rank_points VARCHAR, event VARCHAR, total VARCHAR) | SELECT shooter FROM table_name_21 WHERE event = "wc beijing" AND total = "16" AND rank_points = "4" | What Shooter has an Event of wc beijing, a Total of 16, and Rank points of 4? | <s>[INST]What Shooter has an Event of wc beijing, a Total of 16, and Rank points of 4? Context: CREATE TABLE table_name_21 (shooter VARCHAR, rank_points VARCHAR, event VARCHAR, total VARCHAR)[/INST]SELECT shooter FROM table_name_21 WHERE event = "wc beijing" AND total = "16" AND rank_points = "4"</s> |
CREATE TABLE table_name_24 (co_drivers VARCHAR, year VARCHAR) | SELECT co_drivers FROM table_name_24 WHERE year = 1992 | Who was the Co-Driver of the winner of 1992's race? | <s>[INST]Who was the Co-Driver of the winner of 1992's race? Context: CREATE TABLE table_name_24 (co_drivers VARCHAR, year VARCHAR)[/INST]SELECT co_drivers FROM table_name_24 WHERE year = 1992</s> |
CREATE TABLE table_name_52 (player VARCHAR, position VARCHAR, school_club_team VARCHAR) | SELECT player FROM table_name_52 WHERE position = "guard" AND school_club_team = "byu" | What Utah Jazz guard, played at BYU? | <s>[INST]What Utah Jazz guard, played at BYU? Context: CREATE TABLE table_name_52 (player VARCHAR, position VARCHAR, school_club_team VARCHAR)[/INST]SELECT player FROM table_name_52 WHERE position = "guard" AND school_club_team = "byu"</s> |
CREATE TABLE table_name_77 (director VARCHAR, original_title VARCHAR) | SELECT director FROM table_name_77 WHERE original_title = "the king's speech" | Who was the director of the king's speech? | <s>[INST]Who was the director of the king's speech? Context: CREATE TABLE table_name_77 (director VARCHAR, original_title VARCHAR)[/INST]SELECT director FROM table_name_77 WHERE original_title = "the king's speech"</s> |
CREATE TABLE table_18602462_21 (round_of_32 VARCHAR, round_of_16 VARCHAR) | SELECT round_of_32 FROM table_18602462_21 WHERE round_of_16 = "Did not advance" | When in round of 16 it was did not advance what was it in round of 32? | <s>[INST]When in round of 16 it was did not advance what was it in round of 32? Context: CREATE TABLE table_18602462_21 (round_of_32 VARCHAR, round_of_16 VARCHAR)[/INST]SELECT round_of_32 FROM table_18602462_21 WHERE round_of_16 = "Did not advance"</s> |
CREATE TABLE table_name_54 (height__m_ INTEGER, highest_mountain VARCHAR) | SELECT AVG(height__m_) FROM table_name_54 WHERE highest_mountain = "hochgall" | What is the average height with the Highest mountain of hochgall? | <s>[INST]What is the average height with the Highest mountain of hochgall? Context: CREATE TABLE table_name_54 (height__m_ INTEGER, highest_mountain VARCHAR)[/INST]SELECT AVG(height__m_) FROM table_name_54 WHERE highest_mountain = "hochgall"</s> |
CREATE TABLE table_11545282_19 (nationality VARCHAR, player VARCHAR) | SELECT nationality FROM table_11545282_19 WHERE player = "Kelly Tripucka" | What is the nationality of the player named Kelly Tripucka? | <s>[INST]What is the nationality of the player named Kelly Tripucka? Context: CREATE TABLE table_11545282_19 (nationality VARCHAR, player VARCHAR)[/INST]SELECT nationality FROM table_11545282_19 WHERE player = "Kelly Tripucka"</s> |
CREATE TABLE table_name_98 (year INTEGER, engine VARCHAR, pts VARCHAR) | SELECT MIN(year) FROM table_name_98 WHERE engine = "porsche v12" AND pts < 0 | What is the oldest model Porsche v12 that has points less than or equal to 0. | <s>[INST]What is the oldest model Porsche v12 that has points less than or equal to 0. Context: CREATE TABLE table_name_98 (year INTEGER, engine VARCHAR, pts VARCHAR)[/INST]SELECT MIN(year) FROM table_name_98 WHERE engine = "porsche v12" AND pts < 0</s> |
CREATE TABLE table_name_62 (silver INTEGER, gold VARCHAR) | SELECT SUM(silver) FROM table_name_62 WHERE gold = 20 | How many silver medals did the country that won 20 gold medals win in the 1955 Pan American Games? | <s>[INST]How many silver medals did the country that won 20 gold medals win in the 1955 Pan American Games? Context: CREATE TABLE table_name_62 (silver INTEGER, gold VARCHAR)[/INST]SELECT SUM(silver) FROM table_name_62 WHERE gold = 20</s> |
CREATE TABLE table_name_27 (crowd INTEGER, venue VARCHAR) | SELECT MAX(crowd) FROM table_name_27 WHERE venue = "windy hill" | What was the attendance at Windy Hill? | <s>[INST]What was the attendance at Windy Hill? Context: CREATE TABLE table_name_27 (crowd INTEGER, venue VARCHAR)[/INST]SELECT MAX(crowd) FROM table_name_27 WHERE venue = "windy hill"</s> |
CREATE TABLE table_name_36 (lane INTEGER, time VARCHAR, rank VARCHAR) | SELECT SUM(lane) FROM table_name_36 WHERE time > 13.59 AND rank > 8 | How many Lanes have a Time larger than 13.59, and a Rank larger than 8? | <s>[INST]How many Lanes have a Time larger than 13.59, and a Rank larger than 8? Context: CREATE TABLE table_name_36 (lane INTEGER, time VARCHAR, rank VARCHAR)[/INST]SELECT SUM(lane) FROM table_name_36 WHERE time > 13.59 AND rank > 8</s> |
CREATE TABLE table_1515346_2 (country VARCHAR, player VARCHAR) | SELECT country FROM table_1515346_2 WHERE player = "Keith Fergus" | For which country does Keith Fergus play? | <s>[INST]For which country does Keith Fergus play? Context: CREATE TABLE table_1515346_2 (country VARCHAR, player VARCHAR)[/INST]SELECT country FROM table_1515346_2 WHERE player = "Keith Fergus"</s> |
CREATE TABLE table_name_85 (college VARCHAR, player VARCHAR) | SELECT college FROM table_name_85 WHERE player = "jordan phillips" | Which college is Jordan Phillips playing for? | <s>[INST]Which college is Jordan Phillips playing for? Context: CREATE TABLE table_name_85 (college VARCHAR, player VARCHAR)[/INST]SELECT college FROM table_name_85 WHERE player = "jordan phillips"</s> |
CREATE TABLE table_name_16 (railway VARCHAR, objectnumber VARCHAR) | SELECT railway FROM table_name_16 WHERE objectnumber = "1975-7023" | What is the UK Railway with an ObjectNumber of 1975-7023? | <s>[INST]What is the UK Railway with an ObjectNumber of 1975-7023? Context: CREATE TABLE table_name_16 (railway VARCHAR, objectnumber VARCHAR)[/INST]SELECT railway FROM table_name_16 WHERE objectnumber = "1975-7023"</s> |
CREATE TABLE table_name_47 (host_city VARCHAR, season VARCHAR) | SELECT host_city FROM table_name_47 WHERE season = 2012 | What is the host city during the 2012 season? | <s>[INST]What is the host city during the 2012 season? Context: CREATE TABLE table_name_47 (host_city VARCHAR, season VARCHAR)[/INST]SELECT host_city FROM table_name_47 WHERE season = 2012</s> |
CREATE TABLE building (name VARCHAR, building_id VARCHAR); CREATE TABLE institution (name VARCHAR, building_id VARCHAR) | SELECT name FROM building WHERE NOT building_id IN (SELECT building_id FROM institution) | Show the name of buildings that do not have any institution. | <s>[INST]Show the name of buildings that do not have any institution. Context: CREATE TABLE building (name VARCHAR, building_id VARCHAR); CREATE TABLE institution (name VARCHAR, building_id VARCHAR)[/INST]SELECT name FROM building WHERE NOT building_id IN (SELECT building_id FROM institution)</s> |
CREATE TABLE table_name_70 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_70 WHERE date = "october 29, 2008" | Which score has a Date of october 29, 2008? | <s>[INST]Which score has a Date of october 29, 2008? Context: CREATE TABLE table_name_70 (score VARCHAR, date VARCHAR)[/INST]SELECT score FROM table_name_70 WHERE date = "october 29, 2008"</s> |
CREATE TABLE table_name_10 (_2007 VARCHAR, visitors INTEGER, type VARCHAR) | SELECT SUM(visitors), _2007 FROM table_name_10 WHERE type = "ski jumping hill" | How many visitors in 2007 were there for ski jumping hill? | <s>[INST]How many visitors in 2007 were there for ski jumping hill? Context: CREATE TABLE table_name_10 (_2007 VARCHAR, visitors INTEGER, type VARCHAR)[/INST]SELECT SUM(visitors), _2007 FROM table_name_10 WHERE type = "ski jumping hill"</s> |
CREATE TABLE table_19930660_3 (episode VARCHAR, rufus_guest VARCHAR) | SELECT episode FROM table_19930660_3 WHERE rufus_guest = "Chris Addison" | Which episodes have Chris Addison as Rufus's guest? | <s>[INST]Which episodes have Chris Addison as Rufus's guest? Context: CREATE TABLE table_19930660_3 (episode VARCHAR, rufus_guest VARCHAR)[/INST]SELECT episode FROM table_19930660_3 WHERE rufus_guest = "Chris Addison"</s> |
CREATE TABLE home_game (team_id VARCHAR, year VARCHAR, attendance VARCHAR); CREATE TABLE team (name VARCHAR, team_id_br VARCHAR) | SELECT T2.name FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T1.year = 1980 ORDER BY T1.attendance LIMIT 1 | Which team had the least number of attendances in home games in 1980? | <s>[INST]Which team had the least number of attendances in home games in 1980? Context: CREATE TABLE home_game (team_id VARCHAR, year VARCHAR, attendance VARCHAR); CREATE TABLE team (name VARCHAR, team_id_br VARCHAR)[/INST]SELECT T2.name FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T1.year = 1980 ORDER BY T1.attendance LIMIT 1</s> |
CREATE TABLE table_1566852_10 (date VARCHAR, cover_model VARCHAR) | SELECT date FROM table_1566852_10 WHERE cover_model = "Aubrey O'Day" | Which date contained Aubrey O'Day as the cover model? | <s>[INST]Which date contained Aubrey O'Day as the cover model? Context: CREATE TABLE table_1566852_10 (date VARCHAR, cover_model VARCHAR)[/INST]SELECT date FROM table_1566852_10 WHERE cover_model = "Aubrey O'Day"</s> |
CREATE TABLE table_name_22 (grid INTEGER, time VARCHAR, laps VARCHAR) | SELECT MAX(grid) FROM table_name_22 WHERE time = "+1:19.905" AND laps < 20 | What is the highest Grid with a time of +1:19.905, and less than 20 laps? | <s>[INST]What is the highest Grid with a time of +1:19.905, and less than 20 laps? Context: CREATE TABLE table_name_22 (grid INTEGER, time VARCHAR, laps VARCHAR)[/INST]SELECT MAX(grid) FROM table_name_22 WHERE time = "+1:19.905" AND laps < 20</s> |
CREATE TABLE perpetrator (Injured INTEGER) | SELECT AVG(Injured) FROM perpetrator | What is the average number of people injured by all perpetrators? | <s>[INST]What is the average number of people injured by all perpetrators? Context: CREATE TABLE perpetrator (Injured INTEGER)[/INST]SELECT AVG(Injured) FROM perpetrator</s> |
CREATE TABLE table_name_60 (week_2 VARCHAR, week_3 VARCHAR) | SELECT week_2 FROM table_name_60 WHERE week_3 = "brittany alyse" | What was the week 2 prior to the when Brittany Alyse was week 3? | <s>[INST]What was the week 2 prior to the when Brittany Alyse was week 3? Context: CREATE TABLE table_name_60 (week_2 VARCHAR, week_3 VARCHAR)[/INST]SELECT week_2 FROM table_name_60 WHERE week_3 = "brittany alyse"</s> |
CREATE TABLE table_name_97 (alianza_wins INTEGER, alianza_goals VARCHAR, u_goals VARCHAR) | SELECT SUM(alianza_wins) FROM table_name_97 WHERE alianza_goals = 317 AND u_goals > 296 | What is the sum of Alianza Wins, when Alianza Goals is "317, and when U Goals is greater than 296? | <s>[INST]What is the sum of Alianza Wins, when Alianza Goals is "317, and when U Goals is greater than 296? Context: CREATE TABLE table_name_97 (alianza_wins INTEGER, alianza_goals VARCHAR, u_goals VARCHAR)[/INST]SELECT SUM(alianza_wins) FROM table_name_97 WHERE alianza_goals = 317 AND u_goals > 296</s> |
CREATE TABLE table_1571238_2 (fourth_place VARCHAR, team VARCHAR) | SELECT COUNT(fourth_place) FROM table_1571238_2 WHERE team = "Colgate" | When colgate is the team how many times did they place fourth? | <s>[INST]When colgate is the team how many times did they place fourth? Context: CREATE TABLE table_1571238_2 (fourth_place VARCHAR, team VARCHAR)[/INST]SELECT COUNT(fourth_place) FROM table_1571238_2 WHERE team = "Colgate"</s> |
CREATE TABLE table_name_49 (home_team VARCHAR, date VARCHAR, tie_no VARCHAR) | SELECT home_team FROM table_name_49 WHERE date = "6 december 1986" AND tie_no = "4" | What is Home Team, when Date is "6 December 1986", and when Tie No is "4"? | <s>[INST]What is Home Team, when Date is "6 December 1986", and when Tie No is "4"? Context: CREATE TABLE table_name_49 (home_team VARCHAR, date VARCHAR, tie_no VARCHAR)[/INST]SELECT home_team FROM table_name_49 WHERE date = "6 december 1986" AND tie_no = "4"</s> |
CREATE TABLE table_name_86 (season VARCHAR, player VARCHAR) | SELECT season FROM table_name_86 WHERE player = "bob pratt" | In what season did Bob Pratt play? | <s>[INST]In what season did Bob Pratt play? Context: CREATE TABLE table_name_86 (season VARCHAR, player VARCHAR)[/INST]SELECT season FROM table_name_86 WHERE player = "bob pratt"</s> |
CREATE TABLE table_name_42 (loss VARCHAR, score VARCHAR, arena VARCHAR) | SELECT loss FROM table_name_42 WHERE score = "4β3" AND arena = "nationwide arena" | What is the Loss of the game at Nationwide Arena with a Score of 4β3? | <s>[INST]What is the Loss of the game at Nationwide Arena with a Score of 4β3? Context: CREATE TABLE table_name_42 (loss VARCHAR, score VARCHAR, arena VARCHAR)[/INST]SELECT loss FROM table_name_42 WHERE score = "4β3" AND arena = "nationwide arena"</s> |
CREATE TABLE table_name_59 (rank VARCHAR, gross VARCHAR) | SELECT COUNT(rank) FROM table_name_59 WHERE gross = "$96,773,200" | WHAT IS THE RANK WITH A GROSS OF $96,773,200? | <s>[INST]WHAT IS THE RANK WITH A GROSS OF $96,773,200? Context: CREATE TABLE table_name_59 (rank VARCHAR, gross VARCHAR)[/INST]SELECT COUNT(rank) FROM table_name_59 WHERE gross = "$96,773,200"</s> |
CREATE TABLE table_name_88 (team_2 VARCHAR) | SELECT 1 AS st_leg FROM table_name_88 WHERE team_2 = "concepto egile" | What was the 1st leg for Team 2 Concepto Egile? | <s>[INST]What was the 1st leg for Team 2 Concepto Egile? Context: CREATE TABLE table_name_88 (team_2 VARCHAR)[/INST]SELECT 1 AS st_leg FROM table_name_88 WHERE team_2 = "concepto egile"</s> |
CREATE TABLE table_name_82 (result VARCHAR, venue VARCHAR) | SELECT result FROM table_name_82 WHERE venue = "lord's" | Name the result for venue of lord's | <s>[INST]Name the result for venue of lord's Context: CREATE TABLE table_name_82 (result VARCHAR, venue VARCHAR)[/INST]SELECT result FROM table_name_82 WHERE venue = "lord's"</s> |
CREATE TABLE table_name_74 (avg_g VARCHAR, season VARCHAR) | SELECT avg_g FROM table_name_74 WHERE season = "2009" | What was the Av/G of the 2009 season? | <s>[INST]What was the Av/G of the 2009 season? Context: CREATE TABLE table_name_74 (avg_g VARCHAR, season VARCHAR)[/INST]SELECT avg_g FROM table_name_74 WHERE season = "2009"</s> |
CREATE TABLE TV_series (Episode VARCHAR, Rating VARCHAR) | SELECT Episode, Rating FROM TV_series ORDER BY Rating DESC LIMIT 3 | List top 3 highest Rating TV series. List the TV series's Episode and Rating. | <s>[INST]List top 3 highest Rating TV series. List the TV series's Episode and Rating. Context: CREATE TABLE TV_series (Episode VARCHAR, Rating VARCHAR)[/INST]SELECT Episode, Rating FROM TV_series ORDER BY Rating DESC LIMIT 3</s> |
CREATE TABLE table_24912693_4 (blocks VARCHAR, minutes VARCHAR) | SELECT blocks FROM table_24912693_4 WHERE minutes = 893 | How many blocks does the player who played 893 minutes have? | <s>[INST]How many blocks does the player who played 893 minutes have? Context: CREATE TABLE table_24912693_4 (blocks VARCHAR, minutes VARCHAR)[/INST]SELECT blocks FROM table_24912693_4 WHERE minutes = 893</s> |
CREATE TABLE table_15059783_1 (combination_classification VARCHAR, points_classification VARCHAR, winner VARCHAR) | SELECT COUNT(combination_classification) FROM table_15059783_1 WHERE points_classification = "Alessandro Petacchi" AND winner = "Erik Zabel" | How many combination classifications have the winner as Erik Zabel and a points classification as Alessandro Petacchi | <s>[INST]How many combination classifications have the winner as Erik Zabel and a points classification as Alessandro Petacchi Context: CREATE TABLE table_15059783_1 (combination_classification VARCHAR, points_classification VARCHAR, winner VARCHAR)[/INST]SELECT COUNT(combination_classification) FROM table_15059783_1 WHERE points_classification = "Alessandro Petacchi" AND winner = "Erik Zabel"</s> |
CREATE TABLE table_name_55 (position VARCHAR, school VARCHAR) | SELECT position FROM table_name_55 WHERE school = "dartmouth ohio state" | What is the position of the player from Dartmouth Ohio State? | <s>[INST]What is the position of the player from Dartmouth Ohio State? Context: CREATE TABLE table_name_55 (position VARCHAR, school VARCHAR)[/INST]SELECT position FROM table_name_55 WHERE school = "dartmouth ohio state"</s> |
CREATE TABLE table_2071644_1 (moment_of_inertia_in_torsion__j___cm_4__ VARCHAR, beam_height__mm_ VARCHAR) | SELECT COUNT(moment_of_inertia_in_torsion__j___cm_4__) FROM table_2071644_1 WHERE beam_height__mm_ = 120 | What is the moment of intertia in torsion (j) Cm4) for the beam height (mm) 120??= | <s>[INST]What is the moment of intertia in torsion (j) Cm4) for the beam height (mm) 120??= Context: CREATE TABLE table_2071644_1 (moment_of_inertia_in_torsion__j___cm_4__ VARCHAR, beam_height__mm_ VARCHAR)[/INST]SELECT COUNT(moment_of_inertia_in_torsion__j___cm_4__) FROM table_2071644_1 WHERE beam_height__mm_ = 120</s> |
CREATE TABLE table_26336739_1 (elected INTEGER, incumbent VARCHAR) | SELECT MAX(elected) FROM table_26336739_1 WHERE incumbent = "Saxby Chambliss" | What date was the district incumbent Saxby Chambliss elected? | <s>[INST]What date was the district incumbent Saxby Chambliss elected? Context: CREATE TABLE table_26336739_1 (elected INTEGER, incumbent VARCHAR)[/INST]SELECT MAX(elected) FROM table_26336739_1 WHERE incumbent = "Saxby Chambliss"</s> |
CREATE TABLE table_name_98 (district VARCHAR, first_elected VARCHAR, party VARCHAR) | SELECT district FROM table_name_98 WHERE first_elected = 2000 AND party = "republican" | What district was a republican first elected in 2000? | <s>[INST]What district was a republican first elected in 2000? Context: CREATE TABLE table_name_98 (district VARCHAR, first_elected VARCHAR, party VARCHAR)[/INST]SELECT district FROM table_name_98 WHERE first_elected = 2000 AND party = "republican"</s> |
CREATE TABLE table_27892955_1 (title VARCHAR, us_viewers__million_ VARCHAR) | SELECT title FROM table_27892955_1 WHERE us_viewers__million_ = "2.02" | What is the name of the episode that had 2.02 million u.s. viewers? | <s>[INST]What is the name of the episode that had 2.02 million u.s. viewers? Context: CREATE TABLE table_27892955_1 (title VARCHAR, us_viewers__million_ VARCHAR)[/INST]SELECT title FROM table_27892955_1 WHERE us_viewers__million_ = "2.02"</s> |
CREATE TABLE table_name_69 (week INTEGER, result VARCHAR) | SELECT MAX(week) FROM table_name_69 WHERE result = "t 35-35" | What is the largest week that has t 35-35 as the result? | <s>[INST]What is the largest week that has t 35-35 as the result? Context: CREATE TABLE table_name_69 (week INTEGER, result VARCHAR)[/INST]SELECT MAX(week) FROM table_name_69 WHERE result = "t 35-35"</s> |
CREATE TABLE table_name_95 (location VARCHAR, date VARCHAR) | SELECT location FROM table_name_95 WHERE date = "may 21" | Which location has a date of may 21? | <s>[INST]Which location has a date of may 21? Context: CREATE TABLE table_name_95 (location VARCHAR, date VARCHAR)[/INST]SELECT location FROM table_name_95 WHERE date = "may 21"</s> |
CREATE TABLE table_22368322_2 (_β¬_million VARCHAR, tier_1_capital VARCHAR, institution VARCHAR) | SELECT COUNT(tier_1_capital), _β¬_million FROM table_22368322_2 WHERE institution = "Allied Irish Banks" | Name the total number of tier 1 capital for allied irish banks | <s>[INST]Name the total number of tier 1 capital for allied irish banks Context: CREATE TABLE table_22368322_2 (_β¬_million VARCHAR, tier_1_capital VARCHAR, institution VARCHAR)[/INST]SELECT COUNT(tier_1_capital), _β¬_million FROM table_22368322_2 WHERE institution = "Allied Irish Banks"</s> |
CREATE TABLE table_18821196_1 (status VARCHAR, weekly_schedule VARCHAR) | SELECT status FROM table_18821196_1 WHERE weekly_schedule = "Monday to Thursday @ 11:00 pm" | What is every status with a weekly schedule of Monday to Thursday @ 11:00 pm? | <s>[INST]What is every status with a weekly schedule of Monday to Thursday @ 11:00 pm? Context: CREATE TABLE table_18821196_1 (status VARCHAR, weekly_schedule VARCHAR)[/INST]SELECT status FROM table_18821196_1 WHERE weekly_schedule = "Monday to Thursday @ 11:00 pm"</s> |
CREATE TABLE table_name_9 (location VARCHAR, date VARCHAR, circumstances VARCHAR) | SELECT location FROM table_name_9 WHERE date = "2006-04-07" AND circumstances = "direct fire" | Name the location on 2006-04-07 for direct fire | <s>[INST]Name the location on 2006-04-07 for direct fire Context: CREATE TABLE table_name_9 (location VARCHAR, date VARCHAR, circumstances VARCHAR)[/INST]SELECT location FROM table_name_9 WHERE date = "2006-04-07" AND circumstances = "direct fire"</s> |
CREATE TABLE table_23293785_2 (race_1_pts_ VARCHAR, race_total_pts_ VARCHAR) | SELECT race_1_pts_ FROM table_23293785_2 WHERE race_total_pts_ = 180 | What is every points value for race 1 if the total race points is 180? | <s>[INST]What is every points value for race 1 if the total race points is 180? Context: CREATE TABLE table_23293785_2 (race_1_pts_ VARCHAR, race_total_pts_ VARCHAR)[/INST]SELECT race_1_pts_ FROM table_23293785_2 WHERE race_total_pts_ = 180</s> |
CREATE TABLE table_name_14 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_14 WHERE record = "0-2" | Which Date has a Record of 0-2? | <s>[INST]Which Date has a Record of 0-2? Context: CREATE TABLE table_name_14 (date VARCHAR, record VARCHAR)[/INST]SELECT date FROM table_name_14 WHERE record = "0-2"</s> |
CREATE TABLE table_28723146_2 (category_wise VARCHAR, multi_lane VARCHAR) | SELECT category_wise FROM table_28723146_2 WHERE multi_lane = 677 | What is every category wise when the multi lane is 677? | <s>[INST]What is every category wise when the multi lane is 677? Context: CREATE TABLE table_28723146_2 (category_wise VARCHAR, multi_lane VARCHAR)[/INST]SELECT category_wise FROM table_28723146_2 WHERE multi_lane = 677</s> |
CREATE TABLE table_name_77 (bolton_wanderers_career VARCHAR, apps VARCHAR) | SELECT bolton_wanderers_career FROM table_name_77 WHERE apps = 293 | Which Bolton Wanderers career has 293 Apps? | <s>[INST]Which Bolton Wanderers career has 293 Apps? Context: CREATE TABLE table_name_77 (bolton_wanderers_career VARCHAR, apps VARCHAR)[/INST]SELECT bolton_wanderers_career FROM table_name_77 WHERE apps = 293</s> |
CREATE TABLE table_name_7 (visitor VARCHAR, date VARCHAR) | SELECT visitor FROM table_name_7 WHERE date = "april 2" | Who was the visitor on April 2? | <s>[INST]Who was the visitor on April 2? Context: CREATE TABLE table_name_7 (visitor VARCHAR, date VARCHAR)[/INST]SELECT visitor FROM table_name_7 WHERE date = "april 2"</s> |
CREATE TABLE table_2846320_4 (last_meeting VARCHAR, name_of_rivalry VARCHAR) | SELECT last_meeting FROM table_2846320_4 WHERE name_of_rivalry = "Iron Bowl" | when was the ending time where the enemy met in the iron bowl | <s>[INST]when was the ending time where the enemy met in the iron bowl Context: CREATE TABLE table_2846320_4 (last_meeting VARCHAR, name_of_rivalry VARCHAR)[/INST]SELECT last_meeting FROM table_2846320_4 WHERE name_of_rivalry = "Iron Bowl"</s> |
CREATE TABLE table_name_84 (pct VARCHAR, total_games INTEGER) | SELECT pct FROM table_name_84 WHERE total_games < 944 | What is the PCT when the total number of games is less than 944? | <s>[INST]What is the PCT when the total number of games is less than 944? Context: CREATE TABLE table_name_84 (pct VARCHAR, total_games INTEGER)[/INST]SELECT pct FROM table_name_84 WHERE total_games < 944</s> |
CREATE TABLE table_name_39 (constructor VARCHAR, time_retired VARCHAR, grid VARCHAR) | SELECT constructor FROM table_name_39 WHERE time_retired = "brakes" AND grid < 14 | I want the constructor for brakes and grid less than 14 | <s>[INST]I want the constructor for brakes and grid less than 14 Context: CREATE TABLE table_name_39 (constructor VARCHAR, time_retired VARCHAR, grid VARCHAR)[/INST]SELECT constructor FROM table_name_39 WHERE time_retired = "brakes" AND grid < 14</s> |
CREATE TABLE table_name_67 (whenbuilt VARCHAR, name VARCHAR, builder VARCHAR, withdrawn VARCHAR) | SELECT whenbuilt FROM table_name_67 WHERE builder = "brighton" AND withdrawn = "september 1964" AND name = "blandford forum" | What is the whenbuilt of the Brighton built Blandford Forum with a withdrawn of september 1964? | <s>[INST]What is the whenbuilt of the Brighton built Blandford Forum with a withdrawn of september 1964? Context: CREATE TABLE table_name_67 (whenbuilt VARCHAR, name VARCHAR, builder VARCHAR, withdrawn VARCHAR)[/INST]SELECT whenbuilt FROM table_name_67 WHERE builder = "brighton" AND withdrawn = "september 1964" AND name = "blandford forum"</s> |
CREATE TABLE table_name_4 (country_name VARCHAR, numeric_code VARCHAR, latin_2_letter_code VARCHAR) | SELECT country_name FROM table_name_4 WHERE numeric_code < 580 AND latin_2_letter_code = "dk" | What is the country name with a numeric code less than 580 and a dk Latin 2-letter code? | <s>[INST]What is the country name with a numeric code less than 580 and a dk Latin 2-letter code? Context: CREATE TABLE table_name_4 (country_name VARCHAR, numeric_code VARCHAR, latin_2_letter_code VARCHAR)[/INST]SELECT country_name FROM table_name_4 WHERE numeric_code < 580 AND latin_2_letter_code = "dk"</s> |
CREATE TABLE table_name_84 (lost VARCHAR, tries_for VARCHAR) | SELECT lost FROM table_name_84 WHERE tries_for = "103" | How many losses were there with 103 tries for? | <s>[INST]How many losses were there with 103 tries for? Context: CREATE TABLE table_name_84 (lost VARCHAR, tries_for VARCHAR)[/INST]SELECT lost FROM table_name_84 WHERE tries_for = "103"</s> |
CREATE TABLE table_name_85 (points INTEGER, team VARCHAR, draw VARCHAR) | SELECT MAX(points) FROM table_name_85 WHERE team = "adet" AND draw < 6 | What is the Highest Points for Team Adet where the Draw is less than 6? | <s>[INST]What is the Highest Points for Team Adet where the Draw is less than 6? Context: CREATE TABLE table_name_85 (points INTEGER, team VARCHAR, draw VARCHAR)[/INST]SELECT MAX(points) FROM table_name_85 WHERE team = "adet" AND draw < 6</s> |
CREATE TABLE table_name_8 (screen_size VARCHAR, bluetooth VARCHAR, model VARCHAR) | SELECT screen_size FROM table_name_8 WHERE bluetooth = "no" AND model = "s45 (australia only)" | What is the screen size of the s45 (Australia only) Model with no bluetooth? | <s>[INST]What is the screen size of the s45 (Australia only) Model with no bluetooth? Context: CREATE TABLE table_name_8 (screen_size VARCHAR, bluetooth VARCHAR, model VARCHAR)[/INST]SELECT screen_size FROM table_name_8 WHERE bluetooth = "no" AND model = "s45 (australia only)"</s> |
CREATE TABLE Manufacturers (name VARCHAR, code VARCHAR); CREATE TABLE products (Price INTEGER, manufacturer VARCHAR) | SELECT AVG(T1.Price), T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name | Select the average price of each manufacturer's products, showing the manufacturer's name. | <s>[INST]Select the average price of each manufacturer's products, showing the manufacturer's name. Context: CREATE TABLE Manufacturers (name VARCHAR, code VARCHAR); CREATE TABLE products (Price INTEGER, manufacturer VARCHAR)[/INST]SELECT AVG(T1.Price), T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name</s> |
CREATE TABLE table_name_77 (bronze_medals INTEGER, gold_medals INTEGER) | SELECT MAX(bronze_medals) FROM table_name_77 WHERE gold_medals < 0 | What is the highest number of bronze medals received by an ensemble who received fewer than 0 gold medals? | <s>[INST]What is the highest number of bronze medals received by an ensemble who received fewer than 0 gold medals? Context: CREATE TABLE table_name_77 (bronze_medals INTEGER, gold_medals INTEGER)[/INST]SELECT MAX(bronze_medals) FROM table_name_77 WHERE gold_medals < 0</s> |
CREATE TABLE table_name_34 (season VARCHAR, location VARCHAR) | SELECT COUNT(season) FROM table_name_34 WHERE location = "aspen, usa" | How many seasons took place in aspen, usa? | <s>[INST]How many seasons took place in aspen, usa? Context: CREATE TABLE table_name_34 (season VARCHAR, location VARCHAR)[/INST]SELECT COUNT(season) FROM table_name_34 WHERE location = "aspen, usa"</s> |
CREATE TABLE table_name_94 (number_of_electorates__2009_ VARCHAR, district VARCHAR, constituency_number VARCHAR) | SELECT COUNT(number_of_electorates__2009_) FROM table_name_94 WHERE district = "sheopur" AND constituency_number = "1" | Which Number of electorates (2009) has a District of sheopur, and a Constituency number of 1? | <s>[INST]Which Number of electorates (2009) has a District of sheopur, and a Constituency number of 1? Context: CREATE TABLE table_name_94 (number_of_electorates__2009_ VARCHAR, district VARCHAR, constituency_number VARCHAR)[/INST]SELECT COUNT(number_of_electorates__2009_) FROM table_name_94 WHERE district = "sheopur" AND constituency_number = "1"</s> |
CREATE TABLE table_17190012_7 (high_rebounds VARCHAR, score VARCHAR) | SELECT high_rebounds FROM table_17190012_7 WHERE score = "W 105β88 (OT)" | who did highest rebounds in the game with score w 105β88 (ot) | <s>[INST]who did highest rebounds in the game with score w 105β88 (ot) Context: CREATE TABLE table_17190012_7 (high_rebounds VARCHAR, score VARCHAR)[/INST]SELECT high_rebounds FROM table_17190012_7 WHERE score = "W 105β88 (OT)"</s> |
CREATE TABLE table_name_16 (grid INTEGER, laps VARCHAR, constructor VARCHAR, driver VARCHAR) | SELECT AVG(grid) FROM table_name_16 WHERE constructor = "brm" AND driver = "tony maggs" AND laps > 102 | What is the average grid that has a Constructor of brm, tony maggs, and a Laps larger than 102? | <s>[INST]What is the average grid that has a Constructor of brm, tony maggs, and a Laps larger than 102? Context: CREATE TABLE table_name_16 (grid INTEGER, laps VARCHAR, constructor VARCHAR, driver VARCHAR)[/INST]SELECT AVG(grid) FROM table_name_16 WHERE constructor = "brm" AND driver = "tony maggs" AND laps > 102</s> |
CREATE TABLE table_1231316_7 (wind__m_s_ VARCHAR, date VARCHAR) | SELECT wind__m_s_ FROM table_1231316_7 WHERE date = "21 June 1976" | What was the wind on 21 june 1976? | <s>[INST]What was the wind on 21 june 1976? Context: CREATE TABLE table_1231316_7 (wind__m_s_ VARCHAR, date VARCHAR)[/INST]SELECT wind__m_s_ FROM table_1231316_7 WHERE date = "21 June 1976"</s> |
CREATE TABLE table_name_83 (rec INTEGER, yards VARCHAR, avg VARCHAR) | SELECT MIN(rec) FROM table_name_83 WHERE yards > 647 AND avg < 14 | How many receptions for players with over 647 yards and an under 14 yard average? | <s>[INST]How many receptions for players with over 647 yards and an under 14 yard average? Context: CREATE TABLE table_name_83 (rec INTEGER, yards VARCHAR, avg VARCHAR)[/INST]SELECT MIN(rec) FROM table_name_83 WHERE yards > 647 AND avg < 14</s> |
CREATE TABLE table_name_29 (opponent VARCHAR, game VARCHAR) | SELECT opponent FROM table_name_29 WHERE game = 5 | Who was the opponent for game 5? | <s>[INST]Who was the opponent for game 5? Context: CREATE TABLE table_name_29 (opponent VARCHAR, game VARCHAR)[/INST]SELECT opponent FROM table_name_29 WHERE game = 5</s> |
CREATE TABLE table_name_78 (player VARCHAR, round VARCHAR, pick VARCHAR) | SELECT player FROM table_name_78 WHERE round < 6 AND pick = 69 | What is Player, when Round is less than 6, and when Pick is "69"? | <s>[INST]What is Player, when Round is less than 6, and when Pick is "69"? Context: CREATE TABLE table_name_78 (player VARCHAR, round VARCHAR, pick VARCHAR)[/INST]SELECT player FROM table_name_78 WHERE round < 6 AND pick = 69</s> |
CREATE TABLE table_name_18 (name VARCHAR, last_performance VARCHAR) | SELECT name FROM table_name_18 WHERE last_performance = "3 july 2011" | who had a last performance of 3 july 2011? | <s>[INST]who had a last performance of 3 july 2011? Context: CREATE TABLE table_name_18 (name VARCHAR, last_performance VARCHAR)[/INST]SELECT name FROM table_name_18 WHERE last_performance = "3 july 2011"</s> |
CREATE TABLE table_name_18 (sponsor VARCHAR, driver VARCHAR) | SELECT sponsor FROM table_name_18 WHERE driver = "neil bonnett" | Who sponsors driver neil bonnett? | <s>[INST]Who sponsors driver neil bonnett? Context: CREATE TABLE table_name_18 (sponsor VARCHAR, driver VARCHAR)[/INST]SELECT sponsor FROM table_name_18 WHERE driver = "neil bonnett"</s> |
CREATE TABLE table_20032301_3 (tom_horner__i_ VARCHAR, sampling_error VARCHAR) | SELECT tom_horner__i_ FROM table_20032301_3 WHERE sampling_error = "2.5%" | What percentage voted for Tom Horner according to the poll source with sampling error of 2.5%? | <s>[INST]What percentage voted for Tom Horner according to the poll source with sampling error of 2.5%? Context: CREATE TABLE table_20032301_3 (tom_horner__i_ VARCHAR, sampling_error VARCHAR)[/INST]SELECT tom_horner__i_ FROM table_20032301_3 WHERE sampling_error = "2.5%"</s> |
CREATE TABLE campuses (campus VARCHAR, YEAR VARCHAR) | SELECT campus FROM campuses WHERE YEAR = 1958 | Find all the campuses opened in 1958. | <s>[INST]Find all the campuses opened in 1958. Context: CREATE TABLE campuses (campus VARCHAR, YEAR VARCHAR)[/INST]SELECT campus FROM campuses WHERE YEAR = 1958</s> |
CREATE TABLE table_2402864_1 (playoffs VARCHAR, open_cup VARCHAR, year VARCHAR) | SELECT playoffs FROM table_2402864_1 WHERE open_cup = "Did not qualify" AND year = 1998 | What was the playoff result where the league did not qualify in the Open Cup in 1998? | <s>[INST]What was the playoff result where the league did not qualify in the Open Cup in 1998? Context: CREATE TABLE table_2402864_1 (playoffs VARCHAR, open_cup VARCHAR, year VARCHAR)[/INST]SELECT playoffs FROM table_2402864_1 WHERE open_cup = "Did not qualify" AND year = 1998</s> |
CREATE TABLE table_22670216_1 (rnd VARCHAR, track VARCHAR, pole_position VARCHAR) | SELECT COUNT(rnd) FROM table_22670216_1 WHERE track = "Ontario Motor Speedway" AND pole_position = "Johnny Rutherford" | If the pole position is Johnny Rutherford and the track is the Ontario Motor Speedway, what is the RND total number? | <s>[INST]If the pole position is Johnny Rutherford and the track is the Ontario Motor Speedway, what is the RND total number? Context: CREATE TABLE table_22670216_1 (rnd VARCHAR, track VARCHAR, pole_position VARCHAR)[/INST]SELECT COUNT(rnd) FROM table_22670216_1 WHERE track = "Ontario Motor Speedway" AND pole_position = "Johnny Rutherford"</s> |
CREATE TABLE table_name_70 (points VARCHAR, scored VARCHAR, conceded VARCHAR, position VARCHAR, losses VARCHAR) | SELECT COUNT(points) FROM table_name_70 WHERE position > 4 AND losses > 5 AND conceded = 15 AND scored > 11 | How many Points have a Position larger than 4, and Losses larger than 5, and a Conceded of 15, and a Scored larger than 11? | <s>[INST]How many Points have a Position larger than 4, and Losses larger than 5, and a Conceded of 15, and a Scored larger than 11? Context: CREATE TABLE table_name_70 (points VARCHAR, scored VARCHAR, conceded VARCHAR, position VARCHAR, losses VARCHAR)[/INST]SELECT COUNT(points) FROM table_name_70 WHERE position > 4 AND losses > 5 AND conceded = 15 AND scored > 11</s> |
CREATE TABLE table_1971074_1 (joined VARCHAR, location VARCHAR) | SELECT joined FROM table_1971074_1 WHERE location = "Logan Township, Pennsylvania" | When did the school from Logan Township, Pennsylvania join the Conference? | <s>[INST]When did the school from Logan Township, Pennsylvania join the Conference? Context: CREATE TABLE table_1971074_1 (joined VARCHAR, location VARCHAR)[/INST]SELECT joined FROM table_1971074_1 WHERE location = "Logan Township, Pennsylvania"</s> |
CREATE TABLE table_name_87 (driver VARCHAR, grid VARCHAR, time_retired VARCHAR) | SELECT driver FROM table_name_87 WHERE grid < 12 AND time_retired = "+ 3 laps" | What driver has a grid under 12 with a Time/Retired of + 3 laps? | <s>[INST]What driver has a grid under 12 with a Time/Retired of + 3 laps? Context: CREATE TABLE table_name_87 (driver VARCHAR, grid VARCHAR, time_retired VARCHAR)[/INST]SELECT driver FROM table_name_87 WHERE grid < 12 AND time_retired = "+ 3 laps"</s> |
CREATE TABLE table_name_57 (result VARCHAR, date VARCHAR) | SELECT result FROM table_name_57 WHERE date = "2000-05-23" | What is Result, when Date is "2000-05-23"? | <s>[INST]What is Result, when Date is "2000-05-23"? Context: CREATE TABLE table_name_57 (result VARCHAR, date VARCHAR)[/INST]SELECT result FROM table_name_57 WHERE date = "2000-05-23"</s> |
CREATE TABLE table_name_69 (ihsaa_class VARCHAR, school VARCHAR) | SELECT ihsaa_class FROM table_name_69 WHERE school = "muncie burris" | What is the IHSAA class for Muncie Burris? | <s>[INST]What is the IHSAA class for Muncie Burris? Context: CREATE TABLE table_name_69 (ihsaa_class VARCHAR, school VARCHAR)[/INST]SELECT ihsaa_class FROM table_name_69 WHERE school = "muncie burris"</s> |
CREATE TABLE table_1024710_2 (province VARCHAR, electorate VARCHAR) | SELECT province FROM table_1024710_2 WHERE electorate = "Bay of Islands" | Which province is bay of islands in | <s>[INST]Which province is bay of islands in Context: CREATE TABLE table_1024710_2 (province VARCHAR, electorate VARCHAR)[/INST]SELECT province FROM table_1024710_2 WHERE electorate = "Bay of Islands"</s> |
CREATE TABLE table_1604579_2 (country VARCHAR) | SELECT 2012 AS _democracy_index FROM table_1604579_2 WHERE country = "Kyrgyzstan" | What type of government does Kyrgyzstan have? | <s>[INST]What type of government does Kyrgyzstan have? Context: CREATE TABLE table_1604579_2 (country VARCHAR)[/INST]SELECT 2012 AS _democracy_index FROM table_1604579_2 WHERE country = "Kyrgyzstan"</s> |
CREATE TABLE table_21584646_10 (runner_up VARCHAR, champion VARCHAR) | SELECT runner_up FROM table_21584646_10 WHERE champion = "John McEnroe 6β2, 6β3" | Who is the runner up for the champion of john mcenroe 6β2, 6β3? | <s>[INST]Who is the runner up for the champion of john mcenroe 6β2, 6β3? Context: CREATE TABLE table_21584646_10 (runner_up VARCHAR, champion VARCHAR)[/INST]SELECT runner_up FROM table_21584646_10 WHERE champion = "John McEnroe 6β2, 6β3"</s> |
CREATE TABLE table_name_50 (losses INTEGER, year VARCHAR, result VARCHAR, wins VARCHAR) | SELECT SUM(losses) FROM table_name_50 WHERE result = "runner-up" AND wins = 1 AND year < 2006 | What is the total of Losses with a Result of runner-up, Wins of 1, and a Year smaller than 2006? | <s>[INST]What is the total of Losses with a Result of runner-up, Wins of 1, and a Year smaller than 2006? Context: CREATE TABLE table_name_50 (losses INTEGER, year VARCHAR, result VARCHAR, wins VARCHAR)[/INST]SELECT SUM(losses) FROM table_name_50 WHERE result = "runner-up" AND wins = 1 AND year < 2006</s> |
CREATE TABLE table_name_3 (equestrian_time__pts_ VARCHAR, athlete VARCHAR) | SELECT equestrian_time__pts_ FROM table_name_3 WHERE athlete = "omnia fakhry ( egy )" | Which Equestrian Time (pts) has an Athlete of omnia fakhry ( egy )? | <s>[INST]Which Equestrian Time (pts) has an Athlete of omnia fakhry ( egy )? Context: CREATE TABLE table_name_3 (equestrian_time__pts_ VARCHAR, athlete VARCHAR)[/INST]SELECT equestrian_time__pts_ FROM table_name_3 WHERE athlete = "omnia fakhry ( egy )"</s> |
CREATE TABLE table_1341453_40 (incumbent VARCHAR, first_elected VARCHAR) | SELECT COUNT(incumbent) FROM table_1341453_40 WHERE first_elected = "1984" | How many incumbents were first elected in 1984? | <s>[INST]How many incumbents were first elected in 1984? Context: CREATE TABLE table_1341453_40 (incumbent VARCHAR, first_elected VARCHAR)[/INST]SELECT COUNT(incumbent) FROM table_1341453_40 WHERE first_elected = "1984"</s> |
CREATE TABLE table_name_14 (year_born INTEGER, current_club VARCHAR, height VARCHAR) | SELECT SUM(year_born) FROM table_name_14 WHERE current_club = "olimpija ljubljana" AND height < 2.04 | Name the sum of year for olimpija ljubljana with height less than 2.04 | <s>[INST]Name the sum of year for olimpija ljubljana with height less than 2.04 Context: CREATE TABLE table_name_14 (year_born INTEGER, current_club VARCHAR, height VARCHAR)[/INST]SELECT SUM(year_born) FROM table_name_14 WHERE current_club = "olimpija ljubljana" AND height < 2.04</s> |
CREATE TABLE table_name_80 (team VARCHAR, points VARCHAR) | SELECT team FROM table_name_80 WHERE points = "15" | Which Team has Points of 15? | <s>[INST]Which Team has Points of 15? Context: CREATE TABLE table_name_80 (team VARCHAR, points VARCHAR)[/INST]SELECT team FROM table_name_80 WHERE points = "15"</s> |
CREATE TABLE table_name_65 (year_s__won VARCHAR, finish VARCHAR, player VARCHAR) | SELECT year_s__won FROM table_name_65 WHERE finish = "t31" AND player = "nick price" | What is Year(s) Won, when Finish is "T31", and when Player is "Nick Price"? | <s>[INST]What is Year(s) Won, when Finish is "T31", and when Player is "Nick Price"? Context: CREATE TABLE table_name_65 (year_s__won VARCHAR, finish VARCHAR, player VARCHAR)[/INST]SELECT year_s__won FROM table_name_65 WHERE finish = "t31" AND player = "nick price"</s> |
CREATE TABLE table_name_96 (name VARCHAR, years VARCHAR) | SELECT name FROM table_name_96 WHERE years = "1974" | What is the name of the head coach of 1974? | <s>[INST]What is the name of the head coach of 1974? Context: CREATE TABLE table_name_96 (name VARCHAR, years VARCHAR)[/INST]SELECT name FROM table_name_96 WHERE years = "1974"</s> |
CREATE TABLE candidate (people_id VARCHAR, unsure_rate INTEGER); CREATE TABLE people (sex VARCHAR, people_id VARCHAR) | SELECT t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id GROUP BY t1.sex ORDER BY AVG(t2.unsure_rate) DESC LIMIT 1 | which gender got the highest average uncertain ratio. | <s>[INST]which gender got the highest average uncertain ratio. Context: CREATE TABLE candidate (people_id VARCHAR, unsure_rate INTEGER); CREATE TABLE people (sex VARCHAR, people_id VARCHAR)[/INST]SELECT t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id GROUP BY t1.sex ORDER BY AVG(t2.unsure_rate) DESC LIMIT 1</s> |
CREATE TABLE table_name_76 (venue VARCHAR, away_team VARCHAR) | SELECT venue FROM table_name_76 WHERE away_team = "st kilda" | Name the venue where St Kilda was the opposing away team | <s>[INST]Name the venue where St Kilda was the opposing away team Context: CREATE TABLE table_name_76 (venue VARCHAR, away_team VARCHAR)[/INST]SELECT venue FROM table_name_76 WHERE away_team = "st kilda"</s> |
CREATE TABLE table_name_88 (l1_cache VARCHAR, model_number VARCHAR) | SELECT l1_cache FROM table_name_88 WHERE model_number = "x5-133 ady" | What is the L1 Cache, when the Model Number is X5-133 ADY? | <s>[INST]What is the L1 Cache, when the Model Number is X5-133 ADY? Context: CREATE TABLE table_name_88 (l1_cache VARCHAR, model_number VARCHAR)[/INST]SELECT l1_cache FROM table_name_88 WHERE model_number = "x5-133 ady"</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.