context
stringlengths
27
489
answer
stringlengths
18
557
question
stringlengths
12
243
text
stringlengths
103
1.05k
CREATE TABLE table_name_10 (rank INTEGER, country VARCHAR)
SELECT SUM(rank) FROM table_name_10 WHERE country = "bulgaria"
What is the sum of the ranks for bulgaria?
<s>[INST]What is the sum of the ranks for bulgaria? Context: CREATE TABLE table_name_10 (rank INTEGER, country VARCHAR)[/INST]SELECT SUM(rank) FROM table_name_10 WHERE country = "bulgaria"</s>
CREATE TABLE table_name_60 (airport VARCHAR, city VARCHAR)
SELECT airport FROM table_name_60 WHERE city = "muscat"
What airport is in Muscat?
<s>[INST]What airport is in Muscat? Context: CREATE TABLE table_name_60 (airport VARCHAR, city VARCHAR)[/INST]SELECT airport FROM table_name_60 WHERE city = "muscat"</s>
CREATE TABLE table_name_39 (tries_against VARCHAR, points_against VARCHAR)
SELECT tries_against FROM table_name_39 WHERE points_against = "383"
How many tries against did the club with 383 points against have?
<s>[INST]How many tries against did the club with 383 points against have? Context: CREATE TABLE table_name_39 (tries_against VARCHAR, points_against VARCHAR)[/INST]SELECT tries_against FROM table_name_39 WHERE points_against = "383"</s>
CREATE TABLE table_1139835_1 (crowd INTEGER, scores VARCHAR)
SELECT MAX(crowd) FROM table_1139835_1 WHERE scores = "10.12 (72) – 8.11 (59)"
what was the crowd when the scores are 10.12 (72) – 8.11 (59)?
<s>[INST]what was the crowd when the scores are 10.12 (72) – 8.11 (59)? Context: CREATE TABLE table_1139835_1 (crowd INTEGER, scores VARCHAR)[/INST]SELECT MAX(crowd) FROM table_1139835_1 WHERE scores = "10.12 (72) – 8.11 (59)"</s>
CREATE TABLE table_name_88 (silver INTEGER, nation VARCHAR, rank VARCHAR)
SELECT AVG(silver) FROM table_name_88 WHERE nation = "france" AND rank > 8
What was the average number of silver medals won by France when they are ranked higher than 8?
<s>[INST]What was the average number of silver medals won by France when they are ranked higher than 8? Context: CREATE TABLE table_name_88 (silver INTEGER, nation VARCHAR, rank VARCHAR)[/INST]SELECT AVG(silver) FROM table_name_88 WHERE nation = "france" AND rank > 8</s>
CREATE TABLE table_name_91 (region VARCHAR, date VARCHAR, format VARCHAR)
SELECT region FROM table_name_91 WHERE date = "november 10, 2007" AND format = "cd"
What's the region for an item on November 10, 2007 that's a cd?
<s>[INST]What's the region for an item on November 10, 2007 that's a cd? Context: CREATE TABLE table_name_91 (region VARCHAR, date VARCHAR, format VARCHAR)[/INST]SELECT region FROM table_name_91 WHERE date = "november 10, 2007" AND format = "cd"</s>
CREATE TABLE table_name_49 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_49 WHERE player = "willie goggin"
What was willie goggin's score?
<s>[INST]What was willie goggin's score? Context: CREATE TABLE table_name_49 (score VARCHAR, player VARCHAR)[/INST]SELECT score FROM table_name_49 WHERE player = "willie goggin"</s>
CREATE TABLE invoices (customer_id VARCHAR); CREATE TABLE customers (id VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = "Lucas" AND T1.last_name = "Mancini"
How many orders does Lucas Mancini has?
<s>[INST]How many orders does Lucas Mancini has? Context: CREATE TABLE invoices (customer_id VARCHAR); CREATE TABLE customers (id VARCHAR, first_name VARCHAR, last_name VARCHAR)[/INST]SELECT COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = "Lucas" AND T1.last_name = "Mancini"</s>
CREATE TABLE table_name_30 (weeks_on_chart__uk_ VARCHAR, entered_chart__uk_ VARCHAR)
SELECT COUNT(weeks_on_chart__uk_) FROM table_name_30 WHERE entered_chart__uk_ = "14 september 2002"
How many weeks did the single that entered the charts 14 september 2002 stay on the charts ?
<s>[INST]How many weeks did the single that entered the charts 14 september 2002 stay on the charts ? Context: CREATE TABLE table_name_30 (weeks_on_chart__uk_ VARCHAR, entered_chart__uk_ VARCHAR)[/INST]SELECT COUNT(weeks_on_chart__uk_) FROM table_name_30 WHERE entered_chart__uk_ = "14 september 2002"</s>
CREATE TABLE table_15405904_1 (drawn INTEGER, lost VARCHAR)
SELECT MAX(drawn) FROM table_15405904_1 WHERE lost = 2
When there is a lost of 2 what is the mumber drawn?
<s>[INST]When there is a lost of 2 what is the mumber drawn? Context: CREATE TABLE table_15405904_1 (drawn INTEGER, lost VARCHAR)[/INST]SELECT MAX(drawn) FROM table_15405904_1 WHERE lost = 2</s>
CREATE TABLE table_name_75 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_75 WHERE home_team = "collingwood"
What date did Collingwood play as the home team?
<s>[INST]What date did Collingwood play as the home team? Context: CREATE TABLE table_name_75 (date VARCHAR, home_team VARCHAR)[/INST]SELECT date FROM table_name_75 WHERE home_team = "collingwood"</s>
CREATE TABLE table_name_55 (award VARCHAR, category VARCHAR)
SELECT award FROM table_name_55 WHERE category = "best music video"
Which award is in the category of best music video?
<s>[INST]Which award is in the category of best music video? Context: CREATE TABLE table_name_55 (award VARCHAR, category VARCHAR)[/INST]SELECT award FROM table_name_55 WHERE category = "best music video"</s>
CREATE TABLE table_name_43 (year INTEGER, engine_s_ VARCHAR)
SELECT SUM(year) FROM table_name_43 WHERE engine_s_ = "brm p202 3.0 v12 brm p200 3.0 v12"
Name the sum of year for engine of brm p202 3.0 v12 brm p200 3.0 v12
<s>[INST]Name the sum of year for engine of brm p202 3.0 v12 brm p200 3.0 v12 Context: CREATE TABLE table_name_43 (year INTEGER, engine_s_ VARCHAR)[/INST]SELECT SUM(year) FROM table_name_43 WHERE engine_s_ = "brm p202 3.0 v12 brm p200 3.0 v12"</s>
CREATE TABLE table_name_94 (notes VARCHAR, position VARCHAR)
SELECT notes FROM table_name_94 WHERE position = "12th"
What are the notes of events that finished in 12th position?
<s>[INST]What are the notes of events that finished in 12th position? Context: CREATE TABLE table_name_94 (notes VARCHAR, position VARCHAR)[/INST]SELECT notes FROM table_name_94 WHERE position = "12th"</s>
CREATE TABLE swimmer (id VARCHAR, nationality VARCHAR); CREATE TABLE record (swimmer_id VARCHAR, event_id VARCHAR); CREATE TABLE stadium (name VARCHAR, id VARCHAR); CREATE TABLE event (id VARCHAR, stadium_id VARCHAR)
SELECT t4.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id JOIN event AS t3 ON t2.event_id = t3.id JOIN stadium AS t4 ON t4.id = t3.stadium_id WHERE t1.nationality = 'Australia'
Find the names of stadiums that some Australian swimmers have been to.
<s>[INST]Find the names of stadiums that some Australian swimmers have been to. Context: CREATE TABLE swimmer (id VARCHAR, nationality VARCHAR); CREATE TABLE record (swimmer_id VARCHAR, event_id VARCHAR); CREATE TABLE stadium (name VARCHAR, id VARCHAR); CREATE TABLE event (id VARCHAR, stadium_id VARCHAR)[/INST]SELECT t4.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id JOIN event AS t3 ON t2.event_id = t3.id JOIN stadium AS t4 ON t4.id = t3.stadium_id WHERE t1.nationality = 'Australia'</s>
CREATE TABLE table_name_25 (original_title VARCHAR, winner_and_nominees VARCHAR)
SELECT original_title FROM table_name_25 WHERE winner_and_nominees = "secrets & lies"
What is the original title for the winner and nominees 'Secrets & Lies'?
<s>[INST]What is the original title for the winner and nominees 'Secrets & Lies'? Context: CREATE TABLE table_name_25 (original_title VARCHAR, winner_and_nominees VARCHAR)[/INST]SELECT original_title FROM table_name_25 WHERE winner_and_nominees = "secrets & lies"</s>
CREATE TABLE table_name_29 (winner VARCHAR, team VARCHAR, circuit VARCHAR)
SELECT winner FROM table_name_29 WHERE team = "r.j.macarthur onslow" AND circuit = "oran park raceway"
What is Winner, when Team is "R.J.MacArthur Onslow", and when Circuit is "Oran Park Raceway"?
<s>[INST]What is Winner, when Team is "R.J.MacArthur Onslow", and when Circuit is "Oran Park Raceway"? Context: CREATE TABLE table_name_29 (winner VARCHAR, team VARCHAR, circuit VARCHAR)[/INST]SELECT winner FROM table_name_29 WHERE team = "r.j.macarthur onslow" AND circuit = "oran park raceway"</s>
CREATE TABLE table_name_82 (investing_dragon_s_ VARCHAR, episode VARCHAR, entrepreneur_s_ VARCHAR)
SELECT investing_dragon_s_ FROM table_name_82 WHERE episode = "episode 9" AND entrepreneur_s_ = "ashley sayed"
Which Investing Dragon(s) belong to Episode 9 with the Entrepreneur Ashley Sayed?
<s>[INST]Which Investing Dragon(s) belong to Episode 9 with the Entrepreneur Ashley Sayed? Context: CREATE TABLE table_name_82 (investing_dragon_s_ VARCHAR, episode VARCHAR, entrepreneur_s_ VARCHAR)[/INST]SELECT investing_dragon_s_ FROM table_name_82 WHERE episode = "episode 9" AND entrepreneur_s_ = "ashley sayed"</s>
CREATE TABLE table_23308178_8 (points INTEGER)
SELECT MAX(points) FROM table_23308178_8
What is the largest number of points they had?
<s>[INST]What is the largest number of points they had? Context: CREATE TABLE table_23308178_8 (points INTEGER)[/INST]SELECT MAX(points) FROM table_23308178_8</s>
CREATE TABLE table_10602294_1 (pressure VARCHAR, deaths VARCHAR)
SELECT pressure FROM table_10602294_1 WHERE deaths = "95km/h (60mph)"
What was the cyclone's pressure in the storm that death was equal to 95km/h (60mph)?
<s>[INST]What was the cyclone's pressure in the storm that death was equal to 95km/h (60mph)? Context: CREATE TABLE table_10602294_1 (pressure VARCHAR, deaths VARCHAR)[/INST]SELECT pressure FROM table_10602294_1 WHERE deaths = "95km/h (60mph)"</s>
CREATE TABLE table_13079788_3 (date VARCHAR, gt3_winner VARCHAR)
SELECT date FROM table_13079788_3 WHERE gt3_winner = "Oliver Bryant Matt Harris"
what are all the date for gt3 winner oliver bryant matt harris
<s>[INST]what are all the date for gt3 winner oliver bryant matt harris Context: CREATE TABLE table_13079788_3 (date VARCHAR, gt3_winner VARCHAR)[/INST]SELECT date FROM table_13079788_3 WHERE gt3_winner = "Oliver Bryant Matt Harris"</s>
CREATE TABLE table_name_19 (figures INTEGER, free INTEGER)
SELECT AVG(figures) FROM table_name_19 WHERE free < 56.35
What was the average figure score of the skater with a free score under 56.35?
<s>[INST]What was the average figure score of the skater with a free score under 56.35? Context: CREATE TABLE table_name_19 (figures INTEGER, free INTEGER)[/INST]SELECT AVG(figures) FROM table_name_19 WHERE free < 56.35</s>
CREATE TABLE table_name_18 (first_party VARCHAR, second_member VARCHAR, election VARCHAR)
SELECT first_party FROM table_name_18 WHERE second_member = "hon. rowland hill" AND election = "1857"
What is the first party with second member Hon. Rowland Hill, in the 1857 election?
<s>[INST]What is the first party with second member Hon. Rowland Hill, in the 1857 election? Context: CREATE TABLE table_name_18 (first_party VARCHAR, second_member VARCHAR, election VARCHAR)[/INST]SELECT first_party FROM table_name_18 WHERE second_member = "hon. rowland hill" AND election = "1857"</s>
CREATE TABLE table_name_38 (drawn INTEGER, position VARCHAR, against VARCHAR)
SELECT MIN(drawn) FROM table_name_38 WHERE position < 7 AND against = 19
What is the smallest amount of draws when the position is less than 7 and the against is 19?
<s>[INST]What is the smallest amount of draws when the position is less than 7 and the against is 19? Context: CREATE TABLE table_name_38 (drawn INTEGER, position VARCHAR, against VARCHAR)[/INST]SELECT MIN(drawn) FROM table_name_38 WHERE position < 7 AND against = 19</s>
CREATE TABLE table_16799784_11 (latitude VARCHAR, diameter__km_ VARCHAR)
SELECT latitude FROM table_16799784_11 WHERE diameter__km_ = "500.0"
At what latitude can you find the diameter (km) of 500.0?
<s>[INST]At what latitude can you find the diameter (km) of 500.0? Context: CREATE TABLE table_16799784_11 (latitude VARCHAR, diameter__km_ VARCHAR)[/INST]SELECT latitude FROM table_16799784_11 WHERE diameter__km_ = "500.0"</s>
CREATE TABLE table_name_95 (finish VARCHAR, year VARCHAR)
SELECT finish FROM table_name_95 WHERE year = "1953"
What was the finishing place for 1953?
<s>[INST]What was the finishing place for 1953? Context: CREATE TABLE table_name_95 (finish VARCHAR, year VARCHAR)[/INST]SELECT finish FROM table_name_95 WHERE year = "1953"</s>
CREATE TABLE table_name_24 (player VARCHAR, position VARCHAR, school_club_team VARCHAR)
SELECT player FROM table_name_24 WHERE position = "forward" AND school_club_team = "grambling state"
Who is the forward from Grambling State?
<s>[INST]Who is the forward from Grambling State? Context: CREATE TABLE table_name_24 (player VARCHAR, position VARCHAR, school_club_team VARCHAR)[/INST]SELECT player FROM table_name_24 WHERE position = "forward" AND school_club_team = "grambling state"</s>
CREATE TABLE table_name_86 (game VARCHAR, location_attendance VARCHAR)
SELECT game FROM table_name_86 WHERE location_attendance = "amway arena"
What game number was played at amway arena?
<s>[INST]What game number was played at amway arena? Context: CREATE TABLE table_name_86 (game VARCHAR, location_attendance VARCHAR)[/INST]SELECT game FROM table_name_86 WHERE location_attendance = "amway arena"</s>
CREATE TABLE table_143579_1 (area___ha__ INTEGER, island VARCHAR)
SELECT MIN(area___ha__) FROM table_143579_1 WHERE island = "Colonsay"
What is the area of Colonsay Island?
<s>[INST]What is the area of Colonsay Island? Context: CREATE TABLE table_143579_1 (area___ha__ INTEGER, island VARCHAR)[/INST]SELECT MIN(area___ha__) FROM table_143579_1 WHERE island = "Colonsay"</s>
CREATE TABLE table_name_95 (wheel_arrangement VARCHAR, number VARCHAR)
SELECT wheel_arrangement FROM table_name_95 WHERE number = "6 or 4"
What is the wheel arrangement of the locomotive with number 6 or 4?
<s>[INST]What is the wheel arrangement of the locomotive with number 6 or 4? Context: CREATE TABLE table_name_95 (wheel_arrangement VARCHAR, number VARCHAR)[/INST]SELECT wheel_arrangement FROM table_name_95 WHERE number = "6 or 4"</s>
CREATE TABLE table_18904831_7 (location VARCHAR, record VARCHAR)
SELECT location FROM table_18904831_7 WHERE record = "19-6"
Where was the game played that had a record of 19-6?
<s>[INST]Where was the game played that had a record of 19-6? Context: CREATE TABLE table_18904831_7 (location VARCHAR, record VARCHAR)[/INST]SELECT location FROM table_18904831_7 WHERE record = "19-6"</s>
CREATE TABLE furniture (Market_Rate VARCHAR, name VARCHAR, Furniture_ID VARCHAR); CREATE TABLE furniture_manufacte (Market_Rate VARCHAR, name VARCHAR, Furniture_ID VARCHAR)
SELECT Market_Rate, name FROM furniture WHERE NOT Furniture_ID IN (SELECT Furniture_ID FROM furniture_manufacte)
Find the market shares and names of furnitures which no any company is producing in our records.
<s>[INST]Find the market shares and names of furnitures which no any company is producing in our records. Context: CREATE TABLE furniture (Market_Rate VARCHAR, name VARCHAR, Furniture_ID VARCHAR); CREATE TABLE furniture_manufacte (Market_Rate VARCHAR, name VARCHAR, Furniture_ID VARCHAR)[/INST]SELECT Market_Rate, name FROM furniture WHERE NOT Furniture_ID IN (SELECT Furniture_ID FROM furniture_manufacte)</s>
CREATE TABLE table_name_4 (name VARCHAR, order VARCHAR)
SELECT name FROM table_name_4 WHERE order = 1
Which name had an order number of 1?
<s>[INST]Which name had an order number of 1? Context: CREATE TABLE table_name_4 (name VARCHAR, order VARCHAR)[/INST]SELECT name FROM table_name_4 WHERE order = 1</s>
CREATE TABLE table_name_40 (to_par VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_40 WHERE score = 64 - 73 - 74 - 69 = 280
What is the to par for the score 64-73-74-69=280?
<s>[INST]What is the to par for the score 64-73-74-69=280? Context: CREATE TABLE table_name_40 (to_par VARCHAR, score VARCHAR)[/INST]SELECT to_par FROM table_name_40 WHERE score = 64 - 73 - 74 - 69 = 280</s>
CREATE TABLE table_name_77 (show VARCHAR, award VARCHAR)
SELECT show FROM table_name_77 WHERE award = "indian television academy awards"
Which Show has an Award of indian television academy awards?
<s>[INST]Which Show has an Award of indian television academy awards? Context: CREATE TABLE table_name_77 (show VARCHAR, award VARCHAR)[/INST]SELECT show FROM table_name_77 WHERE award = "indian television academy awards"</s>
CREATE TABLE table_name_4 (original_italian_production VARCHAR, first_us_national_tour VARCHAR)
SELECT original_italian_production FROM table_name_4 WHERE first_us_national_tour = "joanna glushak"
Which Original Italian production has a First US National Tour of joanna glushak?
<s>[INST]Which Original Italian production has a First US National Tour of joanna glushak? Context: CREATE TABLE table_name_4 (original_italian_production VARCHAR, first_us_national_tour VARCHAR)[/INST]SELECT original_italian_production FROM table_name_4 WHERE first_us_national_tour = "joanna glushak"</s>
CREATE TABLE table_1566848_7 (pictorials VARCHAR, centerfold_model VARCHAR)
SELECT pictorials FROM table_1566848_7 WHERE centerfold_model = "Ava Fabian"
Who were the pictorials when the centerfold model was Ava Fabian?
<s>[INST]Who were the pictorials when the centerfold model was Ava Fabian? Context: CREATE TABLE table_1566848_7 (pictorials VARCHAR, centerfold_model VARCHAR)[/INST]SELECT pictorials FROM table_1566848_7 WHERE centerfold_model = "Ava Fabian"</s>
CREATE TABLE table_21058823_1 (result VARCHAR, opponent VARCHAR)
SELECT result FROM table_21058823_1 WHERE opponent = "Villanova"
What did they do against Villanova?
<s>[INST]What did they do against Villanova? Context: CREATE TABLE table_21058823_1 (result VARCHAR, opponent VARCHAR)[/INST]SELECT result FROM table_21058823_1 WHERE opponent = "Villanova"</s>
CREATE TABLE table_name_32 (tournament VARCHAR)
SELECT tournament FROM table_name_32 WHERE 2012 = "grand slam tournaments"
Name the tournament for 2012 grand slam tournaments
<s>[INST]Name the tournament for 2012 grand slam tournaments Context: CREATE TABLE table_name_32 (tournament VARCHAR)[/INST]SELECT tournament FROM table_name_32 WHERE 2012 = "grand slam tournaments"</s>
CREATE TABLE table_name_43 (player VARCHAR, score VARCHAR)
SELECT player FROM table_name_43 WHERE score = 69 - 68 - 68 = 205
What player has a score of 69-68-68=205?
<s>[INST]What player has a score of 69-68-68=205? Context: CREATE TABLE table_name_43 (player VARCHAR, score VARCHAR)[/INST]SELECT player FROM table_name_43 WHERE score = 69 - 68 - 68 = 205</s>
CREATE TABLE airports (city VARCHAR, country VARCHAR)
SELECT COUNT(*), city FROM airports WHERE country = 'United States' GROUP BY city ORDER BY COUNT(*) DESC
How many airports are there per city in the United States? Order the cities by decreasing number of airports.
<s>[INST]How many airports are there per city in the United States? Order the cities by decreasing number of airports. Context: CREATE TABLE airports (city VARCHAR, country VARCHAR)[/INST]SELECT COUNT(*), city FROM airports WHERE country = 'United States' GROUP BY city ORDER BY COUNT(*) DESC</s>
CREATE TABLE table_name_17 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_17 WHERE player = "rocco mediate"
What is Rocco Mediate's par?
<s>[INST]What is Rocco Mediate's par? Context: CREATE TABLE table_name_17 (to_par VARCHAR, player VARCHAR)[/INST]SELECT to_par FROM table_name_17 WHERE player = "rocco mediate"</s>
CREATE TABLE table_name_99 (year INTEGER, engine VARCHAR, points VARCHAR)
SELECT MIN(year) FROM table_name_99 WHERE engine = "toyota v8" AND points < 26
What is the earliest year that had under 26 points and a toyota v8 engine?
<s>[INST]What is the earliest year that had under 26 points and a toyota v8 engine? Context: CREATE TABLE table_name_99 (year INTEGER, engine VARCHAR, points VARCHAR)[/INST]SELECT MIN(year) FROM table_name_99 WHERE engine = "toyota v8" AND points < 26</s>
CREATE TABLE table_2409041_5 (title VARCHAR, no_in_series VARCHAR)
SELECT title FROM table_2409041_5 WHERE no_in_series = 77
What is the name of episode number 77 in the series?
<s>[INST]What is the name of episode number 77 in the series? Context: CREATE TABLE table_2409041_5 (title VARCHAR, no_in_series VARCHAR)[/INST]SELECT title FROM table_2409041_5 WHERE no_in_series = 77</s>
CREATE TABLE table_2509350_3 (tomina_municipality INTEGER, el_villar_municipality VARCHAR)
SELECT MIN(tomina_municipality) FROM table_2509350_3 WHERE el_villar_municipality = 4
Name the least tomina for el villar being 4
<s>[INST]Name the least tomina for el villar being 4 Context: CREATE TABLE table_2509350_3 (tomina_municipality INTEGER, el_villar_municipality VARCHAR)[/INST]SELECT MIN(tomina_municipality) FROM table_2509350_3 WHERE el_villar_municipality = 4</s>
CREATE TABLE table_name_41 (time_retired VARCHAR, grid VARCHAR)
SELECT time_retired FROM table_name_41 WHERE grid = "4"
What was the time/retired of the car that started in grid 4?
<s>[INST]What was the time/retired of the car that started in grid 4? Context: CREATE TABLE table_name_41 (time_retired VARCHAR, grid VARCHAR)[/INST]SELECT time_retired FROM table_name_41 WHERE grid = "4"</s>
CREATE TABLE table_name_30 (bronze INTEGER, rank VARCHAR, total VARCHAR)
SELECT MIN(bronze) FROM table_name_30 WHERE rank = "17" AND total < 5
What is the lowest Bronze with a 17 Rank and a Total less than 5
<s>[INST]What is the lowest Bronze with a 17 Rank and a Total less than 5 Context: CREATE TABLE table_name_30 (bronze INTEGER, rank VARCHAR, total VARCHAR)[/INST]SELECT MIN(bronze) FROM table_name_30 WHERE rank = "17" AND total < 5</s>
CREATE TABLE table_name_52 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_52 WHERE away_team = "st kilda"
Where was the away team st kilda?
<s>[INST]Where was the away team st kilda? Context: CREATE TABLE table_name_52 (venue VARCHAR, away_team VARCHAR)[/INST]SELECT venue FROM table_name_52 WHERE away_team = "st kilda"</s>
CREATE TABLE table_name_53 (song VARCHAR, artist_s_ VARCHAR, work_done VARCHAR, year VARCHAR)
SELECT song FROM table_name_53 WHERE work_done = "guest vocals" AND year = 2006 AND artist_s_ = "cobra starship"
Which 2006 Cobra Starship song has work done of guest vocals?
<s>[INST]Which 2006 Cobra Starship song has work done of guest vocals? Context: CREATE TABLE table_name_53 (song VARCHAR, artist_s_ VARCHAR, work_done VARCHAR, year VARCHAR)[/INST]SELECT song FROM table_name_53 WHERE work_done = "guest vocals" AND year = 2006 AND artist_s_ = "cobra starship"</s>
CREATE TABLE table_25721_3 (rank__cable_ INTEGER, total_viewers VARCHAR)
SELECT MIN(rank__cable_) FROM table_25721_3 WHERE total_viewers = 1464000
What is the lowest cable rank of an episode with 1464000 viewers?
<s>[INST]What is the lowest cable rank of an episode with 1464000 viewers? Context: CREATE TABLE table_25721_3 (rank__cable_ INTEGER, total_viewers VARCHAR)[/INST]SELECT MIN(rank__cable_) FROM table_25721_3 WHERE total_viewers = 1464000</s>
CREATE TABLE table_name_76 (principal_activities VARCHAR, incorporated_in VARCHAR)
SELECT principal_activities FROM table_name_76 WHERE incorporated_in = "france"
Which Principal activities have an Incorporated in of france?
<s>[INST]Which Principal activities have an Incorporated in of france? Context: CREATE TABLE table_name_76 (principal_activities VARCHAR, incorporated_in VARCHAR)[/INST]SELECT principal_activities FROM table_name_76 WHERE incorporated_in = "france"</s>
CREATE TABLE table_name_58 (earnings___ INTEGER, country VARCHAR, score VARCHAR)
SELECT AVG(earnings___) AS $__ FROM table_name_58 WHERE country = "united states" AND score = 72 - 68 - 74 - 72 = 286
What is the average earnings of a United States player who had a score of 72-68-74-72=286?
<s>[INST]What is the average earnings of a United States player who had a score of 72-68-74-72=286? Context: CREATE TABLE table_name_58 (earnings___ INTEGER, country VARCHAR, score VARCHAR)[/INST]SELECT AVG(earnings___) AS $__ FROM table_name_58 WHERE country = "united states" AND score = 72 - 68 - 74 - 72 = 286</s>
CREATE TABLE table_name_53 (score_points VARCHAR, rank_points VARCHAR)
SELECT score_points FROM table_name_53 WHERE rank_points = "3"
What is the score points when the rank points is 3?
<s>[INST]What is the score points when the rank points is 3? Context: CREATE TABLE table_name_53 (score_points VARCHAR, rank_points VARCHAR)[/INST]SELECT score_points FROM table_name_53 WHERE rank_points = "3"</s>
CREATE TABLE table_name_26 (attendance VARCHAR, opponent VARCHAR)
SELECT COUNT(attendance) FROM table_name_26 WHERE opponent = "hamilton academical"
When Hamilton Academical is the Opponent, what is the total Attendance?
<s>[INST]When Hamilton Academical is the Opponent, what is the total Attendance? Context: CREATE TABLE table_name_26 (attendance VARCHAR, opponent VARCHAR)[/INST]SELECT COUNT(attendance) FROM table_name_26 WHERE opponent = "hamilton academical"</s>
CREATE TABLE table_name_70 (country VARCHAR, notes VARCHAR, athlete VARCHAR)
SELECT country FROM table_name_70 WHERE notes = "fa" AND athlete = "ekaterina karsten"
What country did ekaterina karsten row for with fa listed under notes?
<s>[INST]What country did ekaterina karsten row for with fa listed under notes? Context: CREATE TABLE table_name_70 (country VARCHAR, notes VARCHAR, athlete VARCHAR)[/INST]SELECT country FROM table_name_70 WHERE notes = "fa" AND athlete = "ekaterina karsten"</s>
CREATE TABLE table_name_86 (artist VARCHAR, label VARCHAR, standard_number VARCHAR)
SELECT artist FROM table_name_86 WHERE label = "columbia" AND standard_number = "cocc-72073"
Which Artist has the Label of Columbia and the Standard number of COCC-72073?
<s>[INST]Which Artist has the Label of Columbia and the Standard number of COCC-72073? Context: CREATE TABLE table_name_86 (artist VARCHAR, label VARCHAR, standard_number VARCHAR)[/INST]SELECT artist FROM table_name_86 WHERE label = "columbia" AND standard_number = "cocc-72073"</s>
CREATE TABLE table_name_8 (water__sqmi_ INTEGER, longitude VARCHAR, pop__2010_ VARCHAR, township VARCHAR)
SELECT AVG(water__sqmi_) FROM table_name_8 WHERE pop__2010_ > 47 AND township = "brenna" AND longitude < -97.171507
what is the average water sqmi with a population (2010) more than 47 in the Brenna Township with Longitude less than -97.171507
<s>[INST]what is the average water sqmi with a population (2010) more than 47 in the Brenna Township with Longitude less than -97.171507 Context: CREATE TABLE table_name_8 (water__sqmi_ INTEGER, longitude VARCHAR, pop__2010_ VARCHAR, township VARCHAR)[/INST]SELECT AVG(water__sqmi_) FROM table_name_8 WHERE pop__2010_ > 47 AND township = "brenna" AND longitude < -97.171507</s>
CREATE TABLE table_16795394_3 (points VARCHAR, team__number2 VARCHAR)
SELECT COUNT(points) FROM table_16795394_3 WHERE team__number2 = "Lanús"
If team two is Lanús, what was the total number of points?
<s>[INST]If team two is Lanús, what was the total number of points? Context: CREATE TABLE table_16795394_3 (points VARCHAR, team__number2 VARCHAR)[/INST]SELECT COUNT(points) FROM table_16795394_3 WHERE team__number2 = "Lanús"</s>
CREATE TABLE table_12194021_1 (womens_singles VARCHAR, mens_doubles VARCHAR, womens_doubles VARCHAR)
SELECT COUNT(womens_singles) FROM table_12194021_1 WHERE mens_doubles = "Rupesh Kumar Sanave Thomas" AND womens_doubles = "Jwala Gutta Ashwini Ponnappa"
How many total titles did Rupesh Kumar Sanave Thomas and Jwala Gutta Ashwini Ponnappa win total?
<s>[INST]How many total titles did Rupesh Kumar Sanave Thomas and Jwala Gutta Ashwini Ponnappa win total? Context: CREATE TABLE table_12194021_1 (womens_singles VARCHAR, mens_doubles VARCHAR, womens_doubles VARCHAR)[/INST]SELECT COUNT(womens_singles) FROM table_12194021_1 WHERE mens_doubles = "Rupesh Kumar Sanave Thomas" AND womens_doubles = "Jwala Gutta Ashwini Ponnappa"</s>
CREATE TABLE table_14242137_4 (oberliga_baden_württemberg VARCHAR, oberliga_bayern VARCHAR, oberliga_südwest VARCHAR)
SELECT oberliga_baden_württemberg FROM table_14242137_4 WHERE oberliga_bayern = "TSV 1860 Munich" AND oberliga_südwest = "Borussia Neunkirchen"
Name the oberliga for where tsv 1860 munich and borussia neunkirchen
<s>[INST]Name the oberliga for where tsv 1860 munich and borussia neunkirchen Context: CREATE TABLE table_14242137_4 (oberliga_baden_württemberg VARCHAR, oberliga_bayern VARCHAR, oberliga_südwest VARCHAR)[/INST]SELECT oberliga_baden_württemberg FROM table_14242137_4 WHERE oberliga_bayern = "TSV 1860 Munich" AND oberliga_südwest = "Borussia Neunkirchen"</s>
CREATE TABLE table_name_23 (full_name VARCHAR, age¹ VARCHAR, occupation² VARCHAR)
SELECT full_name FROM table_name_23 WHERE age¹ = 20 AND occupation² = "student"
What is Full Name, when Age¹ is "20", and when Occupation² is "Student"?
<s>[INST]What is Full Name, when Age¹ is "20", and when Occupation² is "Student"? Context: CREATE TABLE table_name_23 (full_name VARCHAR, age¹ VARCHAR, occupation² VARCHAR)[/INST]SELECT full_name FROM table_name_23 WHERE age¹ = 20 AND occupation² = "student"</s>
CREATE TABLE table_19517621_4 (original_airdate VARCHAR, written_by VARCHAR)
SELECT original_airdate FROM table_19517621_4 WHERE written_by = "Michelle Offen"
What was the original air date of the episode written by Michelle Offen?
<s>[INST]What was the original air date of the episode written by Michelle Offen? Context: CREATE TABLE table_19517621_4 (original_airdate VARCHAR, written_by VARCHAR)[/INST]SELECT original_airdate FROM table_19517621_4 WHERE written_by = "Michelle Offen"</s>
CREATE TABLE table_name_8 (tournament VARCHAR)
SELECT tournament FROM table_name_8 WHERE 2013 = "1r"
Which tournament had 1R in 2013?
<s>[INST]Which tournament had 1R in 2013? Context: CREATE TABLE table_name_8 (tournament VARCHAR)[/INST]SELECT tournament FROM table_name_8 WHERE 2013 = "1r"</s>
CREATE TABLE table_2562572_54 (largest_ethnic_group__2002_ VARCHAR, cyrillic_name_other_names VARCHAR)
SELECT largest_ethnic_group__2002_ FROM table_2562572_54 WHERE cyrillic_name_other_names = "Бешка"
What is the largest ethnic group in 2002 for the cyrillic name, other name of бешка?
<s>[INST]What is the largest ethnic group in 2002 for the cyrillic name, other name of бешка? Context: CREATE TABLE table_2562572_54 (largest_ethnic_group__2002_ VARCHAR, cyrillic_name_other_names VARCHAR)[/INST]SELECT largest_ethnic_group__2002_ FROM table_2562572_54 WHERE cyrillic_name_other_names = "Бешка"</s>
CREATE TABLE table_name_88 (score VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_88 WHERE away_team = "dartford"
What was the score fore the away team Dartford?
<s>[INST]What was the score fore the away team Dartford? Context: CREATE TABLE table_name_88 (score VARCHAR, away_team VARCHAR)[/INST]SELECT score FROM table_name_88 WHERE away_team = "dartford"</s>
CREATE TABLE table_2383498_4 (last_year_in_qld_cup VARCHAR, qld_cup_premierships VARCHAR)
SELECT COUNT(last_year_in_qld_cup) FROM table_2383498_4 WHERE qld_cup_premierships = "1996, 2001"
How many values of last year in QLD Cup if QLD Cup Premierships is 1996, 2001?
<s>[INST]How many values of last year in QLD Cup if QLD Cup Premierships is 1996, 2001? Context: CREATE TABLE table_2383498_4 (last_year_in_qld_cup VARCHAR, qld_cup_premierships VARCHAR)[/INST]SELECT COUNT(last_year_in_qld_cup) FROM table_2383498_4 WHERE qld_cup_premierships = "1996, 2001"</s>
CREATE TABLE table_12962773_4 (no INTEGER, player VARCHAR)
SELECT MIN(no) FROM table_12962773_4 WHERE player = "Zoran Erceg"
What No is the player Zoran Erceg
<s>[INST]What No is the player Zoran Erceg Context: CREATE TABLE table_12962773_4 (no INTEGER, player VARCHAR)[/INST]SELECT MIN(no) FROM table_12962773_4 WHERE player = "Zoran Erceg"</s>
CREATE TABLE table_name_10 (score VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR)
SELECT score FROM table_name_10 WHERE country = "united states" AND place = "t3" AND player = "phil blackmar"
What is Score, when Country is "United States", when Place is "T3", and when Player is "Phil Blackmar"?
<s>[INST]What is Score, when Country is "United States", when Place is "T3", and when Player is "Phil Blackmar"? Context: CREATE TABLE table_name_10 (score VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR)[/INST]SELECT score FROM table_name_10 WHERE country = "united states" AND place = "t3" AND player = "phil blackmar"</s>
CREATE TABLE table_11603006_1 (score VARCHAR, tournament VARCHAR)
SELECT COUNT(score) FROM table_11603006_1 WHERE tournament = "Verizon Classic"
How many different scores are there for the Verizon Classic?
<s>[INST]How many different scores are there for the Verizon Classic? Context: CREATE TABLE table_11603006_1 (score VARCHAR, tournament VARCHAR)[/INST]SELECT COUNT(score) FROM table_11603006_1 WHERE tournament = "Verizon Classic"</s>
CREATE TABLE table_name_19 (interview VARCHAR, country VARCHAR, swimsuit VARCHAR)
SELECT COUNT(interview) FROM table_name_19 WHERE country = "louisiana" AND swimsuit > 9.1
What is the interview number in Louisiana, and the swimsuit number is more than 9.1?
<s>[INST]What is the interview number in Louisiana, and the swimsuit number is more than 9.1? Context: CREATE TABLE table_name_19 (interview VARCHAR, country VARCHAR, swimsuit VARCHAR)[/INST]SELECT COUNT(interview) FROM table_name_19 WHERE country = "louisiana" AND swimsuit > 9.1</s>
CREATE TABLE table_28466323_2 (directed_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT directed_by FROM table_28466323_2 WHERE us_viewers__million_ = "2.01"
Who directed the episode watched by 2.01 million US viewers?
<s>[INST]Who directed the episode watched by 2.01 million US viewers? Context: CREATE TABLE table_28466323_2 (directed_by VARCHAR, us_viewers__million_ VARCHAR)[/INST]SELECT directed_by FROM table_28466323_2 WHERE us_viewers__million_ = "2.01"</s>
CREATE TABLE table_name_53 (championship VARCHAR, opponent VARCHAR)
SELECT championship FROM table_name_53 WHERE opponent = "jeff borowiak"
During what Championship was the Opponent Jeff Borowiak?
<s>[INST]During what Championship was the Opponent Jeff Borowiak? Context: CREATE TABLE table_name_53 (championship VARCHAR, opponent VARCHAR)[/INST]SELECT championship FROM table_name_53 WHERE opponent = "jeff borowiak"</s>
CREATE TABLE table_26733129_1 (three_darts_challenge VARCHAR, air_date VARCHAR)
SELECT three_darts_challenge FROM table_26733129_1 WHERE air_date = "10 May 2010"
Who was in the three darts challenge that aired on 10 may 2010?
<s>[INST]Who was in the three darts challenge that aired on 10 may 2010? Context: CREATE TABLE table_26733129_1 (three_darts_challenge VARCHAR, air_date VARCHAR)[/INST]SELECT three_darts_challenge FROM table_26733129_1 WHERE air_date = "10 May 2010"</s>
CREATE TABLE table_name_55 (host_team VARCHAR, date VARCHAR)
SELECT host_team FROM table_name_55 WHERE date = "december 27"
Who was the host team for the game on December 27?
<s>[INST]Who was the host team for the game on December 27? Context: CREATE TABLE table_name_55 (host_team VARCHAR, date VARCHAR)[/INST]SELECT host_team FROM table_name_55 WHERE date = "december 27"</s>
CREATE TABLE Projects (project_id VARCHAR, project_details VARCHAR); CREATE TABLE Documents (project_id VARCHAR)
SELECT T1.project_id, T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id HAVING COUNT(*) > 2
What is the project id and detail for the project with at least two documents?
<s>[INST]What is the project id and detail for the project with at least two documents? Context: CREATE TABLE Projects (project_id VARCHAR, project_details VARCHAR); CREATE TABLE Documents (project_id VARCHAR)[/INST]SELECT T1.project_id, T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id HAVING COUNT(*) > 2</s>
CREATE TABLE table_name_84 (week_2_sept_7 VARCHAR, week_6_oct_5 VARCHAR)
SELECT week_2_sept_7 FROM table_name_84 WHERE week_6_oct_5 = "wake forest (3-1)"
Which Week 2 Sept 7 has a Week 6 Oct 5 of wake forest (3-1)?
<s>[INST]Which Week 2 Sept 7 has a Week 6 Oct 5 of wake forest (3-1)? Context: CREATE TABLE table_name_84 (week_2_sept_7 VARCHAR, week_6_oct_5 VARCHAR)[/INST]SELECT week_2_sept_7 FROM table_name_84 WHERE week_6_oct_5 = "wake forest (3-1)"</s>
CREATE TABLE table_name_62 (agricultural_panel INTEGER, total VARCHAR, labour_panel VARCHAR, nominated_by_the_taoiseach VARCHAR)
SELECT AVG(agricultural_panel) FROM table_name_62 WHERE labour_panel < 6 AND nominated_by_the_taoiseach > 0 AND total < 4
What is the average agricultural panel of the composition with a labour panel less than 6, more than 0 nominations by Taoiseach, and a total less than 4?
<s>[INST]What is the average agricultural panel of the composition with a labour panel less than 6, more than 0 nominations by Taoiseach, and a total less than 4? Context: CREATE TABLE table_name_62 (agricultural_panel INTEGER, total VARCHAR, labour_panel VARCHAR, nominated_by_the_taoiseach VARCHAR)[/INST]SELECT AVG(agricultural_panel) FROM table_name_62 WHERE labour_panel < 6 AND nominated_by_the_taoiseach > 0 AND total < 4</s>
CREATE TABLE table_name_49 (location VARCHAR, date VARCHAR)
SELECT location FROM table_name_49 WHERE date = "1916"
Where was the disaster located that took place on 1916?
<s>[INST]Where was the disaster located that took place on 1916? Context: CREATE TABLE table_name_49 (location VARCHAR, date VARCHAR)[/INST]SELECT location FROM table_name_49 WHERE date = "1916"</s>
CREATE TABLE table_name_40 (date VARCHAR, decision VARCHAR, home VARCHAR)
SELECT date FROM table_name_40 WHERE decision = "joseph" AND home = "san jose"
What is the date when Joseph is the decision and San Jose is the home team?
<s>[INST]What is the date when Joseph is the decision and San Jose is the home team? Context: CREATE TABLE table_name_40 (date VARCHAR, decision VARCHAR, home VARCHAR)[/INST]SELECT date FROM table_name_40 WHERE decision = "joseph" AND home = "san jose"</s>
CREATE TABLE table_name_9 (call_sign VARCHAR, frequency VARCHAR)
SELECT call_sign FROM table_name_9 WHERE frequency = "1200 am"
What is the call sign of 1200 am?
<s>[INST]What is the call sign of 1200 am? Context: CREATE TABLE table_name_9 (call_sign VARCHAR, frequency VARCHAR)[/INST]SELECT call_sign FROM table_name_9 WHERE frequency = "1200 am"</s>
CREATE TABLE table_name_48 (date VARCHAR, leading_scorer VARCHAR)
SELECT date FROM table_name_48 WHERE leading_scorer = "ricky davis (20)"
When has a Leading scorer of ricky davis (20)?
<s>[INST]When has a Leading scorer of ricky davis (20)? Context: CREATE TABLE table_name_48 (date VARCHAR, leading_scorer VARCHAR)[/INST]SELECT date FROM table_name_48 WHERE leading_scorer = "ricky davis (20)"</s>
CREATE TABLE table_name_23 (player VARCHAR, college_junior_club_team__league_ VARCHAR)
SELECT player FROM table_name_23 WHERE college_junior_club_team__league_ = "val d'or foreurs ( qmjhl )"
What is Player, when College/Junior/Club Team (League) is "Val d'Or Foreurs ( QMJHL )"?
<s>[INST]What is Player, when College/Junior/Club Team (League) is "Val d'Or Foreurs ( QMJHL )"? Context: CREATE TABLE table_name_23 (player VARCHAR, college_junior_club_team__league_ VARCHAR)[/INST]SELECT player FROM table_name_23 WHERE college_junior_club_team__league_ = "val d'or foreurs ( qmjhl )"</s>
CREATE TABLE table_name_57 (engine VARCHAR, points VARCHAR, year VARCHAR, entrant VARCHAR)
SELECT engine FROM table_name_57 WHERE year < 2004 AND entrant = "bmw motorsport" AND points = 123
What is the engine for the bmw motorsport entrant with 123 points before 2004?
<s>[INST]What is the engine for the bmw motorsport entrant with 123 points before 2004? Context: CREATE TABLE table_name_57 (engine VARCHAR, points VARCHAR, year VARCHAR, entrant VARCHAR)[/INST]SELECT engine FROM table_name_57 WHERE year < 2004 AND entrant = "bmw motorsport" AND points = 123</s>
CREATE TABLE table_name_91 (played VARCHAR, goal_difference VARCHAR)
SELECT played FROM table_name_91 WHERE goal_difference = "+51"
What is Played, when Goal Difference is "+51"?
<s>[INST]What is Played, when Goal Difference is "+51"? Context: CREATE TABLE table_name_91 (played VARCHAR, goal_difference VARCHAR)[/INST]SELECT played FROM table_name_91 WHERE goal_difference = "+51"</s>
CREATE TABLE table_14118521_1 (primary_payload_s_ VARCHAR, shuttle VARCHAR, duration VARCHAR)
SELECT COUNT(primary_payload_s_) FROM table_14118521_1 WHERE shuttle = "Columbia" AND duration = "13 days, 19 hours, 30 minutes, 4 seconds"
how many primary payload(s) with shuttle being columbia and duration being 13 days, 19 hours, 30 minutes, 4 seconds
<s>[INST] how many primary payload(s) with shuttle being columbia and duration being 13 days, 19 hours, 30 minutes, 4 seconds Context: CREATE TABLE table_14118521_1 (primary_payload_s_ VARCHAR, shuttle VARCHAR, duration VARCHAR)[/INST]SELECT COUNT(primary_payload_s_) FROM table_14118521_1 WHERE shuttle = "Columbia" AND duration = "13 days, 19 hours, 30 minutes, 4 seconds"</s>
CREATE TABLE table_name_1 (team VARCHAR, circuit VARCHAR)
SELECT team FROM table_name_1 WHERE circuit = "phillip island grand prix circuit"
What is Team, when Circuit is Phillip Island Grand Prix Circuit?
<s>[INST]What is Team, when Circuit is Phillip Island Grand Prix Circuit? Context: CREATE TABLE table_name_1 (team VARCHAR, circuit VARCHAR)[/INST]SELECT team FROM table_name_1 WHERE circuit = "phillip island grand prix circuit"</s>
CREATE TABLE table_name_35 (position VARCHAR, player VARCHAR)
SELECT position FROM table_name_35 WHERE player = "patrick macdonald"
Which Position has a Player of patrick macdonald?
<s>[INST]Which Position has a Player of patrick macdonald? Context: CREATE TABLE table_name_35 (position VARCHAR, player VARCHAR)[/INST]SELECT position FROM table_name_35 WHERE player = "patrick macdonald"</s>
CREATE TABLE table_16617011_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR)
SELECT COUNT(original_air_date) FROM table_16617011_1 WHERE us_viewers__millions_ = "14.20"
Name the number air date for 14.20 us viewers
<s>[INST]Name the number air date for 14.20 us viewers Context: CREATE TABLE table_16617011_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR)[/INST]SELECT COUNT(original_air_date) FROM table_16617011_1 WHERE us_viewers__millions_ = "14.20"</s>
CREATE TABLE country (Continent VARCHAR, Population INTEGER, LifeExpectancy INTEGER)
SELECT SUM(Population), AVG(LifeExpectancy), Continent FROM country GROUP BY Continent HAVING AVG(LifeExpectancy) < 72
Find the average life expectancy and total population for each continent where the average life expectancy is shorter than 72?
<s>[INST]Find the average life expectancy and total population for each continent where the average life expectancy is shorter than 72? Context: CREATE TABLE country (Continent VARCHAR, Population INTEGER, LifeExpectancy INTEGER)[/INST]SELECT SUM(Population), AVG(LifeExpectancy), Continent FROM country GROUP BY Continent HAVING AVG(LifeExpectancy) < 72</s>
CREATE TABLE table_19242_5 (_km² VARCHAR, of_which_currently_forests INTEGER, land_formation VARCHAR)
SELECT MAX(of_which_currently_forests), _km² FROM table_19242_5 WHERE land_formation = "Middle Prut Valley"
When middle prut valley is the land formation what is the highest of which currently forests, km² ?
<s>[INST]When middle prut valley is the land formation what is the highest of which currently forests, km² ? Context: CREATE TABLE table_19242_5 (_km² VARCHAR, of_which_currently_forests INTEGER, land_formation VARCHAR)[/INST]SELECT MAX(of_which_currently_forests), _km² FROM table_19242_5 WHERE land_formation = "Middle Prut Valley"</s>
CREATE TABLE table_name_71 (location VARCHAR, objectnumber VARCHAR)
SELECT location FROM table_name_71 WHERE objectnumber = "2005-7698"
Which Location has an ObjectNumber of 2005-7698?
<s>[INST]Which Location has an ObjectNumber of 2005-7698? Context: CREATE TABLE table_name_71 (location VARCHAR, objectnumber VARCHAR)[/INST]SELECT location FROM table_name_71 WHERE objectnumber = "2005-7698"</s>
CREATE TABLE table_22860_1 (atlantic_europe VARCHAR, central_europe VARCHAR)
SELECT atlantic_europe FROM table_22860_1 WHERE central_europe = "Wisconsin Stage"
What is every entry for Atlantic Europe when Central Europe is Wisconsin stage?
<s>[INST]What is every entry for Atlantic Europe when Central Europe is Wisconsin stage? Context: CREATE TABLE table_22860_1 (atlantic_europe VARCHAR, central_europe VARCHAR)[/INST]SELECT atlantic_europe FROM table_22860_1 WHERE central_europe = "Wisconsin Stage"</s>
CREATE TABLE table_name_54 (date VARCHAR, length_duration VARCHAR)
SELECT date FROM table_name_54 WHERE length_duration = "6 hours"
What was the date of the race that lasted 6 hours?
<s>[INST]What was the date of the race that lasted 6 hours? Context: CREATE TABLE table_name_54 (date VARCHAR, length_duration VARCHAR)[/INST]SELECT date FROM table_name_54 WHERE length_duration = "6 hours"</s>
CREATE TABLE table_20726262_5 (directedby VARCHAR, production_code VARCHAR)
SELECT directedby FROM table_20726262_5 WHERE production_code = "4WAB05"
Who directed the episode with a production code of 4WAB05?
<s>[INST]Who directed the episode with a production code of 4WAB05? Context: CREATE TABLE table_20726262_5 (directedby VARCHAR, production_code VARCHAR)[/INST]SELECT directedby FROM table_20726262_5 WHERE production_code = "4WAB05"</s>
CREATE TABLE table_name_56 (tournament VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_56 WHERE date = "oct. 8, 2006"
Where was the tournament played on Oct. 8, 2006?
<s>[INST]Where was the tournament played on Oct. 8, 2006? Context: CREATE TABLE table_name_56 (tournament VARCHAR, date VARCHAR)[/INST]SELECT tournament FROM table_name_56 WHERE date = "oct. 8, 2006"</s>
CREATE TABLE table_name_16 (attendance INTEGER, record VARCHAR)
SELECT AVG(attendance) FROM table_name_16 WHERE record = "38–31–8"
What was the average attendance of a team with a 38–31–8 record?
<s>[INST]What was the average attendance of a team with a 38–31–8 record? Context: CREATE TABLE table_name_16 (attendance INTEGER, record VARCHAR)[/INST]SELECT AVG(attendance) FROM table_name_16 WHERE record = "38–31–8"</s>
CREATE TABLE table_name_25 (profits__billion_ INTEGER, rank VARCHAR)
SELECT MIN(profits__billion_) AS $_ FROM table_name_25 WHERE rank = 6
What is the lowest profits (billion $) for the rank 6?
<s>[INST]What is the lowest profits (billion $) for the rank 6? Context: CREATE TABLE table_name_25 (profits__billion_ INTEGER, rank VARCHAR)[/INST]SELECT MIN(profits__billion_) AS $_ FROM table_name_25 WHERE rank = 6</s>
CREATE TABLE park (state VARCHAR)
SELECT COUNT(*) FROM park WHERE state = 'NY'
How many parks are there in the state of NY?
<s>[INST]How many parks are there in the state of NY? Context: CREATE TABLE park (state VARCHAR)[/INST]SELECT COUNT(*) FROM park WHERE state = 'NY'</s>
CREATE TABLE table_name_67 (episode VARCHAR, segment_b VARCHAR)
SELECT episode FROM table_name_67 WHERE segment_b = "s hacksaw"
Which episode's segment b is s hacksaw?
<s>[INST]Which episode's segment b is s hacksaw? Context: CREATE TABLE table_name_67 (episode VARCHAR, segment_b VARCHAR)[/INST]SELECT episode FROM table_name_67 WHERE segment_b = "s hacksaw"</s>
CREATE TABLE table_name_56 (inductee_s_ VARCHAR, venue VARCHAR)
SELECT inductee_s_ FROM table_name_56 WHERE venue = "ecw arena"
What is the name of the inductee for the ecw arena?
<s>[INST]What is the name of the inductee for the ecw arena? Context: CREATE TABLE table_name_56 (inductee_s_ VARCHAR, venue VARCHAR)[/INST]SELECT inductee_s_ FROM table_name_56 WHERE venue = "ecw arena"</s>