context
stringlengths
27
489
answer
stringlengths
18
557
question
stringlengths
12
243
text
stringlengths
103
1.05k
CREATE TABLE table_name_35 (losses INTEGER, wimmera_fl VARCHAR)
SELECT AVG(losses) FROM table_name_35 WHERE wimmera_fl = "minyip murtoa"
Which Losses have a Wimmera FL of minyip murtoa?
<s>[INST]Which Losses have a Wimmera FL of minyip murtoa? Context: CREATE TABLE table_name_35 (losses INTEGER, wimmera_fl VARCHAR)[/INST]SELECT AVG(losses) FROM table_name_35 WHERE wimmera_fl = "minyip murtoa"</s>
CREATE TABLE table_name_91 (player VARCHAR, country VARCHAR, score VARCHAR)
SELECT player FROM table_name_91 WHERE country = "united states" AND score = 70
What player has The United States as the country with 70 as the score?
<s>[INST]What player has The United States as the country with 70 as the score? Context: CREATE TABLE table_name_91 (player VARCHAR, country VARCHAR, score VARCHAR)[/INST]SELECT player FROM table_name_91 WHERE country = "united states" AND score = 70</s>
CREATE TABLE table_name_20 (graded_hammer_three__gh3_ VARCHAR, model VARCHAR)
SELECT graded_hammer_three__gh3_ FROM table_name_20 WHERE model = "clp320"
Which Graded Hammer Three (GH3) shows Model of clp320?
<s>[INST]Which Graded Hammer Three (GH3) shows Model of clp320? Context: CREATE TABLE table_name_20 (graded_hammer_three__gh3_ VARCHAR, model VARCHAR)[/INST]SELECT graded_hammer_three__gh3_ FROM table_name_20 WHERE model = "clp320"</s>
CREATE TABLE table_name_98 (live___studio VARCHAR, year INTEGER)
SELECT live___studio FROM table_name_98 WHERE year < 1983
Is it live or studio before 1983?
<s>[INST]Is it live or studio before 1983? Context: CREATE TABLE table_name_98 (live___studio VARCHAR, year INTEGER)[/INST]SELECT live___studio FROM table_name_98 WHERE year < 1983</s>
CREATE TABLE table_name_63 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_63 WHERE venue = "lake oval"
What away team played in Lake Oval?
<s>[INST]What away team played in Lake Oval? Context: CREATE TABLE table_name_63 (away_team VARCHAR, venue VARCHAR)[/INST]SELECT away_team FROM table_name_63 WHERE venue = "lake oval"</s>
CREATE TABLE table_name_40 (pick__number INTEGER, round VARCHAR, college VARCHAR)
SELECT AVG(pick__number) FROM table_name_40 WHERE round < 7 AND college = "tennessee"
What is the pick number average for the player who was drafted before round 7, and went to college at Tennessee?
<s>[INST]What is the pick number average for the player who was drafted before round 7, and went to college at Tennessee? Context: CREATE TABLE table_name_40 (pick__number INTEGER, round VARCHAR, college VARCHAR)[/INST]SELECT AVG(pick__number) FROM table_name_40 WHERE round < 7 AND college = "tennessee"</s>
CREATE TABLE table_name_89 (one_way VARCHAR, miles_ INTEGER, fans_took VARCHAR)
SELECT AVG(miles_)[one_way] FROM table_name_89 WHERE fans_took = "340"
What shows for miles [One Way] when the fans took 340?
<s>[INST]What shows for miles [One Way] when the fans took 340? Context: CREATE TABLE table_name_89 (one_way VARCHAR, miles_ INTEGER, fans_took VARCHAR)[/INST]SELECT AVG(miles_)[one_way] FROM table_name_89 WHERE fans_took = "340"</s>
CREATE TABLE table_name_15 (eliminated VARCHAR, time VARCHAR)
SELECT eliminated AS by FROM table_name_15 WHERE time = "12:38"
What is the number eliminated for the person with a time of 12:38?
<s>[INST]What is the number eliminated for the person with a time of 12:38? Context: CREATE TABLE table_name_15 (eliminated VARCHAR, time VARCHAR)[/INST]SELECT eliminated AS by FROM table_name_15 WHERE time = "12:38"</s>
CREATE TABLE table_name_58 (in_office VARCHAR, member VARCHAR)
SELECT in_office FROM table_name_58 WHERE member = "mark coulton"
What is the office held by member Mark Coulton?
<s>[INST]What is the office held by member Mark Coulton? Context: CREATE TABLE table_name_58 (in_office VARCHAR, member VARCHAR)[/INST]SELECT in_office FROM table_name_58 WHERE member = "mark coulton"</s>
CREATE TABLE table_name_77 (crowd VARCHAR, venue VARCHAR)
SELECT crowd FROM table_name_77 WHERE venue = "junction oval"
How many people attended the game at Junction Oval?
<s>[INST]How many people attended the game at Junction Oval? Context: CREATE TABLE table_name_77 (crowd VARCHAR, venue VARCHAR)[/INST]SELECT crowd FROM table_name_77 WHERE venue = "junction oval"</s>
CREATE TABLE table_name_76 (pilot VARCHAR, youtube_hero VARCHAR)
SELECT pilot FROM table_name_76 WHERE youtube_hero = "greg pattillo"
What is the Pilot number for the YouTube Hero greg pattillo?
<s>[INST]What is the Pilot number for the YouTube Hero greg pattillo? Context: CREATE TABLE table_name_76 (pilot VARCHAR, youtube_hero VARCHAR)[/INST]SELECT pilot FROM table_name_76 WHERE youtube_hero = "greg pattillo"</s>
CREATE TABLE table_name_10 (place VARCHAR, country VARCHAR, score VARCHAR)
SELECT place FROM table_name_10 WHERE country = "united states" AND score = 67 - 75 - 68 = 210
What place in the United States having a score of 67-75-68=210?
<s>[INST]What place in the United States having a score of 67-75-68=210? Context: CREATE TABLE table_name_10 (place VARCHAR, country VARCHAR, score VARCHAR)[/INST]SELECT place FROM table_name_10 WHERE country = "united states" AND score = 67 - 75 - 68 = 210</s>
CREATE TABLE table_name_83 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_83 WHERE venue = "princes park"
What was the date of the game at Princes Park?
<s>[INST]What was the date of the game at Princes Park? Context: CREATE TABLE table_name_83 (date VARCHAR, venue VARCHAR)[/INST]SELECT date FROM table_name_83 WHERE venue = "princes park"</s>
CREATE TABLE table_name_56 (first_elected INTEGER, district VARCHAR)
SELECT MAX(first_elected) FROM table_name_56 WHERE district = "pennsylvania 10"
What is the greatest first elected for Pennsylvania 10?
<s>[INST]What is the greatest first elected for Pennsylvania 10? Context: CREATE TABLE table_name_56 (first_elected INTEGER, district VARCHAR)[/INST]SELECT MAX(first_elected) FROM table_name_56 WHERE district = "pennsylvania 10"</s>
CREATE TABLE table_name_42 (year VARCHAR, score VARCHAR, location VARCHAR, runner_up VARCHAR)
SELECT COUNT(year) FROM table_name_42 WHERE location = "forest hills" AND runner_up = "john mcenroe" AND score = "6–3, 6–3"
How many years had a location at Forest Hills and a score of 6–3, 6–3 for John McEnroe?
<s>[INST]How many years had a location at Forest Hills and a score of 6–3, 6–3 for John McEnroe? Context: CREATE TABLE table_name_42 (year VARCHAR, score VARCHAR, location VARCHAR, runner_up VARCHAR)[/INST]SELECT COUNT(year) FROM table_name_42 WHERE location = "forest hills" AND runner_up = "john mcenroe" AND score = "...
CREATE TABLE table_13677808_1 (migration VARCHAR, trade VARCHAR)
SELECT migration FROM table_13677808_1 WHERE trade = "5.7"
What is the migration rating when trade is 5.7?
<s>[INST]What is the migration rating when trade is 5.7? Context: CREATE TABLE table_13677808_1 (migration VARCHAR, trade VARCHAR)[/INST]SELECT migration FROM table_13677808_1 WHERE trade = "5.7"</s>
CREATE TABLE table_name_97 (played INTEGER, pd_per_game VARCHAR, loss VARCHAR)
SELECT MIN(played) FROM table_name_97 WHERE pd_per_game > 6.28 AND loss < 4
Which Played has a PD per game larger than 6.28, and a Loss smaller than 4?
<s>[INST]Which Played has a PD per game larger than 6.28, and a Loss smaller than 4? Context: CREATE TABLE table_name_97 (played INTEGER, pd_per_game VARCHAR, loss VARCHAR)[/INST]SELECT MIN(played) FROM table_name_97 WHERE pd_per_game > 6.28 AND loss < 4</s>
CREATE TABLE table_name_47 (region VARCHAR, catalog VARCHAR)
SELECT region FROM table_name_47 WHERE catalog = "576 097-2"
Name the region with catalog of 576 097-2
<s>[INST]Name the region with catalog of 576 097-2 Context: CREATE TABLE table_name_47 (region VARCHAR, catalog VARCHAR)[/INST]SELECT region FROM table_name_47 WHERE catalog = "576 097-2"</s>
CREATE TABLE table_name_39 (points VARCHAR, place INTEGER)
SELECT points FROM table_name_39 WHERE place < 2
Which points has place smaller than 2?
<s>[INST]Which points has place smaller than 2? Context: CREATE TABLE table_name_39 (points VARCHAR, place INTEGER)[/INST]SELECT points FROM table_name_39 WHERE place < 2</s>
CREATE TABLE table_20367820_16 (innings INTEGER, average VARCHAR)
SELECT MAX(innings) FROM table_20367820_16 WHERE average = "36.48"
What is the innings when the average is 36.48?
<s>[INST]What is the innings when the average is 36.48? Context: CREATE TABLE table_20367820_16 (innings INTEGER, average VARCHAR)[/INST]SELECT MAX(innings) FROM table_20367820_16 WHERE average = "36.48"</s>
CREATE TABLE table_name_88 (date VARCHAR, opponent_number VARCHAR)
SELECT date FROM table_name_88 WHERE opponent_number = "michigan"
On what day(s) did the Gophers play against Michigan?
<s>[INST]On what day(s) did the Gophers play against Michigan? Context: CREATE TABLE table_name_88 (date VARCHAR, opponent_number VARCHAR)[/INST]SELECT date FROM table_name_88 WHERE opponent_number = "michigan"</s>
CREATE TABLE table_name_74 (wins INTEGER, goal_difference VARCHAR, goals_against VARCHAR, points VARCHAR)
SELECT MAX(wins) FROM table_name_74 WHERE goals_against < 51 AND points > 39 AND goal_difference < 13
What is the highest wins entry with fewer than 51 goals, more than 39 points, and a goal difference smaller than 13?
<s>[INST]What is the highest wins entry with fewer than 51 goals, more than 39 points, and a goal difference smaller than 13? Context: CREATE TABLE table_name_74 (wins INTEGER, goal_difference VARCHAR, goals_against VARCHAR, points VARCHAR)[/INST]SELECT MAX(wins) FROM table_name_74 WHERE goals_against < 51 AND points >...
CREATE TABLE table_name_34 (away_team VARCHAR, date VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_34 WHERE date = "june 9, 2015" AND home_team = "f1"
Which away team played on June 9, 2015 with a home team of f1?
<s>[INST]Which away team played on June 9, 2015 with a home team of f1? Context: CREATE TABLE table_name_34 (away_team VARCHAR, date VARCHAR, home_team VARCHAR)[/INST]SELECT away_team FROM table_name_34 WHERE date = "june 9, 2015" AND home_team = "f1"</s>
CREATE TABLE artist (age INTEGER, country VARCHAR)
SELECT AVG(age), MIN(age) FROM artist WHERE country = 'United States'
What is the average and minimum age of all artists from United States.
<s>[INST]What is the average and minimum age of all artists from United States. Context: CREATE TABLE artist (age INTEGER, country VARCHAR)[/INST]SELECT AVG(age), MIN(age) FROM artist WHERE country = 'United States'</s>
CREATE TABLE table_name_78 (rank INTEGER, total VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT SUM(rank) FROM table_name_78 WHERE silver > 1 AND gold = 1 AND total < 6
What is the sum of rank with more than 1 silver medal, 1 gold medal, and less than 6?
<s>[INST]What is the sum of rank with more than 1 silver medal, 1 gold medal, and less than 6? Context: CREATE TABLE table_name_78 (rank INTEGER, total VARCHAR, silver VARCHAR, gold VARCHAR)[/INST]SELECT SUM(rank) FROM table_name_78 WHERE silver > 1 AND gold = 1 AND total < 6</s>
CREATE TABLE table_171361_1 (area_km_2 VARCHAR, population VARCHAR)
SELECT area_km_2 FROM table_171361_1 WHERE population = 1209
What is the area of the community with a population of 1209?
<s>[INST]What is the area of the community with a population of 1209? Context: CREATE TABLE table_171361_1 (area_km_2 VARCHAR, population VARCHAR)[/INST]SELECT area_km_2 FROM table_171361_1 WHERE population = 1209</s>
CREATE TABLE table_name_84 (bronze INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR)
SELECT MAX(bronze) FROM table_name_84 WHERE gold > 0 AND total = 15 AND silver < 5
What is the highest total for bronze with a gold larger than 0, a silver smaller than 5, and a total of 15?
<s>[INST]What is the highest total for bronze with a gold larger than 0, a silver smaller than 5, and a total of 15? Context: CREATE TABLE table_name_84 (bronze INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR)[/INST]SELECT MAX(bronze) FROM table_name_84 WHERE gold > 0 AND total = 15 AND silver < 5</s>
CREATE TABLE table_name_62 (fa_cup INTEGER, player VARCHAR, total VARCHAR)
SELECT AVG(fa_cup) FROM table_name_62 WHERE player = "khairan ezuan razali" AND total < 0
Which FA Cup has a Player of khairan ezuan razali, and a Total smaller than 0?
<s>[INST]Which FA Cup has a Player of khairan ezuan razali, and a Total smaller than 0? Context: CREATE TABLE table_name_62 (fa_cup INTEGER, player VARCHAR, total VARCHAR)[/INST]SELECT AVG(fa_cup) FROM table_name_62 WHERE player = "khairan ezuan razali" AND total < 0</s>
CREATE TABLE table_17968274_2 (team VARCHAR)
SELECT 1989 AS _90 FROM table_17968274_2 WHERE team = "Vélez Sársfield"
How many games were played by the Vélez Sársfield team from 1989-90?
<s>[INST]How many games were played by the Vélez Sársfield team from 1989-90? Context: CREATE TABLE table_17968274_2 (team VARCHAR)[/INST]SELECT 1989 AS _90 FROM table_17968274_2 WHERE team = "Vélez Sársfield"</s>
CREATE TABLE table_name_74 (storms__days_year_ VARCHAR, fog__days_year_ VARCHAR, sunshine__hrs_year_ VARCHAR)
SELECT COUNT(storms__days_year_) FROM table_name_74 WHERE fog__days_year_ < 74 AND sunshine__hrs_year_ = "2 668"
What are the number of storms where fog is lower than 74, and sunshine is 2 668?
<s>[INST]What are the number of storms where fog is lower than 74, and sunshine is 2 668? Context: CREATE TABLE table_name_74 (storms__days_year_ VARCHAR, fog__days_year_ VARCHAR, sunshine__hrs_year_ VARCHAR)[/INST]SELECT COUNT(storms__days_year_) FROM table_name_74 WHERE fog__days_year_ < 74 AND sunshine__hrs_year_ = ...
CREATE TABLE table_name_68 (opponent VARCHAR, h_a_n VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_68 WHERE h_a_n = "h" AND score = "101-105"
Who were the opponents when the score of the game was 101-105 and the H/A/N was H?
<s>[INST]Who were the opponents when the score of the game was 101-105 and the H/A/N was H? Context: CREATE TABLE table_name_68 (opponent VARCHAR, h_a_n VARCHAR, score VARCHAR)[/INST]SELECT opponent FROM table_name_68 WHERE h_a_n = "h" AND score = "101-105"</s>
CREATE TABLE table_name_39 (against INTEGER, date VARCHAR)
SELECT SUM(against) FROM table_name_39 WHERE date = "15/10/1999"
What is the total against on 15/10/1999?
<s>[INST]What is the total against on 15/10/1999? Context: CREATE TABLE table_name_39 (against INTEGER, date VARCHAR)[/INST]SELECT SUM(against) FROM table_name_39 WHERE date = "15/10/1999"</s>
CREATE TABLE table_1342359_23 (incumbent VARCHAR, first_elected VARCHAR)
SELECT COUNT(incumbent) FROM table_1342359_23 WHERE first_elected = 1922
How many winners were there in the race of 1922
<s>[INST]How many winners were there in the race of 1922 Context: CREATE TABLE table_1342359_23 (incumbent VARCHAR, first_elected VARCHAR)[/INST]SELECT COUNT(incumbent) FROM table_1342359_23 WHERE first_elected = 1922</s>
CREATE TABLE table_name_51 (chassis VARCHAR, points VARCHAR, year VARCHAR)
SELECT chassis FROM table_name_51 WHERE points < 6 AND year = 1961
In 1961, what was the Chassis when the points were lower than 6?
<s>[INST]In 1961, what was the Chassis when the points were lower than 6? Context: CREATE TABLE table_name_51 (chassis VARCHAR, points VARCHAR, year VARCHAR)[/INST]SELECT chassis FROM table_name_51 WHERE points < 6 AND year = 1961</s>
CREATE TABLE table_name_72 (class VARCHAR, year_s__withdrawn VARCHAR, manufacturer VARCHAR, year_made VARCHAR)
SELECT class FROM table_name_72 WHERE manufacturer = "eastleigh works" AND year_made = "1914" AND year_s__withdrawn = "1959"
What is the class of the locomotive with an Eastleigh Works manufacturer, made in 1914, and withdrawn in 1959?
<s>[INST]What is the class of the locomotive with an Eastleigh Works manufacturer, made in 1914, and withdrawn in 1959? Context: CREATE TABLE table_name_72 (class VARCHAR, year_s__withdrawn VARCHAR, manufacturer VARCHAR, year_made VARCHAR)[/INST]SELECT class FROM table_name_72 WHERE manufacturer = "eastleigh works" AND...
CREATE TABLE table_name_17 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_17 WHERE away_team = "hawthorn"
what date were they playing in hawthorn
<s>[INST]what date were they playing in hawthorn Context: CREATE TABLE table_name_17 (date VARCHAR, away_team VARCHAR)[/INST]SELECT date FROM table_name_17 WHERE away_team = "hawthorn"</s>
CREATE TABLE table_1974632_1 (type VARCHAR, institution VARCHAR)
SELECT type FROM table_1974632_1 WHERE institution = "Alvernia University"
what type of institution is alvernia university
<s>[INST]what type of institution is alvernia university Context: CREATE TABLE table_1974632_1 (type VARCHAR, institution VARCHAR)[/INST]SELECT type FROM table_1974632_1 WHERE institution = "Alvernia University"</s>
CREATE TABLE table_214920_1 (regional_county_municipality__rcm_ VARCHAR, density__pop_per_km2_ VARCHAR)
SELECT regional_county_municipality__rcm_ FROM table_214920_1 WHERE density__pop_per_km2_ = "9.7"
What is the RCM that has a density of 9.7?
<s>[INST]What is the RCM that has a density of 9.7? Context: CREATE TABLE table_214920_1 (regional_county_municipality__rcm_ VARCHAR, density__pop_per_km2_ VARCHAR)[/INST]SELECT regional_county_municipality__rcm_ FROM table_214920_1 WHERE density__pop_per_km2_ = "9.7"</s>
CREATE TABLE table_name_95 (Id VARCHAR)
SELECT 1989 FROM table_name_95 WHERE 1990 = "f"
What is the 1989 value with F in 1990?
<s>[INST]What is the 1989 value with F in 1990? Context: CREATE TABLE table_name_95 (Id VARCHAR)[/INST]SELECT 1989 FROM table_name_95 WHERE 1990 = "f"</s>
CREATE TABLE table_name_42 (sheep_and_goats INTEGER, total_horses VARCHAR, year VARCHAR, cows VARCHAR)
SELECT MIN(sheep_and_goats) FROM table_name_42 WHERE year > 1931 AND cows < 2518 AND total_horses > 2604.8
What is the lowest number of sheep and goats after 1931, with fewer than 2518 cows and more than 2604.8 horses?
<s>[INST]What is the lowest number of sheep and goats after 1931, with fewer than 2518 cows and more than 2604.8 horses? Context: CREATE TABLE table_name_42 (sheep_and_goats INTEGER, total_horses VARCHAR, year VARCHAR, cows VARCHAR)[/INST]SELECT MIN(sheep_and_goats) FROM table_name_42 WHERE year > 1931 AND cows < 2518 ...
CREATE TABLE table_name_45 (date__ddmmyyyy_ VARCHAR, axis_unit VARCHAR)
SELECT date__ddmmyyyy_ FROM table_name_45 WHERE axis_unit = "5./jg 3"
What was the date of the victory when the Axis Unit was 5./jg 3?
<s>[INST]What was the date of the victory when the Axis Unit was 5./jg 3? Context: CREATE TABLE table_name_45 (date__ddmmyyyy_ VARCHAR, axis_unit VARCHAR)[/INST]SELECT date__ddmmyyyy_ FROM table_name_45 WHERE axis_unit = "5./jg 3"</s>
CREATE TABLE table_name_47 (pendle INTEGER, burnley INTEGER)
SELECT SUM(pendle) FROM table_name_47 WHERE burnley < 0
Which Pendle has a Burnley smaller than 0?
<s>[INST]Which Pendle has a Burnley smaller than 0? Context: CREATE TABLE table_name_47 (pendle INTEGER, burnley INTEGER)[/INST]SELECT SUM(pendle) FROM table_name_47 WHERE burnley < 0</s>
CREATE TABLE table_name_15 (team VARCHAR, previous_team VARCHAR)
SELECT team FROM table_name_15 WHERE previous_team = "indiana pacers"
What is the team of the player who was previously on the indiana pacers?
<s>[INST]What is the team of the player who was previously on the indiana pacers? Context: CREATE TABLE table_name_15 (team VARCHAR, previous_team VARCHAR)[/INST]SELECT team FROM table_name_15 WHERE previous_team = "indiana pacers"</s>
CREATE TABLE table_16884579_1 (host_s_ VARCHAR, network VARCHAR)
SELECT host_s_ FROM table_16884579_1 WHERE network = "Prime"
Name the host for prime
<s>[INST]Name the host for prime Context: CREATE TABLE table_16884579_1 (host_s_ VARCHAR, network VARCHAR)[/INST]SELECT host_s_ FROM table_16884579_1 WHERE network = "Prime"</s>
CREATE TABLE table_3005915_3 (poles INTEGER)
SELECT MIN(poles) FROM table_3005915_3
What is the minimum number of poles?
<s>[INST]What is the minimum number of poles? Context: CREATE TABLE table_3005915_3 (poles INTEGER)[/INST]SELECT MIN(poles) FROM table_3005915_3</s>
CREATE TABLE table_name_76 (overall VARCHAR, position VARCHAR, round VARCHAR)
SELECT COUNT(overall) FROM table_name_76 WHERE position = "ot" AND round > 5
How much Overall has a Position of ot, and a Round larger than 5?
<s>[INST]How much Overall has a Position of ot, and a Round larger than 5? Context: CREATE TABLE table_name_76 (overall VARCHAR, position VARCHAR, round VARCHAR)[/INST]SELECT COUNT(overall) FROM table_name_76 WHERE position = "ot" AND round > 5</s>
CREATE TABLE table_27303975_2 (catalog_number VARCHAR, release_date VARCHAR)
SELECT catalog_number FROM table_27303975_2 WHERE release_date = "October 6, 1988"
Name the catalog number for october 6, 1988
<s>[INST]Name the catalog number for october 6, 1988 Context: CREATE TABLE table_27303975_2 (catalog_number VARCHAR, release_date VARCHAR)[/INST]SELECT catalog_number FROM table_27303975_2 WHERE release_date = "October 6, 1988"</s>
CREATE TABLE table_name_48 (attendance VARCHAR, home_team VARCHAR)
SELECT attendance FROM table_name_48 WHERE home_team = "shrewsbury town"
What is the attendance date of the game home team Shrewsbury Town played?
<s>[INST]What is the attendance date of the game home team Shrewsbury Town played? Context: CREATE TABLE table_name_48 (attendance VARCHAR, home_team VARCHAR)[/INST]SELECT attendance FROM table_name_48 WHERE home_team = "shrewsbury town"</s>
CREATE TABLE table_16661199_2 (giants_points VARCHAR, opponents VARCHAR)
SELECT COUNT(giants_points) FROM table_16661199_2 WHERE opponents = 31
Name the number of giants points for opponents being 31
<s>[INST]Name the number of giants points for opponents being 31 Context: CREATE TABLE table_16661199_2 (giants_points VARCHAR, opponents VARCHAR)[/INST]SELECT COUNT(giants_points) FROM table_16661199_2 WHERE opponents = 31</s>
CREATE TABLE table_name_38 (partner VARCHAR, score VARCHAR)
SELECT partner FROM table_name_38 WHERE score = "7–6, 6–3"
Which Partner has a Score of 7–6, 6–3?
<s>[INST]Which Partner has a Score of 7–6, 6–3? Context: CREATE TABLE table_name_38 (partner VARCHAR, score VARCHAR)[/INST]SELECT partner FROM table_name_38 WHERE score = "7–6, 6–3"</s>
CREATE TABLE table_name_2 (drawn VARCHAR, points_for VARCHAR)
SELECT drawn FROM table_name_2 WHERE points_for = "782"
Which Drawn has Points for of 782?
<s>[INST]Which Drawn has Points for of 782? Context: CREATE TABLE table_name_2 (drawn VARCHAR, points_for VARCHAR)[/INST]SELECT drawn FROM table_name_2 WHERE points_for = "782"</s>
CREATE TABLE table_name_9 (totaltk INTEGER, yards INTEGER)
SELECT SUM(totaltk) FROM table_name_9 WHERE yards < 0
what is the sum of totaltk when yards is less than 0?
<s>[INST]what is the sum of totaltk when yards is less than 0? Context: CREATE TABLE table_name_9 (totaltk INTEGER, yards INTEGER)[/INST]SELECT SUM(totaltk) FROM table_name_9 WHERE yards < 0</s>
CREATE TABLE table_15088557_1 (team_classification VARCHAR, combination_classification VARCHAR)
SELECT team_classification FROM table_15088557_1 WHERE combination_classification = "Mederic Clain"
Name all the team clasification where the combination classification is mederic clain
<s>[INST]Name all the team clasification where the combination classification is mederic clain Context: CREATE TABLE table_15088557_1 (team_classification VARCHAR, combination_classification VARCHAR)[/INST]SELECT team_classification FROM table_15088557_1 WHERE combination_classification = "Mederic Clain"</s>
CREATE TABLE table_22464308_2 (points_classification VARCHAR, stage VARCHAR)
SELECT points_classification FROM table_22464308_2 WHERE stage = 4
Which points classification has 4 as the stage?
<s>[INST]Which points classification has 4 as the stage? Context: CREATE TABLE table_22464308_2 (points_classification VARCHAR, stage VARCHAR)[/INST]SELECT points_classification FROM table_22464308_2 WHERE stage = 4</s>
CREATE TABLE Grants (organisation_id VARCHAR, grant_amount INTEGER); CREATE TABLE Organisations (organisation_id VARCHAR, organisation_details VARCHAR)
SELECT T2.organisation_id, T2.organisation_details FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id GROUP BY T2.organisation_id HAVING SUM(T1.grant_amount) > 6000
Find the organisation ids and details of the organisations which are involved in
<s>[INST]Find the organisation ids and details of the organisations which are involved in Context: CREATE TABLE Grants (organisation_id VARCHAR, grant_amount INTEGER); CREATE TABLE Organisations (organisation_id VARCHAR, organisation_details VARCHAR)[/INST]SELECT T2.organisation_id, T2.organisation_details FROM Grants ...
CREATE TABLE table_name_38 (tries_for INTEGER, team VARCHAR, points_against VARCHAR)
SELECT SUM(tries_for) FROM table_name_38 WHERE team = "neath" AND points_against > 109
What Tries for has a Team of neath, and Points against larger than 109?
<s>[INST]What Tries for has a Team of neath, and Points against larger than 109? Context: CREATE TABLE table_name_38 (tries_for INTEGER, team VARCHAR, points_against VARCHAR)[/INST]SELECT SUM(tries_for) FROM table_name_38 WHERE team = "neath" AND points_against > 109</s>
CREATE TABLE table_16387653_1 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_16387653_1 WHERE away_team = "Collingwood"
What was the home team score against Collingwood?
<s>[INST]What was the home team score against Collingwood? Context: CREATE TABLE table_16387653_1 (home_team VARCHAR, away_team VARCHAR)[/INST]SELECT home_team AS score FROM table_16387653_1 WHERE away_team = "Collingwood"</s>
CREATE TABLE table_name_98 (ties VARCHAR, losses INTEGER)
SELECT COUNT(ties) FROM table_name_98 WHERE losses < 3
What is the total number of ties a team with less than 3 losses have?
<s>[INST]What is the total number of ties a team with less than 3 losses have? Context: CREATE TABLE table_name_98 (ties VARCHAR, losses INTEGER)[/INST]SELECT COUNT(ties) FROM table_name_98 WHERE losses < 3</s>
CREATE TABLE table_26914076_4 (directed_by VARCHAR, us_viewers__millions_ VARCHAR)
SELECT directed_by FROM table_26914076_4 WHERE us_viewers__millions_ = "0.57"
Who directed the episode that had 0.57 million U.S. viewers?
<s>[INST]Who directed the episode that had 0.57 million U.S. viewers? Context: CREATE TABLE table_26914076_4 (directed_by VARCHAR, us_viewers__millions_ VARCHAR)[/INST]SELECT directed_by FROM table_26914076_4 WHERE us_viewers__millions_ = "0.57"</s>
CREATE TABLE county_public_safety (Case_burden VARCHAR, Population VARCHAR)
SELECT Case_burden FROM county_public_safety ORDER BY Population DESC
Show the case burden of counties in descending order of population.
<s>[INST]Show the case burden of counties in descending order of population. Context: CREATE TABLE county_public_safety (Case_burden VARCHAR, Population VARCHAR)[/INST]SELECT Case_burden FROM county_public_safety ORDER BY Population DESC</s>
CREATE TABLE table_name_91 (draw INTEGER, jury VARCHAR, televote VARCHAR)
SELECT SUM(draw) FROM table_name_91 WHERE jury > 22 AND televote = 130
What sum of draw had more than 22 in Jury and a Televote of 130?
<s>[INST]What sum of draw had more than 22 in Jury and a Televote of 130? Context: CREATE TABLE table_name_91 (draw INTEGER, jury VARCHAR, televote VARCHAR)[/INST]SELECT SUM(draw) FROM table_name_91 WHERE jury > 22 AND televote = 130</s>
CREATE TABLE table_1682026_3 (profits__billion_$_ VARCHAR, company VARCHAR)
SELECT profits__billion_$_ FROM table_1682026_3 WHERE company = "Wells Fargo"
What are the profits of Wells Fargo (in billions)?
<s>[INST]What are the profits of Wells Fargo (in billions)? Context: CREATE TABLE table_1682026_3 (profits__billion_$_ VARCHAR, company VARCHAR)[/INST]SELECT profits__billion_$_ FROM table_1682026_3 WHERE company = "Wells Fargo"</s>
CREATE TABLE table_name_47 (track VARCHAR, year VARCHAR)
SELECT track FROM table_name_47 WHERE year = 1978
What's the track for 1978?
<s>[INST]What's the track for 1978? Context: CREATE TABLE table_name_47 (track VARCHAR, year VARCHAR)[/INST]SELECT track FROM table_name_47 WHERE year = 1978</s>
CREATE TABLE table_name_34 (grid VARCHAR, time_retired VARCHAR)
SELECT grid FROM table_name_34 WHERE time_retired = "+5 laps"
What grid has a Time/Retired of +5 laps?
<s>[INST]What grid has a Time/Retired of +5 laps? Context: CREATE TABLE table_name_34 (grid VARCHAR, time_retired VARCHAR)[/INST]SELECT grid FROM table_name_34 WHERE time_retired = "+5 laps"</s>
CREATE TABLE table_name_51 (score VARCHAR, visitor VARCHAR)
SELECT score FROM table_name_51 WHERE visitor = "pittsburgh"
What was the score when the visitor was pittsburgh?
<s>[INST]What was the score when the visitor was pittsburgh? Context: CREATE TABLE table_name_51 (score VARCHAR, visitor VARCHAR)[/INST]SELECT score FROM table_name_51 WHERE visitor = "pittsburgh"</s>
CREATE TABLE table_name_75 (name VARCHAR, apparent_magnitude VARCHAR, ra___j2000__ VARCHAR)
SELECT name FROM table_name_75 WHERE apparent_magnitude < 11.4 AND ra___j2000__ = "04h17m35.8s"
Which Name has Apparent Magnitude smaller than 11.4, and R.A. (J2000) of 04h17m35.8s?
<s>[INST]Which Name has Apparent Magnitude smaller than 11.4, and R.A. (J2000) of 04h17m35.8s? Context: CREATE TABLE table_name_75 (name VARCHAR, apparent_magnitude VARCHAR, ra___j2000__ VARCHAR)[/INST]SELECT name FROM table_name_75 WHERE apparent_magnitude < 11.4 AND ra___j2000__ = "04h17m35.8s"</s>
CREATE TABLE table_2182654_6 (title VARCHAR, directed_by VARCHAR)
SELECT title FROM table_2182654_6 WHERE directed_by = "Mary Harron"
What was the name of the episode that was directed by Mary Harron?
<s>[INST]What was the name of the episode that was directed by Mary Harron? Context: CREATE TABLE table_2182654_6 (title VARCHAR, directed_by VARCHAR)[/INST]SELECT title FROM table_2182654_6 WHERE directed_by = "Mary Harron"</s>
CREATE TABLE table_name_4 (date VARCHAR, home_team VARCHAR, result VARCHAR)
SELECT date FROM table_name_4 WHERE home_team = "philadelphia" AND result = "104–110"
Which Date has a Home team of philadelphia, and a Result of 104–110?
<s>[INST]Which Date has a Home team of philadelphia, and a Result of 104–110? Context: CREATE TABLE table_name_4 (date VARCHAR, home_team VARCHAR, result VARCHAR)[/INST]SELECT date FROM table_name_4 WHERE home_team = "philadelphia" AND result = "104–110"</s>
CREATE TABLE table_name_52 (pick__number INTEGER, overall VARCHAR)
SELECT MAX(pick__number) FROM table_name_52 WHERE overall = 204
Name the most pick # for overall of 204
<s>[INST]Name the most pick # for overall of 204 Context: CREATE TABLE table_name_52 (pick__number INTEGER, overall VARCHAR)[/INST]SELECT MAX(pick__number) FROM table_name_52 WHERE overall = 204</s>
CREATE TABLE table_name_70 (career VARCHAR)
SELECT career FROM table_name_70 WHERE 2006 = "3r" AND 1999 = "2r"
What is the career for the 2006 3r, and the 1999 2r?
<s>[INST]What is the career for the 2006 3r, and the 1999 2r? Context: CREATE TABLE table_name_70 (career VARCHAR)[/INST]SELECT career FROM table_name_70 WHERE 2006 = "3r" AND 1999 = "2r"</s>
CREATE TABLE table_name_71 (ram___mib__ VARCHAR, model VARCHAR)
SELECT ram___mib__ FROM table_name_71 WHERE model = "x30 mid-range"
What is the RAM (MiB) value for the X30 Mid-Range model?
<s>[INST]What is the RAM (MiB) value for the X30 Mid-Range model? Context: CREATE TABLE table_name_71 (ram___mib__ VARCHAR, model VARCHAR)[/INST]SELECT ram___mib__ FROM table_name_71 WHERE model = "x30 mid-range"</s>
CREATE TABLE table_name_47 (substrate VARCHAR, omim VARCHAR)
SELECT substrate FROM table_name_47 WHERE omim = 176000
Which substrate has an OMIM of 176000?
<s>[INST]Which substrate has an OMIM of 176000? Context: CREATE TABLE table_name_47 (substrate VARCHAR, omim VARCHAR)[/INST]SELECT substrate FROM table_name_47 WHERE omim = 176000</s>
CREATE TABLE table_name_64 (version VARCHAR, year VARCHAR, length VARCHAR)
SELECT version FROM table_name_64 WHERE year < 2001 AND length = "7:42"
What is the Version before 2001 with a Length of 7:42?
<s>[INST]What is the Version before 2001 with a Length of 7:42? Context: CREATE TABLE table_name_64 (version VARCHAR, year VARCHAR, length VARCHAR)[/INST]SELECT version FROM table_name_64 WHERE year < 2001 AND length = "7:42"</s>
CREATE TABLE table_name_43 (democratic_ticket VARCHAR, liberal_ticket VARCHAR)
SELECT democratic_ticket FROM table_name_43 WHERE liberal_ticket = "erastus corning 2nd"
What is the name on the Democratic ticket when the Liberal ticket is erastus corning 2nd?
<s>[INST]What is the name on the Democratic ticket when the Liberal ticket is erastus corning 2nd? Context: CREATE TABLE table_name_43 (democratic_ticket VARCHAR, liberal_ticket VARCHAR)[/INST]SELECT democratic_ticket FROM table_name_43 WHERE liberal_ticket = "erastus corning 2nd"</s>
CREATE TABLE table_name_70 (value___usd__ VARCHAR, country VARCHAR, date VARCHAR, business VARCHAR)
SELECT value___usd__ FROM table_name_70 WHERE date = "unknown" AND business = "energy" AND country = "new zealand"
In New Zealand, what's the value that has an unknown date and is an energy business?
<s>[INST]In New Zealand, what's the value that has an unknown date and is an energy business? Context: CREATE TABLE table_name_70 (value___usd__ VARCHAR, country VARCHAR, date VARCHAR, business VARCHAR)[/INST]SELECT value___usd__ FROM table_name_70 WHERE date = "unknown" AND business = "energy" AND country = "new zeala...
CREATE TABLE table_name_85 (position VARCHAR, competition VARCHAR)
SELECT position FROM table_name_85 WHERE competition = "super league 1"
What Position has a Super League 1 Competition?
<s>[INST]What Position has a Super League 1 Competition? Context: CREATE TABLE table_name_85 (position VARCHAR, competition VARCHAR)[/INST]SELECT position FROM table_name_85 WHERE competition = "super league 1"</s>
CREATE TABLE table_name_65 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_65 WHERE away_team = "melbourne"
What was the home team score with an away team of Melbourne?
<s>[INST]What was the home team score with an away team of Melbourne? Context: CREATE TABLE table_name_65 (home_team VARCHAR, away_team VARCHAR)[/INST]SELECT home_team AS score FROM table_name_65 WHERE away_team = "melbourne"</s>
CREATE TABLE Highschooler (name VARCHAR, id VARCHAR); CREATE TABLE Friend (student_id VARCHAR, friend_id VARCHAR); CREATE TABLE Highschooler (id VARCHAR, name VARCHAR)
SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id JOIN Highschooler AS T3 ON T1.friend_id = T3.id WHERE T2.name = "Kyle"
Show the names of all of the high schooler Kyle's friends.
<s>[INST]Show the names of all of the high schooler Kyle's friends. Context: CREATE TABLE Highschooler (name VARCHAR, id VARCHAR); CREATE TABLE Friend (student_id VARCHAR, friend_id VARCHAR); CREATE TABLE Highschooler (id VARCHAR, name VARCHAR)[/INST]SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.studen...
CREATE TABLE table_name_60 (fleet_series__quantity_ VARCHAR, order_year VARCHAR, model VARCHAR)
SELECT fleet_series__quantity_ FROM table_name_60 WHERE order_year = "2010" AND model = "de40lfr"
Which Fleet Series (Quantity) has an Order Year of 2010, and a Model of de40lfr?
<s>[INST]Which Fleet Series (Quantity) has an Order Year of 2010, and a Model of de40lfr? Context: CREATE TABLE table_name_60 (fleet_series__quantity_ VARCHAR, order_year VARCHAR, model VARCHAR)[/INST]SELECT fleet_series__quantity_ FROM table_name_60 WHERE order_year = "2010" AND model = "de40lfr"</s>
CREATE TABLE table_name_85 (institution VARCHAR, enrollment INTEGER)
SELECT institution FROM table_name_85 WHERE enrollment < 1 OFFSET 000
Which college's enrollment is less than 1,000?
<s>[INST]Which college's enrollment is less than 1,000? Context: CREATE TABLE table_name_85 (institution VARCHAR, enrollment INTEGER)[/INST]SELECT institution FROM table_name_85 WHERE enrollment < 1 OFFSET 000</s>
CREATE TABLE table_1342249_11 (party VARCHAR, incumbent VARCHAR)
SELECT COUNT(party) FROM table_1342249_11 WHERE incumbent = "Carl Vinson"
How many parties does incumbent carl vinson represent?
<s>[INST]How many parties does incumbent carl vinson represent? Context: CREATE TABLE table_1342249_11 (party VARCHAR, incumbent VARCHAR)[/INST]SELECT COUNT(party) FROM table_1342249_11 WHERE incumbent = "Carl Vinson"</s>
CREATE TABLE professionals (role_code VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR)
SELECT role_code, street, city, state FROM professionals WHERE city LIKE '%West%'
Which professionals live in a city containing the substring 'West'? List his or her role, street, city and state.
<s>[INST]Which professionals live in a city containing the substring 'West'? List his or her role, street, city and state. Context: CREATE TABLE professionals (role_code VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR)[/INST]SELECT role_code, street, city, state FROM professionals WHERE city LIKE '%West%'</s>
CREATE TABLE table_24233848_2 (vote VARCHAR, eliminated VARCHAR)
SELECT vote FROM table_24233848_2 WHERE eliminated = "Thiago"
Name the vote for thiago
<s>[INST]Name the vote for thiago Context: CREATE TABLE table_24233848_2 (vote VARCHAR, eliminated VARCHAR)[/INST]SELECT vote FROM table_24233848_2 WHERE eliminated = "Thiago"</s>
CREATE TABLE table_name_15 (charter_range VARCHAR, status VARCHAR, state VARCHAR)
SELECT charter_range FROM table_name_15 WHERE status = "inactive" AND state = "north carolina"
What years were the inactive North Carolina chapter active?
<s>[INST]What years were the inactive North Carolina chapter active? Context: CREATE TABLE table_name_15 (charter_range VARCHAR, status VARCHAR, state VARCHAR)[/INST]SELECT charter_range FROM table_name_15 WHERE status = "inactive" AND state = "north carolina"</s>
CREATE TABLE table_name_64 (opponent VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_name_64 WHERE attendance = "37,845"
Who is the opponent for the game with 37,845 people in attendance?
<s>[INST]Who is the opponent for the game with 37,845 people in attendance? Context: CREATE TABLE table_name_64 (opponent VARCHAR, attendance VARCHAR)[/INST]SELECT opponent FROM table_name_64 WHERE attendance = "37,845"</s>
CREATE TABLE table_1850339_2 (season VARCHAR, army___navy_score VARCHAR)
SELECT COUNT(season) FROM table_1850339_2 WHERE army___navy_score = "10 Dec. 2016 at Baltimore, MD (M&T Bank Stadium)"
How many different season have an Army - Navy score of 10 dec. 2016 at Baltimore, MD (M&T Bank Stadium)?
<s>[INST]How many different season have an Army - Navy score of 10 dec. 2016 at Baltimore, MD (M&T Bank Stadium)? Context: CREATE TABLE table_1850339_2 (season VARCHAR, army___navy_score VARCHAR)[/INST]SELECT COUNT(season) FROM table_1850339_2 WHERE army___navy_score = "10 Dec. 2016 at Baltimore, MD (M&T Bank Stadium)"...
CREATE TABLE table_name_99 (place VARCHAR, area__km_2__ INTEGER)
SELECT place FROM table_name_99 WHERE area__km_2__ > 34.42
Which place has more area (km 2) than 34.42?
<s>[INST]Which place has more area (km 2) than 34.42? Context: CREATE TABLE table_name_99 (place VARCHAR, area__km_2__ INTEGER)[/INST]SELECT place FROM table_name_99 WHERE area__km_2__ > 34.42</s>
CREATE TABLE table_name_74 (player VARCHAR, long VARCHAR, yards VARCHAR)
SELECT player FROM table_name_74 WHERE long = "5" AND yards = "6"
Which Player had a Long of 5 and Yards of 6?
<s>[INST]Which Player had a Long of 5 and Yards of 6? Context: CREATE TABLE table_name_74 (player VARCHAR, long VARCHAR, yards VARCHAR)[/INST]SELECT player FROM table_name_74 WHERE long = "5" AND yards = "6"</s>
CREATE TABLE table_1637041_2 (top_10 INTEGER, position VARCHAR)
SELECT MAX(top_10) FROM table_1637041_2 WHERE position = "63rd"
What is the maximum number of top 10s when he finished in 63rd?
<s>[INST]What is the maximum number of top 10s when he finished in 63rd? Context: CREATE TABLE table_1637041_2 (top_10 INTEGER, position VARCHAR)[/INST]SELECT MAX(top_10) FROM table_1637041_2 WHERE position = "63rd"</s>
CREATE TABLE table_1816947_2 (season INTEGER, average_attendance_league VARCHAR)
SELECT MAX(season) FROM table_1816947_2 WHERE average_attendance_league = "2.572"
In which season was the average league attendance 2.572?
<s>[INST]In which season was the average league attendance 2.572? Context: CREATE TABLE table_1816947_2 (season INTEGER, average_attendance_league VARCHAR)[/INST]SELECT MAX(season) FROM table_1816947_2 WHERE average_attendance_league = "2.572"</s>
CREATE TABLE table_name_27 (aug_2013 INTEGER, jun_2011 VARCHAR, nov_2011 VARCHAR, jul_2012 VARCHAR)
SELECT MAX(aug_2013) FROM table_name_27 WHERE nov_2011 < 968 AND jul_2012 = 31 AND jun_2011 > 30
What is the highest Aug 2013 with a Nov 2011 smaller than 968, and a Jul 2012 with 31, and a Jun 2011 larger than 30?
<s>[INST]What is the highest Aug 2013 with a Nov 2011 smaller than 968, and a Jul 2012 with 31, and a Jun 2011 larger than 30? Context: CREATE TABLE table_name_27 (aug_2013 INTEGER, jun_2011 VARCHAR, nov_2011 VARCHAR, jul_2012 VARCHAR)[/INST]SELECT MAX(aug_2013) FROM table_name_27 WHERE nov_2011 < 968 AND jul_2012 = 31...
CREATE TABLE table_name_80 (points INTEGER, position VARCHAR, played VARCHAR)
SELECT MAX(points) FROM table_name_80 WHERE position = 5 AND played < 18
Which Points is the highest one that has a Position of 5, and a Played smaller than 18?
<s>[INST]Which Points is the highest one that has a Position of 5, and a Played smaller than 18? Context: CREATE TABLE table_name_80 (points INTEGER, position VARCHAR, played VARCHAR)[/INST]SELECT MAX(points) FROM table_name_80 WHERE position = 5 AND played < 18</s>
CREATE TABLE table_262514_1 (joined VARCHAR, nickname VARCHAR)
SELECT joined FROM table_262514_1 WHERE nickname = "Ravens"
What is every year for joined with the Ravens nickname?
<s>[INST]What is every year for joined with the Ravens nickname? Context: CREATE TABLE table_262514_1 (joined VARCHAR, nickname VARCHAR)[/INST]SELECT joined FROM table_262514_1 WHERE nickname = "Ravens"</s>
CREATE TABLE table_20036882_2 (country VARCHAR, winning_pilot VARCHAR)
SELECT country FROM table_20036882_2 WHERE winning_pilot = "Hannes Arch"
Name the country for hannes arch
<s>[INST]Name the country for hannes arch Context: CREATE TABLE table_20036882_2 (country VARCHAR, winning_pilot VARCHAR)[/INST]SELECT country FROM table_20036882_2 WHERE winning_pilot = "Hannes Arch"</s>
CREATE TABLE table_name_51 (hydroelectricity INTEGER, total VARCHAR, solar VARCHAR)
SELECT MIN(hydroelectricity) FROM table_name_51 WHERE total < 116.4 AND solar > 18.637
What is the minimum hydroelectricity with a less than 116.4 total, and a greater than 18.637 solar?
<s>[INST]What is the minimum hydroelectricity with a less than 116.4 total, and a greater than 18.637 solar? Context: CREATE TABLE table_name_51 (hydroelectricity INTEGER, total VARCHAR, solar VARCHAR)[/INST]SELECT MIN(hydroelectricity) FROM table_name_51 WHERE total < 116.4 AND solar > 18.637</s>
CREATE TABLE table_name_53 (Id VARCHAR)
SELECT 1996 FROM table_name_53 WHERE 1986 = "1r"
What's the 1996 if 1986 has a 1R?
<s>[INST]What's the 1996 if 1986 has a 1R? Context: CREATE TABLE table_name_53 (Id VARCHAR)[/INST]SELECT 1996 FROM table_name_53 WHERE 1986 = "1r"</s>
CREATE TABLE table_name_48 (result VARCHAR, couple VARCHAR, score VARCHAR)
SELECT result FROM table_name_48 WHERE couple = "kelly & alec" AND score = "22 (8, 7, 7)"
What is the Result for Couple Kelly & Alec when they have a Score of 22 (8, 7, 7)?
<s>[INST]What is the Result for Couple Kelly & Alec when they have a Score of 22 (8, 7, 7)? Context: CREATE TABLE table_name_48 (result VARCHAR, couple VARCHAR, score VARCHAR)[/INST]SELECT result FROM table_name_48 WHERE couple = "kelly & alec" AND score = "22 (8, 7, 7)"</s>
CREATE TABLE Ref_locations (location_code VARCHAR, location_name VARCHAR)
SELECT location_code FROM Ref_locations WHERE location_name = "Canada"
What is the location code for the country "Canada"?
<s>[INST]What is the location code for the country "Canada"? Context: CREATE TABLE Ref_locations (location_code VARCHAR, location_name VARCHAR)[/INST]SELECT location_code FROM Ref_locations WHERE location_name = "Canada"</s>
CREATE TABLE table_24039173_1 (capacity VARCHAR, team VARCHAR)
SELECT COUNT(capacity) FROM table_24039173_1 WHERE team = "North East Stars"
What is the capacity for Sangre Grande Ground, home of the North East Stars?
<s>[INST]What is the capacity for Sangre Grande Ground, home of the North East Stars? Context: CREATE TABLE table_24039173_1 (capacity VARCHAR, team VARCHAR)[/INST]SELECT COUNT(capacity) FROM table_24039173_1 WHERE team = "North East Stars"</s>
CREATE TABLE table_1342292_4 (candidates VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_1342292_4 WHERE incumbent = "William J. Driver"
What candidates ran in the election when the incumbent was william j. driver?
<s>[INST]What candidates ran in the election when the incumbent was william j. driver? Context: CREATE TABLE table_1342292_4 (candidates VARCHAR, incumbent VARCHAR)[/INST]SELECT candidates FROM table_1342292_4 WHERE incumbent = "William J. Driver"</s>