context stringlengths 27 489 | answer stringlengths 18 557 | question stringlengths 12 243 | text stringlengths 103 1.05k |
|---|---|---|---|
CREATE TABLE table_23274514_6 (high_points VARCHAR, game VARCHAR) | SELECT COUNT(high_points) FROM table_23274514_6 WHERE game = 35 | How many people got high points in game 35? | <s>[INST]How many people got high points in game 35? Context: CREATE TABLE table_23274514_6 (high_points VARCHAR, game VARCHAR)[/INST]SELECT COUNT(high_points) FROM table_23274514_6 WHERE game = 35</s> |
CREATE TABLE table_24431264_18 (player VARCHAR, new_points VARCHAR) | SELECT player FROM table_24431264_18 WHERE new_points = 1285 | List the players with 1285 new points? | <s>[INST]List the players with 1285 new points? Context: CREATE TABLE table_24431264_18 (player VARCHAR, new_points VARCHAR)[/INST]SELECT player FROM table_24431264_18 WHERE new_points = 1285</s> |
CREATE TABLE table_name_50 (common_english VARCHAR, italian VARCHAR) | SELECT common_english FROM table_name_50 WHERE italian = "san gallo" | What is the common English for the Italian word san gallo? | <s>[INST]What is the common English for the Italian word san gallo? Context: CREATE TABLE table_name_50 (common_english VARCHAR, italian VARCHAR)[/INST]SELECT common_english FROM table_name_50 WHERE italian = "san gallo"</s> |
CREATE TABLE SECTION (course_id VARCHAR, building VARCHAR, room_number VARCHAR); CREATE TABLE course (title VARCHAR, credits VARCHAR, course_id VARCHAR); CREATE TABLE classroom (capacity INTEGER, building VARCHAR, room_number VARCHAR); CREATE TABLE classroom (capacity INTEGER) | SELECT T3.title, T3.credits FROM classroom AS T1 JOIN SECTION AS T2 ON T1.building = T2.building AND T1.room_number = T2.room_number JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T1.capacity = (SELECT MAX(capacity) FROM classroom) | What is the title and credits of the course that is taught in the largest classroom (with the highest capacity)? | <s>[INST]What is the title and credits of the course that is taught in the largest classroom (with the highest capacity)? Context: CREATE TABLE SECTION (course_id VARCHAR, building VARCHAR, room_number VARCHAR); CREATE TABLE course (title VARCHAR, credits VARCHAR, course_id VARCHAR); CREATE TABLE classroom (capacity INTEGER, building VARCHAR, room_number VARCHAR); CREATE TABLE classroom (capacity INTEGER)[/INST]SELECT T3.title, T3.credits FROM classroom AS T1 JOIN SECTION AS T2 ON T1.building = T2.building AND T1.room_number = T2.room_number JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T1.capacity = (SELECT MAX(capacity) FROM classroom)</s> |
CREATE TABLE table_19874169_3 (branding VARCHAR, callsign VARCHAR) | SELECT branding FROM table_19874169_3 WHERE callsign = "DXYR" | If the call sign is DXYR, what is the branding? | <s>[INST]If the call sign is DXYR, what is the branding? Context: CREATE TABLE table_19874169_3 (branding VARCHAR, callsign VARCHAR)[/INST]SELECT branding FROM table_19874169_3 WHERE callsign = "DXYR"</s> |
CREATE TABLE table_name_71 (name VARCHAR, construction_completed VARCHAR) | SELECT name FROM table_name_71 WHERE construction_completed = "09/19/2008" | What name completed construction on 09/19/2008? | <s>[INST]What name completed construction on 09/19/2008? Context: CREATE TABLE table_name_71 (name VARCHAR, construction_completed VARCHAR)[/INST]SELECT name FROM table_name_71 WHERE construction_completed = "09/19/2008"</s> |
CREATE TABLE table_name_75 (interactivity_support VARCHAR, format VARCHAR) | SELECT interactivity_support FROM table_name_75 WHERE format = "fictionbook" | Which Interactivity support has a Format of fictionbook? | <s>[INST]Which Interactivity support has a Format of fictionbook? Context: CREATE TABLE table_name_75 (interactivity_support VARCHAR, format VARCHAR)[/INST]SELECT interactivity_support FROM table_name_75 WHERE format = "fictionbook"</s> |
CREATE TABLE table_name_68 (country VARCHAR, to_par VARCHAR, player VARCHAR) | SELECT country FROM table_name_68 WHERE to_par = "+1" AND player = "woody austin" | WHAT COUNTRY HAS A TO PAR OF +1, WITH WOODY AUSTIN? | <s>[INST]WHAT COUNTRY HAS A TO PAR OF +1, WITH WOODY AUSTIN? Context: CREATE TABLE table_name_68 (country VARCHAR, to_par VARCHAR, player VARCHAR)[/INST]SELECT country FROM table_name_68 WHERE to_par = "+1" AND player = "woody austin"</s> |
CREATE TABLE table_name_80 (area__km_2__ INTEGER, code VARCHAR, population VARCHAR) | SELECT AVG(area__km_2__) FROM table_name_80 WHERE code = 98030 AND population > 312 | What is the average area for code 98030 with population over 312? | <s>[INST]What is the average area for code 98030 with population over 312? Context: CREATE TABLE table_name_80 (area__km_2__ INTEGER, code VARCHAR, population VARCHAR)[/INST]SELECT AVG(area__km_2__) FROM table_name_80 WHERE code = 98030 AND population > 312</s> |
CREATE TABLE table_28715942_6 (vocal_percussionist VARCHAR, original_artist VARCHAR) | SELECT vocal_percussionist FROM table_28715942_6 WHERE original_artist = "The Coral" | Who is the percussionist for The Coral? | <s>[INST]Who is the percussionist for The Coral? Context: CREATE TABLE table_28715942_6 (vocal_percussionist VARCHAR, original_artist VARCHAR)[/INST]SELECT vocal_percussionist FROM table_28715942_6 WHERE original_artist = "The Coral"</s> |
CREATE TABLE table_name_64 (year VARCHAR, rank VARCHAR, moving_from VARCHAR) | SELECT year FROM table_name_64 WHERE rank < 8 AND moving_from = "olympiacos" | What is the listed year that has a rank smaller than 8 and moving from Olympiacos? | <s>[INST]What is the listed year that has a rank smaller than 8 and moving from Olympiacos? Context: CREATE TABLE table_name_64 (year VARCHAR, rank VARCHAR, moving_from VARCHAR)[/INST]SELECT year FROM table_name_64 WHERE rank < 8 AND moving_from = "olympiacos"</s> |
CREATE TABLE table_278229_1 (commandery VARCHAR) | SELECT commandery AS capital FROM table_278229_1 WHERE commandery = "Nanhai εζ΅·" | When nanhai εζ΅· is the commandery what is the commandery capital? | <s>[INST]When nanhai εζ΅· is the commandery what is the commandery capital? Context: CREATE TABLE table_278229_1 (commandery VARCHAR)[/INST]SELECT commandery AS capital FROM table_278229_1 WHERE commandery = "Nanhai εζ΅·"</s> |
CREATE TABLE table_name_99 (score VARCHAR, stadium VARCHAR, date VARCHAR) | SELECT score FROM table_name_99 WHERE stadium = "cn centre" AND date = "april 5, 2008" | What was the score at CN Centre on April 5, 2008? | <s>[INST]What was the score at CN Centre on April 5, 2008? Context: CREATE TABLE table_name_99 (score VARCHAR, stadium VARCHAR, date VARCHAR)[/INST]SELECT score FROM table_name_99 WHERE stadium = "cn centre" AND date = "april 5, 2008"</s> |
CREATE TABLE table_name_12 (time VARCHAR, date VARCHAR) | SELECT time FROM table_name_12 WHERE date = "august 16, 2008" | What is the time associated with August 16, 2008? | <s>[INST]What is the time associated with August 16, 2008? Context: CREATE TABLE table_name_12 (time VARCHAR, date VARCHAR)[/INST]SELECT time FROM table_name_12 WHERE date = "august 16, 2008"</s> |
CREATE TABLE table_name_66 (Id VARCHAR) | SELECT 2009 FROM table_name_66 WHERE 2012 = "statistics by surface" | What 2009 has statistics by surface in 2012? | <s>[INST]What 2009 has statistics by surface in 2012? Context: CREATE TABLE table_name_66 (Id VARCHAR)[/INST]SELECT 2009 FROM table_name_66 WHERE 2012 = "statistics by surface"</s> |
CREATE TABLE table_name_79 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_79 WHERE date = "april 16" | Which opponent did they play against on April 16? | <s>[INST]Which opponent did they play against on April 16? Context: CREATE TABLE table_name_79 (opponent VARCHAR, date VARCHAR)[/INST]SELECT opponent FROM table_name_79 WHERE date = "april 16"</s> |
CREATE TABLE table_name_45 (percentage_democrats VARCHAR, democratic_seat_plurality VARCHAR, democratic__republican VARCHAR) | SELECT percentage_democrats FROM table_name_45 WHERE democratic_seat_plurality = "-3" AND democratic__republican = "2/5" | What is the percentage democrats with democratic plurality of -3, and 2/5 democrat/republican? | <s>[INST]What is the percentage democrats with democratic plurality of -3, and 2/5 democrat/republican? Context: CREATE TABLE table_name_45 (percentage_democrats VARCHAR, democratic_seat_plurality VARCHAR, democratic__republican VARCHAR)[/INST]SELECT percentage_democrats FROM table_name_45 WHERE democratic_seat_plurality = "-3" AND democratic__republican = "2/5"</s> |
CREATE TABLE phone (Name VARCHAR, Price VARCHAR) | SELECT Name FROM phone ORDER BY Price | List the names of phones in ascending order of price. | <s>[INST]List the names of phones in ascending order of price. Context: CREATE TABLE phone (Name VARCHAR, Price VARCHAR)[/INST]SELECT Name FROM phone ORDER BY Price</s> |
CREATE TABLE table_name_28 (venue VARCHAR, opponent VARCHAR, round VARCHAR) | SELECT venue FROM table_name_28 WHERE opponent = "woking" AND round < 29 | What is the venue when Woking was the opponent, and the round was less than 29? | <s>[INST]What is the venue when Woking was the opponent, and the round was less than 29? Context: CREATE TABLE table_name_28 (venue VARCHAR, opponent VARCHAR, round VARCHAR)[/INST]SELECT venue FROM table_name_28 WHERE opponent = "woking" AND round < 29</s> |
CREATE TABLE table_name_16 (event VARCHAR, placed VARCHAR, year VARCHAR) | SELECT event FROM table_name_16 WHERE placed = "bronze" AND year < 1987 | What event placed bronze earlier than 1987? | <s>[INST]What event placed bronze earlier than 1987? Context: CREATE TABLE table_name_16 (event VARCHAR, placed VARCHAR, year VARCHAR)[/INST]SELECT event FROM table_name_16 WHERE placed = "bronze" AND year < 1987</s> |
CREATE TABLE table_name_49 (club_province VARCHAR, caps VARCHAR) | SELECT club_province FROM table_name_49 WHERE caps = 12 | What club or province is the player with 12 caps from? | <s>[INST]What club or province is the player with 12 caps from? Context: CREATE TABLE table_name_49 (club_province VARCHAR, caps VARCHAR)[/INST]SELECT club_province FROM table_name_49 WHERE caps = 12</s> |
CREATE TABLE table_name_77 (opponent VARCHAR, attendance VARCHAR) | SELECT opponent FROM table_name_77 WHERE attendance = "14,029" | What Opponent has the Attendance of 14,029? | <s>[INST]What Opponent has the Attendance of 14,029? Context: CREATE TABLE table_name_77 (opponent VARCHAR, attendance VARCHAR)[/INST]SELECT opponent FROM table_name_77 WHERE attendance = "14,029"</s> |
CREATE TABLE table_name_8 (rank VARCHAR, rider VARCHAR) | SELECT COUNT(rank) FROM table_name_8 WHERE rider = "ray pickrell" | How many Ranks have ray pickrell as a Rider? | <s>[INST]How many Ranks have ray pickrell as a Rider? Context: CREATE TABLE table_name_8 (rank VARCHAR, rider VARCHAR)[/INST]SELECT COUNT(rank) FROM table_name_8 WHERE rider = "ray pickrell"</s> |
CREATE TABLE table_name_38 (Id VARCHAR) | SELECT 2002 FROM table_name_38 WHERE 2006 = "a" AND 2010 = "q1" | What is the 2002 result when 2006 is A and 2010 is Q1? | <s>[INST]What is the 2002 result when 2006 is A and 2010 is Q1? Context: CREATE TABLE table_name_38 (Id VARCHAR)[/INST]SELECT 2002 FROM table_name_38 WHERE 2006 = "a" AND 2010 = "q1"</s> |
CREATE TABLE table_name_61 (result VARCHAR, date VARCHAR) | SELECT result FROM table_name_61 WHERE date = "2008-12-23" | Tell me the result for 2008-12-23 | <s>[INST]Tell me the result for 2008-12-23 Context: CREATE TABLE table_name_61 (result VARCHAR, date VARCHAR)[/INST]SELECT result FROM table_name_61 WHERE date = "2008-12-23"</s> |
CREATE TABLE table_name_54 (attendance VARCHAR, week VARCHAR, date VARCHAR) | SELECT attendance FROM table_name_54 WHERE week > 10 AND date = "november 20, 1966" | What is the attendance of the game on November 20, 1966 after week 10? | <s>[INST]What is the attendance of the game on November 20, 1966 after week 10? Context: CREATE TABLE table_name_54 (attendance VARCHAR, week VARCHAR, date VARCHAR)[/INST]SELECT attendance FROM table_name_54 WHERE week > 10 AND date = "november 20, 1966"</s> |
CREATE TABLE table_name_17 (date VARCHAR, visiting_team VARCHAR, year VARCHAR) | SELECT date FROM table_name_17 WHERE visiting_team = "san francisco 49ers" AND year > 2007 | What Date after 2007 had the San Francisco 49ers as the Visiting Team? | <s>[INST]What Date after 2007 had the San Francisco 49ers as the Visiting Team? Context: CREATE TABLE table_name_17 (date VARCHAR, visiting_team VARCHAR, year VARCHAR)[/INST]SELECT date FROM table_name_17 WHERE visiting_team = "san francisco 49ers" AND year > 2007</s> |
CREATE TABLE table_name_62 (baltimore_group VARCHAR, family VARCHAR) | SELECT baltimore_group FROM table_name_62 WHERE family = "retroviridae" | Which Baltimore group is of the retroviridae family? | <s>[INST]Which Baltimore group is of the retroviridae family? Context: CREATE TABLE table_name_62 (baltimore_group VARCHAR, family VARCHAR)[/INST]SELECT baltimore_group FROM table_name_62 WHERE family = "retroviridae"</s> |
CREATE TABLE table_name_12 (team VARCHAR, class VARCHAR, points VARCHAR, year VARCHAR) | SELECT team FROM table_name_12 WHERE points > 9 AND year > 1971 AND class = "250cc" | Name the Team which has Points larger than 9, and a Year larger than 1971, and a Class of 250cc? | <s>[INST]Name the Team which has Points larger than 9, and a Year larger than 1971, and a Class of 250cc? Context: CREATE TABLE table_name_12 (team VARCHAR, class VARCHAR, points VARCHAR, year VARCHAR)[/INST]SELECT team FROM table_name_12 WHERE points > 9 AND year > 1971 AND class = "250cc"</s> |
CREATE TABLE table_name_76 (construction_completed VARCHAR, name VARCHAR) | SELECT construction_completed FROM table_name_76 WHERE name = "nelson tunnel/commodore waste rock" | What construction completed is named nelson tunnel/commodore waste rock? | <s>[INST]What construction completed is named nelson tunnel/commodore waste rock? Context: CREATE TABLE table_name_76 (construction_completed VARCHAR, name VARCHAR)[/INST]SELECT construction_completed FROM table_name_76 WHERE name = "nelson tunnel/commodore waste rock"</s> |
CREATE TABLE table_name_81 (game INTEGER, date VARCHAR) | SELECT AVG(game) FROM table_name_81 WHERE date = "mar 12" | Which game is on mar 12? | <s>[INST]Which game is on mar 12? Context: CREATE TABLE table_name_81 (game INTEGER, date VARCHAR)[/INST]SELECT AVG(game) FROM table_name_81 WHERE date = "mar 12"</s> |
CREATE TABLE table_name_49 (state VARCHAR, member VARCHAR) | SELECT state FROM table_name_49 WHERE member = "richard foster" | What state has Richard Foster as a member? | <s>[INST]What state has Richard Foster as a member? Context: CREATE TABLE table_name_49 (state VARCHAR, member VARCHAR)[/INST]SELECT state FROM table_name_49 WHERE member = "richard foster"</s> |
CREATE TABLE table_23286158_10 (high_points VARCHAR, record VARCHAR) | SELECT high_points FROM table_23286158_10 WHERE record = "48-30" | When 48-30 is the record who has the highest amount of points? | <s>[INST]When 48-30 is the record who has the highest amount of points? Context: CREATE TABLE table_23286158_10 (high_points VARCHAR, record VARCHAR)[/INST]SELECT high_points FROM table_23286158_10 WHERE record = "48-30"</s> |
CREATE TABLE table_name_78 (score VARCHAR, place VARCHAR) | SELECT score FROM table_name_78 WHERE place = "2" | What score has 2 as the place? | <s>[INST]What score has 2 as the place? Context: CREATE TABLE table_name_78 (score VARCHAR, place VARCHAR)[/INST]SELECT score FROM table_name_78 WHERE place = "2"</s> |
CREATE TABLE table_name_25 (date VARCHAR, week VARCHAR) | SELECT date FROM table_name_25 WHERE week = 3 | What was the date of week 3? | <s>[INST]What was the date of week 3? Context: CREATE TABLE table_name_25 (date VARCHAR, week VARCHAR)[/INST]SELECT date FROM table_name_25 WHERE week = 3</s> |
CREATE TABLE table_name_97 (goal_difference VARCHAR, wins VARCHAR, draws VARCHAR, position VARCHAR) | SELECT goal_difference FROM table_name_97 WHERE draws > 6 AND position > 12 AND wins < 9 | What is the goal difference for entries with more than 6 draws, a position lower than 12, and fewer than 9 wins? | <s>[INST]What is the goal difference for entries with more than 6 draws, a position lower than 12, and fewer than 9 wins? Context: CREATE TABLE table_name_97 (goal_difference VARCHAR, wins VARCHAR, draws VARCHAR, position VARCHAR)[/INST]SELECT goal_difference FROM table_name_97 WHERE draws > 6 AND position > 12 AND wins < 9</s> |
CREATE TABLE table_name_81 (result VARCHAR, competition VARCHAR) | SELECT result FROM table_name_81 WHERE competition = "2010 fifa world cup qualification" | Tell me the result for 2010 fifa world cup qualification | <s>[INST]Tell me the result for 2010 fifa world cup qualification Context: CREATE TABLE table_name_81 (result VARCHAR, competition VARCHAR)[/INST]SELECT result FROM table_name_81 WHERE competition = "2010 fifa world cup qualification"</s> |
CREATE TABLE table_2168295_1 (population__2011_ VARCHAR, headquarters VARCHAR) | SELECT population__2011_ FROM table_2168295_1 WHERE headquarters = "Chittorgarh" | What is the 2011 population if the headquarters is Chittorgarh? | <s>[INST]What is the 2011 population if the headquarters is Chittorgarh? Context: CREATE TABLE table_2168295_1 (population__2011_ VARCHAR, headquarters VARCHAR)[/INST]SELECT population__2011_ FROM table_2168295_1 WHERE headquarters = "Chittorgarh"</s> |
CREATE TABLE county_public_safety (county_ID VARCHAR, population INTEGER); CREATE TABLE city (county_ID VARCHAR, population INTEGER) | SELECT COUNT(*) FROM city WHERE county_ID IN (SELECT county_ID FROM county_public_safety WHERE population > 20000) | Show the number of cities in counties that have a population more than 20000. | <s>[INST]Show the number of cities in counties that have a population more than 20000. Context: CREATE TABLE county_public_safety (county_ID VARCHAR, population INTEGER); CREATE TABLE city (county_ID VARCHAR, population INTEGER)[/INST]SELECT COUNT(*) FROM city WHERE county_ID IN (SELECT county_ID FROM county_public_safety WHERE population > 20000)</s> |
CREATE TABLE table_23292220_8 (first_broadcast VARCHAR, jasons_team VARCHAR) | SELECT first_broadcast FROM table_23292220_8 WHERE jasons_team = "Rhod Gilbert and Shappi Khorsandi" | What is the broadcast date where Jason's team is Rhod Gilbert and Shappi Khorsandi? | <s>[INST]What is the broadcast date where Jason's team is Rhod Gilbert and Shappi Khorsandi? Context: CREATE TABLE table_23292220_8 (first_broadcast VARCHAR, jasons_team VARCHAR)[/INST]SELECT first_broadcast FROM table_23292220_8 WHERE jasons_team = "Rhod Gilbert and Shappi Khorsandi"</s> |
CREATE TABLE table_name_50 (result VARCHAR, venue VARCHAR, date VARCHAR) | SELECT result FROM table_name_50 WHERE venue = "valley parade" AND date = "4/7/02" | What is the result at valley parade on 4/7/02? | <s>[INST]What is the result at valley parade on 4/7/02? Context: CREATE TABLE table_name_50 (result VARCHAR, venue VARCHAR, date VARCHAR)[/INST]SELECT result FROM table_name_50 WHERE venue = "valley parade" AND date = "4/7/02"</s> |
CREATE TABLE table_22496344_1 (position VARCHAR, home_town VARCHAR, high_school VARCHAR) | SELECT position FROM table_22496344_1 WHERE home_town = "Houston, TX" AND high_school = "Worthing" | Where is the position when houston, tx is the hometown and worthing is the high school? | <s>[INST]Where is the position when houston, tx is the hometown and worthing is the high school? Context: CREATE TABLE table_22496344_1 (position VARCHAR, home_town VARCHAR, high_school VARCHAR)[/INST]SELECT position FROM table_22496344_1 WHERE home_town = "Houston, TX" AND high_school = "Worthing"</s> |
CREATE TABLE table_140297_1 (density VARCHAR, principal_town VARCHAR) | SELECT density FROM table_140297_1 WHERE principal_town = "Brighton" | What is the population density in the Brighton area? | <s>[INST]What is the population density in the Brighton area? Context: CREATE TABLE table_140297_1 (density VARCHAR, principal_town VARCHAR)[/INST]SELECT density FROM table_140297_1 WHERE principal_town = "Brighton"</s> |
CREATE TABLE table_name_41 (rowers VARCHAR, notes VARCHAR) | SELECT rowers FROM table_name_41 WHERE notes = "fa" | What rowers have FA as the notes? | <s>[INST]What rowers have FA as the notes? Context: CREATE TABLE table_name_41 (rowers VARCHAR, notes VARCHAR)[/INST]SELECT rowers FROM table_name_41 WHERE notes = "fa"</s> |
CREATE TABLE table_1310499_1 (rev VARCHAR, application VARCHAR) | SELECT rev FROM table_1310499_1 WHERE application = "Aston Martin" | What is the rev for all of the Aston Martin applications? | <s>[INST]What is the rev for all of the Aston Martin applications? Context: CREATE TABLE table_1310499_1 (rev VARCHAR, application VARCHAR)[/INST]SELECT rev FROM table_1310499_1 WHERE application = "Aston Martin"</s> |
CREATE TABLE table_name_76 (opponent VARCHAR, venue VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_76 WHERE venue = "away" AND date = "28th" | What opponent played on the 28th with a venue of away? | <s>[INST]What opponent played on the 28th with a venue of away? Context: CREATE TABLE table_name_76 (opponent VARCHAR, venue VARCHAR, date VARCHAR)[/INST]SELECT opponent FROM table_name_76 WHERE venue = "away" AND date = "28th"</s> |
CREATE TABLE table_name_84 (score_in_final VARCHAR, opponents_in_final VARCHAR) | SELECT score_in_final FROM table_name_84 WHERE opponents_in_final = "shingo kunieda satoshi saida" | What was the score when the Shingo Kunieda Satoshi Saida were the opponents? | <s>[INST]What was the score when the Shingo Kunieda Satoshi Saida were the opponents? Context: CREATE TABLE table_name_84 (score_in_final VARCHAR, opponents_in_final VARCHAR)[/INST]SELECT score_in_final FROM table_name_84 WHERE opponents_in_final = "shingo kunieda satoshi saida"</s> |
CREATE TABLE player (Player_name VARCHAR, gender VARCHAR, Player_ID VARCHAR); CREATE TABLE player_coach (Coach_ID VARCHAR, Player_ID VARCHAR, Starting_year INTEGER); CREATE TABLE coach (Coach_ID VARCHAR) | SELECT T3.Player_name, T3.gender FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID WHERE T1.Starting_year > 2011 | Show the names and genders of players with a coach starting after 2011. | <s>[INST]Show the names and genders of players with a coach starting after 2011. Context: CREATE TABLE player (Player_name VARCHAR, gender VARCHAR, Player_ID VARCHAR); CREATE TABLE player_coach (Coach_ID VARCHAR, Player_ID VARCHAR, Starting_year INTEGER); CREATE TABLE coach (Coach_ID VARCHAR)[/INST]SELECT T3.Player_name, T3.gender FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID WHERE T1.Starting_year > 2011</s> |
CREATE TABLE table_name_70 (gold INTEGER, total VARCHAR, bronze VARCHAR, rank VARCHAR) | SELECT MAX(gold) FROM table_name_70 WHERE bronze > 0 AND rank > 5 AND total > 2 | Name the most gold when bronze is more than 0 and rank is more than 5 with total more than 2 | <s>[INST]Name the most gold when bronze is more than 0 and rank is more than 5 with total more than 2 Context: CREATE TABLE table_name_70 (gold INTEGER, total VARCHAR, bronze VARCHAR, rank VARCHAR)[/INST]SELECT MAX(gold) FROM table_name_70 WHERE bronze > 0 AND rank > 5 AND total > 2</s> |
CREATE TABLE table_name_37 (loss VARCHAR, record VARCHAR) | SELECT loss FROM table_name_37 WHERE record = "67-51" | Which loss has a Record of 67-51? | <s>[INST]Which loss has a Record of 67-51? Context: CREATE TABLE table_name_37 (loss VARCHAR, record VARCHAR)[/INST]SELECT loss FROM table_name_37 WHERE record = "67-51"</s> |
CREATE TABLE table_2619469_1 (standing VARCHAR, goals_against VARCHAR) | SELECT standing FROM table_2619469_1 WHERE goals_against = 130 | What was the team standing if the won 130 goals against another team? | <s>[INST]What was the team standing if the won 130 goals against another team? Context: CREATE TABLE table_2619469_1 (standing VARCHAR, goals_against VARCHAR)[/INST]SELECT standing FROM table_2619469_1 WHERE goals_against = 130</s> |
CREATE TABLE table_name_95 (game VARCHAR, location VARCHAR, time VARCHAR) | SELECT COUNT(game) FROM table_name_95 WHERE location = "memorial stadium" AND time = "2:27" | how many games have a location of memorial stadium and a time of 2:27? | <s>[INST]how many games have a location of memorial stadium and a time of 2:27? Context: CREATE TABLE table_name_95 (game VARCHAR, location VARCHAR, time VARCHAR)[/INST]SELECT COUNT(game) FROM table_name_95 WHERE location = "memorial stadium" AND time = "2:27"</s> |
CREATE TABLE table_name_36 (country VARCHAR, moving_to VARCHAR) | SELECT country FROM table_name_36 WHERE moving_to = "hamburger sv" | What country is the player moving to Hamburger SV from? | <s>[INST]What country is the player moving to Hamburger SV from? Context: CREATE TABLE table_name_36 (country VARCHAR, moving_to VARCHAR)[/INST]SELECT country FROM table_name_36 WHERE moving_to = "hamburger sv"</s> |
CREATE TABLE table_11960610_10 (high_points VARCHAR, high_rebounds VARCHAR) | SELECT high_points FROM table_11960610_10 WHERE high_rebounds = "Gray (8)" | Who had high points when high rebound is gray (8)? | <s>[INST]Who had high points when high rebound is gray (8)? Context: CREATE TABLE table_11960610_10 (high_points VARCHAR, high_rebounds VARCHAR)[/INST]SELECT high_points FROM table_11960610_10 WHERE high_rebounds = "Gray (8)"</s> |
CREATE TABLE table_name_39 (yield VARCHAR, location VARCHAR) | SELECT yield FROM table_name_39 WHERE location = "nts area 3s" | What was the yield for a blast that was in nts area 3s? | <s>[INST]What was the yield for a blast that was in nts area 3s? Context: CREATE TABLE table_name_39 (yield VARCHAR, location VARCHAR)[/INST]SELECT yield FROM table_name_39 WHERE location = "nts area 3s"</s> |
CREATE TABLE table_name_30 (adelaide VARCHAR, auckland VARCHAR, melbourne VARCHAR, sydney VARCHAR, perth VARCHAR) | SELECT adelaide FROM table_name_30 WHERE sydney = "yes" AND perth = "no" AND melbourne = "yes" AND auckland = "no" | Which Adelaide has a Sydney of yes, a Perth of no, a Melbourne of yes, and an Auckland of no? | <s>[INST]Which Adelaide has a Sydney of yes, a Perth of no, a Melbourne of yes, and an Auckland of no? Context: CREATE TABLE table_name_30 (adelaide VARCHAR, auckland VARCHAR, melbourne VARCHAR, sydney VARCHAR, perth VARCHAR)[/INST]SELECT adelaide FROM table_name_30 WHERE sydney = "yes" AND perth = "no" AND melbourne = "yes" AND auckland = "no"</s> |
CREATE TABLE table_28068063_2 (aggregate_score VARCHAR, winners VARCHAR) | SELECT aggregate_score FROM table_28068063_2 WHERE winners = "Brive" | What was the aggregate score for the match won by Brive? | <s>[INST]What was the aggregate score for the match won by Brive? Context: CREATE TABLE table_28068063_2 (aggregate_score VARCHAR, winners VARCHAR)[/INST]SELECT aggregate_score FROM table_28068063_2 WHERE winners = "Brive"</s> |
CREATE TABLE table_name_79 (nation VARCHAR, rank VARCHAR, total VARCHAR, bronze VARCHAR) | SELECT nation FROM table_name_79 WHERE total < 10 AND bronze < 1 AND rank = "11" | What nation had a medal total of less than 10, less than 1 bronze medal, in rank 11? | <s>[INST]What nation had a medal total of less than 10, less than 1 bronze medal, in rank 11? Context: CREATE TABLE table_name_79 (nation VARCHAR, rank VARCHAR, total VARCHAR, bronze VARCHAR)[/INST]SELECT nation FROM table_name_79 WHERE total < 10 AND bronze < 1 AND rank = "11"</s> |
CREATE TABLE table_145439_1 (economics VARCHAR, justice VARCHAR) | SELECT economics FROM table_145439_1 WHERE justice = "90.8" | what's theΒ economics scoreΒ withΒ justiceΒ being 90.8 | <s>[INST]what's theΒ economics scoreΒ withΒ justiceΒ being 90.8 Context: CREATE TABLE table_145439_1 (economics VARCHAR, justice VARCHAR)[/INST]SELECT economics FROM table_145439_1 WHERE justice = "90.8"</s> |
CREATE TABLE department (school_code VARCHAR) | SELECT COUNT(DISTINCT school_code) FROM department | how many schools exist in total? | <s>[INST]how many schools exist in total? Context: CREATE TABLE department (school_code VARCHAR)[/INST]SELECT COUNT(DISTINCT school_code) FROM department</s> |
CREATE TABLE table_1176371_1 (fc_matches INTEGER) | SELECT MAX(fc_matches) FROM table_1176371_1 | What is the maximum fc matches? | <s>[INST]What is the maximum fc matches? Context: CREATE TABLE table_1176371_1 (fc_matches INTEGER)[/INST]SELECT MAX(fc_matches) FROM table_1176371_1</s> |
CREATE TABLE table_name_5 (tie_no VARCHAR, away_team VARCHAR) | SELECT tie_no FROM table_name_5 WHERE away_team = "arsenal" | Which tie number had an away team of Arsenal? | <s>[INST]Which tie number had an away team of Arsenal? Context: CREATE TABLE table_name_5 (tie_no VARCHAR, away_team VARCHAR)[/INST]SELECT tie_no FROM table_name_5 WHERE away_team = "arsenal"</s> |
CREATE TABLE table_name_89 (played INTEGER, lost VARCHAR, goal_difference VARCHAR) | SELECT MAX(played) FROM table_name_89 WHERE lost < 13 AND goal_difference = "+46" | What is the highest number played when there were less than 13 losses and a goal difference of +46? | <s>[INST]What is the highest number played when there were less than 13 losses and a goal difference of +46? Context: CREATE TABLE table_name_89 (played INTEGER, lost VARCHAR, goal_difference VARCHAR)[/INST]SELECT MAX(played) FROM table_name_89 WHERE lost < 13 AND goal_difference = "+46"</s> |
CREATE TABLE table_1176371_1 (location VARCHAR, name_of_ground VARCHAR) | SELECT location FROM table_1176371_1 WHERE name_of_ground = "Ropery Lane" | Where is ropery lane located? | <s>[INST]Where is ropery lane located? Context: CREATE TABLE table_1176371_1 (location VARCHAR, name_of_ground VARCHAR)[/INST]SELECT location FROM table_1176371_1 WHERE name_of_ground = "Ropery Lane"</s> |
CREATE TABLE table_name_4 (score VARCHAR, country VARCHAR, player VARCHAR) | SELECT score FROM table_name_4 WHERE country = "united states" AND player = "george fazio" | what is the score when the country is united states and the player is george fazio? | <s>[INST]what is the score when the country is united states and the player is george fazio? Context: CREATE TABLE table_name_4 (score VARCHAR, country VARCHAR, player VARCHAR)[/INST]SELECT score FROM table_name_4 WHERE country = "united states" AND player = "george fazio"</s> |
CREATE TABLE table_25691838_2 (introductory_phrase VARCHAR, production_code VARCHAR) | SELECT introductory_phrase FROM table_25691838_2 WHERE production_code = 6026 | What was the introductory phrase for the episode with the production bode 6026? | <s>[INST]What was the introductory phrase for the episode with the production bode 6026? Context: CREATE TABLE table_25691838_2 (introductory_phrase VARCHAR, production_code VARCHAR)[/INST]SELECT introductory_phrase FROM table_25691838_2 WHERE production_code = 6026</s> |
CREATE TABLE table_name_51 (american_labor_ticket VARCHAR, democratic_ticket VARCHAR) | SELECT american_labor_ticket FROM table_name_51 WHERE democratic_ticket = "robert f. wagner" | Which American Labor candidate ran against Democratic candidate Robert F. Wagner? | <s>[INST]Which American Labor candidate ran against Democratic candidate Robert F. Wagner? Context: CREATE TABLE table_name_51 (american_labor_ticket VARCHAR, democratic_ticket VARCHAR)[/INST]SELECT american_labor_ticket FROM table_name_51 WHERE democratic_ticket = "robert f. wagner"</s> |
CREATE TABLE table_name_29 (points INTEGER, year VARCHAR, chassis VARCHAR) | SELECT SUM(points) FROM table_name_29 WHERE year = 1991 AND chassis = "footwork a11c" | What is the sum of points in 1991, for footwork a11c chassis? | <s>[INST]What is the sum of points in 1991, for footwork a11c chassis? Context: CREATE TABLE table_name_29 (points INTEGER, year VARCHAR, chassis VARCHAR)[/INST]SELECT SUM(points) FROM table_name_29 WHERE year = 1991 AND chassis = "footwork a11c"</s> |
CREATE TABLE table_name_40 (date VARCHAR, description VARCHAR) | SELECT date FROM table_name_40 WHERE description = "british rail class 111 tslrb" | What is the date of the British Rail class 111 tslrb description? | <s>[INST]What is the date of the British Rail class 111 tslrb description? Context: CREATE TABLE table_name_40 (date VARCHAR, description VARCHAR)[/INST]SELECT date FROM table_name_40 WHERE description = "british rail class 111 tslrb"</s> |
CREATE TABLE table_name_71 (year INTEGER, score VARCHAR) | SELECT MAX(year) FROM table_name_71 WHERE score = "4β1" | Name the highest Year with a Score of 4β1? | <s>[INST]Name the highest Year with a Score of 4β1? Context: CREATE TABLE table_name_71 (year INTEGER, score VARCHAR)[/INST]SELECT MAX(year) FROM table_name_71 WHERE score = "4β1"</s> |
CREATE TABLE table_name_11 (alliance__association VARCHAR, airline_holding VARCHAR) | SELECT alliance__association FROM table_name_11 WHERE airline_holding = "aeroflot group" | For airlines named Aeroflot Group, what is the alliance? | <s>[INST]For airlines named Aeroflot Group, what is the alliance? Context: CREATE TABLE table_name_11 (alliance__association VARCHAR, airline_holding VARCHAR)[/INST]SELECT alliance__association FROM table_name_11 WHERE airline_holding = "aeroflot group"</s> |
CREATE TABLE table_name_61 (year INTEGER, title VARCHAR) | SELECT AVG(year) FROM table_name_61 WHERE title = "faces" | What is the average year for Faces? | <s>[INST]What is the average year for Faces? Context: CREATE TABLE table_name_61 (year INTEGER, title VARCHAR)[/INST]SELECT AVG(year) FROM table_name_61 WHERE title = "faces"</s> |
CREATE TABLE table_14941284_1 (record VARCHAR, week VARCHAR) | SELECT record FROM table_14941284_1 WHERE week = 2 | When it is week 2 what is the record? | <s>[INST]When it is week 2 what is the record? Context: CREATE TABLE table_14941284_1 (record VARCHAR, week VARCHAR)[/INST]SELECT record FROM table_14941284_1 WHERE week = 2</s> |
CREATE TABLE table_27713890_1 (production_code VARCHAR, us_viewers__millions_ VARCHAR) | SELECT production_code FROM table_27713890_1 WHERE us_viewers__millions_ = "23.9" | What is the production code for the episode that had 23.9 million u.s. viewers? | <s>[INST]What is the production code for the episode that had 23.9 million u.s. viewers? Context: CREATE TABLE table_27713890_1 (production_code VARCHAR, us_viewers__millions_ VARCHAR)[/INST]SELECT production_code FROM table_27713890_1 WHERE us_viewers__millions_ = "23.9"</s> |
CREATE TABLE table_name_51 (population VARCHAR, area__km_2__ INTEGER) | SELECT COUNT(population) FROM table_name_51 WHERE area__km_2__ > 498.77 | What is the Population of the Place with an Area (km 2) larger than 498.77? | <s>[INST]What is the Population of the Place with an Area (km 2) larger than 498.77? Context: CREATE TABLE table_name_51 (population VARCHAR, area__km_2__ INTEGER)[/INST]SELECT COUNT(population) FROM table_name_51 WHERE area__km_2__ > 498.77</s> |
CREATE TABLE table_name_45 (outcome VARCHAR, score VARCHAR) | SELECT outcome FROM table_name_45 WHERE score = "6β4, 6β4" | What is the Outcome of the game with a Score of 6β4, 6β4? | <s>[INST]What is the Outcome of the game with a Score of 6β4, 6β4? Context: CREATE TABLE table_name_45 (outcome VARCHAR, score VARCHAR)[/INST]SELECT outcome FROM table_name_45 WHERE score = "6β4, 6β4"</s> |
CREATE TABLE table_22862203_2 (location VARCHAR, record VARCHAR) | SELECT location FROM table_22862203_2 WHERE record = "9-1" | Where were games played when the record was 9-1? | <s>[INST]Where were games played when the record was 9-1? Context: CREATE TABLE table_22862203_2 (location VARCHAR, record VARCHAR)[/INST]SELECT location FROM table_22862203_2 WHERE record = "9-1"</s> |
CREATE TABLE course (crs_description VARCHAR, crs_code VARCHAR); CREATE TABLE CLASS (prof_num VARCHAR, crs_code VARCHAR); CREATE TABLE employee (emp_fname VARCHAR, emp_num VARCHAR) | SELECT T2.emp_fname, T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code | Find the first names of all instructors who have taught some course and the course description. | <s>[INST]Find the first names of all instructors who have taught some course and the course description. Context: CREATE TABLE course (crs_description VARCHAR, crs_code VARCHAR); CREATE TABLE CLASS (prof_num VARCHAR, crs_code VARCHAR); CREATE TABLE employee (emp_fname VARCHAR, emp_num VARCHAR)[/INST]SELECT T2.emp_fname, T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code</s> |
CREATE TABLE table_name_30 (name VARCHAR, year VARCHAR) | SELECT name FROM table_name_30 WHERE year = "1957" | What actor made a film in 1957? | <s>[INST]What actor made a film in 1957? Context: CREATE TABLE table_name_30 (name VARCHAR, year VARCHAR)[/INST]SELECT name FROM table_name_30 WHERE year = "1957"</s> |
CREATE TABLE table_14302582_1 (result VARCHAR, record VARCHAR) | SELECT result FROM table_14302582_1 WHERE record = "4-1" | What was the result when the team was 4-1? | <s>[INST]What was the result when the team was 4-1? Context: CREATE TABLE table_14302582_1 (result VARCHAR, record VARCHAR)[/INST]SELECT result FROM table_14302582_1 WHERE record = "4-1"</s> |
CREATE TABLE table_name_68 (year INTEGER, winner VARCHAR) | SELECT MAX(year) FROM table_name_68 WHERE winner = "iftiraas" | What is the most recent year that Iftiraas was the winner? | <s>[INST]What is the most recent year that Iftiraas was the winner? Context: CREATE TABLE table_name_68 (year INTEGER, winner VARCHAR)[/INST]SELECT MAX(year) FROM table_name_68 WHERE winner = "iftiraas"</s> |
CREATE TABLE table_name_50 (language VARCHAR, television_service VARCHAR) | SELECT language FROM table_name_50 WHERE television_service = "cartello promozionale sky hd" | What is the language of the television service cartello promozionale sky hd? | <s>[INST]What is the language of the television service cartello promozionale sky hd? Context: CREATE TABLE table_name_50 (language VARCHAR, television_service VARCHAR)[/INST]SELECT language FROM table_name_50 WHERE television_service = "cartello promozionale sky hd"</s> |
CREATE TABLE table_name_23 (athlete VARCHAR, run_3 VARCHAR, run_1 VARCHAR, run_2 VARCHAR) | SELECT athlete FROM table_name_23 WHERE run_1 < 51.96 AND run_2 > 51.13 AND run_3 = 52.53 | Who had a Run 1 smaller than 51.96, a Run 2 larger than 51.13, and a Run 3 of 52.53? | <s>[INST]Who had a Run 1 smaller than 51.96, a Run 2 larger than 51.13, and a Run 3 of 52.53? Context: CREATE TABLE table_name_23 (athlete VARCHAR, run_3 VARCHAR, run_1 VARCHAR, run_2 VARCHAR)[/INST]SELECT athlete FROM table_name_23 WHERE run_1 < 51.96 AND run_2 > 51.13 AND run_3 = 52.53</s> |
CREATE TABLE table_27756314_7 (record VARCHAR, date VARCHAR) | SELECT record FROM table_27756314_7 WHERE date = "December 11" | what is the record for date december 11? | <s>[INST]what is the record for date december 11? Context: CREATE TABLE table_27756314_7 (record VARCHAR, date VARCHAR)[/INST]SELECT record FROM table_27756314_7 WHERE date = "December 11"</s> |
CREATE TABLE table_16323766_3 (evening_gown VARCHAR, interview VARCHAR) | SELECT evening_gown FROM table_16323766_3 WHERE interview = "7.600 (9)" | What was the evening gown score for the woman who scored 7.600 (9) in her interview? | <s>[INST]What was the evening gown score for the woman who scored 7.600 (9) in her interview? Context: CREATE TABLE table_16323766_3 (evening_gown VARCHAR, interview VARCHAR)[/INST]SELECT evening_gown FROM table_16323766_3 WHERE interview = "7.600 (9)"</s> |
CREATE TABLE table_name_38 (kitmaker VARCHAR, team VARCHAR) | SELECT kitmaker FROM table_name_38 WHERE team = "fc augsburg" | Who is the kitmaker for Fc Augsburg? | <s>[INST]Who is the kitmaker for Fc Augsburg? Context: CREATE TABLE table_name_38 (kitmaker VARCHAR, team VARCHAR)[/INST]SELECT kitmaker FROM table_name_38 WHERE team = "fc augsburg"</s> |
CREATE TABLE table_11734041_1 (player VARCHAR, school_club_team_country VARCHAR) | SELECT player FROM table_11734041_1 WHERE school_club_team_country = "Australia" | What was the player name who came from Australia? | <s>[INST]What was the player name who came from Australia? Context: CREATE TABLE table_11734041_1 (player VARCHAR, school_club_team_country VARCHAR)[/INST]SELECT player FROM table_11734041_1 WHERE school_club_team_country = "Australia"</s> |
CREATE TABLE table_name_91 (appointed_elected VARCHAR, name VARCHAR) | SELECT appointed_elected FROM table_name_91 WHERE name = "chief justice mark cady" | What is the year when chief justice Mark Cady was appointed/elected? | <s>[INST]What is the year when chief justice Mark Cady was appointed/elected? Context: CREATE TABLE table_name_91 (appointed_elected VARCHAR, name VARCHAR)[/INST]SELECT appointed_elected FROM table_name_91 WHERE name = "chief justice mark cady"</s> |
CREATE TABLE table_name_26 (model VARCHAR, top_speed VARCHAR) | SELECT 0 AS _100km_h__62mph_ FROM table_name_26 WHERE model = "slk200k" AND top_speed = "236km/h (147mph)" | How fast can the SLK200K, with a top speed of 236km/h (147mph), accelerate to 100km/h (62mph)? | <s>[INST]How fast can the SLK200K, with a top speed of 236km/h (147mph), accelerate to 100km/h (62mph)? Context: CREATE TABLE table_name_26 (model VARCHAR, top_speed VARCHAR)[/INST]SELECT 0 AS _100km_h__62mph_ FROM table_name_26 WHERE model = "slk200k" AND top_speed = "236km/h (147mph)"</s> |
CREATE TABLE view_product_availability (product_id VARCHAR, available_yn VARCHAR); CREATE TABLE products_for_hire (product_name VARCHAR, product_id VARCHAR) | SELECT T2.product_name FROM view_product_availability AS T1 JOIN products_for_hire AS T2 ON T1.product_id = T2.product_id WHERE T1.available_yn = 1 | What are the names of products whose availability equals to 1? | <s>[INST]What are the names of products whose availability equals to 1? Context: CREATE TABLE view_product_availability (product_id VARCHAR, available_yn VARCHAR); CREATE TABLE products_for_hire (product_name VARCHAR, product_id VARCHAR)[/INST]SELECT T2.product_name FROM view_product_availability AS T1 JOIN products_for_hire AS T2 ON T1.product_id = T2.product_id WHERE T1.available_yn = 1</s> |
CREATE TABLE table_171361_2 (status VARCHAR, official_name VARCHAR) | SELECT COUNT(status) FROM table_171361_2 WHERE official_name = "Eldon" | Name the total number of status for eldon | <s>[INST]Name the total number of status for eldon Context: CREATE TABLE table_171361_2 (status VARCHAR, official_name VARCHAR)[/INST]SELECT COUNT(status) FROM table_171361_2 WHERE official_name = "Eldon"</s> |
CREATE TABLE table_12807904_5 (played VARCHAR, points VARCHAR) | SELECT played FROM table_12807904_5 WHERE points = "80" | How many played where the points were 80? | <s>[INST]How many played where the points were 80? Context: CREATE TABLE table_12807904_5 (played VARCHAR, points VARCHAR)[/INST]SELECT played FROM table_12807904_5 WHERE points = "80"</s> |
CREATE TABLE table_name_26 (total_games VARCHAR, draw VARCHAR, loss VARCHAR, league VARCHAR) | SELECT COUNT(total_games) FROM table_name_26 WHERE loss > 18 AND league = "total" AND draw > 317 | What is the total number of games with more than 18 loses, a Total League, and more than 317 draws? | <s>[INST]What is the total number of games with more than 18 loses, a Total League, and more than 317 draws? Context: CREATE TABLE table_name_26 (total_games VARCHAR, draw VARCHAR, loss VARCHAR, league VARCHAR)[/INST]SELECT COUNT(total_games) FROM table_name_26 WHERE loss > 18 AND league = "total" AND draw > 317</s> |
CREATE TABLE Staff (first_name VARCHAR) | SELECT COUNT(*) FROM Staff WHERE first_name = "Ludie" | How many staff have the first name Ludie? | <s>[INST]How many staff have the first name Ludie? Context: CREATE TABLE Staff (first_name VARCHAR)[/INST]SELECT COUNT(*) FROM Staff WHERE first_name = "Ludie"</s> |
CREATE TABLE INVOICES (payment_method_code VARCHAR) | SELECT payment_method_code FROM INVOICES GROUP BY payment_method_code ORDER BY COUNT(*) DESC LIMIT 1 | What is the payment method code used by the most orders? | <s>[INST]What is the payment method code used by the most orders? Context: CREATE TABLE INVOICES (payment_method_code VARCHAR)[/INST]SELECT payment_method_code FROM INVOICES GROUP BY payment_method_code ORDER BY COUNT(*) DESC LIMIT 1</s> |
CREATE TABLE table_name_93 (imap_shared VARCHAR, web_ui VARCHAR) | SELECT imap_shared FROM table_name_93 WHERE web_ui = "web ui" | What IMAP sharing options exist for software with a web UI? | <s>[INST]What IMAP sharing options exist for software with a web UI? Context: CREATE TABLE table_name_93 (imap_shared VARCHAR, web_ui VARCHAR)[/INST]SELECT imap_shared FROM table_name_93 WHERE web_ui = "web ui"</s> |
CREATE TABLE table_24575253_4 (division_one VARCHAR, division_four VARCHAR) | SELECT division_one FROM table_24575253_4 WHERE division_four = "Real Holmesdale Reserves" | When real holmesdale reserves is division four who is in division one? | <s>[INST]When real holmesdale reserves is division four who is in division one? Context: CREATE TABLE table_24575253_4 (division_one VARCHAR, division_four VARCHAR)[/INST]SELECT division_one FROM table_24575253_4 WHERE division_four = "Real Holmesdale Reserves"</s> |
CREATE TABLE table_name_24 (points VARCHAR, place VARCHAR, draw VARCHAR, artist VARCHAR) | SELECT COUNT(points) FROM table_name_24 WHERE draw < 12 AND artist = "philipp kirkorov" AND place < 17 | What is the total point value when there are less than 12 draws, the rank is less than 17, and Philipp Kirkorov is the artist? | <s>[INST]What is the total point value when there are less than 12 draws, the rank is less than 17, and Philipp Kirkorov is the artist? Context: CREATE TABLE table_name_24 (points VARCHAR, place VARCHAR, draw VARCHAR, artist VARCHAR)[/INST]SELECT COUNT(points) FROM table_name_24 WHERE draw < 12 AND artist = "philipp kirkorov" AND place < 17</s> |
CREATE TABLE table_name_27 (city VARCHAR, airport VARCHAR) | SELECT city FROM table_name_27 WHERE airport = "naples airport" | Which city is Naples Airport located in? | <s>[INST]Which city is Naples Airport located in? Context: CREATE TABLE table_name_27 (city VARCHAR, airport VARCHAR)[/INST]SELECT city FROM table_name_27 WHERE airport = "naples airport"</s> |
CREATE TABLE table_name_55 (points_classification VARCHAR, winner VARCHAR, young_rider_classification VARCHAR, general_classification VARCHAR) | SELECT points_classification FROM table_name_55 WHERE young_rider_classification = "lech piasecki" AND general_classification = "stephen roche" AND winner = "carrera jeans-vagabond" | How many points did lech piasecki, stephen roche, and carrera jeans-vagabond have? | <s>[INST]How many points did lech piasecki, stephen roche, and carrera jeans-vagabond have? Context: CREATE TABLE table_name_55 (points_classification VARCHAR, winner VARCHAR, young_rider_classification VARCHAR, general_classification VARCHAR)[/INST]SELECT points_classification FROM table_name_55 WHERE young_rider_classification = "lech piasecki" AND general_classification = "stephen roche" AND winner = "carrera jeans-vagabond"</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.