inputs
stringlengths
400
1.34k
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many bronzes for Iceland with over 2 silvers? ### Context: CREATE TABLE table_name_53 (bronze INTEGER, silver VARCHAR, nation VARCHAR) ### Response: ### Response: SELECT AVG(bronze) FROM table_name_53 WHERE silver > 2 AND nation = "iceland"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What happened when the new points was 1705? ### Context: CREATE TABLE table_20855452_4 (status VARCHAR, new_points VARCHAR) ### Response: ### Response: SELECT status FROM table_20855452_4 WHERE new_points = 1705</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What country has an Elevation less than 1833 and an Isolation (km) larger than 18, and a Peak of store lenangstind? ### Context: CREATE TABLE table_name_64 (county VARCHAR, peak VARCHAR, elevation__m_ VARCHAR, isolation__km_ VARCHAR) ### Response: ### Response: SELECT county FROM table_name_64 WHERE elevation__m_ < 1833 AND isolation__km_ > 18 AND peak = "store lenangstind"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Republican seat plurality of the state with a ratio of 12/4 Republicans to Democrats? ### Context: CREATE TABLE table_name_30 (republican_seat_plurality VARCHAR, republican__democratic VARCHAR) ### Response: ### Response: SELECT republican_seat_plurality FROM table_name_30 WHERE republican__democratic = "12/4"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the state class for iowa admitted to the union december 28, 1846 ### Context: CREATE TABLE table_225205_3 (state__class_ VARCHAR, reason_for_change VARCHAR) ### Response: ### Response: SELECT state__class_ FROM table_225205_3 WHERE reason_for_change = "Iowa admitted to the Union December 28, 1846"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many seasons was the rank equal to #50? ### Context: CREATE TABLE table_2669287_1 (season VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT COUNT(season) FROM table_2669287_1 WHERE rank = "#50"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Comparative has a Link of sourcecode webserver? ### Context: CREATE TABLE table_name_43 (comparative VARCHAR, link VARCHAR) ### Response: ### Response: SELECT comparative FROM table_name_43 WHERE link = "sourcecode webserver"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the home team when VFL played at Windy Hill? ### Context: CREATE TABLE table_name_16 (home_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_16 WHERE venue = "windy hill"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average lane that is called rebecca brown? ### Context: CREATE TABLE table_name_88 (lane INTEGER, name VARCHAR) ### Response: ### Response: SELECT AVG(lane) FROM table_name_88 WHERE name = "rebecca brown"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Conference Finals has a Seed of † denotes division championship? ### Context: CREATE TABLE table_name_32 (conference_finals VARCHAR, seed VARCHAR) ### Response: ### Response: SELECT conference_finals FROM table_name_32 WHERE seed = "† denotes division championship"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Tell me the total number of prom for height less than 615 ### Context: CREATE TABLE table_name_59 (prom__m_ VARCHAR, height__m_ INTEGER) ### Response: ### Response: SELECT COUNT(prom__m_) FROM table_name_59 WHERE height__m_ < 615</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Find the average credit score of the customers who have some loan. ### Context: CREATE TABLE loan (credit_score INTEGER, cust_id VARCHAR); CREATE TABLE customer (credit_score INTEGER, cust_id VARCHAR) ### Response: ### Response: SELECT AVG(credit_score) FROM customer WHERE cust_id IN (SELECT cust_id FROM loan)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average week of the game on November 22, 1964 attended by 48,065? ### Context: CREATE TABLE table_name_53 (week INTEGER, date VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT AVG(week) FROM table_name_53 WHERE date = "november 22, 1964" AND attendance > 48 OFFSET 065</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the record at the neutral site for when the overall record is ui, 27-16? ### Context: CREATE TABLE table_16201038_4 (at_neutral_site VARCHAR, overall_record VARCHAR) ### Response: ### Response: SELECT at_neutral_site FROM table_16201038_4 WHERE overall_record = "UI, 27-16"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the venue when David Jacobs was the host? ### Context: CREATE TABLE table_name_30 (venue VARCHAR, semi_final_heat_host VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_30 WHERE semi_final_heat_host = "david jacobs"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: which player is from georgia ### Context: CREATE TABLE table_10015132_7 (player VARCHAR, school_club_team VARCHAR) ### Response: ### Response: SELECT player FROM table_10015132_7 WHERE school_club_team = "Georgia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What opponent had an attendance of 10,089? ### Context: CREATE TABLE table_name_11 (opponent VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_11 WHERE attendance = "10,089"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many bronze medals for the nation with over 9 golds? ### Context: CREATE TABLE table_name_8 (bronze VARCHAR, gold INTEGER) ### Response: ### Response: SELECT COUNT(bronze) FROM table_name_8 WHERE gold > 9</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was at home when the score was 2:2? ### Context: CREATE TABLE table_name_88 (home VARCHAR, score VARCHAR) ### Response: ### Response: SELECT home FROM table_name_88 WHERE score = "2:2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What álbum was in the year 1996? ### Context: CREATE TABLE table_name_65 (álbum VARCHAR, year VARCHAR) ### Response: ### Response: SELECT álbum FROM table_name_65 WHERE year = 1996</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the PSIP Short name for the Channel that is less than 51.6? ### Context: CREATE TABLE table_name_70 (psip_short_name VARCHAR, channel INTEGER) ### Response: ### Response: SELECT psip_short_name FROM table_name_70 WHERE channel < 51.6</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the result on 10/08/1988? ### Context: CREATE TABLE table_name_52 (result VARCHAR, date VARCHAR) ### Response: ### Response: SELECT result FROM table_name_52 WHERE date = "10/08/1988"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which ship was raided on 26 September 1940? ### Context: CREATE TABLE table_name_52 (name_of_ship VARCHAR, date VARCHAR) ### Response: ### Response: SELECT name_of_ship FROM table_name_52 WHERE date = "26 september 1940"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score on the October 28 game? ### Context: CREATE TABLE table_23601267_2 (final_score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT final_score FROM table_23601267_2 WHERE date = "October 28"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the earliest began when the court surface is clay in hamburg? ### Context: CREATE TABLE table_name_21 (began INTEGER, court_surface VARCHAR, location VARCHAR) ### Response: ### Response: SELECT MIN(began) FROM table_name_21 WHERE court_surface = "clay" AND location = "hamburg"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What year is the venue in budapest, hungary? ### Context: CREATE TABLE table_name_17 (year INTEGER, venue VARCHAR) ### Response: ### Response: SELECT SUM(year) FROM table_name_17 WHERE venue = "budapest, hungary"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average for the university of dublin when the industrial and commercial panel is greater than 4 and the total of the national university of ireland is larger than 3? ### Context: CREATE TABLE table_name_75 (university_of_dublin INTEGER, industrial_and_commercial_panel VARCHAR, national_university_of_ireland VARCHAR) ### Response: ### Response: SELECT AVG(university_of_dublin) FROM table_name_75 WHERE industrial_and_commercial_panel > 4 AND national_university_of_ireland > 3</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many players named paddy rowan? ### Context: CREATE TABLE table_16527640_2 (rank_held_at_time_of_death VARCHAR, player VARCHAR) ### Response: ### Response: SELECT COUNT(rank_held_at_time_of_death) FROM table_16527640_2 WHERE player = "Paddy Rowan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the muzzle velocity for the .38 long colt cartridge? ### Context: CREATE TABLE table_name_32 (muzzle_velocity VARCHAR, cartridge VARCHAR) ### Response: ### Response: SELECT muzzle_velocity FROM table_name_32 WHERE cartridge = ".38 long colt"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many touchdowns were made by the person with 7 extra points? ### Context: CREATE TABLE table_14342210_14 (touchdowns__5_points_ VARCHAR, extra_points_1_point VARCHAR) ### Response: ### Response: SELECT COUNT(touchdowns__5_points_) FROM table_14342210_14 WHERE extra_points_1_point = 7</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the new membership total if the members lost is bigger than 1.0? ### Context: CREATE TABLE table_27671835_3 (new_membership_total INTEGER, members_lost INTEGER) ### Response: ### Response: SELECT MAX(new_membership_total) FROM table_27671835_3 WHERE members_lost > 1.0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the largest crowd at a game where Collingwood was the away team? ### Context: CREATE TABLE table_name_13 (crowd INTEGER, away_team VARCHAR) ### Response: ### Response: SELECT MAX(crowd) FROM table_name_13 WHERE away_team = "collingwood"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the station type of DWMC-TV? ### Context: CREATE TABLE table_2610582_3 (station_type VARCHAR, callsign VARCHAR) ### Response: ### Response: SELECT station_type FROM table_2610582_3 WHERE callsign = "DWMC-TV"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the least date for the place which has a building of victoria hall ### Context: CREATE TABLE table_name_37 (date INTEGER, building VARCHAR) ### Response: ### Response: SELECT MIN(date) FROM table_name_37 WHERE building = "victoria hall"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What type of engine does the model with model designation 97100 have? ### Context: CREATE TABLE table_20866024_3 (engine VARCHAR, model_designation VARCHAR) ### Response: ### Response: SELECT engine FROM table_20866024_3 WHERE model_designation = "97100"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: For how many years has the Mercury Prize been awarded? ### Context: CREATE TABLE table_name_71 (year VARCHAR, award VARCHAR) ### Response: ### Response: SELECT COUNT(year) FROM table_name_71 WHERE award = "mercury prize"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Tell me the outgoing manager for livingston ### Context: CREATE TABLE table_name_15 (outgoing_manager VARCHAR, team VARCHAR) ### Response: ### Response: SELECT outgoing_manager FROM table_name_15 WHERE team = "livingston"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What place did Paul McGinley finish in? ### Context: CREATE TABLE table_name_46 (place VARCHAR, player VARCHAR) ### Response: ### Response: SELECT place FROM table_name_46 WHERE player = "paul mcginley"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the result after 1994 for team MB2 and 31 starts? ### Context: CREATE TABLE table_name_64 (finish VARCHAR, start VARCHAR, year VARCHAR, team VARCHAR) ### Response: ### Response: SELECT finish FROM table_name_64 WHERE year > 1994 AND team = "mb2" AND start = "31"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the highest pick for the position tight end? ### Context: CREATE TABLE table_name_20 (pick INTEGER, position VARCHAR) ### Response: ### Response: SELECT MAX(pick) FROM table_name_20 WHERE position = "tight end"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many Extra points have Touchdowns of 1, and a Player of ross kidston, and Points smaller than 5? ### Context: CREATE TABLE table_name_92 (extra_points INTEGER, points VARCHAR, touchdowns VARCHAR, player VARCHAR) ### Response: ### Response: SELECT SUM(extra_points) FROM table_name_92 WHERE touchdowns = 1 AND player = "ross kidston" AND points < 5</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which tournament was andreas haider-maurer the opponent in? ### Context: CREATE TABLE table_name_94 (tournament VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_94 WHERE opponent = "andreas haider-maurer"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which ICB Sector had a ticker symbol of pp? ### Context: CREATE TABLE table_name_47 (icb_sector VARCHAR, ticker_symbol VARCHAR) ### Response: ### Response: SELECT icb_sector FROM table_name_47 WHERE ticker_symbol = "pp"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average number of points for a team that played 17 games and had more than 15 losses? ### Context: CREATE TABLE table_name_37 (points INTEGER, games VARCHAR, losses VARCHAR) ### Response: ### Response: SELECT AVG(points) FROM table_name_37 WHERE games = 17 AND losses > 15</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the pinyin for mazar ### Context: CREATE TABLE table_2008069_2 (pinyin VARCHAR, conventional VARCHAR) ### Response: ### Response: SELECT pinyin FROM table_2008069_2 WHERE conventional = "Mazar"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When 17 is the number in series who is the director? ### Context: CREATE TABLE table_2409041_2 (directed_by VARCHAR, no_in_series VARCHAR) ### Response: ### Response: SELECT directed_by FROM table_2409041_2 WHERE no_in_series = 17</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: when does the train arriving at stamford east at 11.45 departure ### Context: CREATE TABLE table_18333678_2 (departure VARCHAR, arrival VARCHAR, going_to VARCHAR) ### Response: ### Response: SELECT departure FROM table_18333678_2 WHERE arrival = "11.45" AND going_to = "Stamford East"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the variant with niqqud for a phonetic realisation of [[[|v]]]? ### Context: CREATE TABLE table_name_77 (variant__with_niqqud__ VARCHAR, phonetic_realisation VARCHAR) ### Response: ### Response: SELECT variant__with_niqqud__ FROM table_name_77 WHERE phonetic_realisation = "[[[|v]]]"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: On what NHL team does Roman Vopat play for? ### Context: CREATE TABLE table_name_57 (nhl_team VARCHAR, player VARCHAR) ### Response: ### Response: SELECT nhl_team FROM table_name_57 WHERE player = "roman vopat"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the name of the episode that aired originally on October 18, 1991? ### Context: CREATE TABLE table_2468961_2 (title VARCHAR, original_air_date VARCHAR) ### Response: ### Response: SELECT title FROM table_2468961_2 WHERE original_air_date = "October 18, 1991"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the postal code when the administrative capital in Bori? ### Context: CREATE TABLE table_28891101_3 (postal_code INTEGER, administrative_capital VARCHAR) ### Response: ### Response: SELECT MAX(postal_code) FROM table_28891101_3 WHERE administrative_capital = "Bori"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Show institution names along with the number of proteins for each institution. ### Context: CREATE TABLE institution (institution VARCHAR, institution_id VARCHAR); CREATE TABLE protein (institution_id VARCHAR) ### Response: ### Response: SELECT T1.institution, COUNT(*) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id = T2.institution_id GROUP BY T1.institution_id</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What are the names of tourist attractions that can be reached by walk or is at address 660 Shea Crescent? ### Context: CREATE TABLE Tourist_Attractions (Name VARCHAR, Location_ID VARCHAR, How_to_Get_There VARCHAR); CREATE TABLE Locations (Location_ID VARCHAR, Address VARCHAR) ### Response: ### Response: SELECT T2.Name FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID = T2.Location_ID WHERE T1.Address = "660 Shea Crescent" OR T2.How_to_Get_There = "walk"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Draws average that has a Played that's smaller than 18? ### Context: CREATE TABLE table_name_46 (draws INTEGER, played INTEGER) ### Response: ### Response: SELECT AVG(draws) FROM table_name_46 WHERE played < 18</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total for University of Dublin, having a panel of 0 for agricultural, was nominated by Taoiseach more than 0, and an industrial and commercial panel less than 0? ### Context: CREATE TABLE table_name_94 (university_of_dublin VARCHAR, industrial_and_commercial_panel VARCHAR, agricultural_panel VARCHAR, nominated_by_the_taoiseach VARCHAR) ### Response: ### Response: SELECT COUNT(university_of_dublin) FROM table_name_94 WHERE agricultural_panel = 0 AND nominated_by_the_taoiseach > 0 AND industrial_and_commercial_panel < 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who is the director of the film with the title лепа села лепо горе? ### Context: CREATE TABLE table_22265716_1 (director VARCHAR, original_title VARCHAR) ### Response: ### Response: SELECT director FROM table_22265716_1 WHERE original_title = "Лепа села лепо горе"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What year has american music awards? ### Context: CREATE TABLE table_name_97 (year VARCHAR, award VARCHAR) ### Response: ### Response: SELECT COUNT(year) FROM table_name_97 WHERE award = "american music awards"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many steals did jasmine wynne have? ### Context: CREATE TABLE table_23346303_4 (steals VARCHAR, player VARCHAR) ### Response: ### Response: SELECT steals FROM table_23346303_4 WHERE player = "Jasmine Wynne"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the highest Presidency that Took Office after 1974 and Left Office in 1998? ### Context: CREATE TABLE table_name_8 (presidency INTEGER, left_office VARCHAR, took_office VARCHAR) ### Response: ### Response: SELECT MAX(presidency) FROM table_name_8 WHERE left_office = "1998" AND took_office > 1974</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the opponents head coach with the result L, 56-6? ### Context: CREATE TABLE table_26240481_1 (opponents_head_coach VARCHAR, result VARCHAR) ### Response: ### Response: SELECT opponents_head_coach FROM table_26240481_1 WHERE result = "L, 56-6"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many tons was the ship from norway? ### Context: CREATE TABLE table_name_14 (tons VARCHAR, nationality VARCHAR) ### Response: ### Response: SELECT COUNT(tons) FROM table_name_14 WHERE nationality = "norway"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the total number of ranks when total is less than 1 ### Context: CREATE TABLE table_name_76 (rank VARCHAR, total INTEGER) ### Response: ### Response: SELECT COUNT(rank) FROM table_name_76 WHERE total < 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the earliest year where the result of the election was a retired republican hold? ### Context: CREATE TABLE table_1341472_40 (first_elected INTEGER, result VARCHAR) ### Response: ### Response: SELECT MIN(first_elected) FROM table_1341472_40 WHERE result = "Retired Republican hold"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who is the director and what number is the episode for episode #1 of Are You Afraid of the Dark season 3? ### Context: CREATE TABLE table_10470082_4 (director VARCHAR, _number VARCHAR) ### Response: ### Response: SELECT COUNT(director) FROM table_10470082_4 WHERE _number = 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the points for where lost is 4 ### Context: CREATE TABLE table_15467476_2 (points_for VARCHAR, lost VARCHAR) ### Response: ### Response: SELECT COUNT(points_for) FROM table_15467476_2 WHERE lost = "4"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the smallest Against with Lost larger than 0, % Won larger than 50, and Played smaller than 5? ### Context: CREATE TABLE table_name_48 (against INTEGER, played VARCHAR, lost VARCHAR, _percentage_won VARCHAR) ### Response: ### Response: SELECT MIN(against) FROM table_name_48 WHERE lost > 0 AND _percentage_won > 50 AND played < 5</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the total number of round 3 for class tt1 ### Context: CREATE TABLE table_18646111_13 (round_3 VARCHAR, class VARCHAR) ### Response: ### Response: SELECT COUNT(round_3) FROM table_18646111_13 WHERE class = "TT1"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the greatest number of losses a team that played fewer than 25 games in 2010 had? ### Context: CREATE TABLE table_name_87 (losses INTEGER, games VARCHAR, season VARCHAR) ### Response: ### Response: SELECT MAX(losses) FROM table_name_87 WHERE games < 25 AND season = "2010"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where did Melbourne play as the away team? ### Context: CREATE TABLE table_name_95 (venue VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_95 WHERE away_team = "melbourne"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the earliest year a Chairman who took office after 2011 is up for reelection? ### Context: CREATE TABLE table_name_80 (up_for_reelection INTEGER, took_office VARCHAR, position VARCHAR) ### Response: ### Response: SELECT MIN(up_for_reelection) FROM table_name_80 WHERE took_office > 2011 AND position = "chairman"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who has the minimum number of silver? ### Context: CREATE TABLE table_22355_20 (silver INTEGER) ### Response: ### Response: SELECT MIN(silver) FROM table_22355_20</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Number has a Proto-Polynesian of *taha? ### Context: CREATE TABLE table_name_71 (number VARCHAR, proto_polynesian VARCHAR) ### Response: ### Response: SELECT number FROM table_name_71 WHERE proto_polynesian = "*taha"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What mean total had a league number of 18, Richard Logan as a player, and a play-offs number smaller than 1? ### Context: CREATE TABLE table_name_88 (total INTEGER, play_offs VARCHAR, league VARCHAR, player VARCHAR) ### Response: ### Response: SELECT AVG(total) FROM table_name_88 WHERE league = 18 AND player = "richard logan" AND play_offs < 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which ZX Spectrum has a C=64 of c64, and a Title of ankh? ### Context: CREATE TABLE table_name_7 (zx_spectrum VARCHAR, c64 VARCHAR, title VARCHAR, c VARCHAR) ### Response: ### Response: SELECT zx_spectrum FROM table_name_7 WHERE c = 64 = c64 AND title = "ankh"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How much was the in-county tuition per credit hour at the Mercer College by the fall of 2009? ### Context: CREATE TABLE table_22308881_2 (in_county_tuition_per_credit_hour__fall_2009_ VARCHAR, college VARCHAR) ### Response: ### Response: SELECT in_county_tuition_per_credit_hour__fall_2009_ FROM table_22308881_2 WHERE college = "Mercer"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the game associated with a score of 4 - 2, and a record of 25-39-9? ### Context: CREATE TABLE table_name_81 (game INTEGER, score VARCHAR, record VARCHAR) ### Response: ### Response: SELECT MAX(game) FROM table_name_81 WHERE score = "4 - 2" AND record = "25-39-9"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the race status(es) with the lotus-ford 38/1 chassis? ### Context: CREATE TABLE table_181892_4 (race_status VARCHAR, chassis VARCHAR) ### Response: ### Response: SELECT race_status FROM table_181892_4 WHERE chassis = "Lotus-Ford 38/1"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Record label has an Album of rambo? ### Context: CREATE TABLE table_name_63 (record_label VARCHAR, album VARCHAR) ### Response: ### Response: SELECT record_label FROM table_name_63 WHERE album = "rambo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the sample size of the poll taken on Dec 13-15, 2007 that had a margin of error of more than 4 and resulted with Republican Mike Huckabee? ### Context: CREATE TABLE table_name_5 (sample_size INTEGER, date VARCHAR, republican VARCHAR, margin_of_error VARCHAR) ### Response: ### Response: SELECT AVG(sample_size) FROM table_name_5 WHERE republican = "mike huckabee" AND margin_of_error > 4 AND date = "dec 13-15, 2007"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which player from Scotland has a To Par score of +7? ### Context: CREATE TABLE table_name_50 (player VARCHAR, to_par VARCHAR, country VARCHAR) ### Response: ### Response: SELECT player FROM table_name_50 WHERE to_par = "+7" AND country = "scotland"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lwoest round of wild bill's fight night 21 at 5:00? ### Context: CREATE TABLE table_name_8 (round INTEGER, time VARCHAR, event VARCHAR) ### Response: ### Response: SELECT MIN(round) FROM table_name_8 WHERE time = "5:00" AND event = "wild bill's fight night 21"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Score of the game with a Record of 31–37–9? ### Context: CREATE TABLE table_name_3 (score VARCHAR, record VARCHAR) ### Response: ### Response: SELECT score FROM table_name_3 WHERE record = "31–37–9"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Career Win-Loss, when 2002 is "A", and when 2001 is "4R"? ### Context: CREATE TABLE table_name_70 (career_win_loss VARCHAR) ### Response: ### Response: SELECT career_win_loss FROM table_name_70 WHERE 2002 = "a" AND 2001 = "4r"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Destination has a Stopping pattern of [2777] mciver station platforms? ### Context: CREATE TABLE table_name_47 (destination VARCHAR, stopping_pattern VARCHAR) ### Response: ### Response: SELECT destination FROM table_name_47 WHERE stopping_pattern = "[2777] mciver station platforms"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest ranking for 8:13.67? ### Context: CREATE TABLE table_name_4 (rank INTEGER, time VARCHAR) ### Response: ### Response: SELECT MIN(rank) FROM table_name_4 WHERE time = "8:13.67"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what was the score in toronto ### Context: CREATE TABLE table_name_2 (score VARCHAR, home VARCHAR) ### Response: ### Response: SELECT score FROM table_name_2 WHERE home = "toronto"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Round has a Rally HQ of salou? ### Context: CREATE TABLE table_name_80 (round INTEGER, rally_hq VARCHAR) ### Response: ### Response: SELECT MIN(round) FROM table_name_80 WHERE rally_hq = "salou"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the real life for eventual outcome is amtrak ### Context: CREATE TABLE table_243664_1 (real_life_eventual_outcome VARCHAR, currently¹_part_of VARCHAR) ### Response: ### Response: SELECT real_life_eventual_outcome FROM table_243664_1 WHERE currently¹_part_of = "Amtrak"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the state class for isaac d. barnard (j) ### Context: CREATE TABLE table_225198_3 (state__class_ VARCHAR, vacator VARCHAR) ### Response: ### Response: SELECT state__class_ FROM table_225198_3 WHERE vacator = "Isaac D. Barnard (J)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What party did the incumbent from the Illinois 12 district belong to? ### Context: CREATE TABLE table_1341707_15 (party VARCHAR, district VARCHAR) ### Response: ### Response: SELECT party FROM table_1341707_15 WHERE district = "Illinois 12"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest production code ### Context: CREATE TABLE table_20098479_1 (production_code INTEGER) ### Response: ### Response: SELECT MIN(production_code) FROM table_20098479_1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which branding has the format of southern country? ### Context: CREATE TABLE table_19131921_1 (branding VARCHAR, format VARCHAR) ### Response: ### Response: SELECT branding FROM table_19131921_1 WHERE format = "Southern Country"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the percentage of safari when internet explorer was 20.27%? ### Context: CREATE TABLE table_name_98 (safari VARCHAR, internet_explorer VARCHAR) ### Response: ### Response: SELECT safari FROM table_name_98 WHERE internet_explorer = "20.27%"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which player for a team with an 18-20 record had the most rebounds in a game? ### Context: CREATE TABLE table_name_38 (high_rebounds VARCHAR, record VARCHAR) ### Response: ### Response: SELECT high_rebounds FROM table_name_38 WHERE record = "18-20"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the partner of the winner? ### Context: CREATE TABLE table_name_46 (partner VARCHAR, outcome VARCHAR) ### Response: ### Response: SELECT partner FROM table_name_46 WHERE outcome = "winner"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the example when the realization is [ɐ] ### Context: CREATE TABLE table_name_36 (example VARCHAR, realization VARCHAR) ### Response: ### Response: SELECT example FROM table_name_36 WHERE realization = "[ɐ]"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the district with the incumbent Charlie Norwood? ### Context: CREATE TABLE table_27021001_1 (district VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT district FROM table_27021001_1 WHERE incumbent = "Charlie Norwood"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what date did reuschel (12-3) lose? ### Context: CREATE TABLE table_name_36 (date VARCHAR, loss VARCHAR) ### Response: ### Response: SELECT date FROM table_name_36 WHERE loss = "reuschel (12-3)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the losing team on June 16? ### Context: CREATE TABLE table_name_25 (losing_team VARCHAR, date VARCHAR) ### Response: ### Response: SELECT losing_team FROM table_name_25 WHERE date = "june 16"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many people were in attendance at St Kilda's away match? ### Context: CREATE TABLE table_name_18 (crowd VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT crowd FROM table_name_18 WHERE away_team = "st kilda"</s>