context stringlengths 27 489 | answer stringlengths 18 557 | question stringlengths 12 243 | text stringlengths 103 1.05k |
|---|---|---|---|
CREATE TABLE table_name_47 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_47 WHERE date = "december 3" | Tell me the record for december 3 | <s>[INST]Tell me the record for december 3 Context: CREATE TABLE table_name_47 (record VARCHAR, date VARCHAR)[/INST]SELECT record FROM table_name_47 WHERE date = "december 3"</s> |
CREATE TABLE table_name_96 (play VARCHAR, base VARCHAR) | SELECT play FROM table_name_96 WHERE base = "aosta" | Which play had a base of Aosta? | <s>[INST]Which play had a base of Aosta? Context: CREATE TABLE table_name_96 (play VARCHAR, base VARCHAR)[/INST]SELECT play FROM table_name_96 WHERE base = "aosta"</s> |
CREATE TABLE table_name_10 (time_retired VARCHAR, laps VARCHAR, driver VARCHAR) | SELECT time_retired FROM table_name_10 WHERE laps < 53 AND driver = "innes ireland" | When the driver is innes ireland and they drove under 53 laps, what was the Time/Retired? | <s>[INST]When the driver is innes ireland and they drove under 53 laps, what was the Time/Retired? Context: CREATE TABLE table_name_10 (time_retired VARCHAR, laps VARCHAR, driver VARCHAR)[/INST]SELECT time_retired FROM table_name_10 WHERE laps < 53 AND driver = "innes ireland"</s> |
CREATE TABLE table_10953197_4 (writer_s_ VARCHAR, production_code VARCHAR) | SELECT writer_s_ FROM table_10953197_4 WHERE production_code = "2395114" | Who's the writer for the episode with a production code 2395114? | <s>[INST]Who's the writer for the episode with a production code 2395114? Context: CREATE TABLE table_10953197_4 (writer_s_ VARCHAR, production_code VARCHAR)[/INST]SELECT writer_s_ FROM table_10953197_4 WHERE production_code = "2395114"</s> |
CREATE TABLE table_name_14 (motorcycle VARCHAR, wins VARCHAR) | SELECT SUM(2 AS nd_pl) FROM table_name_14 WHERE motorcycle = "ducati 916" AND wins < 7 | How many times was the motorcycle ducati 916 2nd place when wins is less than 7? | <s>[INST]How many times was the motorcycle ducati 916 2nd place when wins is less than 7? Context: CREATE TABLE table_name_14 (motorcycle VARCHAR, wins VARCHAR)[/INST]SELECT SUM(2 AS nd_pl) FROM table_name_14 WHERE motorcycle = "ducati 916" AND wins < 7</s> |
CREATE TABLE table_name_68 (lane INTEGER, time VARCHAR, rank VARCHAR) | SELECT MAX(lane) FROM table_name_68 WHERE time > 55.94 AND rank > 8 | What is the highest Lane number of a person with a time of 55.94 with a Rank that's bigger than 8? | <s>[INST]What is the highest Lane number of a person with a time of 55.94 with a Rank that's bigger than 8? Context: CREATE TABLE table_name_68 (lane INTEGER, time VARCHAR, rank VARCHAR)[/INST]SELECT MAX(lane) FROM table_name_68 WHERE time > 55.94 AND rank > 8</s> |
CREATE TABLE table_name_90 (prize VARCHAR, winner VARCHAR) | SELECT prize FROM table_name_90 WHERE winner = "aaron gustavson" | What is the Prize, when the Winner is Aaron Gustavson? | <s>[INST]What is the Prize, when the Winner is Aaron Gustavson? Context: CREATE TABLE table_name_90 (prize VARCHAR, winner VARCHAR)[/INST]SELECT prize FROM table_name_90 WHERE winner = "aaron gustavson"</s> |
CREATE TABLE table_name_60 (opponents VARCHAR, partner VARCHAR) | SELECT opponents FROM table_name_60 WHERE partner = "vitalia diatchenko" | What is Opponents, when Partner is Vitalia Diatchenko? | <s>[INST]What is Opponents, when Partner is Vitalia Diatchenko? Context: CREATE TABLE table_name_60 (opponents VARCHAR, partner VARCHAR)[/INST]SELECT opponents FROM table_name_60 WHERE partner = "vitalia diatchenko"</s> |
CREATE TABLE table_12379297_1 (ch__number VARCHAR, callsign VARCHAR) | SELECT ch__number FROM table_12379297_1 WHERE callsign = "DWLJ-TV" | What is the ch# of dwlj-tv? | <s>[INST]What is the ch# of dwlj-tv? Context: CREATE TABLE table_12379297_1 (ch__number VARCHAR, callsign VARCHAR)[/INST]SELECT ch__number FROM table_12379297_1 WHERE callsign = "DWLJ-TV"</s> |
CREATE TABLE table_name_89 (venue VARCHAR, away_team VARCHAR) | SELECT venue FROM table_name_89 WHERE away_team = "south melbourne" | Which Venue has an Away team of south melbourne? | <s>[INST]Which Venue has an Away team of south melbourne? Context: CREATE TABLE table_name_89 (venue VARCHAR, away_team VARCHAR)[/INST]SELECT venue FROM table_name_89 WHERE away_team = "south melbourne"</s> |
CREATE TABLE table_name_39 (played INTEGER, losses VARCHAR, goals_for VARCHAR, goals_against VARCHAR, wins VARCHAR) | SELECT AVG(played) FROM table_name_39 WHERE goals_against > 34 AND wins < 12 AND goals_for < 50 AND losses > 15 | Which Played has Goals against larger than 34, and Wins smaller than 12, and Goals for smaller than 50, and Losses larger than 15? | <s>[INST]Which Played has Goals against larger than 34, and Wins smaller than 12, and Goals for smaller than 50, and Losses larger than 15? Context: CREATE TABLE table_name_39 (played INTEGER, losses VARCHAR, goals_for VARCHAR, goals_against VARCHAR, wins VARCHAR)[/INST]SELECT AVG(played) FROM table_name_39 WHERE goals... |
CREATE TABLE table_29012710_1 (province VARCHAR, number_of_dairy_cows VARCHAR) | SELECT COUNT(province) FROM table_29012710_1 WHERE number_of_dairy_cows = 13000 | what is the most number where cattle is 13000 | <s>[INST]what is the most number where cattle is 13000 Context: CREATE TABLE table_29012710_1 (province VARCHAR, number_of_dairy_cows VARCHAR)[/INST]SELECT COUNT(province) FROM table_29012710_1 WHERE number_of_dairy_cows = 13000</s> |
CREATE TABLE table_2668243_22 (incumbent VARCHAR, district VARCHAR) | SELECT incumbent FROM table_2668243_22 WHERE district = "South Carolina 7" | Who was the "incumbent" of district south carolina 7? | <s>[INST]Who was the "incumbent" of district south carolina 7? Context: CREATE TABLE table_2668243_22 (incumbent VARCHAR, district VARCHAR)[/INST]SELECT incumbent FROM table_2668243_22 WHERE district = "South Carolina 7"</s> |
CREATE TABLE park (park_name VARCHAR, park_id VARCHAR); CREATE TABLE home_game (park_id VARCHAR, year VARCHAR, attendance VARCHAR) | SELECT T2.park_name FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 2008 ORDER BY T1.attendance DESC LIMIT 1 | Which park had most attendances in 2008? | <s>[INST]Which park had most attendances in 2008? Context: CREATE TABLE park (park_name VARCHAR, park_id VARCHAR); CREATE TABLE home_game (park_id VARCHAR, year VARCHAR, attendance VARCHAR)[/INST]SELECT T2.park_name FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 2008 ORDER BY T1.attenda... |
CREATE TABLE table_name_9 (venue VARCHAR, figures VARCHAR) | SELECT venue FROM table_name_9 WHERE figures = "5/29" | What is Venue, when Figures is 5/29? | <s>[INST]What is Venue, when Figures is 5/29? Context: CREATE TABLE table_name_9 (venue VARCHAR, figures VARCHAR)[/INST]SELECT venue FROM table_name_9 WHERE figures = "5/29"</s> |
CREATE TABLE table_name_88 (population VARCHAR, _number_of_phones_as__percentage_of_population VARCHAR) | SELECT population FROM table_name_88 WHERE _number_of_phones_as__percentage_of_population = 118 | How many people live where there are 118% of people have phones? | <s>[INST]How many people live where there are 118% of people have phones? Context: CREATE TABLE table_name_88 (population VARCHAR, _number_of_phones_as__percentage_of_population VARCHAR)[/INST]SELECT population FROM table_name_88 WHERE _number_of_phones_as__percentage_of_population = 118</s> |
CREATE TABLE table_name_23 (country VARCHAR, builder VARCHAR, ship VARCHAR) | SELECT country FROM table_name_23 WHERE builder = "karljohansverns verft" AND ship = "brage" | What country was Brage, built by karljohansverns verft, from? | <s>[INST]What country was Brage, built by karljohansverns verft, from? Context: CREATE TABLE table_name_23 (country VARCHAR, builder VARCHAR, ship VARCHAR)[/INST]SELECT country FROM table_name_23 WHERE builder = "karljohansverns verft" AND ship = "brage"</s> |
CREATE TABLE table_name_4 (rank VARCHAR, county VARCHAR) | SELECT rank FROM table_name_4 WHERE county = "cork" | What is cork's rank? | <s>[INST]What is cork's rank? Context: CREATE TABLE table_name_4 (rank VARCHAR, county VARCHAR)[/INST]SELECT rank FROM table_name_4 WHERE county = "cork"</s> |
CREATE TABLE table_name_93 (genre VARCHAR, network VARCHAR) | SELECT genre FROM table_name_93 WHERE network = "zee tv" | What Genre has the Network Zee TV? | <s>[INST]What Genre has the Network Zee TV? Context: CREATE TABLE table_name_93 (genre VARCHAR, network VARCHAR)[/INST]SELECT genre FROM table_name_93 WHERE network = "zee tv"</s> |
CREATE TABLE table_name_53 (rank__week_ INTEGER, rank__night_ VARCHAR, rating VARCHAR, viewers__millions_ VARCHAR) | SELECT AVG(rank__week_) FROM table_name_53 WHERE rating = 1.2 AND viewers__millions_ < 1.94 AND rank__night_ < 11 | What is the average week rank with 1.2 ratings, less than 1.94 million viewers, and a night rank less than 11? | <s>[INST]What is the average week rank with 1.2 ratings, less than 1.94 million viewers, and a night rank less than 11? Context: CREATE TABLE table_name_53 (rank__week_ INTEGER, rank__night_ VARCHAR, rating VARCHAR, viewers__millions_ VARCHAR)[/INST]SELECT AVG(rank__week_) FROM table_name_53 WHERE rating = 1.2 AND view... |
CREATE TABLE table_1756284_1 (bush_number INTEGER) | SELECT MAX(bush_number) FROM table_1756284_1 | What was the highest vote number for Bush? | <s>[INST]What was the highest vote number for Bush? Context: CREATE TABLE table_1756284_1 (bush_number INTEGER)[/INST]SELECT MAX(bush_number) FROM table_1756284_1</s> |
CREATE TABLE table_22050544_4 (elapsed_time VARCHAR, prize VARCHAR) | SELECT elapsed_time FROM table_22050544_4 WHERE prize = "$9,377.42" | What was the elapsed time for the championship that had $9,377.42 in prize money? | <s>[INST]What was the elapsed time for the championship that had $9,377.42 in prize money? Context: CREATE TABLE table_22050544_4 (elapsed_time VARCHAR, prize VARCHAR)[/INST]SELECT elapsed_time FROM table_22050544_4 WHERE prize = "$9,377.42"</s> |
CREATE TABLE table_name_79 (us_release VARCHAR, pages VARCHAR) | SELECT us_release FROM table_name_79 WHERE pages = "704" | Which US release has 704 pages? | <s>[INST]Which US release has 704 pages? Context: CREATE TABLE table_name_79 (us_release VARCHAR, pages VARCHAR)[/INST]SELECT us_release FROM table_name_79 WHERE pages = "704"</s> |
CREATE TABLE table_name_45 (race VARCHAR, round VARCHAR, date VARCHAR) | SELECT race FROM table_name_45 WHERE round < 8 AND date = "6 july" | What race was a round smaller than 8, on 6 july? | <s>[INST]What race was a round smaller than 8, on 6 july? Context: CREATE TABLE table_name_45 (race VARCHAR, round VARCHAR, date VARCHAR)[/INST]SELECT race FROM table_name_45 WHERE round < 8 AND date = "6 july"</s> |
CREATE TABLE table_11677691_1 (position VARCHAR, hometown VARCHAR) | SELECT position FROM table_11677691_1 WHERE hometown = "Jersey City, New Jersey" | What position did the player from Jersey City, New Jersey play? | <s>[INST]What position did the player from Jersey City, New Jersey play? Context: CREATE TABLE table_11677691_1 (position VARCHAR, hometown VARCHAR)[/INST]SELECT position FROM table_11677691_1 WHERE hometown = "Jersey City, New Jersey"</s> |
CREATE TABLE table_name_9 (score VARCHAR, location_attendance VARCHAR, high_rebounds VARCHAR) | SELECT score FROM table_name_9 WHERE location_attendance = "madison square garden unknown" AND high_rebounds = "sidney green (10)" | What is Score, when Location Attendance is "Madison Square Garden Unknown", and when High Rebounds is "Sidney Green (10)"? | <s>[INST]What is Score, when Location Attendance is "Madison Square Garden Unknown", and when High Rebounds is "Sidney Green (10)"? Context: CREATE TABLE table_name_9 (score VARCHAR, location_attendance VARCHAR, high_rebounds VARCHAR)[/INST]SELECT score FROM table_name_9 WHERE location_attendance = "madison square gard... |
CREATE TABLE table_2668374_13 (district VARCHAR, first_elected VARCHAR, incumbent VARCHAR) | SELECT COUNT(district) FROM table_2668374_13 WHERE first_elected = "1808" AND incumbent = "George Smith" | How many districts first elected someone in 1808 and had george smith as the incumbent? | <s>[INST]How many districts first elected someone in 1808 and had george smith as the incumbent? Context: CREATE TABLE table_2668374_13 (district VARCHAR, first_elected VARCHAR, incumbent VARCHAR)[/INST]SELECT COUNT(district) FROM table_2668374_13 WHERE first_elected = "1808" AND incumbent = "George Smith"</s> |
CREATE TABLE table_name_27 (to_par INTEGER, player VARCHAR, total VARCHAR) | SELECT MAX(to_par) FROM table_name_27 WHERE player = "justin leonard" AND total < 297 | What is the highest to par number for Justin Leonard when the total is less than 297? | <s>[INST]What is the highest to par number for Justin Leonard when the total is less than 297? Context: CREATE TABLE table_name_27 (to_par INTEGER, player VARCHAR, total VARCHAR)[/INST]SELECT MAX(to_par) FROM table_name_27 WHERE player = "justin leonard" AND total < 297</s> |
CREATE TABLE table_name_55 (country VARCHAR, format VARCHAR) | SELECT country FROM table_name_55 WHERE format = "lp" | What country that has LP as a format? | <s>[INST]What country that has LP as a format? Context: CREATE TABLE table_name_55 (country VARCHAR, format VARCHAR)[/INST]SELECT country FROM table_name_55 WHERE format = "lp"</s> |
CREATE TABLE table_name_3 (venue VARCHAR, home_team VARCHAR) | SELECT venue FROM table_name_3 WHERE home_team = "footscray" | Which Venue has Footscray as it's Home team? | <s>[INST]Which Venue has Footscray as it's Home team? Context: CREATE TABLE table_name_3 (venue VARCHAR, home_team VARCHAR)[/INST]SELECT venue FROM table_name_3 WHERE home_team = "footscray"</s> |
CREATE TABLE table_name_6 (year INTEGER, purse VARCHAR, time VARCHAR) | SELECT MIN(year) FROM table_name_6 WHERE purse = "$150,000" AND time = "1:49.00" | In what Year was the Purse $150,000 with a Time of 1:49.00? | <s>[INST]In what Year was the Purse $150,000 with a Time of 1:49.00? Context: CREATE TABLE table_name_6 (year INTEGER, purse VARCHAR, time VARCHAR)[/INST]SELECT MIN(year) FROM table_name_6 WHERE purse = "$150,000" AND time = "1:49.00"</s> |
CREATE TABLE table_name_11 (match VARCHAR, points VARCHAR) | SELECT match FROM table_name_11 WHERE points = 24 | What is the Match with Points that are 24? | <s>[INST]What is the Match with Points that are 24? Context: CREATE TABLE table_name_11 (match VARCHAR, points VARCHAR)[/INST]SELECT match FROM table_name_11 WHERE points = 24</s> |
CREATE TABLE table_2679061_4 (nationality VARCHAR, player VARCHAR) | SELECT nationality FROM table_2679061_4 WHERE player = "Bob Essensa" | What is the nationality of Bob Essensa? | <s>[INST]What is the nationality of Bob Essensa? Context: CREATE TABLE table_2679061_4 (nationality VARCHAR, player VARCHAR)[/INST]SELECT nationality FROM table_2679061_4 WHERE player = "Bob Essensa"</s> |
CREATE TABLE table_28654454_5 (reunion_bmi VARCHAR, contestant VARCHAR) | SELECT reunion_bmi FROM table_28654454_5 WHERE contestant = "Pinky" | What was pinky's bmi at the reunion? | <s>[INST]What was pinky's bmi at the reunion? Context: CREATE TABLE table_28654454_5 (reunion_bmi VARCHAR, contestant VARCHAR)[/INST]SELECT reunion_bmi FROM table_28654454_5 WHERE contestant = "Pinky"</s> |
CREATE TABLE table_272313_1 (aspect_ratio VARCHAR, vertical VARCHAR, pixel_aspect_ratio VARCHAR) | SELECT aspect_ratio FROM table_272313_1 WHERE vertical = 480 AND pixel_aspect_ratio = "1:1" | What was the aspect ratio if the vertical pixel is 480 and pixel aspect ratio is 1:1? | <s>[INST]What was the aspect ratio if the vertical pixel is 480 and pixel aspect ratio is 1:1? Context: CREATE TABLE table_272313_1 (aspect_ratio VARCHAR, vertical VARCHAR, pixel_aspect_ratio VARCHAR)[/INST]SELECT aspect_ratio FROM table_272313_1 WHERE vertical = 480 AND pixel_aspect_ratio = "1:1"</s> |
CREATE TABLE table_name_38 (diff INTEGER, played INTEGER) | SELECT SUM(diff) FROM table_name_38 WHERE played < 6 | What is the total difference for teams that played less than 6 games? | <s>[INST]What is the total difference for teams that played less than 6 games? Context: CREATE TABLE table_name_38 (diff INTEGER, played INTEGER)[/INST]SELECT SUM(diff) FROM table_name_38 WHERE played < 6</s> |
CREATE TABLE table_21350934_2 (result VARCHAR, attendance VARCHAR) | SELECT COUNT(result) FROM table_21350934_2 WHERE attendance = "14,381" | How many results have 14,381 as the attendance? | <s>[INST]How many results have 14,381 as the attendance? Context: CREATE TABLE table_21350934_2 (result VARCHAR, attendance VARCHAR)[/INST]SELECT COUNT(result) FROM table_21350934_2 WHERE attendance = "14,381"</s> |
CREATE TABLE table_23224961_1 (oberbayern_b VARCHAR, oberpfalz VARCHAR) | SELECT oberbayern_b FROM table_23224961_1 WHERE oberpfalz = "TuS Rosenberg" | When tus rosenberg is the oberpfalz what is the oberbayern b? | <s>[INST]When tus rosenberg is the oberpfalz what is the oberbayern b? Context: CREATE TABLE table_23224961_1 (oberbayern_b VARCHAR, oberpfalz VARCHAR)[/INST]SELECT oberbayern_b FROM table_23224961_1 WHERE oberpfalz = "TuS Rosenberg"</s> |
CREATE TABLE table_11959669_3 (high_rebounds VARCHAR, date VARCHAR) | SELECT high_rebounds FROM table_11959669_3 WHERE date = "November 4" | Who had the highest rebounds on November 4 | <s>[INST]Who had the highest rebounds on November 4 Context: CREATE TABLE table_11959669_3 (high_rebounds VARCHAR, date VARCHAR)[/INST]SELECT high_rebounds FROM table_11959669_3 WHERE date = "November 4"</s> |
CREATE TABLE table_name_93 (score VARCHAR, country VARCHAR) | SELECT score FROM table_name_93 WHERE country = "spain" | What was spain's score? | <s>[INST]What was spain's score? Context: CREATE TABLE table_name_93 (score VARCHAR, country VARCHAR)[/INST]SELECT score FROM table_name_93 WHERE country = "spain"</s> |
CREATE TABLE table_25800134_12 (director VARCHAR, airdate VARCHAR) | SELECT COUNT(director) FROM table_25800134_12 WHERE airdate = "February 5, 1968" | How many people directed the episode that aired on February 5, 1968? | <s>[INST]How many people directed the episode that aired on February 5, 1968? Context: CREATE TABLE table_25800134_12 (director VARCHAR, airdate VARCHAR)[/INST]SELECT COUNT(director) FROM table_25800134_12 WHERE airdate = "February 5, 1968"</s> |
CREATE TABLE table_name_47 (result VARCHAR, competition VARCHAR, venue VARCHAR) | SELECT result FROM table_name_47 WHERE competition = "friendly match" AND venue = "seoul" | What is the result of the friendly match in Seoul? | <s>[INST]What is the result of the friendly match in Seoul? Context: CREATE TABLE table_name_47 (result VARCHAR, competition VARCHAR, venue VARCHAR)[/INST]SELECT result FROM table_name_47 WHERE competition = "friendly match" AND venue = "seoul"</s> |
CREATE TABLE table_1566848_6 (centerfold_model VARCHAR) | SELECT 20 AS _questions FROM table_1566848_6 WHERE centerfold_model = "Cherie Witter" | Name the 20 questions when centerfold model is cherie witter | <s>[INST]Name the 20 questions when centerfold model is cherie witter Context: CREATE TABLE table_1566848_6 (centerfold_model VARCHAR)[/INST]SELECT 20 AS _questions FROM table_1566848_6 WHERE centerfold_model = "Cherie Witter"</s> |
CREATE TABLE table_21313327_1 (us_viewers__millions_ VARCHAR, written_by VARCHAR) | SELECT us_viewers__millions_ FROM table_21313327_1 WHERE written_by = "Brad Kern" | when the writer is Brad Kern, how many u.s viewers (in millions) had the episode? | <s>[INST]when the writer is Brad Kern, how many u.s viewers (in millions) had the episode? Context: CREATE TABLE table_21313327_1 (us_viewers__millions_ VARCHAR, written_by VARCHAR)[/INST]SELECT us_viewers__millions_ FROM table_21313327_1 WHERE written_by = "Brad Kern"</s> |
CREATE TABLE table_20871703_1 (college VARCHAR, position VARCHAR) | SELECT college FROM table_20871703_1 WHERE position = "FB" | Which college has fb as the position? | <s>[INST]Which college has fb as the position? Context: CREATE TABLE table_20871703_1 (college VARCHAR, position VARCHAR)[/INST]SELECT college FROM table_20871703_1 WHERE position = "FB"</s> |
CREATE TABLE table_name_18 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_18 WHERE home_team = "sheffield united" | Who was the away team against the home team Sheffield United? | <s>[INST]Who was the away team against the home team Sheffield United? Context: CREATE TABLE table_name_18 (away_team VARCHAR, home_team VARCHAR)[/INST]SELECT away_team FROM table_name_18 WHERE home_team = "sheffield united"</s> |
CREATE TABLE table_name_58 (best INTEGER, team VARCHAR, qual_2 VARCHAR) | SELECT MAX(best) FROM table_name_58 WHERE team = "rusport" AND qual_2 = "1:10.166" | What is the best time for a rusport driver with a qual 2 time of 1:10.166? | <s>[INST]What is the best time for a rusport driver with a qual 2 time of 1:10.166? Context: CREATE TABLE table_name_58 (best INTEGER, team VARCHAR, qual_2 VARCHAR)[/INST]SELECT MAX(best) FROM table_name_58 WHERE team = "rusport" AND qual_2 = "1:10.166"</s> |
CREATE TABLE Customers (customer_first_name VARCHAR, customer_id VARCHAR); CREATE TABLE Accounts (customer_id VARCHAR) | SELECT T2.customer_first_name, T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING COUNT(*) >= 2 | Show first name and id for all customers with at least 2 accounts. | <s>[INST]Show first name and id for all customers with at least 2 accounts. Context: CREATE TABLE Customers (customer_first_name VARCHAR, customer_id VARCHAR); CREATE TABLE Accounts (customer_id VARCHAR)[/INST]SELECT T2.customer_first_name, T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.... |
CREATE TABLE table_171748_3 (change_over_same_quarter_the_previous_year VARCHAR, _percentage_trains_arriving_within_5_mins_of_scheduled_time__over_three_months_ VARCHAR) | SELECT change_over_same_quarter_the_previous_year FROM table_171748_3 WHERE _percentage_trains_arriving_within_5_mins_of_scheduled_time__over_three_months_ = "89.6%" | What's the change over same quarter the previous year in the period when the 89.6% of the trains arrive within 5 minutes of scheduled time (over three months)? | <s>[INST]What's the change over same quarter the previous year in the period when the 89.6% of the trains arrive within 5 minutes of scheduled time (over three months)? Context: CREATE TABLE table_171748_3 (change_over_same_quarter_the_previous_year VARCHAR, _percentage_trains_arriving_within_5_mins_of_scheduled_time__... |
CREATE TABLE table_name_95 (civilian_deaths VARCHAR, total_casualties VARCHAR) | SELECT civilian_deaths FROM table_name_95 WHERE total_casualties = "1,130" | How many civilians died in the conflict that had a total of 1,130 casualties? | <s>[INST]How many civilians died in the conflict that had a total of 1,130 casualties? Context: CREATE TABLE table_name_95 (civilian_deaths VARCHAR, total_casualties VARCHAR)[/INST]SELECT civilian_deaths FROM table_name_95 WHERE total_casualties = "1,130"</s> |
CREATE TABLE Student_Course_Enrolment (date_of_enrolment VARCHAR, course_id VARCHAR); CREATE TABLE Courses (course_id VARCHAR, course_name VARCHAR) | SELECT T2.date_of_enrolment FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = "Spanish" | What is the date of enrollment of the course named "Spanish"? | <s>[INST]What is the date of enrollment of the course named "Spanish"? Context: CREATE TABLE Student_Course_Enrolment (date_of_enrolment VARCHAR, course_id VARCHAR); CREATE TABLE Courses (course_id VARCHAR, course_name VARCHAR)[/INST]SELECT T2.date_of_enrolment FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON ... |
CREATE TABLE debate_people (Name VARCHAR, People_id VARCHAR, Affirmative VARCHAR); CREATE TABLE people (Name VARCHAR, People_id VARCHAR, Affirmative VARCHAR) | SELECT Name FROM people WHERE NOT People_id IN (SELECT Affirmative FROM debate_people) | List the names of people that have not been on the affirmative side of debates. | <s>[INST]List the names of people that have not been on the affirmative side of debates. Context: CREATE TABLE debate_people (Name VARCHAR, People_id VARCHAR, Affirmative VARCHAR); CREATE TABLE people (Name VARCHAR, People_id VARCHAR, Affirmative VARCHAR)[/INST]SELECT Name FROM people WHERE NOT People_id IN (SELECT Aff... |
CREATE TABLE table_1341472_11 (candidates VARCHAR, incumbent VARCHAR) | SELECT candidates FROM table_1341472_11 WHERE incumbent = "Sam Gibbons" | List all the candidates for the seat where the incumbent is Sam Gibbons? | <s>[INST]List all the candidates for the seat where the incumbent is Sam Gibbons? Context: CREATE TABLE table_1341472_11 (candidates VARCHAR, incumbent VARCHAR)[/INST]SELECT candidates FROM table_1341472_11 WHERE incumbent = "Sam Gibbons"</s> |
CREATE TABLE table_27986200_3 (proceed_to_quarter_final VARCHAR, points_margin VARCHAR) | SELECT proceed_to_quarter_final FROM table_27986200_3 WHERE points_margin = 21 | Who proceeded to the quarter finals with a points margin of 21? | <s>[INST]Who proceeded to the quarter finals with a points margin of 21? Context: CREATE TABLE table_27986200_3 (proceed_to_quarter_final VARCHAR, points_margin VARCHAR)[/INST]SELECT proceed_to_quarter_final FROM table_27986200_3 WHERE points_margin = 21</s> |
CREATE TABLE table_name_42 (points INTEGER, chassis VARCHAR, stage_wins VARCHAR) | SELECT MAX(points) FROM table_name_42 WHERE chassis = "focus rs wrc 08 and 09" AND stage_wins > 91 | what is the highest points when the chassis is focus rs wrc 08 and 09 and the stage wins is more than 91? | <s>[INST]what is the highest points when the chassis is focus rs wrc 08 and 09 and the stage wins is more than 91? Context: CREATE TABLE table_name_42 (points INTEGER, chassis VARCHAR, stage_wins VARCHAR)[/INST]SELECT MAX(points) FROM table_name_42 WHERE chassis = "focus rs wrc 08 and 09" AND stage_wins > 91</s> |
CREATE TABLE table_name_31 (opponent VARCHAR, week VARCHAR, result VARCHAR) | SELECT opponent FROM table_name_31 WHERE week > 1 AND result = "l 21-20" | What is the opponent in a week larger than 1, with a result of l 21-20? | <s>[INST]What is the opponent in a week larger than 1, with a result of l 21-20? Context: CREATE TABLE table_name_31 (opponent VARCHAR, week VARCHAR, result VARCHAR)[/INST]SELECT opponent FROM table_name_31 WHERE week > 1 AND result = "l 21-20"</s> |
CREATE TABLE table_name_5 (gold INTEGER, nation VARCHAR, silver VARCHAR) | SELECT SUM(gold) FROM table_name_5 WHERE nation = "lithuania" AND silver < 2 | What is the gold total for lithuania with under 2 silvers? | <s>[INST]What is the gold total for lithuania with under 2 silvers? Context: CREATE TABLE table_name_5 (gold INTEGER, nation VARCHAR, silver VARCHAR)[/INST]SELECT SUM(gold) FROM table_name_5 WHERE nation = "lithuania" AND silver < 2</s> |
CREATE TABLE table_name_68 (outlet VARCHAR, in_state_area VARCHAR) | SELECT outlet FROM table_name_68 WHERE in_state_area = "055 1,497km 2 578mi 2" | What outlet has and in-state area of 055 1,497km 2 578mi 2? | <s>[INST]What outlet has and in-state area of 055 1,497km 2 578mi 2? Context: CREATE TABLE table_name_68 (outlet VARCHAR, in_state_area VARCHAR)[/INST]SELECT outlet FROM table_name_68 WHERE in_state_area = "055 1,497km 2 578mi 2"</s> |
CREATE TABLE table_20866024_4 (gvw__kg_ton_ VARCHAR, model_designation VARCHAR) | SELECT gvw__kg_ton_ FROM table_20866024_4 WHERE model_designation = "97H00" | What is the GVW for model 97H00? | <s>[INST]What is the GVW for model 97H00? Context: CREATE TABLE table_20866024_4 (gvw__kg_ton_ VARCHAR, model_designation VARCHAR)[/INST]SELECT gvw__kg_ton_ FROM table_20866024_4 WHERE model_designation = "97H00"</s> |
CREATE TABLE branch (city VARCHAR, membership_amount INTEGER) | SELECT city FROM branch EXCEPT SELECT city FROM branch WHERE membership_amount > 100 | Show all cities without a branch having more than 100 memberships. | <s>[INST]Show all cities without a branch having more than 100 memberships. Context: CREATE TABLE branch (city VARCHAR, membership_amount INTEGER)[/INST]SELECT city FROM branch EXCEPT SELECT city FROM branch WHERE membership_amount > 100</s> |
CREATE TABLE table_name_18 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_18 WHERE date = "october 9, 1966" | Who was the game played against on October 9, 1966? | <s>[INST]Who was the game played against on October 9, 1966? Context: CREATE TABLE table_name_18 (opponent VARCHAR, date VARCHAR)[/INST]SELECT opponent FROM table_name_18 WHERE date = "october 9, 1966"</s> |
CREATE TABLE table_17080868_8 (record VARCHAR, high_points VARCHAR) | SELECT record FROM table_17080868_8 WHERE high_points = "Corey Maggette (25)" | All high points were record by corey maggette (25). | <s>[INST]All high points were record by corey maggette (25). Context: CREATE TABLE table_17080868_8 (record VARCHAR, high_points VARCHAR)[/INST]SELECT record FROM table_17080868_8 WHERE high_points = "Corey Maggette (25)"</s> |
CREATE TABLE table_name_96 (home VARCHAR, date VARCHAR) | SELECT home FROM table_name_96 WHERE date = "march 13" | On the Date of March 13, who was the Home team? | <s>[INST]On the Date of March 13, who was the Home team? Context: CREATE TABLE table_name_96 (home VARCHAR, date VARCHAR)[/INST]SELECT home FROM table_name_96 WHERE date = "march 13"</s> |
CREATE TABLE table_name_72 (uk_broadcast_date VARCHAR, presenter VARCHAR) | SELECT uk_broadcast_date FROM table_name_72 WHERE presenter = "chris bonington" | What is the UK broadcast date of the episode where Chris Bonington was the presenter? | <s>[INST]What is the UK broadcast date of the episode where Chris Bonington was the presenter? Context: CREATE TABLE table_name_72 (uk_broadcast_date VARCHAR, presenter VARCHAR)[/INST]SELECT uk_broadcast_date FROM table_name_72 WHERE presenter = "chris bonington"</s> |
CREATE TABLE table_name_81 (category VARCHAR, nominee VARCHAR) | SELECT category FROM table_name_81 WHERE nominee = "carmen salinas" | In what category is Carmen Salinas nominated? | <s>[INST]In what category is Carmen Salinas nominated? Context: CREATE TABLE table_name_81 (category VARCHAR, nominee VARCHAR)[/INST]SELECT category FROM table_name_81 WHERE nominee = "carmen salinas"</s> |
CREATE TABLE table_name_50 (Id VARCHAR) | SELECT 2009 FROM table_name_50 WHERE 2011 = "a" | Can you tell me the 2009 that has the 2011 of A? | <s>[INST]Can you tell me the 2009 that has the 2011 of A? Context: CREATE TABLE table_name_50 (Id VARCHAR)[/INST]SELECT 2009 FROM table_name_50 WHERE 2011 = "a"</s> |
CREATE TABLE enzyme (name VARCHAR, location VARCHAR, product VARCHAR, id VARCHAR); CREATE TABLE medicine_enzyme_interaction (enzyme_id VARCHAR, interaction_type VARCHAR) | SELECT DISTINCT T1.name, T1.location, T1.product FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.enzyme_id = T1.id WHERE T2.interaction_type = 'inhibitor' | What are the distinct name, location and products of the enzymes which has any 'inhibitor' interaction? | <s>[INST]What are the distinct name, location and products of the enzymes which has any 'inhibitor' interaction? Context: CREATE TABLE enzyme (name VARCHAR, location VARCHAR, product VARCHAR, id VARCHAR); CREATE TABLE medicine_enzyme_interaction (enzyme_id VARCHAR, interaction_type VARCHAR)[/INST]SELECT DISTINCT T1.nam... |
CREATE TABLE table_name_98 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_98 WHERE date = "january 3, 2005" | What score has january 3, 2005 as the date? | <s>[INST]What score has january 3, 2005 as the date? Context: CREATE TABLE table_name_98 (score VARCHAR, date VARCHAR)[/INST]SELECT score FROM table_name_98 WHERE date = "january 3, 2005"</s> |
CREATE TABLE table_name_96 (population INTEGER, county VARCHAR, number_of_households VARCHAR) | SELECT MAX(population) FROM table_name_96 WHERE county = "baraga" AND number_of_households < 3 OFFSET 444 | What is the highest population for Baraga County with less than 3,444 households? | <s>[INST]What is the highest population for Baraga County with less than 3,444 households? Context: CREATE TABLE table_name_96 (population INTEGER, county VARCHAR, number_of_households VARCHAR)[/INST]SELECT MAX(population) FROM table_name_96 WHERE county = "baraga" AND number_of_households < 3 OFFSET 444</s> |
CREATE TABLE table_name_93 (trainer VARCHAR, odds VARCHAR, post VARCHAR) | SELECT trainer FROM table_name_93 WHERE odds > 36 AND post = 11 | Who trained the horse on post 11 with over 36 odds? | <s>[INST]Who trained the horse on post 11 with over 36 odds? Context: CREATE TABLE table_name_93 (trainer VARCHAR, odds VARCHAR, post VARCHAR)[/INST]SELECT trainer FROM table_name_93 WHERE odds > 36 AND post = 11</s> |
CREATE TABLE table_name_70 (points INTEGER, touchdowns VARCHAR, extra_points VARCHAR) | SELECT SUM(points) FROM table_name_70 WHERE touchdowns > 0 AND extra_points < 0 | Which Points have Touchdowns larger than 0, and an Extra points smaller than 0? | <s>[INST]Which Points have Touchdowns larger than 0, and an Extra points smaller than 0? Context: CREATE TABLE table_name_70 (points INTEGER, touchdowns VARCHAR, extra_points VARCHAR)[/INST]SELECT SUM(points) FROM table_name_70 WHERE touchdowns > 0 AND extra_points < 0</s> |
CREATE TABLE table_name_29 (location_attendance VARCHAR, date VARCHAR) | SELECT location_attendance FROM table_name_29 WHERE date = "dec 2" | What was the Location/Attendance on Dec 2? | <s>[INST]What was the Location/Attendance on Dec 2? Context: CREATE TABLE table_name_29 (location_attendance VARCHAR, date VARCHAR)[/INST]SELECT location_attendance FROM table_name_29 WHERE date = "dec 2"</s> |
CREATE TABLE table_27615896_18 (new_points VARCHAR, rk VARCHAR) | SELECT new_points FROM table_27615896_18 WHERE rk = 26 | How many new points were earned by rk 26? | <s>[INST]How many new points were earned by rk 26? Context: CREATE TABLE table_27615896_18 (new_points VARCHAR, rk VARCHAR)[/INST]SELECT new_points FROM table_27615896_18 WHERE rk = 26</s> |
CREATE TABLE table_name_46 (area_served VARCHAR, on_air_id VARCHAR) | SELECT area_served FROM table_name_46 WHERE on_air_id = "abc canberra" | Name the area served for on-air ID of abc canberra | <s>[INST]Name the area served for on-air ID of abc canberra Context: CREATE TABLE table_name_46 (area_served VARCHAR, on_air_id VARCHAR)[/INST]SELECT area_served FROM table_name_46 WHERE on_air_id = "abc canberra"</s> |
CREATE TABLE table_name_31 (election INTEGER, party VARCHAR, province VARCHAR) | SELECT AVG(election) FROM table_name_31 WHERE party = "liga veneta" AND province = "vicenza" | What is the average election for vicenza province with the liga veneta party? | <s>[INST]What is the average election for vicenza province with the liga veneta party? Context: CREATE TABLE table_name_31 (election INTEGER, party VARCHAR, province VARCHAR)[/INST]SELECT AVG(election) FROM table_name_31 WHERE party = "liga veneta" AND province = "vicenza"</s> |
CREATE TABLE table_name_63 (roll INTEGER, decile VARCHAR, area VARCHAR, name VARCHAR) | SELECT SUM(roll) FROM table_name_63 WHERE area = "raetihi" AND name = "orautoha school" AND decile < 8 | What is the roll number of Orautoha school in Raetihi, which has a decile smaller than 8? | <s>[INST]What is the roll number of Orautoha school in Raetihi, which has a decile smaller than 8? Context: CREATE TABLE table_name_63 (roll INTEGER, decile VARCHAR, area VARCHAR, name VARCHAR)[/INST]SELECT SUM(roll) FROM table_name_63 WHERE area = "raetihi" AND name = "orautoha school" AND decile < 8</s> |
CREATE TABLE has_pet (stuid VARCHAR, petid VARCHAR); CREATE TABLE student (fname VARCHAR, age VARCHAR, stuid VARCHAR); CREATE TABLE pets (petid VARCHAR, pettype VARCHAR) | SELECT T1.fname, T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'dog' AND NOT T1.stuid IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat') | Find the first name and age of students who have a dog but do not have a cat as a pet. | <s>[INST]Find the first name and age of students who have a dog but do not have a cat as a pet. Context: CREATE TABLE has_pet (stuid VARCHAR, petid VARCHAR); CREATE TABLE student (fname VARCHAR, age VARCHAR, stuid VARCHAR); CREATE TABLE pets (petid VARCHAR, pettype VARCHAR)[/INST]SELECT T1.fname, T1.age FROM student AS... |
CREATE TABLE table_17103729_8 (record VARCHAR, location_attendance VARCHAR) | SELECT record FROM table_17103729_8 WHERE location_attendance = "Palace of Auburn Hills 15,210" | Name the record for attendance location of palace of auburn hills 15,210 | <s>[INST]Name the record for attendance location of palace of auburn hills 15,210 Context: CREATE TABLE table_17103729_8 (record VARCHAR, location_attendance VARCHAR)[/INST]SELECT record FROM table_17103729_8 WHERE location_attendance = "Palace of Auburn Hills 15,210"</s> |
CREATE TABLE Video_games (Id VARCHAR) | SELECT COUNT(*) FROM Video_games | How many video games exist? | <s>[INST]How many video games exist? Context: CREATE TABLE Video_games (Id VARCHAR)[/INST]SELECT COUNT(*) FROM Video_games</s> |
CREATE TABLE table_name_79 (wins VARCHAR, tournament VARCHAR, top_25 VARCHAR) | SELECT COUNT(wins) FROM table_name_79 WHERE tournament = "u.s. open" AND top_25 < 4 | What is the number of Tournament of U.S. Open wins with a Top-25 smaller than 4? | <s>[INST]What is the number of Tournament of U.S. Open wins with a Top-25 smaller than 4? Context: CREATE TABLE table_name_79 (wins VARCHAR, tournament VARCHAR, top_25 VARCHAR)[/INST]SELECT COUNT(wins) FROM table_name_79 WHERE tournament = "u.s. open" AND top_25 < 4</s> |
CREATE TABLE table_name_1 (place VARCHAR, player VARCHAR, score VARCHAR) | SELECT place FROM table_name_1 WHERE score = 70 - 68 = 138 AND player = "andrew magee" | What is Place, when Score is "70-68=138", and when Player is "Andrew Magee"? | <s>[INST]What is Place, when Score is "70-68=138", and when Player is "Andrew Magee"? Context: CREATE TABLE table_name_1 (place VARCHAR, player VARCHAR, score VARCHAR)[/INST]SELECT place FROM table_name_1 WHERE score = 70 - 68 = 138 AND player = "andrew magee"</s> |
CREATE TABLE table_name_80 (games INTEGER, points VARCHAR, lost VARCHAR) | SELECT AVG(games) FROM table_name_80 WHERE points = 6 AND lost < 2 | What is the average number of games associated with 6 points and under 2 losses? | <s>[INST]What is the average number of games associated with 6 points and under 2 losses? Context: CREATE TABLE table_name_80 (games INTEGER, points VARCHAR, lost VARCHAR)[/INST]SELECT AVG(games) FROM table_name_80 WHERE points = 6 AND lost < 2</s> |
CREATE TABLE table_22654073_6 (team VARCHAR, record VARCHAR) | SELECT team FROM table_22654073_6 WHERE record = "3-2" | Name the team for record 3-2 | <s>[INST]Name the team for record 3-2 Context: CREATE TABLE table_22654073_6 (team VARCHAR, record VARCHAR)[/INST]SELECT team FROM table_22654073_6 WHERE record = "3-2"</s> |
CREATE TABLE table_name_4 (frequency VARCHAR, part_number_s_ VARCHAR, i_o_bus VARCHAR, voltage VARCHAR) | SELECT frequency FROM table_name_4 WHERE i_o_bus = "dmi" AND voltage = "0.725–1.4v" AND part_number_s_ = "cn80617004458ab" | What is the frequency for I/O bus of DMI, voltage of 0.725–1.4v and part cn80617004458ab? | <s>[INST]What is the frequency for I/O bus of DMI, voltage of 0.725–1.4v and part cn80617004458ab? Context: CREATE TABLE table_name_4 (frequency VARCHAR, part_number_s_ VARCHAR, i_o_bus VARCHAR, voltage VARCHAR)[/INST]SELECT frequency FROM table_name_4 WHERE i_o_bus = "dmi" AND voltage = "0.725–1.4v" AND part_number_s_... |
CREATE TABLE table_name_66 (points VARCHAR, skipper VARCHAR) | SELECT points FROM table_name_66 WHERE skipper = "james allen" | What points has james allen as the skipper? | <s>[INST]What points has james allen as the skipper? Context: CREATE TABLE table_name_66 (points VARCHAR, skipper VARCHAR)[/INST]SELECT points FROM table_name_66 WHERE skipper = "james allen"</s> |
CREATE TABLE table_name_44 (location VARCHAR, date VARCHAR) | SELECT location FROM table_name_44 WHERE date = "1931-02-02" | Which Location has a Date of 1931-02-02? | <s>[INST]Which Location has a Date of 1931-02-02? Context: CREATE TABLE table_name_44 (location VARCHAR, date VARCHAR)[/INST]SELECT location FROM table_name_44 WHERE date = "1931-02-02"</s> |
CREATE TABLE table_name_83 (result VARCHAR, date VARCHAR) | SELECT result FROM table_name_83 WHERE date = "november 16, 1969" | What was the game result on November 16, 1969? | <s>[INST]What was the game result on November 16, 1969? Context: CREATE TABLE table_name_83 (result VARCHAR, date VARCHAR)[/INST]SELECT result FROM table_name_83 WHERE date = "november 16, 1969"</s> |
CREATE TABLE table_name_72 (first_match VARCHAR, final_position___round VARCHAR) | SELECT first_match FROM table_name_72 WHERE final_position___round = "third qualifying round" | Which first match had a final position/round in the third qualifying round? | <s>[INST]Which first match had a final position/round in the third qualifying round? Context: CREATE TABLE table_name_72 (first_match VARCHAR, final_position___round VARCHAR)[/INST]SELECT first_match FROM table_name_72 WHERE final_position___round = "third qualifying round"</s> |
CREATE TABLE table_name_87 (team VARCHAR, year VARCHAR, start VARCHAR) | SELECT team FROM table_name_87 WHERE year > 1998 AND start = "dnq" | What team is after 1998 with a start of dnq? | <s>[INST]What team is after 1998 with a start of dnq? Context: CREATE TABLE table_name_87 (team VARCHAR, year VARCHAR, start VARCHAR)[/INST]SELECT team FROM table_name_87 WHERE year > 1998 AND start = "dnq"</s> |
CREATE TABLE table_18018248_2 (games_played INTEGER, loses VARCHAR) | SELECT MIN(games_played) FROM table_18018248_2 WHERE loses = 21 | What is the least amount of games played with 21 losses? | <s>[INST]What is the least amount of games played with 21 losses? Context: CREATE TABLE table_18018248_2 (games_played INTEGER, loses VARCHAR)[/INST]SELECT MIN(games_played) FROM table_18018248_2 WHERE loses = 21</s> |
CREATE TABLE table_name_99 (game INTEGER, date VARCHAR) | SELECT MAX(game) FROM table_name_99 WHERE date = "january 5" | What is the highest game that has January 5 as the date? | <s>[INST]What is the highest game that has January 5 as the date? Context: CREATE TABLE table_name_99 (game INTEGER, date VARCHAR)[/INST]SELECT MAX(game) FROM table_name_99 WHERE date = "january 5"</s> |
CREATE TABLE table_name_86 (surface VARCHAR, opponent VARCHAR) | SELECT surface FROM table_name_86 WHERE opponent = "adrian ungur" | What was the surface for Adrian Ungur as an opponent? | <s>[INST]What was the surface for Adrian Ungur as an opponent? Context: CREATE TABLE table_name_86 (surface VARCHAR, opponent VARCHAR)[/INST]SELECT surface FROM table_name_86 WHERE opponent = "adrian ungur"</s> |
CREATE TABLE table_name_43 (kaz_hayashi VARCHAR, block_a VARCHAR) | SELECT kaz_hayashi FROM table_name_43 WHERE block_a = "bushi" | Name the kaz hayashi for block A being bushi | <s>[INST]Name the kaz hayashi for block A being bushi Context: CREATE TABLE table_name_43 (kaz_hayashi VARCHAR, block_a VARCHAR)[/INST]SELECT kaz_hayashi FROM table_name_43 WHERE block_a = "bushi"</s> |
CREATE TABLE table_name_59 (score VARCHAR, host_city VARCHAR) | SELECT score FROM table_name_59 WHERE host_city = "kėdainiai" | What is the score of the season in the host city kėdainiai? | <s>[INST]What is the score of the season in the host city kėdainiai? Context: CREATE TABLE table_name_59 (score VARCHAR, host_city VARCHAR)[/INST]SELECT score FROM table_name_59 WHERE host_city = "kėdainiai"</s> |
CREATE TABLE table_1638437_2 (pinyin VARCHAR, area VARCHAR) | SELECT pinyin FROM table_1638437_2 WHERE area = "487" | Name the pinyin for 487 area | <s>[INST]Name the pinyin for 487 area Context: CREATE TABLE table_1638437_2 (pinyin VARCHAR, area VARCHAR)[/INST]SELECT pinyin FROM table_1638437_2 WHERE area = "487"</s> |
CREATE TABLE table_name_56 (position VARCHAR, home_town VARCHAR) | SELECT position FROM table_name_56 WHERE home_town = "new york city, ny" | What is the position of the player from New York City, NY? | <s>[INST]What is the position of the player from New York City, NY? Context: CREATE TABLE table_name_56 (position VARCHAR, home_town VARCHAR)[/INST]SELECT position FROM table_name_56 WHERE home_town = "new york city, ny"</s> |
CREATE TABLE table_name_95 (rank INTEGER, total VARCHAR, silver VARCHAR) | SELECT SUM(rank) FROM table_name_95 WHERE total = 11 AND silver > 4 | What is the rank of the team with 11 total medals and more than 4 silver medals has? | <s>[INST]What is the rank of the team with 11 total medals and more than 4 silver medals has? Context: CREATE TABLE table_name_95 (rank INTEGER, total VARCHAR, silver VARCHAR)[/INST]SELECT SUM(rank) FROM table_name_95 WHERE total = 11 AND silver > 4</s> |
CREATE TABLE table_25246990_5 (original_us_air_date VARCHAR, directed_by VARCHAR) | SELECT original_us_air_date FROM table_25246990_5 WHERE directed_by = "Julian Petrillo" | What was the original U.S. air date of the episode directed by Julian Petrillo? | <s>[INST]What was the original U.S. air date of the episode directed by Julian Petrillo? Context: CREATE TABLE table_25246990_5 (original_us_air_date VARCHAR, directed_by VARCHAR)[/INST]SELECT original_us_air_date FROM table_25246990_5 WHERE directed_by = "Julian Petrillo"</s> |
CREATE TABLE table_1368649_9 (spokesperson VARCHAR, year_s_ VARCHAR) | SELECT spokesperson FROM table_1368649_9 WHERE year_s_ = 1970 | Who was the spokesperson for France in 1970? | <s>[INST]Who was the spokesperson for France in 1970? Context: CREATE TABLE table_1368649_9 (spokesperson VARCHAR, year_s_ VARCHAR)[/INST]SELECT spokesperson FROM table_1368649_9 WHERE year_s_ = 1970</s> |
CREATE TABLE table_name_10 (home_team VARCHAR, score VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_10 WHERE score = "2–1" AND away_team = "telford united" | What home team has a score of 2–1, when the away team was Telford United? | <s>[INST]What home team has a score of 2–1, when the away team was Telford United? Context: CREATE TABLE table_name_10 (home_team VARCHAR, score VARCHAR, away_team VARCHAR)[/INST]SELECT home_team FROM table_name_10 WHERE score = "2–1" AND away_team = "telford united"</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.