context
stringlengths
27
489
answer
stringlengths
18
557
question
stringlengths
12
243
text
stringlengths
103
1.05k
CREATE TABLE table_name_28 (attendance VARCHAR, date VARCHAR)
SELECT COUNT(attendance) FROM table_name_28 WHERE date = "april 14"
How many attended the game on april 14?
<s>[INST]How many attended the game on april 14? Context: CREATE TABLE table_name_28 (attendance VARCHAR, date VARCHAR)[/INST]SELECT COUNT(attendance) FROM table_name_28 WHERE date = "april 14"</s>
CREATE TABLE Person (job VARCHAR)
SELECT COUNT(DISTINCT job) FROM Person
How many type of jobs do they have?
<s>[INST]How many type of jobs do they have? Context: CREATE TABLE Person (job VARCHAR)[/INST]SELECT COUNT(DISTINCT job) FROM Person</s>
CREATE TABLE table_29626583_3 (mls_team VARCHAR, position VARCHAR, player VARCHAR)
SELECT mls_team FROM table_29626583_3 WHERE position = "Midfielder" AND player = "Konrad Warzycha"
Which team has a midfielder of konrad warzycha?
<s>[INST]Which team has a midfielder of konrad warzycha? Context: CREATE TABLE table_29626583_3 (mls_team VARCHAR, position VARCHAR, player VARCHAR)[/INST]SELECT mls_team FROM table_29626583_3 WHERE position = "Midfielder" AND player = "Konrad Warzycha"</s>
CREATE TABLE table_name_58 (date VARCHAR, runner_up_skip VARCHAR)
SELECT date FROM table_name_58 WHERE runner_up_skip = "stu harris"
What's the date when Stu Harris was the Runner-up?
<s>[INST]What's the date when Stu Harris was the Runner-up? Context: CREATE TABLE table_name_58 (date VARCHAR, runner_up_skip VARCHAR)[/INST]SELECT date FROM table_name_58 WHERE runner_up_skip = "stu harris"</s>
CREATE TABLE table_name_98 (league_goals INTEGER, name VARCHAR, league_cup_apps VARCHAR, fa_cup_goals VARCHAR, position VARCHAR)
SELECT AVG(league_goals) FROM table_name_98 WHERE fa_cup_goals = "0" AND position = "mf" AND league_cup_apps = "0" AND name = "ben thornley"
What is the League Goals when the FA Cup Goals are 0, position is mf, League Cup Apps of 0, and name is Ben Thornley?
<s>[INST]What is the League Goals when the FA Cup Goals are 0, position is mf, League Cup Apps of 0, and name is Ben Thornley? Context: CREATE TABLE table_name_98 (league_goals INTEGER, name VARCHAR, league_cup_apps VARCHAR, fa_cup_goals VARCHAR, position VARCHAR)[/INST]SELECT AVG(league_goals) FROM table_name_98 WHERE...
CREATE TABLE table_name_93 (country VARCHAR, year VARCHAR)
SELECT country FROM table_name_93 WHERE year = 1994
What is Country, when Year is "1994"?
<s>[INST]What is Country, when Year is "1994"? Context: CREATE TABLE table_name_93 (country VARCHAR, year VARCHAR)[/INST]SELECT country FROM table_name_93 WHERE year = 1994</s>
CREATE TABLE table_name_78 (tries_against VARCHAR, points_against VARCHAR)
SELECT tries_against FROM table_name_78 WHERE points_against = "213"
What is Tries Against, when Points Against is 213?
<s>[INST]What is Tries Against, when Points Against is 213? Context: CREATE TABLE table_name_78 (tries_against VARCHAR, points_against VARCHAR)[/INST]SELECT tries_against FROM table_name_78 WHERE points_against = "213"</s>
CREATE TABLE table_name_12 (tries_for VARCHAR, losing_bonus VARCHAR, points VARCHAR)
SELECT tries_for FROM table_name_12 WHERE losing_bonus = "3" AND points = "45"
How many tries for did the club with a 3 losing bonus and 45 points have?
<s>[INST]How many tries for did the club with a 3 losing bonus and 45 points have? Context: CREATE TABLE table_name_12 (tries_for VARCHAR, losing_bonus VARCHAR, points VARCHAR)[/INST]SELECT tries_for FROM table_name_12 WHERE losing_bonus = "3" AND points = "45"</s>
CREATE TABLE table_name_69 (name VARCHAR)
SELECT 193 FROM table_name_69 WHERE name = "svetlana shkolina"
What is the 1.93 for Svetlana Shkolina?
<s>[INST]What is the 1.93 for Svetlana Shkolina? Context: CREATE TABLE table_name_69 (name VARCHAR)[/INST]SELECT 193 FROM table_name_69 WHERE name = "svetlana shkolina"</s>
CREATE TABLE table_name_84 (brown VARCHAR, frequency VARCHAR)
SELECT brown FROM table_name_84 WHERE frequency = "0.08%"
Which Category in Brown has a Frequency of 0.08%?
<s>[INST]Which Category in Brown has a Frequency of 0.08%? Context: CREATE TABLE table_name_84 (brown VARCHAR, frequency VARCHAR)[/INST]SELECT brown FROM table_name_84 WHERE frequency = "0.08%"</s>
CREATE TABLE table_name_76 (attendance VARCHAR, opponent VARCHAR, record VARCHAR)
SELECT COUNT(attendance) FROM table_name_76 WHERE opponent = "new york mets" AND record = "18-18"
What is the total attendance at games against the New York Mets with a record of 18-18?
<s>[INST]What is the total attendance at games against the New York Mets with a record of 18-18? Context: CREATE TABLE table_name_76 (attendance VARCHAR, opponent VARCHAR, record VARCHAR)[/INST]SELECT COUNT(attendance) FROM table_name_76 WHERE opponent = "new york mets" AND record = "18-18"</s>
CREATE TABLE table_name_93 (club VARCHAR, played VARCHAR, lost VARCHAR)
SELECT club FROM table_name_93 WHERE played = "19" AND lost = "14"
What club has a played number of 19, and the lost of 14?
<s>[INST]What club has a played number of 19, and the lost of 14? Context: CREATE TABLE table_name_93 (club VARCHAR, played VARCHAR, lost VARCHAR)[/INST]SELECT club FROM table_name_93 WHERE played = "19" AND lost = "14"</s>
CREATE TABLE table_name_26 (team_1 VARCHAR)
SELECT 1 AS st_leg FROM table_name_26 WHERE team_1 = "lyon"
What is the 1st leg of team 1 Lyon?
<s>[INST]What is the 1st leg of team 1 Lyon? Context: CREATE TABLE table_name_26 (team_1 VARCHAR)[/INST]SELECT 1 AS st_leg FROM table_name_26 WHERE team_1 = "lyon"</s>
CREATE TABLE table_14342592_4 (starter VARCHAR, player VARCHAR)
SELECT starter FROM table_14342592_4 WHERE player = "Schulte"
Name the starter for schulte
<s>[INST]Name the starter for schulte Context: CREATE TABLE table_14342592_4 (starter VARCHAR, player VARCHAR)[/INST]SELECT starter FROM table_14342592_4 WHERE player = "Schulte"</s>
CREATE TABLE table_name_31 (years VARCHAR, jersey_number_s_ VARCHAR, player VARCHAR)
SELECT years FROM table_name_31 WHERE jersey_number_s_ = 41 AND player = "elden campbell category:articles with hcards"
What years did Elden Campbell category:articles with hcards and jersesy number of 41 play?
<s>[INST]What years did Elden Campbell category:articles with hcards and jersesy number of 41 play? Context: CREATE TABLE table_name_31 (years VARCHAR, jersey_number_s_ VARCHAR, player VARCHAR)[/INST]SELECT years FROM table_name_31 WHERE jersey_number_s_ = 41 AND player = "elden campbell category:articles with hcards"<...
CREATE TABLE table_17355408_4 (record VARCHAR, team VARCHAR)
SELECT record FROM table_17355408_4 WHERE team = "New Orleans"
Name the record for new orleans
<s>[INST]Name the record for new orleans Context: CREATE TABLE table_17355408_4 (record VARCHAR, team VARCHAR)[/INST]SELECT record FROM table_17355408_4 WHERE team = "New Orleans"</s>
CREATE TABLE table_name_10 (date VARCHAR, series VARCHAR)
SELECT date FROM table_name_10 WHERE series = "0–1"
What was the date of the game when the record of the series was 0–1?
<s>[INST]What was the date of the game when the record of the series was 0–1? Context: CREATE TABLE table_name_10 (date VARCHAR, series VARCHAR)[/INST]SELECT date FROM table_name_10 WHERE series = "0–1"</s>
CREATE TABLE table_name_91 (l2_cache VARCHAR, model_number VARCHAR)
SELECT l2_cache FROM table_name_91 WHERE model_number = "pentium dual-core t3400"
What is the L2 cache of the microprocessor with model number pentium dual-core t3400?
<s>[INST]What is the L2 cache of the microprocessor with model number pentium dual-core t3400? Context: CREATE TABLE table_name_91 (l2_cache VARCHAR, model_number VARCHAR)[/INST]SELECT l2_cache FROM table_name_91 WHERE model_number = "pentium dual-core t3400"</s>
CREATE TABLE table_name_98 (player VARCHAR, hometown_school VARCHAR, pick VARCHAR, position VARCHAR)
SELECT player FROM table_name_98 WHERE pick < 13 AND position = "p" AND hometown_school = "georgia tech"
Which player was picked before 13, in a P position, and is from Georgia Tech?
<s>[INST]Which player was picked before 13, in a P position, and is from Georgia Tech? Context: CREATE TABLE table_name_98 (player VARCHAR, hometown_school VARCHAR, pick VARCHAR, position VARCHAR)[/INST]SELECT player FROM table_name_98 WHERE pick < 13 AND position = "p" AND hometown_school = "georgia tech"</s>
CREATE TABLE table_name_91 (frequency_mhz INTEGER, city_of_license VARCHAR)
SELECT SUM(frequency_mhz) FROM table_name_91 WHERE city_of_license = "woodstock, georgia"
What is the number of Frequency MHz in woodstock, georgia?
<s>[INST]What is the number of Frequency MHz in woodstock, georgia? Context: CREATE TABLE table_name_91 (frequency_mhz INTEGER, city_of_license VARCHAR)[/INST]SELECT SUM(frequency_mhz) FROM table_name_91 WHERE city_of_license = "woodstock, georgia"</s>
CREATE TABLE table_28138035_26 (mens_singles VARCHAR, womens_singles VARCHAR)
SELECT mens_singles FROM table_28138035_26 WHERE womens_singles = "Lau Sui Fei"
Who won the mens singles when lau sui fei won the womens singles?
<s>[INST]Who won the mens singles when lau sui fei won the womens singles? Context: CREATE TABLE table_28138035_26 (mens_singles VARCHAR, womens_singles VARCHAR)[/INST]SELECT mens_singles FROM table_28138035_26 WHERE womens_singles = "Lau Sui Fei"</s>
CREATE TABLE table_name_24 (round VARCHAR, method VARCHAR)
SELECT round FROM table_name_24 WHERE method = "tko (cut)"
What round did the match go to when tko (cut) was the method?
<s>[INST]What round did the match go to when tko (cut) was the method? Context: CREATE TABLE table_name_24 (round VARCHAR, method VARCHAR)[/INST]SELECT round FROM table_name_24 WHERE method = "tko (cut)"</s>
CREATE TABLE table_name_45 (draw INTEGER, season VARCHAR, points VARCHAR)
SELECT SUM(draw) FROM table_name_45 WHERE season = "2001–02" AND points > 47
Which Draw has a Season of 2001–02, and Points larger than 47?
<s>[INST]Which Draw has a Season of 2001–02, and Points larger than 47? Context: CREATE TABLE table_name_45 (draw INTEGER, season VARCHAR, points VARCHAR)[/INST]SELECT SUM(draw) FROM table_name_45 WHERE season = "2001–02" AND points > 47</s>
CREATE TABLE table_name_22 (country VARCHAR)
SELECT 2013 AS _index_of_economic_freedom FROM table_name_22 WHERE country = "slovenia"
What is the 2013 index of economic freedom of Slovenia?
<s>[INST]What is the 2013 index of economic freedom of Slovenia? Context: CREATE TABLE table_name_22 (country VARCHAR)[/INST]SELECT 2013 AS _index_of_economic_freedom FROM table_name_22 WHERE country = "slovenia"</s>
CREATE TABLE table_name_3 (year INTEGER, artist VARCHAR)
SELECT SUM(year) FROM table_name_3 WHERE artist = "claudia beni"
How many years have claudia beni as the artist?
<s>[INST]How many years have claudia beni as the artist? Context: CREATE TABLE table_name_3 (year INTEGER, artist VARCHAR)[/INST]SELECT SUM(year) FROM table_name_3 WHERE artist = "claudia beni"</s>
CREATE TABLE table_name_64 (overall INTEGER, nationality VARCHAR)
SELECT MAX(overall) FROM table_name_64 WHERE nationality = "finland"
For the player from Finland, what is the highest overall pick rank?
<s>[INST]For the player from Finland, what is the highest overall pick rank? Context: CREATE TABLE table_name_64 (overall INTEGER, nationality VARCHAR)[/INST]SELECT MAX(overall) FROM table_name_64 WHERE nationality = "finland"</s>
CREATE TABLE table_name_83 (roll INTEGER, name VARCHAR)
SELECT AVG(roll) FROM table_name_83 WHERE name = "pirinoa school"
tell me the average roll for pirinoa school.
<s>[INST]tell me the average roll for pirinoa school. Context: CREATE TABLE table_name_83 (roll INTEGER, name VARCHAR)[/INST]SELECT AVG(roll) FROM table_name_83 WHERE name = "pirinoa school"</s>
CREATE TABLE table_name_61 (team VARCHAR, high_rebounds VARCHAR)
SELECT team FROM table_name_61 WHERE high_rebounds = "david lee (15)"
What is Team, when High Rebounds is David Lee (15)?
<s>[INST]What is Team, when High Rebounds is David Lee (15)? Context: CREATE TABLE table_name_61 (team VARCHAR, high_rebounds VARCHAR)[/INST]SELECT team FROM table_name_61 WHERE high_rebounds = "david lee (15)"</s>
CREATE TABLE table_14752049_2 (change__2009_to_2010_ VARCHAR, country VARCHAR)
SELECT change__2009_to_2010_ FROM table_14752049_2 WHERE country = "Tunisia"
What are the changes from 2009 to 2010 in Tunisia?
<s>[INST]What are the changes from 2009 to 2010 in Tunisia? Context: CREATE TABLE table_14752049_2 (change__2009_to_2010_ VARCHAR, country VARCHAR)[/INST]SELECT change__2009_to_2010_ FROM table_14752049_2 WHERE country = "Tunisia"</s>
CREATE TABLE table_name_16 (reb_avg INTEGER, games VARCHAR, rank VARCHAR)
SELECT SUM(reb_avg) FROM table_name_16 WHERE games > 98 AND rank = 7
What is the total of rebound averages with more than 98 games and a rank of 7?
<s>[INST]What is the total of rebound averages with more than 98 games and a rank of 7? Context: CREATE TABLE table_name_16 (reb_avg INTEGER, games VARCHAR, rank VARCHAR)[/INST]SELECT SUM(reb_avg) FROM table_name_16 WHERE games > 98 AND rank = 7</s>
CREATE TABLE table_name_14 (home_captain VARCHAR, venue VARCHAR)
SELECT home_captain FROM table_name_14 WHERE venue = "adelaide oval"
Who is the home captain at the Adelaide Oval?
<s>[INST]Who is the home captain at the Adelaide Oval? Context: CREATE TABLE table_name_14 (home_captain VARCHAR, venue VARCHAR)[/INST]SELECT home_captain FROM table_name_14 WHERE venue = "adelaide oval"</s>
CREATE TABLE table_2850912_8 (college_junior_club_team VARCHAR, player VARCHAR)
SELECT college_junior_club_team FROM table_2850912_8 WHERE player = "Glenn Greenough"
where did glenn greenough come from
<s>[INST]where did glenn greenough come from Context: CREATE TABLE table_2850912_8 (college_junior_club_team VARCHAR, player VARCHAR)[/INST]SELECT college_junior_club_team FROM table_2850912_8 WHERE player = "Glenn Greenough"</s>
CREATE TABLE table_169766_13 (new_returning_same_network VARCHAR, previous_network VARCHAR)
SELECT new_returning_same_network FROM table_169766_13 WHERE previous_network = "NBC"
For the NBC network, what was the new/returning/same network status?
<s>[INST]For the NBC network, what was the new/returning/same network status? Context: CREATE TABLE table_169766_13 (new_returning_same_network VARCHAR, previous_network VARCHAR)[/INST]SELECT new_returning_same_network FROM table_169766_13 WHERE previous_network = "NBC"</s>
CREATE TABLE table_name_29 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_29 WHERE player = "tom lehman"
In what place did Tom Lehman finish?
<s>[INST]In what place did Tom Lehman finish? Context: CREATE TABLE table_name_29 (place VARCHAR, player VARCHAR)[/INST]SELECT place FROM table_name_29 WHERE player = "tom lehman"</s>
CREATE TABLE table_name_76 (attendance VARCHAR, visitor VARCHAR, leading_scorer VARCHAR)
SELECT COUNT(attendance) FROM table_name_76 WHERE visitor = "charlotte" AND leading_scorer = "ricky davis (23)"
What is the sum number of attendance when the visiting team was Charlotte and the leading scorer was Ricky Davis (23)?
<s>[INST]What is the sum number of attendance when the visiting team was Charlotte and the leading scorer was Ricky Davis (23)? Context: CREATE TABLE table_name_76 (attendance VARCHAR, visitor VARCHAR, leading_scorer VARCHAR)[/INST]SELECT COUNT(attendance) FROM table_name_76 WHERE visitor = "charlotte" AND leading_scor...
CREATE TABLE table_2071644_1 (flange_width__mm_ VARCHAR, cross_section_area__cm_2__ VARCHAR)
SELECT COUNT(flange_width__mm_) FROM table_2071644_1 WHERE cross_section_area__cm_2__ = "16.4"
What is the flange width (mm) for cross section area (cm 2) 16.4?
<s>[INST]What is the flange width (mm) for cross section area (cm 2) 16.4? Context: CREATE TABLE table_2071644_1 (flange_width__mm_ VARCHAR, cross_section_area__cm_2__ VARCHAR)[/INST]SELECT COUNT(flange_width__mm_) FROM table_2071644_1 WHERE cross_section_area__cm_2__ = "16.4"</s>
CREATE TABLE table_name_89 (surface VARCHAR, partner VARCHAR)
SELECT surface FROM table_name_89 WHERE partner = "pemra özgen"
Which Surface has a Partner of pemra özgen?
<s>[INST]Which Surface has a Partner of pemra özgen? Context: CREATE TABLE table_name_89 (surface VARCHAR, partner VARCHAR)[/INST]SELECT surface FROM table_name_89 WHERE partner = "pemra özgen"</s>
CREATE TABLE table_20860739_1 (position VARCHAR, player VARCHAR)
SELECT COUNT(position) FROM table_20860739_1 WHERE player = "Mike Thomas"
What is the number of Mike Thomas?
<s>[INST]What is the number of Mike Thomas? Context: CREATE TABLE table_20860739_1 (position VARCHAR, player VARCHAR)[/INST]SELECT COUNT(position) FROM table_20860739_1 WHERE player = "Mike Thomas"</s>
CREATE TABLE table_name_68 (surface VARCHAR, date VARCHAR)
SELECT surface FROM table_name_68 WHERE date = "26 august 2001"
On what surface was the 26 August 2001 tournament played?
<s>[INST]On what surface was the 26 August 2001 tournament played? Context: CREATE TABLE table_name_68 (surface VARCHAR, date VARCHAR)[/INST]SELECT surface FROM table_name_68 WHERE date = "26 august 2001"</s>
CREATE TABLE customer (customer_id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE rental (staff_id VARCHAR, customer_id VARCHAR); CREATE TABLE staff (first_name VARCHAR, last_name VARCHAR, staff_id VARCHAR)
SELECT DISTINCT T1.first_name, T1.last_name FROM staff AS T1 JOIN rental AS T2 ON T1.staff_id = T2.staff_id JOIN customer AS T3 ON T2.customer_id = T3.customer_id WHERE T3.first_name = 'APRIL' AND T3.last_name = 'BURNS'
What is the full name of the staff member who has rented a film to a customer with the first name April and the last name Burns?
<s>[INST]What is the full name of the staff member who has rented a film to a customer with the first name April and the last name Burns? Context: CREATE TABLE customer (customer_id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE rental (staff_id VARCHAR, customer_id VARCHAR); CREATE TABLE staff (first_na...
CREATE TABLE table_name_88 (school VARCHAR, round VARCHAR)
SELECT school FROM table_name_88 WHERE round = 3
From what school was the player drafted in round 3?
<s>[INST]From what school was the player drafted in round 3? Context: CREATE TABLE table_name_88 (school VARCHAR, round VARCHAR)[/INST]SELECT school FROM table_name_88 WHERE round = 3</s>
CREATE TABLE table_name_60 (pick VARCHAR, year VARCHAR, round VARCHAR)
SELECT COUNT(pick) FROM table_name_60 WHERE year < 2009 AND round > 1
What is the pick number in a year earlier than 2009, with a round higher than 1?
<s>[INST]What is the pick number in a year earlier than 2009, with a round higher than 1? Context: CREATE TABLE table_name_60 (pick VARCHAR, year VARCHAR, round VARCHAR)[/INST]SELECT COUNT(pick) FROM table_name_60 WHERE year < 2009 AND round > 1</s>
CREATE TABLE table_29785324_5 (district VARCHAR, constituency_no VARCHAR)
SELECT COUNT(district) FROM table_29785324_5 WHERE constituency_no = 213
What district has 213 constituents?
<s>[INST]What district has 213 constituents? Context: CREATE TABLE table_29785324_5 (district VARCHAR, constituency_no VARCHAR)[/INST]SELECT COUNT(district) FROM table_29785324_5 WHERE constituency_no = 213</s>
CREATE TABLE table_23399481_3 (original_air_date VARCHAR, season__number VARCHAR)
SELECT original_air_date FROM table_23399481_3 WHERE season__number = 4
What is the original air date for episode 4?
<s>[INST]What is the original air date for episode 4? Context: CREATE TABLE table_23399481_3 (original_air_date VARCHAR, season__number VARCHAR)[/INST]SELECT original_air_date FROM table_23399481_3 WHERE season__number = 4</s>
CREATE TABLE table_name_45 (date VARCHAR, week VARCHAR)
SELECT date FROM table_name_45 WHERE week = 11
What is Date, when Week is 11?
<s>[INST]What is Date, when Week is 11? Context: CREATE TABLE table_name_45 (date VARCHAR, week VARCHAR)[/INST]SELECT date FROM table_name_45 WHERE week = 11</s>
CREATE TABLE table_26561508_1 (written_by VARCHAR, production_code VARCHAR)
SELECT written_by FROM table_26561508_1 WHERE production_code = "2T5954"
Who was the writter for the episode identified by the production code 2t5954?
<s>[INST]Who was the writter for the episode identified by the production code 2t5954? Context: CREATE TABLE table_26561508_1 (written_by VARCHAR, production_code VARCHAR)[/INST]SELECT written_by FROM table_26561508_1 WHERE production_code = "2T5954"</s>
CREATE TABLE table_name_10 (season VARCHAR, games VARCHAR, lost VARCHAR)
SELECT season FROM table_name_10 WHERE games = "72" AND lost = "9"
What's the season that had a lost of 9 with 72 games?
<s>[INST]What's the season that had a lost of 9 with 72 games? Context: CREATE TABLE table_name_10 (season VARCHAR, games VARCHAR, lost VARCHAR)[/INST]SELECT season FROM table_name_10 WHERE games = "72" AND lost = "9"</s>
CREATE TABLE table_19930660_1 (winner VARCHAR, marcus_guest VARCHAR)
SELECT winner FROM table_19930660_1 WHERE marcus_guest = "Jason Byrne"
Name the winner for jason byrne
<s>[INST]Name the winner for jason byrne Context: CREATE TABLE table_19930660_1 (winner VARCHAR, marcus_guest VARCHAR)[/INST]SELECT winner FROM table_19930660_1 WHERE marcus_guest = "Jason Byrne"</s>
CREATE TABLE table_28140588_1 (title VARCHAR, directed_by VARCHAR)
SELECT title FROM table_28140588_1 WHERE directed_by = "Maynard C. Virgil I"
What is the title when the director is Maynard C. Virgil i ?
<s>[INST]What is the title when the director is Maynard C. Virgil i ? Context: CREATE TABLE table_28140588_1 (title VARCHAR, directed_by VARCHAR)[/INST]SELECT title FROM table_28140588_1 WHERE directed_by = "Maynard C. Virgil I"</s>
CREATE TABLE table_name_85 (airport VARCHAR, city VARCHAR)
SELECT airport FROM table_name_85 WHERE city = "kota kinabalu"
What is the name of the airport in the city of Kota Kinabalu?
<s>[INST]What is the name of the airport in the city of Kota Kinabalu? Context: CREATE TABLE table_name_85 (airport VARCHAR, city VARCHAR)[/INST]SELECT airport FROM table_name_85 WHERE city = "kota kinabalu"</s>
CREATE TABLE table_name_19 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_19 WHERE date = "january 14, 2008"
Name the result for january 14, 2008
<s>[INST]Name the result for january 14, 2008 Context: CREATE TABLE table_name_19 (result VARCHAR, date VARCHAR)[/INST]SELECT result FROM table_name_19 WHERE date = "january 14, 2008"</s>
CREATE TABLE table_name_27 (year INTEGER, character VARCHAR)
SELECT AVG(year) FROM table_name_27 WHERE character = "wu ji wei (無極威)"
What is the year that has a character named Wu Ji Wei (無極威)?
<s>[INST]What is the year that has a character named Wu Ji Wei (無極威)? Context: CREATE TABLE table_name_27 (year INTEGER, character VARCHAR)[/INST]SELECT AVG(year) FROM table_name_27 WHERE character = "wu ji wei (無極威)"</s>
CREATE TABLE table_11236195_2 (gf_attendance VARCHAR, location VARCHAR)
SELECT COUNT(gf_attendance) FROM table_11236195_2 WHERE location = "Sydney Football Stadium, Sydney (6)"
What was the GF attendance at the location of Sydney Football Stadium, Sydney (6)?
<s>[INST]What was the GF attendance at the location of Sydney Football Stadium, Sydney (6)? Context: CREATE TABLE table_11236195_2 (gf_attendance VARCHAR, location VARCHAR)[/INST]SELECT COUNT(gf_attendance) FROM table_11236195_2 WHERE location = "Sydney Football Stadium, Sydney (6)"</s>
CREATE TABLE table_14975415_1 (director VARCHAR, english_title VARCHAR)
SELECT director FROM table_14975415_1 WHERE english_title = "Diary for My Loves"
Who is the director for diary for my loves?
<s>[INST]Who is the director for diary for my loves? Context: CREATE TABLE table_14975415_1 (director VARCHAR, english_title VARCHAR)[/INST]SELECT director FROM table_14975415_1 WHERE english_title = "Diary for My Loves"</s>
CREATE TABLE table_17521433_1 (country VARCHAR, swimsuit VARCHAR)
SELECT country FROM table_17521433_1 WHERE swimsuit = "8.788"
What country had a swimsuit score of 8.788?
<s>[INST]What country had a swimsuit score of 8.788? Context: CREATE TABLE table_17521433_1 (country VARCHAR, swimsuit VARCHAR)[/INST]SELECT country FROM table_17521433_1 WHERE swimsuit = "8.788"</s>
CREATE TABLE table_name_73 (wins INTEGER, south_west_dfl VARCHAR, byes VARCHAR)
SELECT AVG(wins) FROM table_name_73 WHERE south_west_dfl = "coleraine" AND byes > 0
What is the average value for Wins, when South West DFL is "Coleraine", and when Byes is greater than 0?
<s>[INST]What is the average value for Wins, when South West DFL is "Coleraine", and when Byes is greater than 0? Context: CREATE TABLE table_name_73 (wins INTEGER, south_west_dfl VARCHAR, byes VARCHAR)[/INST]SELECT AVG(wins) FROM table_name_73 WHERE south_west_dfl = "coleraine" AND byes > 0</s>
CREATE TABLE table_name_74 (gdp___bn__ VARCHAR, area__sq_mi_ VARCHAR)
SELECT gdp___bn__ FROM table_name_74 WHERE area__sq_mi_ = "7,263"
What is the GDP for the region with an area of 7,263 sq. mi.?
<s>[INST]What is the GDP for the region with an area of 7,263 sq. mi.? Context: CREATE TABLE table_name_74 (gdp___bn__ VARCHAR, area__sq_mi_ VARCHAR)[/INST]SELECT gdp___bn__ FROM table_name_74 WHERE area__sq_mi_ = "7,263"</s>
CREATE TABLE table_name_99 (series VARCHAR, score VARCHAR)
SELECT series FROM table_name_99 WHERE score = "0–6"
Which Series has a Score of 0–6?
<s>[INST]Which Series has a Score of 0–6? Context: CREATE TABLE table_name_99 (series VARCHAR, score VARCHAR)[/INST]SELECT series FROM table_name_99 WHERE score = "0–6"</s>
CREATE TABLE table_name_86 (segment_a VARCHAR, netflix VARCHAR)
SELECT segment_a FROM table_name_86 WHERE netflix = "s05e22"
Which segment a's Netflix is S05E22?
<s>[INST]Which segment a's Netflix is S05E22? Context: CREATE TABLE table_name_86 (segment_a VARCHAR, netflix VARCHAR)[/INST]SELECT segment_a FROM table_name_86 WHERE netflix = "s05e22"</s>
CREATE TABLE table_name_88 (finalists VARCHAR, not_winning_editions VARCHAR)
SELECT finalists FROM table_name_88 WHERE not_winning_editions = "2008, 2012, 2013"
What is the Finalists that has 2008, 2012, 2013 as Not winning editions
<s>[INST]What is the Finalists that has 2008, 2012, 2013 as Not winning editions Context: CREATE TABLE table_name_88 (finalists VARCHAR, not_winning_editions VARCHAR)[/INST]SELECT finalists FROM table_name_88 WHERE not_winning_editions = "2008, 2012, 2013"</s>
CREATE TABLE inst (instid VARCHAR, name VARCHAR); CREATE TABLE authorship (paperid VARCHAR, instid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR)
SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "Indiana University"
What are the papers published under the institution "Indiana University"?
<s>[INST]What are the papers published under the institution "Indiana University"? Context: CREATE TABLE inst (instid VARCHAR, name VARCHAR); CREATE TABLE authorship (paperid VARCHAR, instid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR)[/INST]SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship A...
CREATE TABLE table_name_9 (win_percentage VARCHAR, wins VARCHAR)
SELECT win_percentage FROM table_name_9 WHERE wins = "46"
Where the wins are 46, what is the win%?
<s>[INST]Where the wins are 46, what is the win%? Context: CREATE TABLE table_name_9 (win_percentage VARCHAR, wins VARCHAR)[/INST]SELECT win_percentage FROM table_name_9 WHERE wins = "46"</s>
CREATE TABLE table_name_23 (points INTEGER, engine VARCHAR)
SELECT MIN(points) FROM table_name_23 WHERE engine = "gc37-01 v10"
Which gc37-01 v10 engine has the fewest points?
<s>[INST]Which gc37-01 v10 engine has the fewest points? Context: CREATE TABLE table_name_23 (points INTEGER, engine VARCHAR)[/INST]SELECT MIN(points) FROM table_name_23 WHERE engine = "gc37-01 v10"</s>
CREATE TABLE table_name_80 (winner VARCHAR, date VARCHAR)
SELECT winner FROM table_name_80 WHERE date = "5 june"
Name the winner for 5 june
<s>[INST]Name the winner for 5 june Context: CREATE TABLE table_name_80 (winner VARCHAR, date VARCHAR)[/INST]SELECT winner FROM table_name_80 WHERE date = "5 june"</s>
CREATE TABLE table_19236587_4 (series_no INTEGER, season_no VARCHAR)
SELECT MIN(series_no) FROM table_19236587_4 WHERE season_no = 2
What's the series number of the episode with season number 2?
<s>[INST]What's the series number of the episode with season number 2? Context: CREATE TABLE table_19236587_4 (series_no INTEGER, season_no VARCHAR)[/INST]SELECT MIN(series_no) FROM table_19236587_4 WHERE season_no = 2</s>
CREATE TABLE table_name_54 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_54 WHERE away_team = "melbourne"
What is the away team score of Melbourne?
<s>[INST]What is the away team score of Melbourne? Context: CREATE TABLE table_name_54 (away_team VARCHAR)[/INST]SELECT away_team AS score FROM table_name_54 WHERE away_team = "melbourne"</s>
CREATE TABLE table_name_20 (opened INTEGER, venue VARCHAR, established VARCHAR)
SELECT MIN(opened) FROM table_name_20 WHERE venue = "huff hall" AND established > 1974
When is the earliest year opened for huff hall that was established after 1974?
<s>[INST]When is the earliest year opened for huff hall that was established after 1974? Context: CREATE TABLE table_name_20 (opened INTEGER, venue VARCHAR, established VARCHAR)[/INST]SELECT MIN(opened) FROM table_name_20 WHERE venue = "huff hall" AND established > 1974</s>
CREATE TABLE table_name_96 (venue VARCHAR, result VARCHAR)
SELECT venue FROM table_name_96 WHERE result = "1–0"
Which venue has a Result of 1–0?
<s>[INST]Which venue has a Result of 1–0? Context: CREATE TABLE table_name_96 (venue VARCHAR, result VARCHAR)[/INST]SELECT venue FROM table_name_96 WHERE result = "1–0"</s>
CREATE TABLE table_name_4 (tv_season VARCHAR, season VARCHAR, ranking VARCHAR)
SELECT tv_season FROM table_name_4 WHERE season > 2 AND ranking = "#5"
Which TV season has a Season larger than 2, and a Ranking of #5?
<s>[INST]Which TV season has a Season larger than 2, and a Ranking of #5? Context: CREATE TABLE table_name_4 (tv_season VARCHAR, season VARCHAR, ranking VARCHAR)[/INST]SELECT tv_season FROM table_name_4 WHERE season > 2 AND ranking = "#5"</s>
CREATE TABLE table_name_3 (date VARCHAR, week VARCHAR, result VARCHAR)
SELECT date FROM table_name_3 WHERE week < 12 AND result = "bye"
What was the date of the game with a result of bye before week 12?
<s>[INST]What was the date of the game with a result of bye before week 12? Context: CREATE TABLE table_name_3 (date VARCHAR, week VARCHAR, result VARCHAR)[/INST]SELECT date FROM table_name_3 WHERE week < 12 AND result = "bye"</s>
CREATE TABLE table_23143607_1 (television_channels VARCHAR, radio_stations VARCHAR)
SELECT COUNT(television_channels) FROM table_23143607_1 WHERE radio_stations = "Radio Nou Si Radio Radio Nou Música"
If the radio stations is radio nou si radio radio nou música; what were the total number of television channels?
<s>[INST]If the radio stations is radio nou si radio radio nou música; what were the total number of television channels? Context: CREATE TABLE table_23143607_1 (television_channels VARCHAR, radio_stations VARCHAR)[/INST]SELECT COUNT(television_channels) FROM table_23143607_1 WHERE radio_stations = "Radio Nou Si Radio ...
CREATE TABLE table_name_41 (oklahoma VARCHAR, nebraska VARCHAR, year VARCHAR)
SELECT oklahoma FROM table_name_41 WHERE nebraska = "bush" AND year = "2004"
What is the oklahoma has Bush from Nebraska in year 2004?
<s>[INST]What is the oklahoma has Bush from Nebraska in year 2004? Context: CREATE TABLE table_name_41 (oklahoma VARCHAR, nebraska VARCHAR, year VARCHAR)[/INST]SELECT oklahoma FROM table_name_41 WHERE nebraska = "bush" AND year = "2004"</s>
CREATE TABLE table_name_87 (losing_team VARCHAR, winning_team VARCHAR, venue VARCHAR, total VARCHAR)
SELECT losing_team FROM table_name_87 WHERE venue = "sydney football stadium" AND total > 80 AND winning_team = "tigers"
WHich Losing Team has a Venue of sydney football stadium, and a Total larger than 80, and a Winning Team of tigers?
<s>[INST]WHich Losing Team has a Venue of sydney football stadium, and a Total larger than 80, and a Winning Team of tigers? Context: CREATE TABLE table_name_87 (losing_team VARCHAR, winning_team VARCHAR, venue VARCHAR, total VARCHAR)[/INST]SELECT losing_team FROM table_name_87 WHERE venue = "sydney football stadium" A...
CREATE TABLE table_name_47 (winning_score VARCHAR, runner_s__up VARCHAR)
SELECT winning_score FROM table_name_47 WHERE runner_s__up = "brian kamm"
What was the winning score of the event where Brian Kamm was the runner-up?
<s>[INST]What was the winning score of the event where Brian Kamm was the runner-up? Context: CREATE TABLE table_name_47 (winning_score VARCHAR, runner_s__up VARCHAR)[/INST]SELECT winning_score FROM table_name_47 WHERE runner_s__up = "brian kamm"</s>
CREATE TABLE table_28768469_5 (high_assists VARCHAR, team VARCHAR)
SELECT high_assists FROM table_28768469_5 WHERE team = "Utah"
Who had highest assists in game against Utah?
<s>[INST]Who had highest assists in game against Utah? Context: CREATE TABLE table_28768469_5 (high_assists VARCHAR, team VARCHAR)[/INST]SELECT high_assists FROM table_28768469_5 WHERE team = "Utah"</s>
CREATE TABLE table_name_97 (score VARCHAR, home_team VARCHAR)
SELECT score FROM table_name_97 WHERE home_team = "notts county"
What is the score for the home team Notts County?
<s>[INST]What is the score for the home team Notts County? Context: CREATE TABLE table_name_97 (score VARCHAR, home_team VARCHAR)[/INST]SELECT score FROM table_name_97 WHERE home_team = "notts county"</s>
CREATE TABLE table_name_26 (draws VARCHAR, goals_against VARCHAR, goals_for VARCHAR, position VARCHAR)
SELECT COUNT(draws) FROM table_name_26 WHERE goals_for < 56 AND position = 10 AND goals_against < 45
How many draws have goals for less than 56, 10 as the postion, with goals against less than 45?
<s>[INST]How many draws have goals for less than 56, 10 as the postion, with goals against less than 45? Context: CREATE TABLE table_name_26 (draws VARCHAR, goals_against VARCHAR, goals_for VARCHAR, position VARCHAR)[/INST]SELECT COUNT(draws) FROM table_name_26 WHERE goals_for < 56 AND position = 10 AND goals_against <...
CREATE TABLE table_name_67 (freq_currently VARCHAR, frequency VARCHAR)
SELECT freq_currently FROM table_name_67 WHERE frequency = "104.7"
What is the current freq for Frequency of 104.7?
<s>[INST]What is the current freq for Frequency of 104.7? Context: CREATE TABLE table_name_67 (freq_currently VARCHAR, frequency VARCHAR)[/INST]SELECT freq_currently FROM table_name_67 WHERE frequency = "104.7"</s>
CREATE TABLE table_name_67 (position VARCHAR, player VARCHAR)
SELECT position FROM table_name_67 WHERE player = "jeremy duchesne"
What is Jeremy Duchesne's position?
<s>[INST]What is Jeremy Duchesne's position? Context: CREATE TABLE table_name_67 (position VARCHAR, player VARCHAR)[/INST]SELECT position FROM table_name_67 WHERE player = "jeremy duchesne"</s>
CREATE TABLE table_262508_1 (joined VARCHAR, enrollment VARCHAR, location VARCHAR)
SELECT joined FROM table_262508_1 WHERE enrollment = 1150 AND location = "Sioux City, Iowa"
How many joined when the enrollment was 1150 in Sioux City, Iowa?
<s>[INST]How many joined when the enrollment was 1150 in Sioux City, Iowa? Context: CREATE TABLE table_262508_1 (joined VARCHAR, enrollment VARCHAR, location VARCHAR)[/INST]SELECT joined FROM table_262508_1 WHERE enrollment = 1150 AND location = "Sioux City, Iowa"</s>
CREATE TABLE table_name_15 (appearances VARCHAR, club VARCHAR, goals VARCHAR)
SELECT COUNT(appearances) FROM table_name_15 WHERE club = "rayo vallecano" AND goals > 37
How many appearances did the player for the Rayo Vallecano club that scored more than 37 goals make?
<s>[INST]How many appearances did the player for the Rayo Vallecano club that scored more than 37 goals make? Context: CREATE TABLE table_name_15 (appearances VARCHAR, club VARCHAR, goals VARCHAR)[/INST]SELECT COUNT(appearances) FROM table_name_15 WHERE club = "rayo vallecano" AND goals > 37</s>
CREATE TABLE table_name_19 (nationality VARCHAR, player VARCHAR)
SELECT nationality FROM table_name_19 WHERE player = "marcus walker"
What Nationality has the Player of Marcus Walker?
<s>[INST]What Nationality has the Player of Marcus Walker? Context: CREATE TABLE table_name_19 (nationality VARCHAR, player VARCHAR)[/INST]SELECT nationality FROM table_name_19 WHERE player = "marcus walker"</s>
CREATE TABLE table_name_72 (nation VARCHAR, second VARCHAR)
SELECT nation FROM table_name_72 WHERE second = "tomas pitonak"
Which Nation has a Second of tomas pitonak?
<s>[INST]Which Nation has a Second of tomas pitonak? Context: CREATE TABLE table_name_72 (nation VARCHAR, second VARCHAR)[/INST]SELECT nation FROM table_name_72 WHERE second = "tomas pitonak"</s>
CREATE TABLE table_name_42 (weight__kg_ VARCHAR, race VARCHAR)
SELECT COUNT(weight__kg_) FROM table_name_42 WHERE race = "chelmsford stakes"
What was the combined weight in kilograms of the horses in the race at Chelmsford stakes?
<s>[INST]What was the combined weight in kilograms of the horses in the race at Chelmsford stakes? Context: CREATE TABLE table_name_42 (weight__kg_ VARCHAR, race VARCHAR)[/INST]SELECT COUNT(weight__kg_) FROM table_name_42 WHERE race = "chelmsford stakes"</s>
CREATE TABLE table_11780179_1 (gdp_per_capita__nominal_ VARCHAR, gdp__nominal_ VARCHAR)
SELECT gdp_per_capita__nominal_ FROM table_11780179_1 WHERE gdp__nominal_ = "$52.0 billion"
What is the gpa per capita (nominal) for the country with gdp (nominal) is $52.0 billion?
<s>[INST]What is the gpa per capita (nominal) for the country with gdp (nominal) is $52.0 billion? Context: CREATE TABLE table_11780179_1 (gdp_per_capita__nominal_ VARCHAR, gdp__nominal_ VARCHAR)[/INST]SELECT gdp_per_capita__nominal_ FROM table_11780179_1 WHERE gdp__nominal_ = "$52.0 billion"</s>
CREATE TABLE table_name_7 (wins INTEGER, year VARCHAR, points VARCHAR, class VARCHAR, team VARCHAR)
SELECT MAX(wins) FROM table_name_7 WHERE class = "350cc" AND team = "yamaha" AND points < 37 AND year > 1979
What is the highest wins that has 350cc as the class, yamaha for the team, with points less than 37, and a year after 1979?
<s>[INST]What is the highest wins that has 350cc as the class, yamaha for the team, with points less than 37, and a year after 1979? Context: CREATE TABLE table_name_7 (wins INTEGER, year VARCHAR, points VARCHAR, class VARCHAR, team VARCHAR)[/INST]SELECT MAX(wins) FROM table_name_7 WHERE class = "350cc" AND team = "yam...
CREATE TABLE table_11220799_2 (finish VARCHAR, first_air_date VARCHAR)
SELECT finish FROM table_11220799_2 WHERE first_air_date = "March 6, 2008"
What were the results of episodes with the first air date of March 6, 2008?
<s>[INST]What were the results of episodes with the first air date of March 6, 2008? Context: CREATE TABLE table_11220799_2 (finish VARCHAR, first_air_date VARCHAR)[/INST]SELECT finish FROM table_11220799_2 WHERE first_air_date = "March 6, 2008"</s>
CREATE TABLE table_name_99 (first_elected INTEGER, district VARCHAR, committee VARCHAR)
SELECT MAX(first_elected) FROM table_name_99 WHERE district = "06.0 6" AND committee = "economic matters"
What is the Highest first elected year that has a district of 06.0 6, and a committee of economic matters?
<s>[INST]What is the Highest first elected year that has a district of 06.0 6, and a committee of economic matters? Context: CREATE TABLE table_name_99 (first_elected INTEGER, district VARCHAR, committee VARCHAR)[/INST]SELECT MAX(first_elected) FROM table_name_99 WHERE district = "06.0 6" AND committee = "economic matt...
CREATE TABLE Payments (customer_id VARCHAR, amount_paid INTEGER)
SELECT customer_id, SUM(amount_paid) FROM Payments GROUP BY customer_id ORDER BY SUM(amount_paid) DESC LIMIT 1
What is the maximum total amount paid by a customer? List the customer id and amount.
<s>[INST]What is the maximum total amount paid by a customer? List the customer id and amount. Context: CREATE TABLE Payments (customer_id VARCHAR, amount_paid INTEGER)[/INST]SELECT customer_id, SUM(amount_paid) FROM Payments GROUP BY customer_id ORDER BY SUM(amount_paid) DESC LIMIT 1</s>
CREATE TABLE table_1965650_2 (college_junior_club_team VARCHAR, player VARCHAR)
SELECT college_junior_club_team FROM table_1965650_2 WHERE player = "Jimmy Jones"
Name the college/junior club team for jimmy jones
<s>[INST]Name the college/junior club team for jimmy jones Context: CREATE TABLE table_1965650_2 (college_junior_club_team VARCHAR, player VARCHAR)[/INST]SELECT college_junior_club_team FROM table_1965650_2 WHERE player = "Jimmy Jones"</s>
CREATE TABLE pets (pettype VARCHAR)
SELECT COUNT(DISTINCT pettype) FROM pets
Find the number of distinct type of pets.
<s>[INST]Find the number of distinct type of pets. Context: CREATE TABLE pets (pettype VARCHAR)[/INST]SELECT COUNT(DISTINCT pettype) FROM pets</s>
CREATE TABLE table_name_49 (ratt VARCHAR, comp VARCHAR)
SELECT ratt FROM table_name_49 WHERE comp = "48"
What is the RAtt when the comp is 48?
<s>[INST]What is the RAtt when the comp is 48? Context: CREATE TABLE table_name_49 (ratt VARCHAR, comp VARCHAR)[/INST]SELECT ratt FROM table_name_49 WHERE comp = "48"</s>
CREATE TABLE table_17102076_10 (location_attendance VARCHAR, score VARCHAR)
SELECT COUNT(location_attendance) FROM table_17102076_10 WHERE score = "L 141–143 (OT)"
Name the number of location attendance for l 141–143 (ot)
<s>[INST]Name the number of location attendance for l 141–143 (ot) Context: CREATE TABLE table_17102076_10 (location_attendance VARCHAR, score VARCHAR)[/INST]SELECT COUNT(location_attendance) FROM table_17102076_10 WHERE score = "L 141–143 (OT)"</s>
CREATE TABLE table_name_60 (publisher VARCHAR, year_of_release VARCHAR, original_platforms VARCHAR)
SELECT publisher FROM table_name_60 WHERE year_of_release = "2000" AND original_platforms = "dreamcast"
Which publisher has release year of 2000 and an original dreamcast platform?
<s>[INST]Which publisher has release year of 2000 and an original dreamcast platform? Context: CREATE TABLE table_name_60 (publisher VARCHAR, year_of_release VARCHAR, original_platforms VARCHAR)[/INST]SELECT publisher FROM table_name_60 WHERE year_of_release = "2000" AND original_platforms = "dreamcast"</s>
CREATE TABLE table_name_19 (overall INTEGER, college VARCHAR, pick__number VARCHAR)
SELECT MAX(overall) FROM table_name_19 WHERE college = "oklahoma" AND pick__number < 4
Which Overall is the highest one that has a College of oklahoma, and a Pick # smaller than 4?
<s>[INST]Which Overall is the highest one that has a College of oklahoma, and a Pick # smaller than 4? Context: CREATE TABLE table_name_19 (overall INTEGER, college VARCHAR, pick__number VARCHAR)[/INST]SELECT MAX(overall) FROM table_name_19 WHERE college = "oklahoma" AND pick__number < 4</s>
CREATE TABLE table_16799784_8 (diameter__km_ VARCHAR, name VARCHAR)
SELECT diameter__km_ FROM table_16799784_8 WHERE name = "Colette Patera"
What is the diameter in km of the feature named Colette Patera?
<s>[INST]What is the diameter in km of the feature named Colette Patera? Context: CREATE TABLE table_16799784_8 (diameter__km_ VARCHAR, name VARCHAR)[/INST]SELECT diameter__km_ FROM table_16799784_8 WHERE name = "Colette Patera"</s>
CREATE TABLE table_name_4 (coach VARCHAR, details VARCHAR)
SELECT coach FROM table_name_4 WHERE details = "2012 gold coast titans season"
Who is the coach of the 2012 Gold Coast Titans season?
<s>[INST]Who is the coach of the 2012 Gold Coast Titans season? Context: CREATE TABLE table_name_4 (coach VARCHAR, details VARCHAR)[/INST]SELECT coach FROM table_name_4 WHERE details = "2012 gold coast titans season"</s>
CREATE TABLE table_name_78 (outcome VARCHAR, surface VARCHAR, date VARCHAR)
SELECT outcome FROM table_name_78 WHERE surface = "hard (i)" AND date = "28 january 2003"
Which Outcome has a Surface of hard (i), and a Date of 28 january 2003?
<s>[INST]Which Outcome has a Surface of hard (i), and a Date of 28 january 2003? Context: CREATE TABLE table_name_78 (outcome VARCHAR, surface VARCHAR, date VARCHAR)[/INST]SELECT outcome FROM table_name_78 WHERE surface = "hard (i)" AND date = "28 january 2003"</s>
CREATE TABLE checking (custid VARCHAR, balance INTEGER); CREATE TABLE savings (custid VARCHAR, balance INTEGER); CREATE TABLE savings (balance INTEGER); CREATE TABLE checking (balance INTEGER); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)
SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance > (SELECT AVG(balance) FROM checking) INTERSECT SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT AVG(balance) FROM savings)
Find the names of accounts whose checking balance is above the average checking balance, but savings balance is below the average savings balance.
<s>[INST]Find the names of accounts whose checking balance is above the average checking balance, but savings balance is below the average savings balance. Context: CREATE TABLE checking (custid VARCHAR, balance INTEGER); CREATE TABLE savings (custid VARCHAR, balance INTEGER); CREATE TABLE savings (balance INTEGER); CR...
CREATE TABLE table_name_10 (source VARCHAR, net_worth_us$__billions_ VARCHAR)
SELECT source FROM table_name_10 WHERE net_worth_us$__billions_ = 17
What's the source of wealth of the person worth $17 billion?
<s>[INST]What's the source of wealth of the person worth $17 billion? Context: CREATE TABLE table_name_10 (source VARCHAR, net_worth_us$__billions_ VARCHAR)[/INST]SELECT source FROM table_name_10 WHERE net_worth_us$__billions_ = 17</s>