context stringlengths 27 489 | answer stringlengths 18 557 | question stringlengths 12 243 | text stringlengths 103 1.05k |
|---|---|---|---|
CREATE TABLE table_name_89 (date VARCHAR, week VARCHAR) | SELECT date FROM table_name_89 WHERE week = 1 | When has a Week of 1? | <s>[INST]When has a Week of 1? Context: CREATE TABLE table_name_89 (date VARCHAR, week VARCHAR)[/INST]SELECT date FROM table_name_89 WHERE week = 1</s> |
CREATE TABLE table_name_11 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_11 WHERE date = "september 19" | Which opponent plays on September 19? | <s>[INST]Which opponent plays on September 19? Context: CREATE TABLE table_name_11 (opponent VARCHAR, date VARCHAR)[/INST]SELECT opponent FROM table_name_11 WHERE date = "september 19"</s> |
CREATE TABLE table_name_41 (series__number INTEGER, production_code VARCHAR, season__number VARCHAR) | SELECT MIN(series__number) FROM table_name_41 WHERE production_code = 717 AND season__number < 17 | Name the least series number with production code of 717 and season number less than 17 | <s>[INST]Name the least series number with production code of 717 and season number less than 17 Context: CREATE TABLE table_name_41 (series__number INTEGER, production_code VARCHAR, season__number VARCHAR)[/INST]SELECT MIN(series__number) FROM table_name_41 WHERE production_code = 717 AND season__number < 17</s> |
CREATE TABLE table_22810095_9 (name VARCHAR, age VARCHAR) | SELECT name FROM table_22810095_9 WHERE age = 24 | What player is 24 years old? | <s>[INST]What player is 24 years old? Context: CREATE TABLE table_22810095_9 (name VARCHAR, age VARCHAR)[/INST]SELECT name FROM table_22810095_9 WHERE age = 24</s> |
CREATE TABLE table_name_62 (reported_age VARCHAR, reported_birth_date VARCHAR) | SELECT reported_age FROM table_name_62 WHERE reported_birth_date = "22 december 1878" | what is the reported age when the reported birth date is 22 december 1878? | <s>[INST]what is the reported age when the reported birth date is 22 december 1878? Context: CREATE TABLE table_name_62 (reported_age VARCHAR, reported_birth_date VARCHAR)[/INST]SELECT reported_age FROM table_name_62 WHERE reported_birth_date = "22 december 1878"</s> |
CREATE TABLE table_name_88 (country VARCHAR, score VARCHAR) | SELECT country FROM table_name_88 WHERE score = 70 - 71 - 68 - 72 = 281 | what had a score of 70-71-68-72=281? | <s>[INST]what had a score of 70-71-68-72=281? Context: CREATE TABLE table_name_88 (country VARCHAR, score VARCHAR)[/INST]SELECT country FROM table_name_88 WHERE score = 70 - 71 - 68 - 72 = 281</s> |
CREATE TABLE table_name_89 (grand_rapids__grr_ VARCHAR, detroit__dtw_ VARCHAR) | SELECT grand_rapids__grr_ FROM table_name_89 WHERE detroit__dtw_ = "$378.55" | What was the passenger fare for Grand Rapids, when the passenger fare for Detroit was $378.55? | <s>[INST]What was the passenger fare for Grand Rapids, when the passenger fare for Detroit was $378.55? Context: CREATE TABLE table_name_89 (grand_rapids__grr_ VARCHAR, detroit__dtw_ VARCHAR)[/INST]SELECT grand_rapids__grr_ FROM table_name_89 WHERE detroit__dtw_ = "$378.55"</s> |
CREATE TABLE table_name_78 (japanese_title VARCHAR, average_ratings VARCHAR, tv_station VARCHAR) | SELECT japanese_title FROM table_name_78 WHERE average_ratings = "9.2%" AND tv_station = "nhk" | What Japanese title had average ratings of 9.2% on the NHK station? | <s>[INST]What Japanese title had average ratings of 9.2% on the NHK station? Context: CREATE TABLE table_name_78 (japanese_title VARCHAR, average_ratings VARCHAR, tv_station VARCHAR)[/INST]SELECT japanese_title FROM table_name_78 WHERE average_ratings = "9.2%" AND tv_station = "nhk"</s> |
CREATE TABLE table_name_74 (nation VARCHAR, second VARCHAR) | SELECT nation FROM table_name_74 WHERE second = "glenys bakker" | Glenys Bakker was second for which nation? | <s>[INST]Glenys Bakker was second for which nation? Context: CREATE TABLE table_name_74 (nation VARCHAR, second VARCHAR)[/INST]SELECT nation FROM table_name_74 WHERE second = "glenys bakker"</s> |
CREATE TABLE table_name_78 (date VARCHAR, opponent_in_the_final VARCHAR) | SELECT date FROM table_name_78 WHERE opponent_in_the_final = "isabel cueto" | On what date is Isabel cueto the opponent in the final? | <s>[INST]On what date is Isabel cueto the opponent in the final? Context: CREATE TABLE table_name_78 (date VARCHAR, opponent_in_the_final VARCHAR)[/INST]SELECT date FROM table_name_78 WHERE opponent_in_the_final = "isabel cueto"</s> |
CREATE TABLE table_name_68 (round INTEGER, school_club_team VARCHAR, pick VARCHAR) | SELECT MAX(round) FROM table_name_68 WHERE school_club_team = "arizona" AND pick < 298 | Which Round has a School/Club Team of arizona, and a Pick smaller than 298? | <s>[INST]Which Round has a School/Club Team of arizona, and a Pick smaller than 298? Context: CREATE TABLE table_name_68 (round INTEGER, school_club_team VARCHAR, pick VARCHAR)[/INST]SELECT MAX(round) FROM table_name_68 WHERE school_club_team = "arizona" AND pick < 298</s> |
CREATE TABLE film (Studio VARCHAR, Director VARCHAR) | SELECT Studio FROM film EXCEPT SELECT Studio FROM film WHERE Director = "Walter Hill" | Show the studios that have not produced films with director "Walter Hill". | <s>[INST]Show the studios that have not produced films with director "Walter Hill". Context: CREATE TABLE film (Studio VARCHAR, Director VARCHAR)[/INST]SELECT Studio FROM film EXCEPT SELECT Studio FROM film WHERE Director = "Walter Hill"</s> |
CREATE TABLE table_name_68 (mixed_doubles VARCHAR, year VARCHAR) | SELECT mixed_doubles FROM table_name_68 WHERE year = 2010 | Who all played mixed doubles in 2010? | <s>[INST]Who all played mixed doubles in 2010? Context: CREATE TABLE table_name_68 (mixed_doubles VARCHAR, year VARCHAR)[/INST]SELECT mixed_doubles FROM table_name_68 WHERE year = 2010</s> |
CREATE TABLE table_2846320_4 (streak VARCHAR, last_meeting VARCHAR) | SELECT streak FROM table_2846320_4 WHERE last_meeting = 2009 | what is the length where the time is 2009 | <s>[INST]what is the length where the time is 2009 Context: CREATE TABLE table_2846320_4 (streak VARCHAR, last_meeting VARCHAR)[/INST]SELECT streak FROM table_2846320_4 WHERE last_meeting = 2009</s> |
CREATE TABLE table_name_74 (pali VARCHAR, english VARCHAR) | SELECT pali FROM table_name_74 WHERE english = "meditative concentration" | Which Pali has an English of meditative concentration? | <s>[INST]Which Pali has an English of meditative concentration? Context: CREATE TABLE table_name_74 (pali VARCHAR, english VARCHAR)[/INST]SELECT pali FROM table_name_74 WHERE english = "meditative concentration"</s> |
CREATE TABLE table_name_29 (crowd INTEGER, away_team VARCHAR) | SELECT AVG(crowd) FROM table_name_29 WHERE away_team = "hawthorn" | What is the average crowd to watch Hawthorn as the away team? | <s>[INST]What is the average crowd to watch Hawthorn as the away team? Context: CREATE TABLE table_name_29 (crowd INTEGER, away_team VARCHAR)[/INST]SELECT AVG(crowd) FROM table_name_29 WHERE away_team = "hawthorn"</s> |
CREATE TABLE table_name_79 (competition VARCHAR, draws VARCHAR) | SELECT competition FROM table_name_79 WHERE draws = 2 | Which competition had 2 draws? | <s>[INST]Which competition had 2 draws? Context: CREATE TABLE table_name_79 (competition VARCHAR, draws VARCHAR)[/INST]SELECT competition FROM table_name_79 WHERE draws = 2</s> |
CREATE TABLE table_14342592_8 (touchdowns INTEGER, player VARCHAR) | SELECT MAX(touchdowns) FROM table_14342592_8 WHERE player = "Norcross" | Name the most touchdowns for norcross | <s>[INST]Name the most touchdowns for norcross Context: CREATE TABLE table_14342592_8 (touchdowns INTEGER, player VARCHAR)[/INST]SELECT MAX(touchdowns) FROM table_14342592_8 WHERE player = "Norcross"</s> |
CREATE TABLE Detention (datetime_detention_start VARCHAR, teacher_id VARCHAR); CREATE TABLE Teachers (teacher_id VARCHAR, last_name VARCHAR) | SELECT T1.datetime_detention_start, datetime_detention_end FROM Detention AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.last_name = "Schultz" | Find the start and end dates of detentions of teachers with last name "Schultz". | <s>[INST]Find the start and end dates of detentions of teachers with last name "Schultz". Context: CREATE TABLE Detention (datetime_detention_start VARCHAR, teacher_id VARCHAR); CREATE TABLE Teachers (teacher_id VARCHAR, last_name VARCHAR)[/INST]SELECT T1.datetime_detention_start, datetime_detention_end FROM Detention ... |
CREATE TABLE table_name_38 (set_2 VARCHAR, set_1 VARCHAR) | SELECT set_2 FROM table_name_38 WHERE set_1 = "25–20" | Set 1 of 25–20, what was Set 2? | <s>[INST]Set 1 of 25–20, what was Set 2? Context: CREATE TABLE table_name_38 (set_2 VARCHAR, set_1 VARCHAR)[/INST]SELECT set_2 FROM table_name_38 WHERE set_1 = "25–20"</s> |
CREATE TABLE teaches (name VARCHAR, id VARCHAR); CREATE TABLE instructor (name VARCHAR, id VARCHAR) | SELECT name FROM instructor WHERE NOT id IN (SELECT id FROM teaches) | Find the name of instructors who didn't teach any courses? | <s>[INST]Find the name of instructors who didn't teach any courses? Context: CREATE TABLE teaches (name VARCHAR, id VARCHAR); CREATE TABLE instructor (name VARCHAR, id VARCHAR)[/INST]SELECT name FROM instructor WHERE NOT id IN (SELECT id FROM teaches)</s> |
CREATE TABLE table_name_70 (form INTEGER, pages VARCHAR, total_assets VARCHAR) | SELECT SUM(form) FROM table_name_70 WHERE pages > 17 AND total_assets = "$1,801,154" | What is the sum of forms with greater than 17 pages and a total of $1,801,154? | <s>[INST]What is the sum of forms with greater than 17 pages and a total of $1,801,154? Context: CREATE TABLE table_name_70 (form INTEGER, pages VARCHAR, total_assets VARCHAR)[/INST]SELECT SUM(form) FROM table_name_70 WHERE pages > 17 AND total_assets = "$1,801,154"</s> |
CREATE TABLE courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE student_course_registrations (student_id VARCHAR, course_id VARCHAR) | SELECT T1.student_id, T2.course_name FROM student_course_registrations AS T1 JOIN courses AS T2 ON T1.course_id = T2.course_id | What are the ids of all students for courses and what are the names of those courses? | <s>[INST]What are the ids of all students for courses and what are the names of those courses? Context: CREATE TABLE courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE student_course_registrations (student_id VARCHAR, course_id VARCHAR)[/INST]SELECT T1.student_id, T2.course_name FROM student_course_registra... |
CREATE TABLE table_21795846_1 (position VARCHAR, points VARCHAR) | SELECT position FROM table_21795846_1 WHERE points = 16 | If there is 16 points, what was the position? | <s>[INST]If there is 16 points, what was the position? Context: CREATE TABLE table_21795846_1 (position VARCHAR, points VARCHAR)[/INST]SELECT position FROM table_21795846_1 WHERE points = 16</s> |
CREATE TABLE table_name_84 (goals_conceded__gc_ INTEGER, ____dif_ VARCHAR, draw__pe_ VARCHAR, goals_scored__gf_ VARCHAR) | SELECT MAX(goals_conceded__gc_) FROM table_name_84 WHERE draw__pe_ = 2 AND goals_scored__gf_ > 29 AND ____dif_ > 15 | What is the maximum goals conceded for a team with 2 draws, more than 29 goals and a diff larger than 15? | <s>[INST]What is the maximum goals conceded for a team with 2 draws, more than 29 goals and a diff larger than 15? Context: CREATE TABLE table_name_84 (goals_conceded__gc_ INTEGER, ____dif_ VARCHAR, draw__pe_ VARCHAR, goals_scored__gf_ VARCHAR)[/INST]SELECT MAX(goals_conceded__gc_) FROM table_name_84 WHERE draw__pe_ = ... |
CREATE TABLE table_name_99 (country VARCHAR, language_s_ VARCHAR, literary_tradition VARCHAR) | SELECT country FROM table_name_99 WHERE language_s_ = "english" AND literary_tradition = "canadian literature" | What nation was the film from that was in english and had a Literary tradition of canadian literature? | <s>[INST]What nation was the film from that was in english and had a Literary tradition of canadian literature? Context: CREATE TABLE table_name_99 (country VARCHAR, language_s_ VARCHAR, literary_tradition VARCHAR)[/INST]SELECT country FROM table_name_99 WHERE language_s_ = "english" AND literary_tradition = "canadian ... |
CREATE TABLE table_name_94 (hometown VARCHAR, position VARCHAR, name VARCHAR) | SELECT hometown FROM table_name_94 WHERE position = "guard" AND name = "kerri shields" | What is Guard Kerri Shields Hometown? | <s>[INST]What is Guard Kerri Shields Hometown? Context: CREATE TABLE table_name_94 (hometown VARCHAR, position VARCHAR, name VARCHAR)[/INST]SELECT hometown FROM table_name_94 WHERE position = "guard" AND name = "kerri shields"</s> |
CREATE TABLE church (open_date VARCHAR) | SELECT open_date, COUNT(*) FROM church GROUP BY open_date | Show all opening years and the number of churches that opened in that year. | <s>[INST]Show all opening years and the number of churches that opened in that year. Context: CREATE TABLE church (open_date VARCHAR)[/INST]SELECT open_date, COUNT(*) FROM church GROUP BY open_date</s> |
CREATE TABLE Aircraft (aid VARCHAR, distance INTEGER); CREATE TABLE Employee (name VARCHAR, eid VARCHAR); CREATE TABLE Certificate (eid VARCHAR, aid VARCHAR) | SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.distance > 5000 GROUP BY T1.eid ORDER BY COUNT(*) DESC LIMIT 1 | What is the salary and name of the employee who has the most number of certificates on aircrafts with distance more than 5000? | <s>[INST]What is the salary and name of the employee who has the most number of certificates on aircrafts with distance more than 5000? Context: CREATE TABLE Aircraft (aid VARCHAR, distance INTEGER); CREATE TABLE Employee (name VARCHAR, eid VARCHAR); CREATE TABLE Certificate (eid VARCHAR, aid VARCHAR)[/INST]SELECT T1.n... |
CREATE TABLE table_name_62 (goals_for VARCHAR, losses VARCHAR, draws VARCHAR, wins VARCHAR) | SELECT COUNT(goals_for) FROM table_name_62 WHERE draws > 7 AND wins > 8 AND losses > 5 | What is the total number of goals for entries that have more than 7 draws, 8 wins, and more than 5 losses? | <s>[INST]What is the total number of goals for entries that have more than 7 draws, 8 wins, and more than 5 losses? Context: CREATE TABLE table_name_62 (goals_for VARCHAR, losses VARCHAR, draws VARCHAR, wins VARCHAR)[/INST]SELECT COUNT(goals_for) FROM table_name_62 WHERE draws > 7 AND wins > 8 AND losses > 5</s> |
CREATE TABLE table_name_4 (top_speed VARCHAR, model VARCHAR, power VARCHAR) | SELECT top_speed FROM table_name_4 WHERE model = "slk200k" AND power = "122kw (163hp)" | What is the top speed of the SLK200K that produces 122kw (163hp)? | <s>[INST]What is the top speed of the SLK200K that produces 122kw (163hp)? Context: CREATE TABLE table_name_4 (top_speed VARCHAR, model VARCHAR, power VARCHAR)[/INST]SELECT top_speed FROM table_name_4 WHERE model = "slk200k" AND power = "122kw (163hp)"</s> |
CREATE TABLE table_22181917_2 (title VARCHAR, us_viewers__millions_ VARCHAR) | SELECT title FROM table_22181917_2 WHERE us_viewers__millions_ = "9.76" | What is the title of the episode that had 9.76 million U.S. viewers? | <s>[INST]What is the title of the episode that had 9.76 million U.S. viewers? Context: CREATE TABLE table_22181917_2 (title VARCHAR, us_viewers__millions_ VARCHAR)[/INST]SELECT title FROM table_22181917_2 WHERE us_viewers__millions_ = "9.76"</s> |
CREATE TABLE city (Status VARCHAR, Population INTEGER) | SELECT Status, AVG(Population) FROM city GROUP BY Status | Please show the different statuses of cities and the average population of cities with each status. | <s>[INST]Please show the different statuses of cities and the average population of cities with each status. Context: CREATE TABLE city (Status VARCHAR, Population INTEGER)[/INST]SELECT Status, AVG(Population) FROM city GROUP BY Status</s> |
CREATE TABLE table_name_86 (weight VARCHAR, club VARCHAR) | SELECT weight FROM table_name_86 WHERE club = "maadi" | What is Weight, when Club is "Maadi"? | <s>[INST]What is Weight, when Club is "Maadi"? Context: CREATE TABLE table_name_86 (weight VARCHAR, club VARCHAR)[/INST]SELECT weight FROM table_name_86 WHERE club = "maadi"</s> |
CREATE TABLE table_name_6 (dates VARCHAR, tournament_location VARCHAR, champion VARCHAR) | SELECT dates FROM table_name_6 WHERE tournament_location = "ibaraki country club" AND champion = "masahiro kawamura" | What dates was champion masahiro kawamura at the ibaraki country club tournament? | <s>[INST]What dates was champion masahiro kawamura at the ibaraki country club tournament? Context: CREATE TABLE table_name_6 (dates VARCHAR, tournament_location VARCHAR, champion VARCHAR)[/INST]SELECT dates FROM table_name_6 WHERE tournament_location = "ibaraki country club" AND champion = "masahiro kawamura"</s> |
CREATE TABLE table_name_63 (player VARCHAR, position VARCHAR, pick VARCHAR) | SELECT player FROM table_name_63 WHERE position = "outfielder" AND pick < 42 | What is the name of the Outfielder that was picked prior to Pick 42? | <s>[INST]What is the name of the Outfielder that was picked prior to Pick 42? Context: CREATE TABLE table_name_63 (player VARCHAR, position VARCHAR, pick VARCHAR)[/INST]SELECT player FROM table_name_63 WHERE position = "outfielder" AND pick < 42</s> |
CREATE TABLE table_name_82 (away_team VARCHAR, venue VARCHAR) | SELECT away_team FROM table_name_82 WHERE venue = "mcg" | Which Away team has a Venue of mcg? | <s>[INST]Which Away team has a Venue of mcg? Context: CREATE TABLE table_name_82 (away_team VARCHAR, venue VARCHAR)[/INST]SELECT away_team FROM table_name_82 WHERE venue = "mcg"</s> |
CREATE TABLE table_26757_4 (proto_slavic VARCHAR, macedonian VARCHAR) | SELECT proto_slavic FROM table_26757_4 WHERE macedonian = "риба (ríba)" | When риба (ríba) is the macedonian what is the proto-slavic? | <s>[INST]When риба (ríba) is the macedonian what is the proto-slavic? Context: CREATE TABLE table_26757_4 (proto_slavic VARCHAR, macedonian VARCHAR)[/INST]SELECT proto_slavic FROM table_26757_4 WHERE macedonian = "риба (ríba)"</s> |
CREATE TABLE table_name_59 (character VARCHAR, portrayed_by VARCHAR) | SELECT character FROM table_name_59 WHERE portrayed_by = "joe jonas" | What character is portrayed by Joe Jonas? | <s>[INST]What character is portrayed by Joe Jonas? Context: CREATE TABLE table_name_59 (character VARCHAR, portrayed_by VARCHAR)[/INST]SELECT character FROM table_name_59 WHERE portrayed_by = "joe jonas"</s> |
CREATE TABLE table_14342210_12 (extra_points INTEGER) | SELECT MAX(extra_points) FROM table_14342210_12 | What was the most extra points? | <s>[INST]What was the most extra points? Context: CREATE TABLE table_14342210_12 (extra_points INTEGER)[/INST]SELECT MAX(extra_points) FROM table_14342210_12</s> |
CREATE TABLE table_name_16 (class_to_1928 VARCHAR, quantity VARCHAR, seats VARCHAR) | SELECT class_to_1928 FROM table_name_16 WHERE quantity < 440 AND seats = "29/29" | What Class to 1928 has the Quantity smaller than 440 and Seats of 29/29? | <s>[INST]What Class to 1928 has the Quantity smaller than 440 and Seats of 29/29? Context: CREATE TABLE table_name_16 (class_to_1928 VARCHAR, quantity VARCHAR, seats VARCHAR)[/INST]SELECT class_to_1928 FROM table_name_16 WHERE quantity < 440 AND seats = "29/29"</s> |
CREATE TABLE table_name_2 (score VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR) | SELECT score FROM table_name_2 WHERE surface = "hard" AND opponent_in_the_final = "elena likhovtseva" | What is the score of the match played on a hard surface with an opponent in the final of Elena Likhovtseva? | <s>[INST]What is the score of the match played on a hard surface with an opponent in the final of Elena Likhovtseva? Context: CREATE TABLE table_name_2 (score VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR)[/INST]SELECT score FROM table_name_2 WHERE surface = "hard" AND opponent_in_the_final = "elena likhovtse... |
CREATE TABLE table_name_38 (school VARCHAR, team VARCHAR) | SELECT school FROM table_name_38 WHERE team = "wildcats" | The wildcats belong to what school? | <s>[INST]The wildcats belong to what school? Context: CREATE TABLE table_name_38 (school VARCHAR, team VARCHAR)[/INST]SELECT school FROM table_name_38 WHERE team = "wildcats"</s> |
CREATE TABLE table_17115950_2 (outgoing_manager VARCHAR, replaced_by VARCHAR) | SELECT outgoing_manager FROM table_17115950_2 WHERE replaced_by = "Marian Bucurescu" | Who was the outgoing manager replaced by Marian Bucurescu? | <s>[INST]Who was the outgoing manager replaced by Marian Bucurescu? Context: CREATE TABLE table_17115950_2 (outgoing_manager VARCHAR, replaced_by VARCHAR)[/INST]SELECT outgoing_manager FROM table_17115950_2 WHERE replaced_by = "Marian Bucurescu"</s> |
CREATE TABLE table_22916979_1 (population_density__people_per_mi_2__ VARCHAR, land_area__mi_2__ VARCHAR) | SELECT population_density__people_per_mi_2__ FROM table_22916979_1 WHERE land_area__mi_2__ = "135.09" | For the city whose land area was 135.09, what was the total population density? | <s>[INST]For the city whose land area was 135.09, what was the total population density? Context: CREATE TABLE table_22916979_1 (population_density__people_per_mi_2__ VARCHAR, land_area__mi_2__ VARCHAR)[/INST]SELECT population_density__people_per_mi_2__ FROM table_22916979_1 WHERE land_area__mi_2__ = "135.09"</s> |
CREATE TABLE Student_Course_Enrolment (student_id VARCHAR); CREATE TABLE Students (login_name VARCHAR, student_id VARCHAR) | SELECT T1.student_id, T2.login_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1 | Find the student ID and login name of the student with the most course enrollments | <s>[INST]Find the student ID and login name of the student with the most course enrollments Context: CREATE TABLE Student_Course_Enrolment (student_id VARCHAR); CREATE TABLE Students (login_name VARCHAR, student_id VARCHAR)[/INST]SELECT T1.student_id, T2.login_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T... |
CREATE TABLE table_name_10 (game INTEGER, record VARCHAR) | SELECT MAX(game) FROM table_name_10 WHERE record = "2-1" | What's the highest game found when the record is 2-1? | <s>[INST]What's the highest game found when the record is 2-1? Context: CREATE TABLE table_name_10 (game INTEGER, record VARCHAR)[/INST]SELECT MAX(game) FROM table_name_10 WHERE record = "2-1"</s> |
CREATE TABLE table_name_98 (rounds VARCHAR, entrant VARCHAR, driver VARCHAR) | SELECT rounds FROM table_name_98 WHERE entrant = "david brown corporation" AND driver = "roy salvadori" | What rounds did Roy Salvadori drive for David Brown Corporation? | <s>[INST]What rounds did Roy Salvadori drive for David Brown Corporation? Context: CREATE TABLE table_name_98 (rounds VARCHAR, entrant VARCHAR, driver VARCHAR)[/INST]SELECT rounds FROM table_name_98 WHERE entrant = "david brown corporation" AND driver = "roy salvadori"</s> |
CREATE TABLE table_name_1 (paraguay_scorers VARCHAR, date VARCHAR) | SELECT paraguay_scorers FROM table_name_1 WHERE date = "june 15, 2008" | Who were the Paraguay scorers on June 15, 2008? | <s>[INST]Who were the Paraguay scorers on June 15, 2008? Context: CREATE TABLE table_name_1 (paraguay_scorers VARCHAR, date VARCHAR)[/INST]SELECT paraguay_scorers FROM table_name_1 WHERE date = "june 15, 2008"</s> |
CREATE TABLE table_name_3 (home VARCHAR, visitor VARCHAR, record VARCHAR) | SELECT home FROM table_name_3 WHERE visitor = "montreal canadiens" AND record = "0-3" | What team did the Montreal Canadiens visit when the record was 0-3? | <s>[INST]What team did the Montreal Canadiens visit when the record was 0-3? Context: CREATE TABLE table_name_3 (home VARCHAR, visitor VARCHAR, record VARCHAR)[/INST]SELECT home FROM table_name_3 WHERE visitor = "montreal canadiens" AND record = "0-3"</s> |
CREATE TABLE table_27700375_7 (date VARCHAR, game VARCHAR) | SELECT date FROM table_27700375_7 WHERE game = 23 | what is the date of the game 23? | <s>[INST]what is the date of the game 23? Context: CREATE TABLE table_27700375_7 (date VARCHAR, game VARCHAR)[/INST]SELECT date FROM table_27700375_7 WHERE game = 23</s> |
CREATE TABLE table_name_92 (military_deaths VARCHAR, total_casualties VARCHAR) | SELECT military_deaths FROM table_name_92 WHERE total_casualties = "1,615" | How many military deaths were there when there were 1,615 total casualties? | <s>[INST]How many military deaths were there when there were 1,615 total casualties? Context: CREATE TABLE table_name_92 (military_deaths VARCHAR, total_casualties VARCHAR)[/INST]SELECT military_deaths FROM table_name_92 WHERE total_casualties = "1,615"</s> |
CREATE TABLE Highschooler (id VARCHAR); CREATE TABLE Friend (student_id VARCHAR); CREATE TABLE Highschooler (grade INTEGER, id VARCHAR) | SELECT AVG(grade) FROM Highschooler WHERE id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id) | Find the average grade of all students who have some friends. | <s>[INST]Find the average grade of all students who have some friends. Context: CREATE TABLE Highschooler (id VARCHAR); CREATE TABLE Friend (student_id VARCHAR); CREATE TABLE Highschooler (grade INTEGER, id VARCHAR)[/INST]SELECT AVG(grade) FROM Highschooler WHERE id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highs... |
CREATE TABLE table_17271495_1 (team VARCHAR, driver VARCHAR) | SELECT team FROM table_17271495_1 WHERE driver = "Darren Manning" | Name the team of darren manning | <s>[INST]Name the team of darren manning Context: CREATE TABLE table_17271495_1 (team VARCHAR, driver VARCHAR)[/INST]SELECT team FROM table_17271495_1 WHERE driver = "Darren Manning"</s> |
CREATE TABLE table_16323766_3 (evening_gown VARCHAR, preliminary_average VARCHAR) | SELECT evening_gown FROM table_16323766_3 WHERE preliminary_average = "8.121 (8)" | What was the evening gown score for the one who had a preliminary average of 8.121 (8)? | <s>[INST]What was the evening gown score for the one who had a preliminary average of 8.121 (8)? Context: CREATE TABLE table_16323766_3 (evening_gown VARCHAR, preliminary_average VARCHAR)[/INST]SELECT evening_gown FROM table_16323766_3 WHERE preliminary_average = "8.121 (8)"</s> |
CREATE TABLE table_1137695_3 (winning_driver VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR) | SELECT winning_driver FROM table_1137695_3 WHERE fastest_lap = "Michael Schumacher" AND pole_position = "Michael Schumacher" | Who was the winning driver when Michael Schumacher had the pole and the fastest lap? | <s>[INST]Who was the winning driver when Michael Schumacher had the pole and the fastest lap? Context: CREATE TABLE table_1137695_3 (winning_driver VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR)[/INST]SELECT winning_driver FROM table_1137695_3 WHERE fastest_lap = "Michael Schumacher" AND pole_position = "Michael ... |
CREATE TABLE station (name VARCHAR, id VARCHAR); CREATE TABLE station (name VARCHAR, id VARCHAR, installation_date VARCHAR); CREATE TABLE status (station_id VARCHAR, bikes_available INTEGER) | SELECT T1.name, T1.id FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id GROUP BY T2.station_id HAVING AVG(T2.bikes_available) > 14 UNION SELECT name, id FROM station WHERE installation_date LIKE "12/%" | What are the names and ids of stations that had more than 14 bikes available on average or were installed in December? | <s>[INST]What are the names and ids of stations that had more than 14 bikes available on average or were installed in December? Context: CREATE TABLE station (name VARCHAR, id VARCHAR); CREATE TABLE station (name VARCHAR, id VARCHAR, installation_date VARCHAR); CREATE TABLE status (station_id VARCHAR, bikes_available I... |
CREATE TABLE table_name_20 (home VARCHAR, venue VARCHAR, score VARCHAR) | SELECT home FROM table_name_20 WHERE venue = "bucharest" AND score = "9-9" | Who was at Home at the Bucharest Venue with a Score of 9-9? | <s>[INST]Who was at Home at the Bucharest Venue with a Score of 9-9? Context: CREATE TABLE table_name_20 (home VARCHAR, venue VARCHAR, score VARCHAR)[/INST]SELECT home FROM table_name_20 WHERE venue = "bucharest" AND score = "9-9"</s> |
CREATE TABLE table_name_62 (mintage INTEGER, issue_price VARCHAR, artist VARCHAR) | SELECT AVG(mintage) FROM table_name_62 WHERE issue_price = "$1,099.99" AND artist = "pamela stagg" | What was the mintage having an issue price of $1,099.99, artist being Pamela Stagg? | <s>[INST]What was the mintage having an issue price of $1,099.99, artist being Pamela Stagg? Context: CREATE TABLE table_name_62 (mintage INTEGER, issue_price VARCHAR, artist VARCHAR)[/INST]SELECT AVG(mintage) FROM table_name_62 WHERE issue_price = "$1,099.99" AND artist = "pamela stagg"</s> |
CREATE TABLE table_name_43 (pennant_number VARCHAR, launched VARCHAR, completed VARCHAR) | SELECT pennant_number FROM table_name_43 WHERE launched = "29 march 1934" AND completed = "30 october 1934" | Name the pennant number for completion of 30 october 1934 and launched 29 march 1934 | <s>[INST]Name the pennant number for completion of 30 october 1934 and launched 29 march 1934 Context: CREATE TABLE table_name_43 (pennant_number VARCHAR, launched VARCHAR, completed VARCHAR)[/INST]SELECT pennant_number FROM table_name_43 WHERE launched = "29 march 1934" AND completed = "30 october 1934"</s> |
CREATE TABLE table_name_83 (year_joined VARCHAR, mascot VARCHAR) | SELECT year_joined FROM table_name_83 WHERE mascot = "vikings" | Which year did the school with the mascot of the Vikings join? | <s>[INST]Which year did the school with the mascot of the Vikings join? Context: CREATE TABLE table_name_83 (year_joined VARCHAR, mascot VARCHAR)[/INST]SELECT year_joined FROM table_name_83 WHERE mascot = "vikings"</s> |
CREATE TABLE table_28092844_16 (teams_classification VARCHAR, general_classification_żółta_koszulka VARCHAR) | SELECT teams_classification FROM table_28092844_16 WHERE general_classification_żółta_koszulka = "Allan Davis" | Which teams classification winners had a general classification winner of Allan Davis? | <s>[INST]Which teams classification winners had a general classification winner of Allan Davis? Context: CREATE TABLE table_28092844_16 (teams_classification VARCHAR, general_classification_żółta_koszulka VARCHAR)[/INST]SELECT teams_classification FROM table_28092844_16 WHERE general_classification_żółta_koszulka = "Al... |
CREATE TABLE table_2840500_8 (pick VARCHAR, player VARCHAR) | SELECT pick FROM table_2840500_8 WHERE player = "Matthew Scorsune" | Name the pick for matthew scorsune | <s>[INST]Name the pick for matthew scorsune Context: CREATE TABLE table_2840500_8 (pick VARCHAR, player VARCHAR)[/INST]SELECT pick FROM table_2840500_8 WHERE player = "Matthew Scorsune"</s> |
CREATE TABLE table_name_45 (entered_office VARCHAR, throne_name VARCHAR) | SELECT entered_office FROM table_name_45 WHERE throne_name = "mohammad ali shah qajar" | What was the Entered Office of the man with the throne name Mohammad Ali Shah Qajar? | <s>[INST]What was the Entered Office of the man with the throne name Mohammad Ali Shah Qajar? Context: CREATE TABLE table_name_45 (entered_office VARCHAR, throne_name VARCHAR)[/INST]SELECT entered_office FROM table_name_45 WHERE throne_name = "mohammad ali shah qajar"</s> |
CREATE TABLE table_26638600_3 (lites_2_race_two_winning_team VARCHAR, lites_1_race_two_winning_team VARCHAR) | SELECT lites_2_race_two_winning_team FROM table_26638600_3 WHERE lites_1_race_two_winning_team = "#11 Performance Tech" | Who is the lites 2 race two winning team when #11 Performance Tech is the lites 1 race two winning team? | <s>[INST]Who is the lites 2 race two winning team when #11 Performance Tech is the lites 1 race two winning team? Context: CREATE TABLE table_26638600_3 (lites_2_race_two_winning_team VARCHAR, lites_1_race_two_winning_team VARCHAR)[/INST]SELECT lites_2_race_two_winning_team FROM table_26638600_3 WHERE lites_1_race_two_... |
CREATE TABLE table_10718525_2 (us_viewers__millions_ VARCHAR, directed_by VARCHAR) | SELECT us_viewers__millions_ FROM table_10718525_2 WHERE directed_by = "Matt Earl Beesley" | How many viewers tuned into the show directed by Matt Earl Beesley? | <s>[INST]How many viewers tuned into the show directed by Matt Earl Beesley? Context: CREATE TABLE table_10718525_2 (us_viewers__millions_ VARCHAR, directed_by VARCHAR)[/INST]SELECT us_viewers__millions_ FROM table_10718525_2 WHERE directed_by = "Matt Earl Beesley"</s> |
CREATE TABLE table_name_84 (position INTEGER, wins VARCHAR, loses VARCHAR) | SELECT MIN(position) FROM table_name_84 WHERE wins = 2 AND loses > 13 | What is the lowest positioned team with 2 wins and losses greater than 13? | <s>[INST]What is the lowest positioned team with 2 wins and losses greater than 13? Context: CREATE TABLE table_name_84 (position INTEGER, wins VARCHAR, loses VARCHAR)[/INST]SELECT MIN(position) FROM table_name_84 WHERE wins = 2 AND loses > 13</s> |
CREATE TABLE table_name_51 (rank INTEGER, peak_name VARCHAR) | SELECT SUM(rank) FROM table_name_51 WHERE peak_name = "red shirt table" | What is the total number of ranks when the Peak Name is Red Shirt Table? | <s>[INST]What is the total number of ranks when the Peak Name is Red Shirt Table? Context: CREATE TABLE table_name_51 (rank INTEGER, peak_name VARCHAR)[/INST]SELECT SUM(rank) FROM table_name_51 WHERE peak_name = "red shirt table"</s> |
CREATE TABLE table_name_39 (year INTEGER, attendance VARCHAR, runner_up VARCHAR) | SELECT SUM(year) FROM table_name_39 WHERE attendance = "95,000" AND runner_up = "dresdner sc" | What is the sum of the years where the attendance was 95,000 and the runner-up was dresdner sc? | <s>[INST]What is the sum of the years where the attendance was 95,000 and the runner-up was dresdner sc? Context: CREATE TABLE table_name_39 (year INTEGER, attendance VARCHAR, runner_up VARCHAR)[/INST]SELECT SUM(year) FROM table_name_39 WHERE attendance = "95,000" AND runner_up = "dresdner sc"</s> |
CREATE TABLE table_name_17 (constructor VARCHAR, circuit VARCHAR, date VARCHAR) | SELECT constructor FROM table_name_17 WHERE circuit = "oulton park" AND date = "15 april" | What company constrcuted the vehicle with a circuit of oulton park on 15 april? | <s>[INST]What company constrcuted the vehicle with a circuit of oulton park on 15 april? Context: CREATE TABLE table_name_17 (constructor VARCHAR, circuit VARCHAR, date VARCHAR)[/INST]SELECT constructor FROM table_name_17 WHERE circuit = "oulton park" AND date = "15 april"</s> |
CREATE TABLE table_name_87 (odds VARCHAR, trainer VARCHAR) | SELECT odds FROM table_name_87 WHERE trainer = "barclay tagg" | What are the Odds for Trainer Barclay Tagg? | <s>[INST]What are the Odds for Trainer Barclay Tagg? Context: CREATE TABLE table_name_87 (odds VARCHAR, trainer VARCHAR)[/INST]SELECT odds FROM table_name_87 WHERE trainer = "barclay tagg"</s> |
CREATE TABLE table_name_97 (gold INTEGER, silver VARCHAR, bronze VARCHAR, rank VARCHAR) | SELECT MIN(gold) FROM table_name_97 WHERE bronze < 36 AND rank = "2" AND silver < 37 | What is the lowest number of Gold, when the number of Bronze is less than 36, when the Rank is 2, and when Silver is less than 37? | <s>[INST]What is the lowest number of Gold, when the number of Bronze is less than 36, when the Rank is 2, and when Silver is less than 37? Context: CREATE TABLE table_name_97 (gold INTEGER, silver VARCHAR, bronze VARCHAR, rank VARCHAR)[/INST]SELECT MIN(gold) FROM table_name_97 WHERE bronze < 36 AND rank = "2" AND silv... |
CREATE TABLE table_name_28 (kickoff_time VARCHAR, date VARCHAR) | SELECT kickoff_time FROM table_name_28 WHERE date = "november 10, 2002" | What is the kickoff time on November 10, 2002? | <s>[INST]What is the kickoff time on November 10, 2002? Context: CREATE TABLE table_name_28 (kickoff_time VARCHAR, date VARCHAR)[/INST]SELECT kickoff_time FROM table_name_28 WHERE date = "november 10, 2002"</s> |
CREATE TABLE table_name_12 (currency VARCHAR, central_rate VARCHAR) | SELECT currency FROM table_name_12 WHERE central_rate = "0.702804" | Which currency has a central rate of 0.702804? | <s>[INST]Which currency has a central rate of 0.702804? Context: CREATE TABLE table_name_12 (currency VARCHAR, central_rate VARCHAR)[/INST]SELECT currency FROM table_name_12 WHERE central_rate = "0.702804"</s> |
CREATE TABLE table_name_43 (score VARCHAR, location VARCHAR, champion VARCHAR) | SELECT score FROM table_name_43 WHERE location = "montreal" AND champion = "john mcenroe" | When John Mcenroe won at Montreal, what was the score? | <s>[INST]When John Mcenroe won at Montreal, what was the score? Context: CREATE TABLE table_name_43 (score VARCHAR, location VARCHAR, champion VARCHAR)[/INST]SELECT score FROM table_name_43 WHERE location = "montreal" AND champion = "john mcenroe"</s> |
CREATE TABLE table_name_41 (tropical_lows INTEGER, season VARCHAR, tropical_cyclones VARCHAR) | SELECT MIN(tropical_lows) FROM table_name_41 WHERE season = "1993–94" AND tropical_cyclones < 11 | What is the least amount of tropical lows for the 1993–94 season with less than 11 tropical cyclones | <s>[INST]What is the least amount of tropical lows for the 1993–94 season with less than 11 tropical cyclones Context: CREATE TABLE table_name_41 (tropical_lows INTEGER, season VARCHAR, tropical_cyclones VARCHAR)[/INST]SELECT MIN(tropical_lows) FROM table_name_41 WHERE season = "1993–94" AND tropical_cyclones < 11</s> |
CREATE TABLE table_name_73 (date VARCHAR, injured VARCHAR) | SELECT date FROM table_name_73 WHERE injured = "21" | On what Date did the massacre result with 21 Injured? | <s>[INST]On what Date did the massacre result with 21 Injured? Context: CREATE TABLE table_name_73 (date VARCHAR, injured VARCHAR)[/INST]SELECT date FROM table_name_73 WHERE injured = "21"</s> |
CREATE TABLE table_name_13 (oricon VARCHAR, romaji_title VARCHAR) | SELECT COUNT(oricon) FROM table_name_13 WHERE romaji_title = "rakuen -memorial tracks- (maxi-single)" | How many oricon's have a romaji title of rakuen -memorial tracks- (maxi-single)? | <s>[INST]How many oricon's have a romaji title of rakuen -memorial tracks- (maxi-single)? Context: CREATE TABLE table_name_13 (oricon VARCHAR, romaji_title VARCHAR)[/INST]SELECT COUNT(oricon) FROM table_name_13 WHERE romaji_title = "rakuen -memorial tracks- (maxi-single)"</s> |
CREATE TABLE table_1449176_1 (rank VARCHAR, area__km_2__ VARCHAR) | SELECT rank FROM table_1449176_1 WHERE area__km_2__ = "47.3" | What rank is the common with an area of 47.3 km^2? | <s>[INST]What rank is the common with an area of 47.3 km^2? Context: CREATE TABLE table_1449176_1 (rank VARCHAR, area__km_2__ VARCHAR)[/INST]SELECT rank FROM table_1449176_1 WHERE area__km_2__ = "47.3"</s> |
CREATE TABLE table_name_27 (venue VARCHAR, result VARCHAR, year VARCHAR) | SELECT venue FROM table_name_27 WHERE result = "2nd" AND year < 2005 | Which venue resulted in 2nd before 2005? | <s>[INST]Which venue resulted in 2nd before 2005? Context: CREATE TABLE table_name_27 (venue VARCHAR, result VARCHAR, year VARCHAR)[/INST]SELECT venue FROM table_name_27 WHERE result = "2nd" AND year < 2005</s> |
CREATE TABLE table_name_37 (episode INTEGER, performer_4 VARCHAR, performer_2 VARCHAR) | SELECT SUM(episode) FROM table_name_37 WHERE performer_4 = "chip esten" AND performer_2 = "christopher smith" | What is the sum of the episode numbers where chip esten is the 4th performer and christopher smith was the 2nd performer? | <s>[INST]What is the sum of the episode numbers where chip esten is the 4th performer and christopher smith was the 2nd performer? Context: CREATE TABLE table_name_37 (episode INTEGER, performer_4 VARCHAR, performer_2 VARCHAR)[/INST]SELECT SUM(episode) FROM table_name_37 WHERE performer_4 = "chip esten" AND performer_2... |
CREATE TABLE table_name_78 (team_2 VARCHAR) | SELECT 1 AS st_leg FROM table_name_78 WHERE team_2 = "11 oktomvri" | What 1st leg has 11 oktomvri as team 2? | <s>[INST]What 1st leg has 11 oktomvri as team 2? Context: CREATE TABLE table_name_78 (team_2 VARCHAR)[/INST]SELECT 1 AS st_leg FROM table_name_78 WHERE team_2 = "11 oktomvri"</s> |
CREATE TABLE table_name_85 (theme VARCHAR, original_artist VARCHAR, week__number VARCHAR) | SELECT theme FROM table_name_85 WHERE original_artist = "carole king" AND week__number = "hollywood" | What is the Theme when the Original artist was carole king, and a Week # shows hollywood? | <s>[INST]What is the Theme when the Original artist was carole king, and a Week # shows hollywood? Context: CREATE TABLE table_name_85 (theme VARCHAR, original_artist VARCHAR, week__number VARCHAR)[/INST]SELECT theme FROM table_name_85 WHERE original_artist = "carole king" AND week__number = "hollywood"</s> |
CREATE TABLE table_13897690_1 (area__sqmi_ VARCHAR, area__km_2__ VARCHAR) | SELECT area__sqmi_ FROM table_13897690_1 WHERE area__km_2__ = 4065 | How big (in sq mi) is the island that's 4065 km2? | <s>[INST]How big (in sq mi) is the island that's 4065 km2? Context: CREATE TABLE table_13897690_1 (area__sqmi_ VARCHAR, area__km_2__ VARCHAR)[/INST]SELECT area__sqmi_ FROM table_13897690_1 WHERE area__km_2__ = 4065</s> |
CREATE TABLE table_name_64 (league VARCHAR, team VARCHAR) | SELECT league FROM table_name_64 WHERE team = "ordabasy-2" | What league is ordabasy-2 in? | <s>[INST]What league is ordabasy-2 in? Context: CREATE TABLE table_name_64 (league VARCHAR, team VARCHAR)[/INST]SELECT league FROM table_name_64 WHERE team = "ordabasy-2"</s> |
CREATE TABLE table_24463470_1 (unlock_order VARCHAR, unlocks VARCHAR) | SELECT COUNT(unlock_order) FROM table_24463470_1 WHERE unlocks = "Paris" | How many instances is paris the unlock? | <s>[INST]How many instances is paris the unlock? Context: CREATE TABLE table_24463470_1 (unlock_order VARCHAR, unlocks VARCHAR)[/INST]SELECT COUNT(unlock_order) FROM table_24463470_1 WHERE unlocks = "Paris"</s> |
CREATE TABLE table_name_84 (byes INTEGER, draws INTEGER) | SELECT AVG(byes) FROM table_name_84 WHERE draws < 0 | How many byes when the draws are fewer than 0? | <s>[INST]How many byes when the draws are fewer than 0? Context: CREATE TABLE table_name_84 (byes INTEGER, draws INTEGER)[/INST]SELECT AVG(byes) FROM table_name_84 WHERE draws < 0</s> |
CREATE TABLE table_name_43 (character VARCHAR, year VARCHAR) | SELECT character FROM table_name_43 WHERE year = 2005 | What is the character for 2005? | <s>[INST]What is the character for 2005? Context: CREATE TABLE table_name_43 (character VARCHAR, year VARCHAR)[/INST]SELECT character FROM table_name_43 WHERE year = 2005</s> |
CREATE TABLE table_name_79 (share_of_seats VARCHAR, european_election__uk_ VARCHAR) | SELECT share_of_seats FROM table_name_79 WHERE european_election__uk_ = 2009 | Which Share of seats has a European election (UK) of 2009? | <s>[INST]Which Share of seats has a European election (UK) of 2009? Context: CREATE TABLE table_name_79 (share_of_seats VARCHAR, european_election__uk_ VARCHAR)[/INST]SELECT share_of_seats FROM table_name_79 WHERE european_election__uk_ = 2009</s> |
CREATE TABLE table_name_80 (viewers__m_ VARCHAR, rank__night_ VARCHAR, timeslot VARCHAR) | SELECT COUNT(viewers__m_) FROM table_name_80 WHERE rank__night_ = "n/a" AND timeslot = "8:30 p.m." | What is the total number of Viewers with a Rank (Night) of n/a, and a Timeslot of 8:30 p.m.? | <s>[INST]What is the total number of Viewers with a Rank (Night) of n/a, and a Timeslot of 8:30 p.m.? Context: CREATE TABLE table_name_80 (viewers__m_ VARCHAR, rank__night_ VARCHAR, timeslot VARCHAR)[/INST]SELECT COUNT(viewers__m_) FROM table_name_80 WHERE rank__night_ = "n/a" AND timeslot = "8:30 p.m."</s> |
CREATE TABLE table_name_59 (team_from VARCHAR, pick__number VARCHAR) | SELECT team_from FROM table_name_59 WHERE pick__number = 148 | Which Team has a Pick # of 148? | <s>[INST]Which Team has a Pick # of 148? Context: CREATE TABLE table_name_59 (team_from VARCHAR, pick__number VARCHAR)[/INST]SELECT team_from FROM table_name_59 WHERE pick__number = 148</s> |
CREATE TABLE table_name_7 (date VARCHAR, year VARCHAR, result VARCHAR, score VARCHAR) | SELECT date FROM table_name_7 WHERE result = "win" AND score = "2-1" AND year < 2012 | What day was the result a win, the score 2-1, and the year before 2012? | <s>[INST]What day was the result a win, the score 2-1, and the year before 2012? Context: CREATE TABLE table_name_7 (date VARCHAR, year VARCHAR, result VARCHAR, score VARCHAR)[/INST]SELECT date FROM table_name_7 WHERE result = "win" AND score = "2-1" AND year < 2012</s> |
CREATE TABLE table_25287007_2 (january_15_16 VARCHAR, august_21_22 VARCHAR) | SELECT january_15_16 FROM table_25287007_2 WHERE august_21_22 = "August 21, 2017" | How many solar eclipse during January 15-16 and august 21-22 on august 21, 2017? | <s>[INST]How many solar eclipse during January 15-16 and august 21-22 on august 21, 2017? Context: CREATE TABLE table_25287007_2 (january_15_16 VARCHAR, august_21_22 VARCHAR)[/INST]SELECT january_15_16 FROM table_25287007_2 WHERE august_21_22 = "August 21, 2017"</s> |
CREATE TABLE table_name_4 (draw INTEGER, points VARCHAR, lost VARCHAR) | SELECT MIN(draw) FROM table_name_4 WHERE points < 17 AND lost = 13 | What is the lowest number for draw when the points are less than 17, and the lost is 13? | <s>[INST]What is the lowest number for draw when the points are less than 17, and the lost is 13? Context: CREATE TABLE table_name_4 (draw INTEGER, points VARCHAR, lost VARCHAR)[/INST]SELECT MIN(draw) FROM table_name_4 WHERE points < 17 AND lost = 13</s> |
CREATE TABLE table_name_90 (event VARCHAR, winner__title__number_ VARCHAR) | SELECT event FROM table_name_90 WHERE winner__title__number_ = "parker bohn iii (31)" | Name the Event which has a Winner (Title #) of parker bohn iii (31)? | <s>[INST]Name the Event which has a Winner (Title #) of parker bohn iii (31)? Context: CREATE TABLE table_name_90 (event VARCHAR, winner__title__number_ VARCHAR)[/INST]SELECT event FROM table_name_90 WHERE winner__title__number_ = "parker bohn iii (31)"</s> |
CREATE TABLE table_name_70 (rank INTEGER, time VARCHAR) | SELECT SUM(rank) FROM table_name_70 WHERE time = "3:12.40" | what is the rank when the time is 3:12.40? | <s>[INST]what is the rank when the time is 3:12.40? Context: CREATE TABLE table_name_70 (rank INTEGER, time VARCHAR)[/INST]SELECT SUM(rank) FROM table_name_70 WHERE time = "3:12.40"</s> |
CREATE TABLE table_name_76 (board__inches_ VARCHAR, release VARCHAR, start VARCHAR) | SELECT board__inches_ FROM table_name_76 WHERE release < 2004 AND start = "1941" | What are the dimensions in inches of the board released before 2004, that started in 1941? | <s>[INST]What are the dimensions in inches of the board released before 2004, that started in 1941? Context: CREATE TABLE table_name_76 (board__inches_ VARCHAR, release VARCHAR, start VARCHAR)[/INST]SELECT board__inches_ FROM table_name_76 WHERE release < 2004 AND start = "1941"</s> |
CREATE TABLE table_2886617_4 (nationality VARCHAR, nhl_team VARCHAR) | SELECT nationality FROM table_2886617_4 WHERE nhl_team = "Vancouver Canucks" | What country does the player who joined the Vancouver Canucks originally hail from? | <s>[INST]What country does the player who joined the Vancouver Canucks originally hail from? Context: CREATE TABLE table_2886617_4 (nationality VARCHAR, nhl_team VARCHAR)[/INST]SELECT nationality FROM table_2886617_4 WHERE nhl_team = "Vancouver Canucks"</s> |
CREATE TABLE table_name_89 (venue VARCHAR, score VARCHAR) | SELECT venue FROM table_name_89 WHERE score = "7.14 (56) - 4.5 (29)" | At what venue was there a competition with a score reported as 7.14 (56) - 4.5 (29)? | <s>[INST]At what venue was there a competition with a score reported as 7.14 (56) - 4.5 (29)? Context: CREATE TABLE table_name_89 (venue VARCHAR, score VARCHAR)[/INST]SELECT venue FROM table_name_89 WHERE score = "7.14 (56) - 4.5 (29)"</s> |
CREATE TABLE table_name_38 (winner VARCHAR, circuit VARCHAR) | SELECT winner FROM table_name_38 WHERE circuit = "amaroo park" | Who was the winner on the Amaroo Park circuit? | <s>[INST]Who was the winner on the Amaroo Park circuit? Context: CREATE TABLE table_name_38 (winner VARCHAR, circuit VARCHAR)[/INST]SELECT winner FROM table_name_38 WHERE circuit = "amaroo park"</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.