context stringlengths 27 489 | answer stringlengths 18 557 | question stringlengths 12 243 | text stringlengths 103 1.05k |
|---|---|---|---|
CREATE TABLE table_12226390_3 (production_code INTEGER, written_by VARCHAR) | SELECT MIN(production_code) FROM table_12226390_3 WHERE written_by = "Jay Sommers & Dick Chevillat and Al Schwartz" | what's the minimum production code written by jay sommers & dick chevillat and al schwartz | <s>[INST]what's the minimum production code written by jay sommers & dick chevillat and al schwartz Context: CREATE TABLE table_12226390_3 (production_code INTEGER, written_by VARCHAR)[/INST]SELECT MIN(production_code) FROM table_12226390_3 WHERE written_by = "Jay Sommers & Dick Chevillat and Al Schwartz"</s> |
CREATE TABLE table_name_18 (title VARCHAR, producer VARCHAR, role VARCHAR) | SELECT title FROM table_name_18 WHERE producer = "maq" AND role = "anna" | What title has a producer of MAQ and Anna as a role? | <s>[INST]What title has a producer of MAQ and Anna as a role? Context: CREATE TABLE table_name_18 (title VARCHAR, producer VARCHAR, role VARCHAR)[/INST]SELECT title FROM table_name_18 WHERE producer = "maq" AND role = "anna"</s> |
CREATE TABLE table_name_33 (total VARCHAR, professors VARCHAR, associate_professors VARCHAR, lecturers VARCHAR) | SELECT COUNT(total) FROM table_name_33 WHERE associate_professors > 4 AND lecturers = 5 AND professors < 40 | What is the total in the case when there are more than 4 associate professors, 5 lecturers and fewer professors than 40? | <s>[INST]What is the total in the case when there are more than 4 associate professors, 5 lecturers and fewer professors than 40? Context: CREATE TABLE table_name_33 (total VARCHAR, professors VARCHAR, associate_professors VARCHAR, lecturers VARCHAR)[/INST]SELECT COUNT(total) FROM table_name_33 WHERE associate_professo... |
CREATE TABLE table_name_88 (record VARCHAR, visitor VARCHAR) | SELECT record FROM table_name_88 WHERE visitor = "boston" | What was the cougars record during the game where Boston were the visitors? | <s>[INST]What was the cougars record during the game where Boston were the visitors? Context: CREATE TABLE table_name_88 (record VARCHAR, visitor VARCHAR)[/INST]SELECT record FROM table_name_88 WHERE visitor = "boston"</s> |
CREATE TABLE table_name_31 (winner VARCHAR, finalist VARCHAR) | SELECT winner FROM table_name_31 WHERE finalist = "fsv frankfurt" | Who was the winner when the finalist was fsv frankfurt? | <s>[INST]Who was the winner when the finalist was fsv frankfurt? Context: CREATE TABLE table_name_31 (winner VARCHAR, finalist VARCHAR)[/INST]SELECT winner FROM table_name_31 WHERE finalist = "fsv frankfurt"</s> |
CREATE TABLE table_name_31 (dissolved VARCHAR, assembled VARCHAR) | SELECT dissolved FROM table_name_31 WHERE assembled = "3 june 1467" | What is the dissolved date of the parliament assembled on 3 June 1467? | <s>[INST]What is the dissolved date of the parliament assembled on 3 June 1467? Context: CREATE TABLE table_name_31 (dissolved VARCHAR, assembled VARCHAR)[/INST]SELECT dissolved FROM table_name_31 WHERE assembled = "3 june 1467"</s> |
CREATE TABLE table_name_59 (catalog VARCHAR, region VARCHAR) | SELECT catalog FROM table_name_59 WHERE region = "japan" | What is the Catalog Number is for the Japan region? | <s>[INST]What is the Catalog Number is for the Japan region? Context: CREATE TABLE table_name_59 (catalog VARCHAR, region VARCHAR)[/INST]SELECT catalog FROM table_name_59 WHERE region = "japan"</s> |
CREATE TABLE table_name_76 (year INTEGER, athlete VARCHAR, time VARCHAR) | SELECT MIN(year) FROM table_name_76 WHERE athlete = "markus thalmann" AND time = "23:28:24" | Which Year is the lowest one that has an Athlete of markus thalmann, and a Time of 23:28:24? | <s>[INST]Which Year is the lowest one that has an Athlete of markus thalmann, and a Time of 23:28:24? Context: CREATE TABLE table_name_76 (year INTEGER, athlete VARCHAR, time VARCHAR)[/INST]SELECT MIN(year) FROM table_name_76 WHERE athlete = "markus thalmann" AND time = "23:28:24"</s> |
CREATE TABLE table_name_82 (top_10 INTEGER, avg_start VARCHAR) | SELECT SUM(top_10) FROM table_name_82 WHERE avg_start = 18.9 | How many times did the team with an average start of 18.9 make the top 10? | <s>[INST]How many times did the team with an average start of 18.9 make the top 10? Context: CREATE TABLE table_name_82 (top_10 INTEGER, avg_start VARCHAR)[/INST]SELECT SUM(top_10) FROM table_name_82 WHERE avg_start = 18.9</s> |
CREATE TABLE table_name_39 (team VARCHAR, start VARCHAR, year VARCHAR, manufacturer VARCHAR) | SELECT team FROM table_name_39 WHERE year < 1987 AND manufacturer = "chrysler" AND start = "28" | Which team in 1987 had a start of 28 and drove a chrysler? | <s>[INST]Which team in 1987 had a start of 28 and drove a chrysler? Context: CREATE TABLE table_name_39 (team VARCHAR, start VARCHAR, year VARCHAR, manufacturer VARCHAR)[/INST]SELECT team FROM table_name_39 WHERE year < 1987 AND manufacturer = "chrysler" AND start = "28"</s> |
CREATE TABLE table_name_82 (binary VARCHAR, pairing VARCHAR, binomial VARCHAR) | SELECT binary FROM table_name_82 WHERE pairing = "θ(1)" AND binomial = "θ(1)" | Pairing of θ(1), and a Binomial of θ(1) is what binary? | <s>[INST]Pairing of θ(1), and a Binomial of θ(1) is what binary? Context: CREATE TABLE table_name_82 (binary VARCHAR, pairing VARCHAR, binomial VARCHAR)[/INST]SELECT binary FROM table_name_82 WHERE pairing = "θ(1)" AND binomial = "θ(1)"</s> |
CREATE TABLE table_17625749_1 (won VARCHAR, tries_against VARCHAR) | SELECT won FROM table_17625749_1 WHERE tries_against = "72" | Name the won when tries against is 72 | <s>[INST]Name the won when tries against is 72 Context: CREATE TABLE table_17625749_1 (won VARCHAR, tries_against VARCHAR)[/INST]SELECT won FROM table_17625749_1 WHERE tries_against = "72"</s> |
CREATE TABLE instructor (name VARCHAR) | SELECT name FROM instructor WHERE name LIKE '%dar%' | Find the names of all instructors whose name includes the substring “dar”. | <s>[INST]Find the names of all instructors whose name includes the substring “dar”. Context: CREATE TABLE instructor (name VARCHAR)[/INST]SELECT name FROM instructor WHERE name LIKE '%dar%'</s> |
CREATE TABLE table_name_32 (music VARCHAR, points_jury VARCHAR) | SELECT music FROM table_name_32 WHERE points_jury = "18 (5,5,4,4)" | Which Music has a Points Jury of 18 (5,5,4,4)? | <s>[INST]Which Music has a Points Jury of 18 (5,5,4,4)? Context: CREATE TABLE table_name_32 (music VARCHAR, points_jury VARCHAR)[/INST]SELECT music FROM table_name_32 WHERE points_jury = "18 (5,5,4,4)"</s> |
CREATE TABLE table_name_33 (tyres VARCHAR, year VARCHAR, engine VARCHAR) | SELECT tyres FROM table_name_33 WHERE year < 1961 AND engine = "climax l4" | What is the tyres with a year earlier than 1961 for a climax l4 engine? | <s>[INST]What is the tyres with a year earlier than 1961 for a climax l4 engine? Context: CREATE TABLE table_name_33 (tyres VARCHAR, year VARCHAR, engine VARCHAR)[/INST]SELECT tyres FROM table_name_33 WHERE year < 1961 AND engine = "climax l4"</s> |
CREATE TABLE table_name_14 (points INTEGER, goals_against VARCHAR, games VARCHAR, tied VARCHAR) | SELECT SUM(points) FROM table_name_14 WHERE games > 68 AND tied = "4" AND goals_against > 272 | How many points did the team with more than 68 games, 4 ties, and more than 272 goals against have? | <s>[INST]How many points did the team with more than 68 games, 4 ties, and more than 272 goals against have? Context: CREATE TABLE table_name_14 (points INTEGER, goals_against VARCHAR, games VARCHAR, tied VARCHAR)[/INST]SELECT SUM(points) FROM table_name_14 WHERE games > 68 AND tied = "4" AND goals_against > 272</s> |
CREATE TABLE table_26677836_1 (difference INTEGER) | SELECT MAX(difference) FROM table_26677836_1 | WHat is the highest difference? | <s>[INST]WHat is the highest difference? Context: CREATE TABLE table_26677836_1 (difference INTEGER)[/INST]SELECT MAX(difference) FROM table_26677836_1</s> |
CREATE TABLE table_25286976_2 (august_21_22 VARCHAR, march_27_29 VARCHAR) | SELECT august_21_22 FROM table_25286976_2 WHERE march_27_29 = "139" | When 139 is on March 27th to 29th what is August 21st to 22nd? | <s>[INST]When 139 is on March 27th to 29th what is August 21st to 22nd? Context: CREATE TABLE table_25286976_2 (august_21_22 VARCHAR, march_27_29 VARCHAR)[/INST]SELECT august_21_22 FROM table_25286976_2 WHERE march_27_29 = "139"</s> |
CREATE TABLE table_name_71 (decile INTEGER, authority VARCHAR, name VARCHAR) | SELECT MIN(decile) FROM table_name_71 WHERE authority = "state" AND name = "midhirst school" | What is the lowest decile with a state authority and Midhirst school? | <s>[INST]What is the lowest decile with a state authority and Midhirst school? Context: CREATE TABLE table_name_71 (decile INTEGER, authority VARCHAR, name VARCHAR)[/INST]SELECT MIN(decile) FROM table_name_71 WHERE authority = "state" AND name = "midhirst school"</s> |
CREATE TABLE table_name_69 (date VARCHAR, home_team VARCHAR) | SELECT date FROM table_name_69 WHERE home_team = "essendon" | What day is essendon the home team? | <s>[INST]What day is essendon the home team? Context: CREATE TABLE table_name_69 (date VARCHAR, home_team VARCHAR)[/INST]SELECT date FROM table_name_69 WHERE home_team = "essendon"</s> |
CREATE TABLE table_name_48 (year INTEGER, category VARCHAR, nominee VARCHAR) | SELECT MIN(year) FROM table_name_48 WHERE category = "favorite male replacement" AND nominee = "ben vereen" | What is the first year that the Favorite Male Replacement category had Ben Vereen as a nominee? | <s>[INST]What is the first year that the Favorite Male Replacement category had Ben Vereen as a nominee? Context: CREATE TABLE table_name_48 (year INTEGER, category VARCHAR, nominee VARCHAR)[/INST]SELECT MIN(year) FROM table_name_48 WHERE category = "favorite male replacement" AND nominee = "ben vereen"</s> |
CREATE TABLE table_name_25 (to_par VARCHAR, score VARCHAR, player VARCHAR) | SELECT to_par FROM table_name_25 WHERE score = 66 AND player = "brad faxon" | What is To Par, when Score is "66", and when Player is "Brad Faxon"? | <s>[INST]What is To Par, when Score is "66", and when Player is "Brad Faxon"? Context: CREATE TABLE table_name_25 (to_par VARCHAR, score VARCHAR, player VARCHAR)[/INST]SELECT to_par FROM table_name_25 WHERE score = 66 AND player = "brad faxon"</s> |
CREATE TABLE table_name_92 (nationality VARCHAR, pick VARCHAR) | SELECT nationality FROM table_name_92 WHERE pick = 116 | What Nationality is the Pick that is 116? | <s>[INST]What Nationality is the Pick that is 116? Context: CREATE TABLE table_name_92 (nationality VARCHAR, pick VARCHAR)[/INST]SELECT nationality FROM table_name_92 WHERE pick = 116</s> |
CREATE TABLE table_name_96 (record VARCHAR, res VARCHAR, time VARCHAR) | SELECT record FROM table_name_96 WHERE res = "loss" AND time = "3:54" | Which Record has a Result of loss, and a Time of 3:54? | <s>[INST]Which Record has a Result of loss, and a Time of 3:54? Context: CREATE TABLE table_name_96 (record VARCHAR, res VARCHAR, time VARCHAR)[/INST]SELECT record FROM table_name_96 WHERE res = "loss" AND time = "3:54"</s> |
CREATE TABLE table_name_28 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team AS score FROM table_name_28 WHERE home_team = "hawthorn" | What was the away team score at Hawthorn's home game? | <s>[INST]What was the away team score at Hawthorn's home game? Context: CREATE TABLE table_name_28 (away_team VARCHAR, home_team VARCHAR)[/INST]SELECT away_team AS score FROM table_name_28 WHERE home_team = "hawthorn"</s> |
CREATE TABLE table_name_39 (position VARCHAR, f_laps VARCHAR) | SELECT position FROM table_name_39 WHERE f_laps = "test driver" | Which position had f/laps that was test driver? | <s>[INST]Which position had f/laps that was test driver? Context: CREATE TABLE table_name_39 (position VARCHAR, f_laps VARCHAR)[/INST]SELECT position FROM table_name_39 WHERE f_laps = "test driver"</s> |
CREATE TABLE table_name_5 (team VARCHAR, race_name VARCHAR) | SELECT team FROM table_name_5 WHERE race_name = "tour de santa catarina" | What team won the Tour de Santa Catarina? | <s>[INST]What team won the Tour de Santa Catarina? Context: CREATE TABLE table_name_5 (team VARCHAR, race_name VARCHAR)[/INST]SELECT team FROM table_name_5 WHERE race_name = "tour de santa catarina"</s> |
CREATE TABLE election (Delegate VARCHAR, District VARCHAR); CREATE TABLE county (County_id VARCHAR, Population INTEGER) | SELECT T2.Delegate FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population < 100000 | Which delegates are from counties with population smaller than 100000? | <s>[INST]Which delegates are from counties with population smaller than 100000? Context: CREATE TABLE election (Delegate VARCHAR, District VARCHAR); CREATE TABLE county (County_id VARCHAR, Population INTEGER)[/INST]SELECT T2.Delegate FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Populatio... |
CREATE TABLE table_name_16 (race VARCHAR, replica VARCHAR) | SELECT race FROM table_name_16 WHERE replica = "dnf" | Which race has a replica of DNF? | <s>[INST]Which race has a replica of DNF? Context: CREATE TABLE table_name_16 (race VARCHAR, replica VARCHAR)[/INST]SELECT race FROM table_name_16 WHERE replica = "dnf"</s> |
CREATE TABLE table_27539535_7 (record VARCHAR, february VARCHAR) | SELECT record FROM table_27539535_7 WHERE february = 1 | What was the team's rcord on february 1? | <s>[INST]What was the team's rcord on february 1? Context: CREATE TABLE table_27539535_7 (record VARCHAR, february VARCHAR)[/INST]SELECT record FROM table_27539535_7 WHERE february = 1</s> |
CREATE TABLE table_name_3 (stadium VARCHAR, club VARCHAR) | SELECT stadium FROM table_name_3 WHERE club = "kuwait" | Which stadium had the club Kuwait? | <s>[INST]Which stadium had the club Kuwait? Context: CREATE TABLE table_name_3 (stadium VARCHAR, club VARCHAR)[/INST]SELECT stadium FROM table_name_3 WHERE club = "kuwait"</s> |
CREATE TABLE table_name_75 (matches INTEGER, loses VARCHAR, pos VARCHAR) | SELECT MAX(matches) FROM table_name_75 WHERE loses = 2 AND pos < 2 | Loses of 2, and a Pos. smaller than 2 had how many highest matches? | <s>[INST]Loses of 2, and a Pos. smaller than 2 had how many highest matches? Context: CREATE TABLE table_name_75 (matches INTEGER, loses VARCHAR, pos VARCHAR)[/INST]SELECT MAX(matches) FROM table_name_75 WHERE loses = 2 AND pos < 2</s> |
CREATE TABLE table_name_73 (series VARCHAR, podiums INTEGER) | SELECT series FROM table_name_73 WHERE podiums > 10 | What series had more than 10 Podiums? | <s>[INST]What series had more than 10 Podiums? Context: CREATE TABLE table_name_73 (series VARCHAR, podiums INTEGER)[/INST]SELECT series FROM table_name_73 WHERE podiums > 10</s> |
CREATE TABLE table_name_61 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_61 WHERE away_team = "hawthorn" | Who was the home team when Hawthorn was the away team? | <s>[INST]Who was the home team when Hawthorn was the away team? Context: CREATE TABLE table_name_61 (home_team VARCHAR, away_team VARCHAR)[/INST]SELECT home_team FROM table_name_61 WHERE away_team = "hawthorn"</s> |
CREATE TABLE table_16383772_1 (enrollment INTEGER, school VARCHAR) | SELECT MAX(enrollment) FROM table_16383772_1 WHERE school = "Niagara University" | Name the maximum enrollment for niagara university | <s>[INST]Name the maximum enrollment for niagara university Context: CREATE TABLE table_16383772_1 (enrollment INTEGER, school VARCHAR)[/INST]SELECT MAX(enrollment) FROM table_16383772_1 WHERE school = "Niagara University"</s> |
CREATE TABLE table_name_9 (year INTEGER, location VARCHAR) | SELECT SUM(year) FROM table_name_9 WHERE location = "koror, palau" | In what Year is the Location of the Festival Koror, Palau? | <s>[INST]In what Year is the Location of the Festival Koror, Palau? Context: CREATE TABLE table_name_9 (year INTEGER, location VARCHAR)[/INST]SELECT SUM(year) FROM table_name_9 WHERE location = "koror, palau"</s> |
CREATE TABLE table_name_18 (tournament VARCHAR, date VARCHAR, surface VARCHAR) | SELECT tournament FROM table_name_18 WHERE date = 1987 AND surface = "clay" | Where was the tournament that happened in 1987 on a clay surface? | <s>[INST]Where was the tournament that happened in 1987 on a clay surface? Context: CREATE TABLE table_name_18 (tournament VARCHAR, date VARCHAR, surface VARCHAR)[/INST]SELECT tournament FROM table_name_18 WHERE date = 1987 AND surface = "clay"</s> |
CREATE TABLE table_1661124_1 (target VARCHAR, approval_date VARCHAR) | SELECT target FROM table_1661124_1 WHERE approval_date = 2006 | What is the target with an approval date of 2006? | <s>[INST]What is the target with an approval date of 2006? Context: CREATE TABLE table_1661124_1 (target VARCHAR, approval_date VARCHAR)[/INST]SELECT target FROM table_1661124_1 WHERE approval_date = 2006</s> |
CREATE TABLE table_name_16 (surname VARCHAR, first VARCHAR) | SELECT surname FROM table_name_16 WHERE first = "michael" | What is Michael's surname? | <s>[INST]What is Michael's surname? Context: CREATE TABLE table_name_16 (surname VARCHAR, first VARCHAR)[/INST]SELECT surname FROM table_name_16 WHERE first = "michael"</s> |
CREATE TABLE table_name_69 (bronze INTEGER, silver VARCHAR, rank VARCHAR) | SELECT MAX(bronze) FROM table_name_69 WHERE silver > 0 AND rank > 3 | What is the highest number of bronze when silver is larger than 0, rank is larger than 3? | <s>[INST]What is the highest number of bronze when silver is larger than 0, rank is larger than 3? Context: CREATE TABLE table_name_69 (bronze INTEGER, silver VARCHAR, rank VARCHAR)[/INST]SELECT MAX(bronze) FROM table_name_69 WHERE silver > 0 AND rank > 3</s> |
CREATE TABLE table_2801185_2 (status VARCHAR, successor VARCHAR) | SELECT status FROM table_2801185_2 WHERE successor = "Wiltshire" | What are the statuses of the districts whose successor is Wiltshire? | <s>[INST]What are the statuses of the districts whose successor is Wiltshire? Context: CREATE TABLE table_2801185_2 (status VARCHAR, successor VARCHAR)[/INST]SELECT status FROM table_2801185_2 WHERE successor = "Wiltshire"</s> |
CREATE TABLE table_name_76 (country VARCHAR, score VARCHAR) | SELECT country FROM table_name_76 WHERE score = 70 - 71 - 72 = 213 | Which country has a score of 70-71-72=213? | <s>[INST]Which country has a score of 70-71-72=213? Context: CREATE TABLE table_name_76 (country VARCHAR, score VARCHAR)[/INST]SELECT country FROM table_name_76 WHERE score = 70 - 71 - 72 = 213</s> |
CREATE TABLE table_1547951_3 (surface VARCHAR, outcome VARCHAR, championship VARCHAR) | SELECT surface FROM table_1547951_3 WHERE outcome = "Runner-up" AND championship = "US Open" | Name the surfaace where outcome is runner-up and championship is us open | <s>[INST]Name the surfaace where outcome is runner-up and championship is us open Context: CREATE TABLE table_1547951_3 (surface VARCHAR, outcome VARCHAR, championship VARCHAR)[/INST]SELECT surface FROM table_1547951_3 WHERE outcome = "Runner-up" AND championship = "US Open"</s> |
CREATE TABLE table_name_5 (competition VARCHAR, date VARCHAR) | SELECT competition FROM table_name_5 WHERE date = "june 19, 2004" | What competition has June 19, 2004 as the date? | <s>[INST]What competition has June 19, 2004 as the date? Context: CREATE TABLE table_name_5 (competition VARCHAR, date VARCHAR)[/INST]SELECT competition FROM table_name_5 WHERE date = "june 19, 2004"</s> |
CREATE TABLE table_name_24 (ihsaa_class VARCHAR, location VARCHAR) | SELECT ihsaa_class FROM table_name_24 WHERE location = "charlottesville" | Which IHSAA Class is located in charlottesville? | <s>[INST]Which IHSAA Class is located in charlottesville? Context: CREATE TABLE table_name_24 (ihsaa_class VARCHAR, location VARCHAR)[/INST]SELECT ihsaa_class FROM table_name_24 WHERE location = "charlottesville"</s> |
CREATE TABLE table_21436373_12 (attendance VARCHAR, date_year VARCHAR) | SELECT attendance FROM table_21436373_12 WHERE date_year = "2011" | what is the attendance in 2011 records | <s>[INST]what is the attendance in 2011 records Context: CREATE TABLE table_21436373_12 (attendance VARCHAR, date_year VARCHAR)[/INST]SELECT attendance FROM table_21436373_12 WHERE date_year = "2011"</s> |
CREATE TABLE table_name_61 (losing_bonus VARCHAR, points VARCHAR) | SELECT losing_bonus FROM table_name_61 WHERE points = "43" | What is the Losing bonus, when the value for Points is 43? | <s>[INST]What is the Losing bonus, when the value for Points is 43? Context: CREATE TABLE table_name_61 (losing_bonus VARCHAR, points VARCHAR)[/INST]SELECT losing_bonus FROM table_name_61 WHERE points = "43"</s> |
CREATE TABLE table_name_15 (week INTEGER, date VARCHAR) | SELECT MIN(week) FROM table_name_15 WHERE date = "november 19, 1967" | What was the week number when a game was played on November 19, 1967? | <s>[INST]What was the week number when a game was played on November 19, 1967? Context: CREATE TABLE table_name_15 (week INTEGER, date VARCHAR)[/INST]SELECT MIN(week) FROM table_name_15 WHERE date = "november 19, 1967"</s> |
CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR); CREATE TABLE student (stu_gpa INTEGER, dept_code VARCHAR) | SELECT T2.dept_name, AVG(T1.stu_gpa) FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY AVG(T1.stu_gpa) DESC LIMIT 1 | What is the name and the average gpa of department whose students have the highest average gpa? | <s>[INST]What is the name and the average gpa of department whose students have the highest average gpa? Context: CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR); CREATE TABLE student (stu_gpa INTEGER, dept_code VARCHAR)[/INST]SELECT T2.dept_name, AVG(T1.stu_gpa) FROM student AS T1 JOIN department AS T2 ... |
CREATE TABLE table_name_91 (april_28 VARCHAR, final VARCHAR, mar_17 VARCHAR) | SELECT april_28 FROM table_name_91 WHERE final = "20" AND mar_17 = "22" | What is the April 28th rank when the Final is 20, and Mar 17 is 22? | <s>[INST]What is the April 28th rank when the Final is 20, and Mar 17 is 22? Context: CREATE TABLE table_name_91 (april_28 VARCHAR, final VARCHAR, mar_17 VARCHAR)[/INST]SELECT april_28 FROM table_name_91 WHERE final = "20" AND mar_17 = "22"</s> |
CREATE TABLE table_name_29 (bronze VARCHAR, rank VARCHAR, total VARCHAR, gold VARCHAR, silver VARCHAR) | SELECT COUNT(bronze) FROM table_name_29 WHERE gold < 3 AND silver = 1 AND total < 3 AND rank = 3 | How many bronze medals for the nation with fewer than 3 gold, 1 silver and rank of 3? | <s>[INST]How many bronze medals for the nation with fewer than 3 gold, 1 silver and rank of 3? Context: CREATE TABLE table_name_29 (bronze VARCHAR, rank VARCHAR, total VARCHAR, gold VARCHAR, silver VARCHAR)[/INST]SELECT COUNT(bronze) FROM table_name_29 WHERE gold < 3 AND silver = 1 AND total < 3 AND rank = 3</s> |
CREATE TABLE table_name_74 (year INTEGER, rank VARCHAR, class VARCHAR, points VARCHAR) | SELECT MIN(year) FROM table_name_74 WHERE class = "125cc" AND points > 102 AND rank = "2nd" | What is the earliest year in the 125cc class with more than 102 points and a rank of 2nd? | <s>[INST]What is the earliest year in the 125cc class with more than 102 points and a rank of 2nd? Context: CREATE TABLE table_name_74 (year INTEGER, rank VARCHAR, class VARCHAR, points VARCHAR)[/INST]SELECT MIN(year) FROM table_name_74 WHERE class = "125cc" AND points > 102 AND rank = "2nd"</s> |
CREATE TABLE table_name_10 (crew_chief VARCHAR, team VARCHAR, driver_s_ VARCHAR) | SELECT crew_chief FROM table_name_10 WHERE team = "chip ganassi racing with felix sabates" AND driver_s_ = "casey mears" | Who is the crew chief of team Chip Ganassi Racing with Felix Sabates, which has Casey Mears as the driver? | <s>[INST]Who is the crew chief of team Chip Ganassi Racing with Felix Sabates, which has Casey Mears as the driver? Context: CREATE TABLE table_name_10 (crew_chief VARCHAR, team VARCHAR, driver_s_ VARCHAR)[/INST]SELECT crew_chief FROM table_name_10 WHERE team = "chip ganassi racing with felix sabates" AND driver_s_ = "... |
CREATE TABLE table_name_15 (schwaben VARCHAR, oberbayern VARCHAR, mittelfranken VARCHAR) | SELECT schwaben FROM table_name_15 WHERE oberbayern = "fc bayern munich ii" AND mittelfranken = "1. fc nuremberg ii" | Which Schwaben has a Oberbayern of fc bayern munich ii and a Mittelfranken of 1. fc nuremberg ii? | <s>[INST]Which Schwaben has a Oberbayern of fc bayern munich ii and a Mittelfranken of 1. fc nuremberg ii? Context: CREATE TABLE table_name_15 (schwaben VARCHAR, oberbayern VARCHAR, mittelfranken VARCHAR)[/INST]SELECT schwaben FROM table_name_15 WHERE oberbayern = "fc bayern munich ii" AND mittelfranken = "1. fc nuremb... |
CREATE TABLE table_17964087_2 (foreign_nationality VARCHAR, romanised_name VARCHAR) | SELECT foreign_nationality FROM table_17964087_2 WHERE romanised_name = "Cheung, Raymond Man-to" | The name cheung, raymond man-to is listed as a romanised name is cheung, raymond man-to? | <s>[INST]The name cheung, raymond man-to is listed as a romanised name is cheung, raymond man-to? Context: CREATE TABLE table_17964087_2 (foreign_nationality VARCHAR, romanised_name VARCHAR)[/INST]SELECT foreign_nationality FROM table_17964087_2 WHERE romanised_name = "Cheung, Raymond Man-to"</s> |
CREATE TABLE table_11951237_2 (musical_guest_and_song VARCHAR, production_code VARCHAR) | SELECT COUNT(musical_guest_and_song) FROM table_11951237_2 WHERE production_code = "K0519" | How many musical guests and songs were in episodes with a production code k0519? | <s>[INST]How many musical guests and songs were in episodes with a production code k0519? Context: CREATE TABLE table_11951237_2 (musical_guest_and_song VARCHAR, production_code VARCHAR)[/INST]SELECT COUNT(musical_guest_and_song) FROM table_11951237_2 WHERE production_code = "K0519"</s> |
CREATE TABLE table_name_34 (location VARCHAR, game VARCHAR) | SELECT location FROM table_name_34 WHERE game = 64 | What location did game 64 take place | <s>[INST]What location did game 64 take place Context: CREATE TABLE table_name_34 (location VARCHAR, game VARCHAR)[/INST]SELECT location FROM table_name_34 WHERE game = 64</s> |
CREATE TABLE table_name_15 (original_season VARCHAR, placing VARCHAR) | SELECT original_season FROM table_name_15 WHERE placing = "11th place" | What's the original season in 11th place? | <s>[INST]What's the original season in 11th place? Context: CREATE TABLE table_name_15 (original_season VARCHAR, placing VARCHAR)[/INST]SELECT original_season FROM table_name_15 WHERE placing = "11th place"</s> |
CREATE TABLE table_269888_1 (no_of_s_barangay VARCHAR, pop_density__per_km²_ VARCHAR) | SELECT no_of_s_barangay FROM table_269888_1 WHERE pop_density__per_km²_ = "205.4" | Name the number of barangay for 205.4 density | <s>[INST]Name the number of barangay for 205.4 density Context: CREATE TABLE table_269888_1 (no_of_s_barangay VARCHAR, pop_density__per_km²_ VARCHAR)[/INST]SELECT no_of_s_barangay FROM table_269888_1 WHERE pop_density__per_km²_ = "205.4"</s> |
CREATE TABLE table_name_21 (chart_positions VARCHAR, album_title VARCHAR) | SELECT chart_positions FROM table_name_21 WHERE album_title = "i" | The album titled I had what chart positions? | <s>[INST]The album titled I had what chart positions? Context: CREATE TABLE table_name_21 (chart_positions VARCHAR, album_title VARCHAR)[/INST]SELECT chart_positions FROM table_name_21 WHERE album_title = "i"</s> |
CREATE TABLE table_name_56 (vessel_name VARCHAR, built VARCHAR, class VARCHAR, flag VARCHAR, type VARCHAR) | SELECT vessel_name FROM table_name_56 WHERE flag = "malta" AND type = "panamax" AND class = "gl" AND built > 2010 | What is the name of the Malta vessel built after 2010 that is a GL class Panamax vessel? | <s>[INST]What is the name of the Malta vessel built after 2010 that is a GL class Panamax vessel? Context: CREATE TABLE table_name_56 (vessel_name VARCHAR, built VARCHAR, class VARCHAR, flag VARCHAR, type VARCHAR)[/INST]SELECT vessel_name FROM table_name_56 WHERE flag = "malta" AND type = "panamax" AND class = "gl" AND... |
CREATE TABLE table_name_96 (time VARCHAR, round VARCHAR, opponent VARCHAR) | SELECT time FROM table_name_96 WHERE round > 2 AND opponent = "jesse brock" | Which Time has a Round larger than 2, and an Opponent of jesse brock? | <s>[INST]Which Time has a Round larger than 2, and an Opponent of jesse brock? Context: CREATE TABLE table_name_96 (time VARCHAR, round VARCHAR, opponent VARCHAR)[/INST]SELECT time FROM table_name_96 WHERE round > 2 AND opponent = "jesse brock"</s> |
CREATE TABLE table_name_46 (money___ INTEGER, score VARCHAR) | SELECT AVG(money___) AS $__ FROM table_name_46 WHERE score = 71 - 66 - 74 - 67 = 278 | What is the Money of the Player with a Score of 71-66-74-67=278? | <s>[INST]What is the Money of the Player with a Score of 71-66-74-67=278? Context: CREATE TABLE table_name_46 (money___ INTEGER, score VARCHAR)[/INST]SELECT AVG(money___) AS $__ FROM table_name_46 WHERE score = 71 - 66 - 74 - 67 = 278</s> |
CREATE TABLE table_1652224_5 (reason_for_change VARCHAR, district VARCHAR) | SELECT COUNT(reason_for_change) FROM table_1652224_5 WHERE district = "Michigan 3rd" | what is the total number for reason for change is district michigan 3rd? | <s>[INST]what is the total number for reason for change is district michigan 3rd? Context: CREATE TABLE table_1652224_5 (reason_for_change VARCHAR, district VARCHAR)[/INST]SELECT COUNT(reason_for_change) FROM table_1652224_5 WHERE district = "Michigan 3rd"</s> |
CREATE TABLE table_21100348_10 (period VARCHAR, average VARCHAR) | SELECT period FROM table_21100348_10 WHERE average = "48.15" | What period was there a career average of 48.15? | <s>[INST]What period was there a career average of 48.15? Context: CREATE TABLE table_21100348_10 (period VARCHAR, average VARCHAR)[/INST]SELECT period FROM table_21100348_10 WHERE average = "48.15"</s> |
CREATE TABLE table_name_48 (february VARCHAR, opponent VARCHAR, game VARCHAR) | SELECT COUNT(february) FROM table_name_48 WHERE opponent = "vancouver canucks" AND game > 55 | What is the February number of the game with the Vancouver Canucks as the opponent and a game number greater than 55? | <s>[INST]What is the February number of the game with the Vancouver Canucks as the opponent and a game number greater than 55? Context: CREATE TABLE table_name_48 (february VARCHAR, opponent VARCHAR, game VARCHAR)[/INST]SELECT COUNT(february) FROM table_name_48 WHERE opponent = "vancouver canucks" AND game > 55</s> |
CREATE TABLE table_1670921_2 (batting_partners VARCHAR, venue VARCHAR) | SELECT batting_partners FROM table_1670921_2 WHERE venue = "Sydney" | What batting partners played in sydney? | <s>[INST]What batting partners played in sydney? Context: CREATE TABLE table_1670921_2 (batting_partners VARCHAR, venue VARCHAR)[/INST]SELECT batting_partners FROM table_1670921_2 WHERE venue = "Sydney"</s> |
CREATE TABLE table_28286776_50 (club_s_ VARCHAR, international_debut VARCHAR) | SELECT club_s_ FROM table_28286776_50 WHERE international_debut = "2010 v Australia" | When 2010 v australia is the interantional debut what is the club? | <s>[INST]When 2010 v australia is the interantional debut what is the club? Context: CREATE TABLE table_28286776_50 (club_s_ VARCHAR, international_debut VARCHAR)[/INST]SELECT club_s_ FROM table_28286776_50 WHERE international_debut = "2010 v Australia"</s> |
CREATE TABLE table_name_15 (country VARCHAR, notes VARCHAR, rank VARCHAR) | SELECT country FROM table_name_15 WHERE notes = "qs" AND rank = 8 | Which country was ranked 8 and noted as qs? | <s>[INST]Which country was ranked 8 and noted as qs? Context: CREATE TABLE table_name_15 (country VARCHAR, notes VARCHAR, rank VARCHAR)[/INST]SELECT country FROM table_name_15 WHERE notes = "qs" AND rank = 8</s> |
CREATE TABLE table_name_25 (points_for_higher INTEGER, points_for_foundation VARCHAR, points_for_ordinary VARCHAR, grade VARCHAR) | SELECT AVG(points_for_higher) FROM table_name_25 WHERE points_for_ordinary = 0 AND grade = "ng" AND points_for_foundation < 0 | What average points for highers has 0 has points for ordinary, and Ng as the grade, and less than 0 as points for foundation? | <s>[INST]What average points for highers has 0 has points for ordinary, and Ng as the grade, and less than 0 as points for foundation? Context: CREATE TABLE table_name_25 (points_for_higher INTEGER, points_for_foundation VARCHAR, points_for_ordinary VARCHAR, grade VARCHAR)[/INST]SELECT AVG(points_for_higher) FROM table... |
CREATE TABLE table_name_52 (bronze INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR) | SELECT AVG(bronze) FROM table_name_52 WHERE gold > 1 AND total = 14 AND silver > 3 | Name the average Bronze when silver is more than 3, gold is more than 1 and the total is 14 | <s>[INST]Name the average Bronze when silver is more than 3, gold is more than 1 and the total is 14 Context: CREATE TABLE table_name_52 (bronze INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR)[/INST]SELECT AVG(bronze) FROM table_name_52 WHERE gold > 1 AND total = 14 AND silver > 3</s> |
CREATE TABLE table_28744929_2 (acc_record VARCHAR, team VARCHAR) | SELECT acc_record FROM table_28744929_2 WHERE team = "Miami" | What is the record in the atlantic coast conference for the Miami team? | <s>[INST]What is the record in the atlantic coast conference for the Miami team? Context: CREATE TABLE table_28744929_2 (acc_record VARCHAR, team VARCHAR)[/INST]SELECT acc_record FROM table_28744929_2 WHERE team = "Miami"</s> |
CREATE TABLE table_name_95 (bulgarian_name VARCHAR, english_name VARCHAR) | SELECT bulgarian_name FROM table_name_95 WHERE english_name = "january" | What's the bulgarian word for January? | <s>[INST]What's the bulgarian word for January? Context: CREATE TABLE table_name_95 (bulgarian_name VARCHAR, english_name VARCHAR)[/INST]SELECT bulgarian_name FROM table_name_95 WHERE english_name = "january"</s> |
CREATE TABLE table_name_68 (time VARCHAR, opponent VARCHAR) | SELECT time FROM table_name_68 WHERE opponent = "cleber luciano" | What was the time when his opponent was Cleber Luciano? | <s>[INST]What was the time when his opponent was Cleber Luciano? Context: CREATE TABLE table_name_68 (time VARCHAR, opponent VARCHAR)[/INST]SELECT time FROM table_name_68 WHERE opponent = "cleber luciano"</s> |
CREATE TABLE table_name_98 (episodes INTEGER, tv_station VARCHAR, romaji_title VARCHAR) | SELECT MIN(episodes) FROM table_name_98 WHERE tv_station = "fuji tv" AND romaji_title = "absolute boyfriend" | What is the episode on Fuji TV titled Absolute Boyfriend? | <s>[INST]What is the episode on Fuji TV titled Absolute Boyfriend? Context: CREATE TABLE table_name_98 (episodes INTEGER, tv_station VARCHAR, romaji_title VARCHAR)[/INST]SELECT MIN(episodes) FROM table_name_98 WHERE tv_station = "fuji tv" AND romaji_title = "absolute boyfriend"</s> |
CREATE TABLE table_21063459_1 (opponent VARCHAR, record VARCHAR) | SELECT opponent FROM table_21063459_1 WHERE record = "3-1, #16" | Who did the team play against when a record of 3-1, #16 was achieved? | <s>[INST]Who did the team play against when a record of 3-1, #16 was achieved? Context: CREATE TABLE table_21063459_1 (opponent VARCHAR, record VARCHAR)[/INST]SELECT opponent FROM table_21063459_1 WHERE record = "3-1, #16"</s> |
CREATE TABLE table_24910733_1 (directed_by VARCHAR, us_viewers__millions_ VARCHAR) | SELECT directed_by FROM table_24910733_1 WHERE us_viewers__millions_ = "8.44" | Who is the director when there is 8.44 million viewers? | <s>[INST]Who is the director when there is 8.44 million viewers? Context: CREATE TABLE table_24910733_1 (directed_by VARCHAR, us_viewers__millions_ VARCHAR)[/INST]SELECT directed_by FROM table_24910733_1 WHERE us_viewers__millions_ = "8.44"</s> |
CREATE TABLE table_name_81 (gold INTEGER, total VARCHAR, rank VARCHAR) | SELECT MIN(gold) FROM table_name_81 WHERE total = 5 AND rank > 1 | What is the number of Gold medals for the Nation with a Total of 5 and Rank larger than 1? | <s>[INST]What is the number of Gold medals for the Nation with a Total of 5 and Rank larger than 1? Context: CREATE TABLE table_name_81 (gold INTEGER, total VARCHAR, rank VARCHAR)[/INST]SELECT MIN(gold) FROM table_name_81 WHERE total = 5 AND rank > 1</s> |
CREATE TABLE table_name_97 (name VARCHAR, type VARCHAR, moving_to VARCHAR) | SELECT name FROM table_name_97 WHERE type = "loan" AND moving_to = "apollon kalamaria" | Which Name has a Type of loan, and a Moving to of apollon kalamaria? | <s>[INST]Which Name has a Type of loan, and a Moving to of apollon kalamaria? Context: CREATE TABLE table_name_97 (name VARCHAR, type VARCHAR, moving_to VARCHAR)[/INST]SELECT name FROM table_name_97 WHERE type = "loan" AND moving_to = "apollon kalamaria"</s> |
CREATE TABLE table_1341586_44 (candidates VARCHAR, incumbent VARCHAR) | SELECT COUNT(candidates) FROM table_1341586_44 WHERE incumbent = "Mac Sweeney" | How many districts have Mac Sweeney as incumbent? | <s>[INST]How many districts have Mac Sweeney as incumbent? Context: CREATE TABLE table_1341586_44 (candidates VARCHAR, incumbent VARCHAR)[/INST]SELECT COUNT(candidates) FROM table_1341586_44 WHERE incumbent = "Mac Sweeney"</s> |
CREATE TABLE table_name_42 (score VARCHAR, to_par VARCHAR, player VARCHAR) | SELECT score FROM table_name_42 WHERE to_par = "+1" AND player = "curtis strange" | When curtis strange had a to par +1, what was his score? | <s>[INST]When curtis strange had a to par +1, what was his score? Context: CREATE TABLE table_name_42 (score VARCHAR, to_par VARCHAR, player VARCHAR)[/INST]SELECT score FROM table_name_42 WHERE to_par = "+1" AND player = "curtis strange"</s> |
CREATE TABLE table_27755603_11 (team VARCHAR, date VARCHAR) | SELECT team FROM table_27755603_11 WHERE date = "April 6" | What team did they play on april 6? | <s>[INST]What team did they play on april 6? Context: CREATE TABLE table_27755603_11 (team VARCHAR, date VARCHAR)[/INST]SELECT team FROM table_27755603_11 WHERE date = "April 6"</s> |
CREATE TABLE ship (built_year VARCHAR) | SELECT built_year FROM ship GROUP BY built_year ORDER BY COUNT(*) DESC LIMIT 1 | In which year were most of ships built? | <s>[INST]In which year were most of ships built? Context: CREATE TABLE ship (built_year VARCHAR)[/INST]SELECT built_year FROM ship GROUP BY built_year ORDER BY COUNT(*) DESC LIMIT 1</s> |
CREATE TABLE table_27616663_1 (theme VARCHAR, original_artist VARCHAR) | SELECT theme FROM table_27616663_1 WHERE original_artist = "Rosana" | What was the theme when original artist Rosana's song was performed? | <s>[INST]What was the theme when original artist Rosana's song was performed? Context: CREATE TABLE table_27616663_1 (theme VARCHAR, original_artist VARCHAR)[/INST]SELECT theme FROM table_27616663_1 WHERE original_artist = "Rosana"</s> |
CREATE TABLE table_2104176_1 (air_force_cross VARCHAR, homeland_security_distinguished_service_medal VARCHAR) | SELECT air_force_cross FROM table_2104176_1 WHERE homeland_security_distinguished_service_medal = "Aerial Achievement Medal" | What is the air force cross when you recieve the Aerial achievement medal? | <s>[INST]What is the air force cross when you recieve the Aerial achievement medal? Context: CREATE TABLE table_2104176_1 (air_force_cross VARCHAR, homeland_security_distinguished_service_medal VARCHAR)[/INST]SELECT air_force_cross FROM table_2104176_1 WHERE homeland_security_distinguished_service_medal = "Aerial Achie... |
CREATE TABLE table_name_78 (date VARCHAR, votes VARCHAR) | SELECT date FROM table_name_78 WHERE votes = "50,324" | On what date were there 50,324 votes? | <s>[INST]On what date were there 50,324 votes? Context: CREATE TABLE table_name_78 (date VARCHAR, votes VARCHAR)[/INST]SELECT date FROM table_name_78 WHERE votes = "50,324"</s> |
CREATE TABLE election (Id VARCHAR) | SELECT * FROM election | Show all the information about election. | <s>[INST]Show all the information about election. Context: CREATE TABLE election (Id VARCHAR)[/INST]SELECT * FROM election</s> |
CREATE TABLE table_name_15 (gold INTEGER, nation VARCHAR, total VARCHAR) | SELECT SUM(gold) FROM table_name_15 WHERE nation = "new zealand" AND total < 2 | How many gold have a National of New Zealand with a total less than 2? | <s>[INST]How many gold have a National of New Zealand with a total less than 2? Context: CREATE TABLE table_name_15 (gold INTEGER, nation VARCHAR, total VARCHAR)[/INST]SELECT SUM(gold) FROM table_name_15 WHERE nation = "new zealand" AND total < 2</s> |
CREATE TABLE evaluation (bonus INTEGER) | SELECT SUM(bonus) FROM evaluation | What is total bonus given in all evaluations? | <s>[INST]What is total bonus given in all evaluations? Context: CREATE TABLE evaluation (bonus INTEGER)[/INST]SELECT SUM(bonus) FROM evaluation</s> |
CREATE TABLE table_name_39 (artist_s_ VARCHAR, team_s_ VARCHAR) | SELECT artist_s_ FROM table_name_39 WHERE team_s_ = "seattle seahawks" | Who is the artist of the Seattle Seahawks track? | <s>[INST]Who is the artist of the Seattle Seahawks track? Context: CREATE TABLE table_name_39 (artist_s_ VARCHAR, team_s_ VARCHAR)[/INST]SELECT artist_s_ FROM table_name_39 WHERE team_s_ = "seattle seahawks"</s> |
CREATE TABLE table_name_99 (country VARCHAR, city VARCHAR) | SELECT country FROM table_name_99 WHERE city = "sydney" | What country has the city, Sydney? | <s>[INST]What country has the city, Sydney? Context: CREATE TABLE table_name_99 (country VARCHAR, city VARCHAR)[/INST]SELECT country FROM table_name_99 WHERE city = "sydney"</s> |
CREATE TABLE table_name_61 (area_km_2 INTEGER, official_name VARCHAR, population VARCHAR) | SELECT MIN(area_km_2) FROM table_name_61 WHERE official_name = "southampton" AND population > 1 OFFSET 601 | Which Area km 2 has an Official Name of southampton, and a Population larger than 1,601? | <s>[INST]Which Area km 2 has an Official Name of southampton, and a Population larger than 1,601? Context: CREATE TABLE table_name_61 (area_km_2 INTEGER, official_name VARCHAR, population VARCHAR)[/INST]SELECT MIN(area_km_2) FROM table_name_61 WHERE official_name = "southampton" AND population > 1 OFFSET 601</s> |
CREATE TABLE table_23224961_2 (unterfranken_west VARCHAR, oberfranken_ost VARCHAR) | SELECT COUNT(unterfranken_west) FROM table_23224961_2 WHERE oberfranken_ost = "Wacker Marktredwitz" | When wacker marktredwitz is the oberfranken ost how many unterfranken wests are there? | <s>[INST]When wacker marktredwitz is the oberfranken ost how many unterfranken wests are there? Context: CREATE TABLE table_23224961_2 (unterfranken_west VARCHAR, oberfranken_ost VARCHAR)[/INST]SELECT COUNT(unterfranken_west) FROM table_23224961_2 WHERE oberfranken_ost = "Wacker Marktredwitz"</s> |
CREATE TABLE table_name_69 (height_in_ft VARCHAR, no_s_ VARCHAR, school_club_team_country VARCHAR) | SELECT height_in_ft FROM table_name_69 WHERE no_s_ = "42" AND school_club_team_country = "long beach state" | How tall is player 42 from Long Beach State? | <s>[INST]How tall is player 42 from Long Beach State? Context: CREATE TABLE table_name_69 (height_in_ft VARCHAR, no_s_ VARCHAR, school_club_team_country VARCHAR)[/INST]SELECT height_in_ft FROM table_name_69 WHERE no_s_ = "42" AND school_club_team_country = "long beach state"</s> |
CREATE TABLE table_name_68 (points INTEGER, year INTEGER) | SELECT AVG(points) FROM table_name_68 WHERE year < 1955 | What is the average Points for a year before 1955? | <s>[INST]What is the average Points for a year before 1955? Context: CREATE TABLE table_name_68 (points INTEGER, year INTEGER)[/INST]SELECT AVG(points) FROM table_name_68 WHERE year < 1955</s> |
CREATE TABLE table_name_73 (airing_date VARCHAR, number_of_episodes VARCHAR, genre VARCHAR) | SELECT airing_date FROM table_name_73 WHERE number_of_episodes > 20 AND genre = "costume action" | What was the airing date when the number of episodes was larger than 20 and had the genre of costume action? | <s>[INST]What was the airing date when the number of episodes was larger than 20 and had the genre of costume action? Context: CREATE TABLE table_name_73 (airing_date VARCHAR, number_of_episodes VARCHAR, genre VARCHAR)[/INST]SELECT airing_date FROM table_name_73 WHERE number_of_episodes > 20 AND genre = "costume action... |
CREATE TABLE table_name_14 (wins INTEGER, rank INTEGER) | SELECT AVG(wins) FROM table_name_14 WHERE rank < 1 | On average, how many wins have a rank lower than 1? | <s>[INST]On average, how many wins have a rank lower than 1? Context: CREATE TABLE table_name_14 (wins INTEGER, rank INTEGER)[/INST]SELECT AVG(wins) FROM table_name_14 WHERE rank < 1</s> |
CREATE TABLE table_name_36 (Id VARCHAR) | SELECT 2011 FROM table_name_36 WHERE 2007 = "558" | What is the 2011 entry for the row with a 2007 entry of 558? | <s>[INST]What is the 2011 entry for the row with a 2007 entry of 558? Context: CREATE TABLE table_name_36 (Id VARCHAR)[/INST]SELECT 2011 FROM table_name_36 WHERE 2007 = "558"</s> |
CREATE TABLE table_22871239_9 (visitor VARCHAR, date VARCHAR) | SELECT visitor FROM table_22871239_9 WHERE date = "March 23" | Name the visitor for march 23 | <s>[INST]Name the visitor for march 23 Context: CREATE TABLE table_22871239_9 (visitor VARCHAR, date VARCHAR)[/INST]SELECT visitor FROM table_22871239_9 WHERE date = "March 23"</s> |
CREATE TABLE table_23799417_1 (no_in_series VARCHAR, production_code VARCHAR) | SELECT COUNT(no_in_series) FROM table_23799417_1 WHERE production_code = 202 | How many series had a production code of 202? | <s>[INST]How many series had a production code of 202? Context: CREATE TABLE table_23799417_1 (no_in_series VARCHAR, production_code VARCHAR)[/INST]SELECT COUNT(no_in_series) FROM table_23799417_1 WHERE production_code = 202</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.