context stringlengths 27 489 | answer stringlengths 18 557 | question stringlengths 12 243 | text stringlengths 103 1.05k |
|---|---|---|---|
CREATE TABLE table_27610775_1 (prod_code INTEGER, directed_by VARCHAR) | SELECT MAX(prod_code) FROM table_27610775_1 WHERE directed_by = "Sean McNamara" | What is the maximum production code of the episode directed by Sean McNamara? | <s>[INST]What is the maximum production code of the episode directed by Sean McNamara? Context: CREATE TABLE table_27610775_1 (prod_code INTEGER, directed_by VARCHAR)[/INST]SELECT MAX(prod_code) FROM table_27610775_1 WHERE directed_by = "Sean McNamara"</s> |
CREATE TABLE table_name_62 (loss VARCHAR, date VARCHAR) | SELECT loss FROM table_name_62 WHERE date = "april 16" | What was the score of the game for April 16? | <s>[INST]What was the score of the game for April 16? Context: CREATE TABLE table_name_62 (loss VARCHAR, date VARCHAR)[/INST]SELECT loss FROM table_name_62 WHERE date = "april 16"</s> |
CREATE TABLE table_name_44 (events VARCHAR, top_25 INTEGER) | SELECT COUNT(events) FROM table_name_44 WHERE top_25 < 0 | What is the total number of events with a top-25 less than 0? | <s>[INST]What is the total number of events with a top-25 less than 0? Context: CREATE TABLE table_name_44 (events VARCHAR, top_25 INTEGER)[/INST]SELECT COUNT(events) FROM table_name_44 WHERE top_25 < 0</s> |
CREATE TABLE program (origin VARCHAR) | SELECT origin FROM program ORDER BY origin | List all program origins in the alphabetical order. | <s>[INST]List all program origins in the alphabetical order. Context: CREATE TABLE program (origin VARCHAR)[/INST]SELECT origin FROM program ORDER BY origin</s> |
CREATE TABLE table_1805191_34 (party VARCHAR, first_elected VARCHAR) | SELECT party FROM table_1805191_34 WHERE first_elected = 1998 | Which party was elected first in 1998? | <s>[INST]Which party was elected first in 1998? Context: CREATE TABLE table_1805191_34 (party VARCHAR, first_elected VARCHAR)[/INST]SELECT party FROM table_1805191_34 WHERE first_elected = 1998</s> |
CREATE TABLE table_19089486_1 (leagues_entering_this_round VARCHAR, clubs_involved VARCHAR) | SELECT leagues_entering_this_round FROM table_19089486_1 WHERE clubs_involved = 4 | Name the leagues entering this round for 4 | <s>[INST]Name the leagues entering this round for 4 Context: CREATE TABLE table_19089486_1 (leagues_entering_this_round VARCHAR, clubs_involved VARCHAR)[/INST]SELECT leagues_entering_this_round FROM table_19089486_1 WHERE clubs_involved = 4</s> |
CREATE TABLE table_name_15 (tournament VARCHAR, runner_up VARCHAR) | SELECT tournament FROM table_name_15 WHERE runner_up = "vijay singh" | In which tournament was vijay singh a runner-up? | <s>[INST]In which tournament was vijay singh a runner-up? Context: CREATE TABLE table_name_15 (tournament VARCHAR, runner_up VARCHAR)[/INST]SELECT tournament FROM table_name_15 WHERE runner_up = "vijay singh"</s> |
CREATE TABLE table_name_96 (name_of_ship VARCHAR, fate VARCHAR, time VARCHAR) | SELECT name_of_ship FROM table_name_96 WHERE fate = "sunk at" AND time = "01:00" | Which ship was sunk at 01:00? | <s>[INST]Which ship was sunk at 01:00? Context: CREATE TABLE table_name_96 (name_of_ship VARCHAR, fate VARCHAR, time VARCHAR)[/INST]SELECT name_of_ship FROM table_name_96 WHERE fate = "sunk at" AND time = "01:00"</s> |
CREATE TABLE table_name_58 (segment_c VARCHAR, segment_b VARCHAR) | SELECT segment_c FROM table_name_58 WHERE segment_b = "refrigerators" | Which segment c's segment b is refrigerators? | <s>[INST]Which segment c's segment b is refrigerators? Context: CREATE TABLE table_name_58 (segment_c VARCHAR, segment_b VARCHAR)[/INST]SELECT segment_c FROM table_name_58 WHERE segment_b = "refrigerators"</s> |
CREATE TABLE table_name_95 (crowd VARCHAR, away_team VARCHAR) | SELECT crowd FROM table_name_95 WHERE away_team = "fitzroy" | What is the crowd size of the Away team, Fitzroy? | <s>[INST]What is the crowd size of the Away team, Fitzroy? Context: CREATE TABLE table_name_95 (crowd VARCHAR, away_team VARCHAR)[/INST]SELECT crowd FROM table_name_95 WHERE away_team = "fitzroy"</s> |
CREATE TABLE table_2886617_8 (position VARCHAR, nhl_team VARCHAR) | SELECT position FROM table_2886617_8 WHERE nhl_team = "Toronto Maple Leafs" | What position did the draft pick for Toronto Maple Leafs play? | <s>[INST]What position did the draft pick for Toronto Maple Leafs play? Context: CREATE TABLE table_2886617_8 (position VARCHAR, nhl_team VARCHAR)[/INST]SELECT position FROM table_2886617_8 WHERE nhl_team = "Toronto Maple Leafs"</s> |
CREATE TABLE table_name_96 (attendance INTEGER, tie_no VARCHAR) | SELECT SUM(attendance) FROM table_name_96 WHERE tie_no = "13" | What was the attendance for the game that has a tie number of 13? | <s>[INST]What was the attendance for the game that has a tie number of 13? Context: CREATE TABLE table_name_96 (attendance INTEGER, tie_no VARCHAR)[/INST]SELECT SUM(attendance) FROM table_name_96 WHERE tie_no = "13"</s> |
CREATE TABLE table_name_31 (wins INTEGER, byes INTEGER) | SELECT AVG(wins) FROM table_name_31 WHERE byes < 0 | What is the average of wins when the byes are less than 0? | <s>[INST]What is the average of wins when the byes are less than 0? Context: CREATE TABLE table_name_31 (wins INTEGER, byes INTEGER)[/INST]SELECT AVG(wins) FROM table_name_31 WHERE byes < 0</s> |
CREATE TABLE table_name_56 (special_notes VARCHAR, year INTEGER) | SELECT special_notes FROM table_name_56 WHERE year < 2009 | What is the special notes value for years under 2009? | <s>[INST]What is the special notes value for years under 2009? Context: CREATE TABLE table_name_56 (special_notes VARCHAR, year INTEGER)[/INST]SELECT special_notes FROM table_name_56 WHERE year < 2009</s> |
CREATE TABLE table_name_89 (player VARCHAR, venue VARCHAR) | SELECT player FROM table_name_89 WHERE venue = "canberra stadium" | Who is the player of the match at canberra stadium? | <s>[INST]Who is the player of the match at canberra stadium? Context: CREATE TABLE table_name_89 (player VARCHAR, venue VARCHAR)[/INST]SELECT player FROM table_name_89 WHERE venue = "canberra stadium"</s> |
CREATE TABLE table_name_60 (socialist_labor_ticket VARCHAR, liberal_ticket VARCHAR) | SELECT socialist_labor_ticket FROM table_name_60 WHERE liberal_ticket = "arthur levitt" | Who was on the Socialist Labor ticket that had Arthur Levitt as the Liberal Ticket? | <s>[INST]Who was on the Socialist Labor ticket that had Arthur Levitt as the Liberal Ticket? Context: CREATE TABLE table_name_60 (socialist_labor_ticket VARCHAR, liberal_ticket VARCHAR)[/INST]SELECT socialist_labor_ticket FROM table_name_60 WHERE liberal_ticket = "arthur levitt"</s> |
CREATE TABLE table_21486890_1 (matches INTEGER, name VARCHAR) | SELECT MAX(matches) FROM table_21486890_1 WHERE name = "Mark Taylor Category:Articles with hCards" | Name the matches for mark taylor category:articles with hcards | <s>[INST]Name the matches for mark taylor category:articles with hcards Context: CREATE TABLE table_21486890_1 (matches INTEGER, name VARCHAR)[/INST]SELECT MAX(matches) FROM table_21486890_1 WHERE name = "Mark Taylor Category:Articles with hCards"</s> |
CREATE TABLE table_1137707_2 (location VARCHAR, fastest_lap VARCHAR) | SELECT location FROM table_1137707_2 WHERE fastest_lap = "Thierry Boutsen" | What is the location of thierry boutsen? | <s>[INST]What is the location of thierry boutsen? Context: CREATE TABLE table_1137707_2 (location VARCHAR, fastest_lap VARCHAR)[/INST]SELECT location FROM table_1137707_2 WHERE fastest_lap = "Thierry Boutsen"</s> |
CREATE TABLE table_name_71 (new_entries_this_round VARCHAR, phase VARCHAR, winners_from_previous_round VARCHAR) | SELECT new_entries_this_round FROM table_name_71 WHERE phase = "second phase" AND winners_from_previous_round = "4" | How many new entries are there for a second phase that has 4 winners from previous rounds? | <s>[INST]How many new entries are there for a second phase that has 4 winners from previous rounds? Context: CREATE TABLE table_name_71 (new_entries_this_round VARCHAR, phase VARCHAR, winners_from_previous_round VARCHAR)[/INST]SELECT new_entries_this_round FROM table_name_71 WHERE phase = "second phase" AND winners_from_previous_round = "4"</s> |
CREATE TABLE table_name_29 (pos VARCHAR, driver VARCHAR) | SELECT pos FROM table_name_29 WHERE driver = "brendan gaughan" | What is Driver Brendan Gaughan's Pos? | <s>[INST]What is Driver Brendan Gaughan's Pos? Context: CREATE TABLE table_name_29 (pos VARCHAR, driver VARCHAR)[/INST]SELECT pos FROM table_name_29 WHERE driver = "brendan gaughan"</s> |
CREATE TABLE table_name_4 (generation VARCHAR, birthday VARCHAR) | SELECT generation FROM table_name_4 WHERE birthday = "1992.12.23" | What generation is the member born on 1992.12.23 in? | <s>[INST]What generation is the member born on 1992.12.23 in? Context: CREATE TABLE table_name_4 (generation VARCHAR, birthday VARCHAR)[/INST]SELECT generation FROM table_name_4 WHERE birthday = "1992.12.23"</s> |
CREATE TABLE table_name_89 (winner VARCHAR, fastest_lap VARCHAR) | SELECT winner FROM table_name_89 WHERE fastest_lap = "katsuyuki hiranaka" | Who was the winner when Katsuyuki Hiranaka had the fastest lap? | <s>[INST]Who was the winner when Katsuyuki Hiranaka had the fastest lap? Context: CREATE TABLE table_name_89 (winner VARCHAR, fastest_lap VARCHAR)[/INST]SELECT winner FROM table_name_89 WHERE fastest_lap = "katsuyuki hiranaka"</s> |
CREATE TABLE table_name_65 (coverage_area VARCHAR, genre VARCHAR, station VARCHAR) | SELECT coverage_area FROM table_name_65 WHERE genre = "music" AND station = "muzik fm" | What is the coverage area of muzik fm station, which has a music genre? | <s>[INST]What is the coverage area of muzik fm station, which has a music genre? Context: CREATE TABLE table_name_65 (coverage_area VARCHAR, genre VARCHAR, station VARCHAR)[/INST]SELECT coverage_area FROM table_name_65 WHERE genre = "music" AND station = "muzik fm"</s> |
CREATE TABLE table_name_12 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_12 WHERE date = "april 21" | What was the score on April 21? | <s>[INST]What was the score on April 21? Context: CREATE TABLE table_name_12 (score VARCHAR, date VARCHAR)[/INST]SELECT score FROM table_name_12 WHERE date = "april 21"</s> |
CREATE TABLE table_name_61 (react INTEGER, mark VARCHAR, lane VARCHAR) | SELECT MIN(react) FROM table_name_61 WHERE mark = "46.26 sb" AND lane > 6 | What is the lowest React, when Mark is 46.26 sb, and when Lane is greater than 6? | <s>[INST]What is the lowest React, when Mark is 46.26 sb, and when Lane is greater than 6? Context: CREATE TABLE table_name_61 (react INTEGER, mark VARCHAR, lane VARCHAR)[/INST]SELECT MIN(react) FROM table_name_61 WHERE mark = "46.26 sb" AND lane > 6</s> |
CREATE TABLE table_13463790_2 (height__ft_ VARCHAR, name VARCHAR) | SELECT height__ft_ FROM table_13463790_2 WHERE name = "Leadenhall Building" | what's the height (ft) with name being leadenhall building | <s>[INST]what's the height (ft) with name being leadenhall building Context: CREATE TABLE table_13463790_2 (height__ft_ VARCHAR, name VARCHAR)[/INST]SELECT height__ft_ FROM table_13463790_2 WHERE name = "Leadenhall Building"</s> |
CREATE TABLE table_name_72 (score VARCHAR, competition VARCHAR) | SELECT score FROM table_name_72 WHERE competition = "friendly" | What is the score of the friendly competition? | <s>[INST]What is the score of the friendly competition? Context: CREATE TABLE table_name_72 (score VARCHAR, competition VARCHAR)[/INST]SELECT score FROM table_name_72 WHERE competition = "friendly"</s> |
CREATE TABLE table_name_63 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_63 WHERE date = "december 19, 2009" | What was the score of the match on December 19, 2009? | <s>[INST]What was the score of the match on December 19, 2009? Context: CREATE TABLE table_name_63 (score VARCHAR, date VARCHAR)[/INST]SELECT score FROM table_name_63 WHERE date = "december 19, 2009"</s> |
CREATE TABLE table_name_41 (score VARCHAR, time VARCHAR) | SELECT score FROM table_name_41 WHERE time = "2:28" | Which Score has a Time of 2:28? | <s>[INST]Which Score has a Time of 2:28? Context: CREATE TABLE table_name_41 (score VARCHAR, time VARCHAR)[/INST]SELECT score FROM table_name_41 WHERE time = "2:28"</s> |
CREATE TABLE table_2588674_1 (pop_density INTEGER, village VARCHAR) | SELECT MIN(pop_density) FROM table_2588674_1 WHERE village = "Mongmong-Toto-Maite" | What is the population density of mongmong-toto-maite? | <s>[INST]What is the population density of mongmong-toto-maite? Context: CREATE TABLE table_2588674_1 (pop_density INTEGER, village VARCHAR)[/INST]SELECT MIN(pop_density) FROM table_2588674_1 WHERE village = "Mongmong-Toto-Maite"</s> |
CREATE TABLE table_name_39 (visitor VARCHAR, record VARCHAR) | SELECT visitor FROM table_name_39 WHERE record = "2-4" | Which visitor has a record of 2-4? | <s>[INST]Which visitor has a record of 2-4? Context: CREATE TABLE table_name_39 (visitor VARCHAR, record VARCHAR)[/INST]SELECT visitor FROM table_name_39 WHERE record = "2-4"</s> |
CREATE TABLE table_name_80 (year INTEGER, billboard_200_peak VARCHAR, riaa_sales_certification VARCHAR, title VARCHAR) | SELECT SUM(year) FROM table_name_80 WHERE riaa_sales_certification = "gold" AND title = "lost without your love" AND billboard_200_peak > 26 | For how many years did the song "Lost Without Your Love" win the gold RIAA Sales Certification, and have a Billboard 200 Peak greater than 26? | <s>[INST]For how many years did the song "Lost Without Your Love" win the gold RIAA Sales Certification, and have a Billboard 200 Peak greater than 26? Context: CREATE TABLE table_name_80 (year INTEGER, billboard_200_peak VARCHAR, riaa_sales_certification VARCHAR, title VARCHAR)[/INST]SELECT SUM(year) FROM table_name_80 WHERE riaa_sales_certification = "gold" AND title = "lost without your love" AND billboard_200_peak > 26</s> |
CREATE TABLE table_name_77 (event VARCHAR, competition VARCHAR) | SELECT event FROM table_name_77 WHERE competition = "world championships" | What Event has a Competition of world championships? | <s>[INST]What Event has a Competition of world championships? Context: CREATE TABLE table_name_77 (event VARCHAR, competition VARCHAR)[/INST]SELECT event FROM table_name_77 WHERE competition = "world championships"</s> |
CREATE TABLE table_23918997_1 (written_by VARCHAR, us_viewers__million_ VARCHAR) | SELECT written_by FROM table_23918997_1 WHERE us_viewers__million_ = "0.97" | Who were all the writers whose episodes had 0.97 million viewers? | <s>[INST]Who were all the writers whose episodes had 0.97 million viewers? Context: CREATE TABLE table_23918997_1 (written_by VARCHAR, us_viewers__million_ VARCHAR)[/INST]SELECT written_by FROM table_23918997_1 WHERE us_viewers__million_ = "0.97"</s> |
CREATE TABLE table_name_65 (time_retired VARCHAR, grid VARCHAR, driver VARCHAR) | SELECT time_retired FROM table_name_65 WHERE grid > 3 AND driver = "kimi räikkönen" | What time/retired has a Grid larger than 3, and a Driver of kimi räikkönen? | <s>[INST]What time/retired has a Grid larger than 3, and a Driver of kimi räikkönen? Context: CREATE TABLE table_name_65 (time_retired VARCHAR, grid VARCHAR, driver VARCHAR)[/INST]SELECT time_retired FROM table_name_65 WHERE grid > 3 AND driver = "kimi räikkönen"</s> |
CREATE TABLE table_name_29 (gold VARCHAR, nation VARCHAR, total VARCHAR, rank VARCHAR) | SELECT gold FROM table_name_29 WHERE total < 2 AND rank = 3 AND nation = "canada" | What is the gold when the total is less than 2, and rank is 3 and Canada is the nation? | <s>[INST]What is the gold when the total is less than 2, and rank is 3 and Canada is the nation? Context: CREATE TABLE table_name_29 (gold VARCHAR, nation VARCHAR, total VARCHAR, rank VARCHAR)[/INST]SELECT gold FROM table_name_29 WHERE total < 2 AND rank = 3 AND nation = "canada"</s> |
CREATE TABLE table_name_88 (_number___county VARCHAR, location VARCHAR) | SELECT _number___county FROM table_name_88 WHERE location = "ossian" | Which #/ County has a Location of ossian? | <s>[INST]Which #/ County has a Location of ossian? Context: CREATE TABLE table_name_88 (_number___county VARCHAR, location VARCHAR)[/INST]SELECT _number___county FROM table_name_88 WHERE location = "ossian"</s> |
CREATE TABLE table_name_15 (series VARCHAR, director VARCHAR, production_number VARCHAR) | SELECT series FROM table_name_15 WHERE director = "friz freleng" AND production_number = 1614 | From what series was the title with a production number of 1614 that was directed by Friz Freleng? | <s>[INST]From what series was the title with a production number of 1614 that was directed by Friz Freleng? Context: CREATE TABLE table_name_15 (series VARCHAR, director VARCHAR, production_number VARCHAR)[/INST]SELECT series FROM table_name_15 WHERE director = "friz freleng" AND production_number = 1614</s> |
CREATE TABLE table_name_22 (issue VARCHAR, date VARCHAR) | SELECT issue FROM table_name_22 WHERE date = "august 17, 2011" | What Issue number was released on August 17, 2011? | <s>[INST]What Issue number was released on August 17, 2011? Context: CREATE TABLE table_name_22 (issue VARCHAR, date VARCHAR)[/INST]SELECT issue FROM table_name_22 WHERE date = "august 17, 2011"</s> |
CREATE TABLE table_2182562_1 (top_5 VARCHAR, avg_finish VARCHAR) | SELECT top_5 FROM table_2182562_1 WHERE avg_finish = "40.3" | What are the top 5 average finishes equalling 40.3? | <s>[INST]What are the top 5 average finishes equalling 40.3? Context: CREATE TABLE table_2182562_1 (top_5 VARCHAR, avg_finish VARCHAR)[/INST]SELECT top_5 FROM table_2182562_1 WHERE avg_finish = "40.3"</s> |
CREATE TABLE table_27734577_8 (date VARCHAR, team VARCHAR) | SELECT date FROM table_27734577_8 WHERE team = "New Orleans" | What's the date of the new orleans team ? | <s>[INST]What's the date of the new orleans team ? Context: CREATE TABLE table_27734577_8 (date VARCHAR, team VARCHAR)[/INST]SELECT date FROM table_27734577_8 WHERE team = "New Orleans"</s> |
CREATE TABLE table_2560677_1 (artist_s_ VARCHAR, start_date VARCHAR) | SELECT artist_s_ FROM table_2560677_1 WHERE start_date = "1966-10-23" | Who was the artist with a start date of 1966-10-23? | <s>[INST]Who was the artist with a start date of 1966-10-23? Context: CREATE TABLE table_2560677_1 (artist_s_ VARCHAR, start_date VARCHAR)[/INST]SELECT artist_s_ FROM table_2560677_1 WHERE start_date = "1966-10-23"</s> |
CREATE TABLE table_14847258_1 (title VARCHAR, us_viewers__millions_ VARCHAR) | SELECT title FROM table_14847258_1 WHERE us_viewers__millions_ = "15.03" | 15.03 million u.s viewers seen what episode? | <s>[INST]15.03 million u.s viewers seen what episode? Context: CREATE TABLE table_14847258_1 (title VARCHAR, us_viewers__millions_ VARCHAR)[/INST]SELECT title FROM table_14847258_1 WHERE us_viewers__millions_ = "15.03"</s> |
CREATE TABLE table_name_90 (tournament VARCHAR, score VARCHAR) | SELECT tournament FROM table_name_90 WHERE score = "6–3, 2–6, [10–8]" | What tournament had a Score of 6–3, 2–6, [10–8]? | <s>[INST]What tournament had a Score of 6–3, 2–6, [10–8]? Context: CREATE TABLE table_name_90 (tournament VARCHAR, score VARCHAR)[/INST]SELECT tournament FROM table_name_90 WHERE score = "6–3, 2–6, [10–8]"</s> |
CREATE TABLE table_name_32 (_percentage_2001 VARCHAR, seats_2001 VARCHAR) | SELECT COUNT(_percentage_2001) FROM table_name_32 WHERE seats_2001 = 7 | What is the sum of % for 2001 if 2001 seats equals 7? | <s>[INST]What is the sum of % for 2001 if 2001 seats equals 7? Context: CREATE TABLE table_name_32 (_percentage_2001 VARCHAR, seats_2001 VARCHAR)[/INST]SELECT COUNT(_percentage_2001) FROM table_name_32 WHERE seats_2001 = 7</s> |
CREATE TABLE table_name_15 (score VARCHAR, location_attendance VARCHAR) | SELECT score FROM table_name_15 WHERE location_attendance = "seattle center coliseum 11,497" | WhichScore has a Location Attendance of seattle center coliseum 11,497? | <s>[INST]WhichScore has a Location Attendance of seattle center coliseum 11,497? Context: CREATE TABLE table_name_15 (score VARCHAR, location_attendance VARCHAR)[/INST]SELECT score FROM table_name_15 WHERE location_attendance = "seattle center coliseum 11,497"</s> |
CREATE TABLE table_name_36 (Id VARCHAR) | SELECT 2011 FROM table_name_36 WHERE 2010 = "grand slam tournaments" | What is the 2011 when the 2010 shows grand slam tournaments? | <s>[INST]What is the 2011 when the 2010 shows grand slam tournaments? Context: CREATE TABLE table_name_36 (Id VARCHAR)[/INST]SELECT 2011 FROM table_name_36 WHERE 2010 = "grand slam tournaments"</s> |
CREATE TABLE table_name_60 (catalogue VARCHAR, writer_s_ VARCHAR) | SELECT catalogue FROM table_name_60 WHERE writer_s_ = "mark james" | Which Catalogue has a Writer(s) of mark james? | <s>[INST]Which Catalogue has a Writer(s) of mark james? Context: CREATE TABLE table_name_60 (catalogue VARCHAR, writer_s_ VARCHAR)[/INST]SELECT catalogue FROM table_name_60 WHERE writer_s_ = "mark james"</s> |
CREATE TABLE table_name_47 (score VARCHAR, result VARCHAR, date VARCHAR) | SELECT score FROM table_name_47 WHERE result = "2–1" AND date = "5 july 2007" | What is the Score that has a Result of 2–1 on 5 july 2007? | <s>[INST]What is the Score that has a Result of 2–1 on 5 july 2007? Context: CREATE TABLE table_name_47 (score VARCHAR, result VARCHAR, date VARCHAR)[/INST]SELECT score FROM table_name_47 WHERE result = "2–1" AND date = "5 july 2007"</s> |
CREATE TABLE Apartment_Bookings (booking_start_date VARCHAR, guest_id VARCHAR); CREATE TABLE Guests (guest_id VARCHAR, gender_code VARCHAR) | SELECT T1.booking_start_date, T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id WHERE T2.gender_code = "Female" | Show the start dates and end dates of all the apartment bookings made by guests with gender code "Female". | <s>[INST]Show the start dates and end dates of all the apartment bookings made by guests with gender code "Female". Context: CREATE TABLE Apartment_Bookings (booking_start_date VARCHAR, guest_id VARCHAR); CREATE TABLE Guests (guest_id VARCHAR, gender_code VARCHAR)[/INST]SELECT T1.booking_start_date, T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id WHERE T2.gender_code = "Female"</s> |
CREATE TABLE races (driverId VARCHAR, raceId VARCHAR, YEAR VARCHAR); CREATE TABLE results (driverId VARCHAR, raceId VARCHAR, YEAR VARCHAR) | SELECT COUNT(DISTINCT driverId) FROM results WHERE NOT raceId IN (SELECT raceId FROM races WHERE YEAR <> 2009) | How many drivers did not participate in the races held in 2009? | <s>[INST]How many drivers did not participate in the races held in 2009? Context: CREATE TABLE races (driverId VARCHAR, raceId VARCHAR, YEAR VARCHAR); CREATE TABLE results (driverId VARCHAR, raceId VARCHAR, YEAR VARCHAR)[/INST]SELECT COUNT(DISTINCT driverId) FROM results WHERE NOT raceId IN (SELECT raceId FROM races WHERE YEAR <> 2009)</s> |
CREATE TABLE table_name_81 (away_team VARCHAR, venue VARCHAR) | SELECT away_team FROM table_name_81 WHERE venue = "vfl park" | When vfl park is the venue what's the Away team playing? | <s>[INST]When vfl park is the venue what's the Away team playing? Context: CREATE TABLE table_name_81 (away_team VARCHAR, venue VARCHAR)[/INST]SELECT away_team FROM table_name_81 WHERE venue = "vfl park"</s> |
CREATE TABLE table_name_73 (results VARCHAR, district VARCHAR) | SELECT results FROM table_name_73 WHERE district = "washington 2" | What were the Results in the Washington 2 District? | <s>[INST]What were the Results in the Washington 2 District? Context: CREATE TABLE table_name_73 (results VARCHAR, district VARCHAR)[/INST]SELECT results FROM table_name_73 WHERE district = "washington 2"</s> |
CREATE TABLE table_name_10 (nation VARCHAR, silver VARCHAR, bronze VARCHAR, total VARCHAR) | SELECT nation FROM table_name_10 WHERE bronze = 1 AND total = 3 AND silver = 1 | Which country had 1 Bronze, 1 Silver, with a total of 3 medals? | <s>[INST]Which country had 1 Bronze, 1 Silver, with a total of 3 medals? Context: CREATE TABLE table_name_10 (nation VARCHAR, silver VARCHAR, bronze VARCHAR, total VARCHAR)[/INST]SELECT nation FROM table_name_10 WHERE bronze = 1 AND total = 3 AND silver = 1</s> |
CREATE TABLE table_name_87 (tournament VARCHAR, date VARCHAR) | SELECT tournament FROM table_name_87 WHERE date = "7 aug 2011" | What tournament took place on 7 Aug 2011? | <s>[INST]What tournament took place on 7 Aug 2011? Context: CREATE TABLE table_name_87 (tournament VARCHAR, date VARCHAR)[/INST]SELECT tournament FROM table_name_87 WHERE date = "7 aug 2011"</s> |
CREATE TABLE table_name_16 (team_2 VARCHAR) | SELECT 2 AS nd_leg FROM table_name_16 WHERE team_2 = "morocco" | What is the 2nd leg result when team 2 is Morocco? | <s>[INST]What is the 2nd leg result when team 2 is Morocco? Context: CREATE TABLE table_name_16 (team_2 VARCHAR)[/INST]SELECT 2 AS nd_leg FROM table_name_16 WHERE team_2 = "morocco"</s> |
CREATE TABLE table_name_7 (rank VARCHAR, team VARCHAR) | SELECT rank FROM table_name_7 WHERE team = "tottenham hotspur" | Name the rank for tottenham hotspur | <s>[INST]Name the rank for tottenham hotspur Context: CREATE TABLE table_name_7 (rank VARCHAR, team VARCHAR)[/INST]SELECT rank FROM table_name_7 WHERE team = "tottenham hotspur"</s> |
CREATE TABLE table_name_34 (date VARCHAR, race VARCHAR) | SELECT date FROM table_name_34 WHERE race = "italian grand prix" | Name the date of the italian grand prix | <s>[INST]Name the date of the italian grand prix Context: CREATE TABLE table_name_34 (date VARCHAR, race VARCHAR)[/INST]SELECT date FROM table_name_34 WHERE race = "italian grand prix"</s> |
CREATE TABLE table_27003223_4 (registered_voters VARCHAR, d_r_spread VARCHAR) | SELECT registered_voters FROM table_27003223_4 WHERE d_r_spread = "+14.3%" | What is the percentage of registered voters in which the d-r spread is +14.3%? | <s>[INST]What is the percentage of registered voters in which the d-r spread is +14.3%? Context: CREATE TABLE table_27003223_4 (registered_voters VARCHAR, d_r_spread VARCHAR)[/INST]SELECT registered_voters FROM table_27003223_4 WHERE d_r_spread = "+14.3%"</s> |
CREATE TABLE table_name_80 (grid INTEGER, driver VARCHAR, laps VARCHAR) | SELECT MAX(grid) FROM table_name_80 WHERE driver = "piercarlo ghinzani" AND laps > 3 | What is the highest numbered grid for piercarlo ghinzani with over 3 laps? | <s>[INST]What is the highest numbered grid for piercarlo ghinzani with over 3 laps? Context: CREATE TABLE table_name_80 (grid INTEGER, driver VARCHAR, laps VARCHAR)[/INST]SELECT MAX(grid) FROM table_name_80 WHERE driver = "piercarlo ghinzani" AND laps > 3</s> |
CREATE TABLE table_1341640_11 (party VARCHAR, candidates VARCHAR) | SELECT party FROM table_1341640_11 WHERE candidates = "Newt Gingrich (R) 59.1% Dock H. Davis (D) 40.9%" | What is the party with the candidates newt gingrich (r) 59.1% dock h. davis (d) 40.9%? | <s>[INST]What is the party with the candidates newt gingrich (r) 59.1% dock h. davis (d) 40.9%? Context: CREATE TABLE table_1341640_11 (party VARCHAR, candidates VARCHAR)[/INST]SELECT party FROM table_1341640_11 WHERE candidates = "Newt Gingrich (R) 59.1% Dock H. Davis (D) 40.9%"</s> |
CREATE TABLE table_name_11 (country VARCHAR, city VARCHAR) | SELECT country FROM table_name_11 WHERE city = "istanbul" | What country is Istanbul in? | <s>[INST]What country is Istanbul in? Context: CREATE TABLE table_name_11 (country VARCHAR, city VARCHAR)[/INST]SELECT country FROM table_name_11 WHERE city = "istanbul"</s> |
CREATE TABLE table_name_14 (team VARCHAR, sponsor VARCHAR) | SELECT team FROM table_name_14 WHERE sponsor = "w.h. bolin" | What team is sponsored by w.h. bolin? | <s>[INST]What team is sponsored by w.h. bolin? Context: CREATE TABLE table_name_14 (team VARCHAR, sponsor VARCHAR)[/INST]SELECT team FROM table_name_14 WHERE sponsor = "w.h. bolin"</s> |
CREATE TABLE table_name_33 (player VARCHAR, cfl_team VARCHAR) | SELECT player FROM table_name_33 WHERE cfl_team = "hamilton" | which player played on Team Hamilton? | <s>[INST]which player played on Team Hamilton? Context: CREATE TABLE table_name_33 (player VARCHAR, cfl_team VARCHAR)[/INST]SELECT player FROM table_name_33 WHERE cfl_team = "hamilton"</s> |
CREATE TABLE table_name_89 (manuals VARCHAR, kind VARCHAR, opus VARCHAR) | SELECT manuals FROM table_name_89 WHERE kind = "r" AND opus = "144" | What are the manuals with a kind of r, and an opus of 144? | <s>[INST]What are the manuals with a kind of r, and an opus of 144? Context: CREATE TABLE table_name_89 (manuals VARCHAR, kind VARCHAR, opus VARCHAR)[/INST]SELECT manuals FROM table_name_89 WHERE kind = "r" AND opus = "144"</s> |
CREATE TABLE table_name_98 (goals INTEGER, rank VARCHAR, years VARCHAR, player VARCHAR) | SELECT MIN(goals) FROM table_name_98 WHERE years = "2008-present" AND player = "tony beltran" AND rank > 7 | What is the smallest number of goals for the player from 2008-present named tony beltran, ranked lower than 7? | <s>[INST]What is the smallest number of goals for the player from 2008-present named tony beltran, ranked lower than 7? Context: CREATE TABLE table_name_98 (goals INTEGER, rank VARCHAR, years VARCHAR, player VARCHAR)[/INST]SELECT MIN(goals) FROM table_name_98 WHERE years = "2008-present" AND player = "tony beltran" AND rank > 7</s> |
CREATE TABLE table_17598822_11 (league VARCHAR, total VARCHAR) | SELECT COUNT(league) FROM table_17598822_11 WHERE total = 5 | Name the total number of league for 5 | <s>[INST]Name the total number of league for 5 Context: CREATE TABLE table_17598822_11 (league VARCHAR, total VARCHAR)[/INST]SELECT COUNT(league) FROM table_17598822_11 WHERE total = 5</s> |
CREATE TABLE CUSTOMER (SupportRepId VARCHAR, FirstName VARCHAR); CREATE TABLE EMPLOYEE (FirstName VARCHAR, LastName VARCHAR, EmployeeId VARCHAR) | SELECT T2.FirstName, T2.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId WHERE T1.FirstName = "Leonie" | What is the first name and last name employee helps the customer with first name Leonie? | <s>[INST]What is the first name and last name employee helps the customer with first name Leonie? Context: CREATE TABLE CUSTOMER (SupportRepId VARCHAR, FirstName VARCHAR); CREATE TABLE EMPLOYEE (FirstName VARCHAR, LastName VARCHAR, EmployeeId VARCHAR)[/INST]SELECT T2.FirstName, T2.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId WHERE T1.FirstName = "Leonie"</s> |
CREATE TABLE table_name_95 (call_sign VARCHAR, city_of_license VARCHAR) | SELECT call_sign FROM table_name_95 WHERE city_of_license = "higgston, ga" | What Call sign has a City of license of higgston, ga? | <s>[INST]What Call sign has a City of license of higgston, ga? Context: CREATE TABLE table_name_95 (call_sign VARCHAR, city_of_license VARCHAR)[/INST]SELECT call_sign FROM table_name_95 WHERE city_of_license = "higgston, ga"</s> |
CREATE TABLE table_name_30 (engine VARCHAR, tyres VARCHAR, driver VARCHAR) | SELECT engine FROM table_name_30 WHERE tyres = "g" AND driver = "elio de angelis" | What engine has g tyres and is driven by elio de angelis? | <s>[INST]What engine has g tyres and is driven by elio de angelis? Context: CREATE TABLE table_name_30 (engine VARCHAR, tyres VARCHAR, driver VARCHAR)[/INST]SELECT engine FROM table_name_30 WHERE tyres = "g" AND driver = "elio de angelis"</s> |
CREATE TABLE EMPLOYEE (Phone VARCHAR) | SELECT Phone FROM EMPLOYEE | List the phone numbers of all employees. | <s>[INST]List the phone numbers of all employees. Context: CREATE TABLE EMPLOYEE (Phone VARCHAR)[/INST]SELECT Phone FROM EMPLOYEE</s> |
CREATE TABLE table_name_78 (opponent VARCHAR, score VARCHAR) | SELECT opponent FROM table_name_78 WHERE score = "111-106" | Who was the opponent at the game with a score of 111-106? | <s>[INST]Who was the opponent at the game with a score of 111-106? Context: CREATE TABLE table_name_78 (opponent VARCHAR, score VARCHAR)[/INST]SELECT opponent FROM table_name_78 WHERE score = "111-106"</s> |
CREATE TABLE table_name_2 (constructor VARCHAR, year VARCHAR, driver VARCHAR) | SELECT constructor FROM table_name_2 WHERE year < 1937 AND driver = "achille varzi" | What was the constructor of the car that Achille Varzi drove before 1937? | <s>[INST]What was the constructor of the car that Achille Varzi drove before 1937? Context: CREATE TABLE table_name_2 (constructor VARCHAR, year VARCHAR, driver VARCHAR)[/INST]SELECT constructor FROM table_name_2 WHERE year < 1937 AND driver = "achille varzi"</s> |
CREATE TABLE table_name_53 (h___a VARCHAR, opponents VARCHAR) | SELECT h___a FROM table_name_53 WHERE opponents = "cork city" | What is the H/A when Cork City is the opponent? | <s>[INST]What is the H/A when Cork City is the opponent? Context: CREATE TABLE table_name_53 (h___a VARCHAR, opponents VARCHAR)[/INST]SELECT h___a FROM table_name_53 WHERE opponents = "cork city"</s> |
CREATE TABLE table_name_66 (time INTEGER, rank VARCHAR, nationality VARCHAR, lane VARCHAR) | SELECT MIN(time) FROM table_name_66 WHERE nationality = "jamaica" AND lane > 4 AND rank < 1 | Name the lowest Time of jamaica with a Lane larger than 4 and a Rank smaller than 1? | <s>[INST]Name the lowest Time of jamaica with a Lane larger than 4 and a Rank smaller than 1? Context: CREATE TABLE table_name_66 (time INTEGER, rank VARCHAR, nationality VARCHAR, lane VARCHAR)[/INST]SELECT MIN(time) FROM table_name_66 WHERE nationality = "jamaica" AND lane > 4 AND rank < 1</s> |
CREATE TABLE table_14971788_1 (game_site VARCHAR, opponent VARCHAR) | SELECT game_site FROM table_14971788_1 WHERE opponent = "Atlanta Falcons" | Where was the game against Atlanta Falcons held? | <s>[INST]Where was the game against Atlanta Falcons held? Context: CREATE TABLE table_14971788_1 (game_site VARCHAR, opponent VARCHAR)[/INST]SELECT game_site FROM table_14971788_1 WHERE opponent = "Atlanta Falcons"</s> |
CREATE TABLE table_name_25 (attendance VARCHAR, week VARCHAR) | SELECT attendance FROM table_name_25 WHERE week = 2 | What was the Attendance in Week 2? | <s>[INST]What was the Attendance in Week 2? Context: CREATE TABLE table_name_25 (attendance VARCHAR, week VARCHAR)[/INST]SELECT attendance FROM table_name_25 WHERE week = 2</s> |
CREATE TABLE table_name_47 (result VARCHAR, attendance VARCHAR) | SELECT result FROM table_name_47 WHERE attendance = "16,000" | What was the result of the game that was attended by 16,000 people? | <s>[INST]What was the result of the game that was attended by 16,000 people? Context: CREATE TABLE table_name_47 (result VARCHAR, attendance VARCHAR)[/INST]SELECT result FROM table_name_47 WHERE attendance = "16,000"</s> |
CREATE TABLE table_name_15 (wins INTEGER, byes INTEGER) | SELECT MIN(wins) FROM table_name_15 WHERE byes < 0 | What is the lowest number of wins where the byes are less than 0? | <s>[INST]What is the lowest number of wins where the byes are less than 0? Context: CREATE TABLE table_name_15 (wins INTEGER, byes INTEGER)[/INST]SELECT MIN(wins) FROM table_name_15 WHERE byes < 0</s> |
CREATE TABLE table_11147852_1 (channel_tv___dt__ VARCHAR, year_of_affiliation VARCHAR) | SELECT channel_tv___dt__ FROM table_11147852_1 WHERE year_of_affiliation = "2002" | What channels have stations that were affiliated in 2002? | <s>[INST]What channels have stations that were affiliated in 2002? Context: CREATE TABLE table_11147852_1 (channel_tv___dt__ VARCHAR, year_of_affiliation VARCHAR)[/INST]SELECT channel_tv___dt__ FROM table_11147852_1 WHERE year_of_affiliation = "2002"</s> |
CREATE TABLE table_18703133_1 (losses INTEGER, points VARCHAR) | SELECT MIN(losses) FROM table_18703133_1 WHERE points = 23 | Name the least amount of losses for 23 points | <s>[INST]Name the least amount of losses for 23 points Context: CREATE TABLE table_18703133_1 (losses INTEGER, points VARCHAR)[/INST]SELECT MIN(losses) FROM table_18703133_1 WHERE points = 23</s> |
CREATE TABLE Products (Product_Type_Code VARCHAR, Product_Price INTEGER) | SELECT Product_Type_Code FROM Products WHERE Product_Price > 4500 INTERSECT SELECT Product_Type_Code FROM Products WHERE Product_Price < 3000 | Show the product type codes that have both products with price higher than 4500 and products with price lower than 3000. | <s>[INST]Show the product type codes that have both products with price higher than 4500 and products with price lower than 3000. Context: CREATE TABLE Products (Product_Type_Code VARCHAR, Product_Price INTEGER)[/INST]SELECT Product_Type_Code FROM Products WHERE Product_Price > 4500 INTERSECT SELECT Product_Type_Code FROM Products WHERE Product_Price < 3000</s> |
CREATE TABLE table_name_95 (goals INTEGER, level INTEGER) | SELECT MIN(goals) FROM table_name_95 WHERE level > 5 | What Goals with a Level of 5 or greater is the lowest? | <s>[INST]What Goals with a Level of 5 or greater is the lowest? Context: CREATE TABLE table_name_95 (goals INTEGER, level INTEGER)[/INST]SELECT MIN(goals) FROM table_name_95 WHERE level > 5</s> |
CREATE TABLE table_name_39 (bush_percentage VARCHAR, kerry_percentage VARCHAR) | SELECT bush_percentage FROM table_name_39 WHERE kerry_percentage = "58.1%" | When Keey has 58.1% what % does Bush have? | <s>[INST]When Keey has 58.1% what % does Bush have? Context: CREATE TABLE table_name_39 (bush_percentage VARCHAR, kerry_percentage VARCHAR)[/INST]SELECT bush_percentage FROM table_name_39 WHERE kerry_percentage = "58.1%"</s> |
CREATE TABLE table_name_94 (engine VARCHAR, driver VARCHAR) | SELECT engine FROM table_name_94 WHERE driver = "james hunt" | What engine does driver james hunt have? | <s>[INST]What engine does driver james hunt have? Context: CREATE TABLE table_name_94 (engine VARCHAR, driver VARCHAR)[/INST]SELECT engine FROM table_name_94 WHERE driver = "james hunt"</s> |
CREATE TABLE table_name_99 (location VARCHAR, ihsaa_football_class VARCHAR, school VARCHAR) | SELECT location FROM table_name_99 WHERE ihsaa_football_class = "aa" AND school = "winchester community" | Winchester Community school, which plays IHSAA class AA football, is located where? | <s>[INST]Winchester Community school, which plays IHSAA class AA football, is located where? Context: CREATE TABLE table_name_99 (location VARCHAR, ihsaa_football_class VARCHAR, school VARCHAR)[/INST]SELECT location FROM table_name_99 WHERE ihsaa_football_class = "aa" AND school = "winchester community"</s> |
CREATE TABLE table_name_20 (score VARCHAR, team VARCHAR) | SELECT score FROM table_name_20 WHERE team = "@ cleveland" | what is the score when the team is @ cleveland? | <s>[INST]what is the score when the team is @ cleveland? Context: CREATE TABLE table_name_20 (score VARCHAR, team VARCHAR)[/INST]SELECT score FROM table_name_20 WHERE team = "@ cleveland"</s> |
CREATE TABLE table_name_25 (res VARCHAR, record VARCHAR, time VARCHAR, method VARCHAR) | SELECT res FROM table_name_25 WHERE time = "5:00" AND method = "decision (unanimous)" AND record = "1–0" | Which res has a Time of 5:00, and a Method of decision (unanimous), and a Record of 1–0? | <s>[INST]Which res has a Time of 5:00, and a Method of decision (unanimous), and a Record of 1–0? Context: CREATE TABLE table_name_25 (res VARCHAR, record VARCHAR, time VARCHAR, method VARCHAR)[/INST]SELECT res FROM table_name_25 WHERE time = "5:00" AND method = "decision (unanimous)" AND record = "1–0"</s> |
CREATE TABLE table_21721351_18 (nationality VARCHAR, college_junior_club_team VARCHAR) | SELECT nationality FROM table_21721351_18 WHERE college_junior_club_team = "Kitchener Rangers (OHL)" | Which nationality is kitchener rangers (ohl) college/junior/club team? | <s>[INST]Which nationality is kitchener rangers (ohl) college/junior/club team? Context: CREATE TABLE table_21721351_18 (nationality VARCHAR, college_junior_club_team VARCHAR)[/INST]SELECT nationality FROM table_21721351_18 WHERE college_junior_club_team = "Kitchener Rangers (OHL)"</s> |
CREATE TABLE table_name_44 (silver VARCHAR, rank VARCHAR, total VARCHAR, bronze VARCHAR) | SELECT COUNT(silver) FROM table_name_44 WHERE total > 2 AND bronze < 3 AND rank = "7" | What is the number of silver when the total is more than 2, and bronze is less than 3, with a rank of 7? | <s>[INST]What is the number of silver when the total is more than 2, and bronze is less than 3, with a rank of 7? Context: CREATE TABLE table_name_44 (silver VARCHAR, rank VARCHAR, total VARCHAR, bronze VARCHAR)[/INST]SELECT COUNT(silver) FROM table_name_44 WHERE total > 2 AND bronze < 3 AND rank = "7"</s> |
CREATE TABLE table_name_38 (year VARCHAR, score VARCHAR) | SELECT year FROM table_name_38 WHERE score = "385 runs" | What year has 385 runs as the score? | <s>[INST]What year has 385 runs as the score? Context: CREATE TABLE table_name_38 (year VARCHAR, score VARCHAR)[/INST]SELECT year FROM table_name_38 WHERE score = "385 runs"</s> |
CREATE TABLE table_name_99 (year INTEGER, entrant VARCHAR, points VARCHAR) | SELECT AVG(year) FROM table_name_99 WHERE entrant = "austria-marlboro brm" AND points > 0 | What year did Austria-Marlboro BRM get more than 0 points? | <s>[INST]What year did Austria-Marlboro BRM get more than 0 points? Context: CREATE TABLE table_name_99 (year INTEGER, entrant VARCHAR, points VARCHAR)[/INST]SELECT AVG(year) FROM table_name_99 WHERE entrant = "austria-marlboro brm" AND points > 0</s> |
CREATE TABLE table_name_60 (pro_stock VARCHAR) | SELECT pro_stock AS Motorcycle FROM table_name_60 WHERE pro_stock = "tom martino" | Who won Pro Stock Motorcycle the year Tom Martino won Pro Stock? | <s>[INST]Who won Pro Stock Motorcycle the year Tom Martino won Pro Stock? Context: CREATE TABLE table_name_60 (pro_stock VARCHAR)[/INST]SELECT pro_stock AS Motorcycle FROM table_name_60 WHERE pro_stock = "tom martino"</s> |
CREATE TABLE table_name_51 (perth VARCHAR, auckland VARCHAR, gold_coast VARCHAR, adelaide VARCHAR) | SELECT perth FROM table_name_51 WHERE gold_coast = "yes" AND adelaide = "yes" AND auckland = "no" | Which Perth's gold coast and Adelaide were yes when Auckland was no? | <s>[INST]Which Perth's gold coast and Adelaide were yes when Auckland was no? Context: CREATE TABLE table_name_51 (perth VARCHAR, auckland VARCHAR, gold_coast VARCHAR, adelaide VARCHAR)[/INST]SELECT perth FROM table_name_51 WHERE gold_coast = "yes" AND adelaide = "yes" AND auckland = "no"</s> |
CREATE TABLE Project_outcomes (project_id VARCHAR, outcome_code VARCHAR); CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR) | SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Paper' INTERSECT SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Patent' | List the project details of the project both producing patent and paper as outcomes. | <s>[INST]List the project details of the project both producing patent and paper as outcomes. Context: CREATE TABLE Project_outcomes (project_id VARCHAR, outcome_code VARCHAR); CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR)[/INST]SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Paper' INTERSECT SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Patent'</s> |
CREATE TABLE follows (f1 VARCHAR, f2 VARCHAR); CREATE TABLE user_profiles (uid VARCHAR, name VARCHAR) | SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = "Mary" INTERSECT SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = "Susan" | Find the id of users who are followed by Mary and Susan. | <s>[INST]Find the id of users who are followed by Mary and Susan. Context: CREATE TABLE follows (f1 VARCHAR, f2 VARCHAR); CREATE TABLE user_profiles (uid VARCHAR, name VARCHAR)[/INST]SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = "Mary" INTERSECT SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = "Susan"</s> |
CREATE TABLE table_29556461_7 (team VARCHAR, date VARCHAR) | SELECT team FROM table_29556461_7 WHERE date = "January 19" | What team was Temple playing on January 19? | <s>[INST]What team was Temple playing on January 19? Context: CREATE TABLE table_29556461_7 (team VARCHAR, date VARCHAR)[/INST]SELECT team FROM table_29556461_7 WHERE date = "January 19"</s> |
CREATE TABLE table_name_10 (date_of_inauguration VARCHAR, age_at_inauguration VARCHAR) | SELECT date_of_inauguration FROM table_name_10 WHERE age_at_inauguration = "73years, 262days" | What is the Date of inauguration of the President with an Age at inauguration of 73years, 262days? | <s>[INST]What is the Date of inauguration of the President with an Age at inauguration of 73years, 262days? Context: CREATE TABLE table_name_10 (date_of_inauguration VARCHAR, age_at_inauguration VARCHAR)[/INST]SELECT date_of_inauguration FROM table_name_10 WHERE age_at_inauguration = "73years, 262days"</s> |
CREATE TABLE table_26108103_2 (opponent VARCHAR, rushing_yards VARCHAR) | SELECT opponent FROM table_26108103_2 WHERE rushing_yards = 117 | Who was the opponent when there was 117 rushing yards? | <s>[INST]Who was the opponent when there was 117 rushing yards? Context: CREATE TABLE table_26108103_2 (opponent VARCHAR, rushing_yards VARCHAR)[/INST]SELECT opponent FROM table_26108103_2 WHERE rushing_yards = 117</s> |
CREATE TABLE table_name_73 (career_caps VARCHAR, position VARCHAR, tests VARCHAR) | SELECT career_caps FROM table_name_73 WHERE position = "half-back" AND tests > 3 | What is the career caps for half-back, when tests is more than 3? | <s>[INST]What is the career caps for half-back, when tests is more than 3? Context: CREATE TABLE table_name_73 (career_caps VARCHAR, position VARCHAR, tests VARCHAR)[/INST]SELECT career_caps FROM table_name_73 WHERE position = "half-back" AND tests > 3</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.