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: Which Location/ State has a Date of 29–31 may? ### Context: CREATE TABLE table_name_36 (location___state VARCHAR, date VARCHAR) ### Response: ### Response: SELECT location___state FROM table_name_36 WHERE date = "29–31 may"</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 number of the episode where maria mcerlane where gramer guest ### Context: CREATE TABLE table_17413485_1 (episode VARCHAR, graemes_guest VARCHAR) ### Response: ### Response: SELECT episode FROM table_17413485_1 WHERE graemes_guest = "Maria McErlane"</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: In which Place was the Silver won by valeri postoianov ( urs ) later than 1969 and the Bronze won by alexander gazov ( urs )? ### Context: CREATE TABLE table_name_50 (place VARCHAR, bronze VARCHAR, silver VARCHAR, year VARCHAR) ### Response: ### Response: SELECT place FROM table_name_50 WHERE silver = "valeri postoianov ( urs )" AND year > 1969 AND bronze = "alexander gazov ( urs )"</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 boat builder for a boat built in 1994 and a number greater than 93? ### Context: CREATE TABLE table_name_76 (boat_builder VARCHAR, number VARCHAR, year_built VARCHAR) ### Response: ### Response: SELECT boat_builder FROM table_name_76 WHERE number > 93 AND year_built = "1994"</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 Country, when Total is greater than 283, and when Year(s) Won is "1989"? ### Context: CREATE TABLE table_name_90 (country VARCHAR, total VARCHAR, year_s__won VARCHAR) ### Response: ### Response: SELECT country FROM table_name_90 WHERE total > 283 AND year_s__won = "1989"</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 гн(иј)ездо / gn(ij)ezdo is the serbo-croatian how many proto-slavics are there? ### Context: CREATE TABLE table_26757_4 (proto_slavic VARCHAR, serbo_croatian VARCHAR) ### Response: ### Response: SELECT COUNT(proto_slavic) FROM table_26757_4 WHERE serbo_croatian = "гн(иј)ездо / gn(ij)ezdo"</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's the bleeding time with partial thromboplastin time being unaffected and condition being liver failure , early ### Context: CREATE TABLE table_14006_1 (bleeding_time VARCHAR, partial_thromboplastin_time VARCHAR, condition VARCHAR) ### Response: ### Response: SELECT bleeding_time FROM table_14006_1 WHERE partial_thromboplastin_time = "Unaffected" AND condition = "Liver failure , early"</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 rounds for winner Rafael Cavalcante? ### Context: CREATE TABLE table_name_37 (round INTEGER, winner VARCHAR) ### Response: ### Response: SELECT AVG(round) FROM table_name_37 WHERE winner = "rafael cavalcante"</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 was the earliest first game with 11 played and 12 games lost? ### Context: CREATE TABLE table_name_60 (first_game INTEGER, played VARCHAR, lost VARCHAR) ### Response: ### Response: SELECT MIN(first_game) FROM table_name_60 WHERE played > 11 AND lost = 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: Who is second on the team with Euan Byers at lead? ### Context: CREATE TABLE table_name_38 (second VARCHAR, lead VARCHAR) ### Response: ### Response: SELECT second FROM table_name_38 WHERE lead = "euan byers"</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 away team score for the match at 6:00 PM and an away team of Hawthorn? ### Context: CREATE TABLE table_name_56 (away_team VARCHAR, time VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_56 WHERE time = "6:00 pm" AND away_team = "hawthorn"</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 largest amount of top division titles featuring the tammeka club? ### Context: CREATE TABLE table_name_56 (top_division_titles INTEGER, club VARCHAR) ### Response: ### Response: SELECT MAX(top_division_titles) FROM table_name_56 WHERE club = "tammeka"</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 date of the finale for the season that premiered on September 22, 1976? ### Context: CREATE TABLE table_name_72 (finale VARCHAR, premiere VARCHAR) ### Response: ### Response: SELECT finale FROM table_name_72 WHERE premiere = "september 22, 1976"</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 which track did Takashi Kogure hold pole position? ### Context: CREATE TABLE table_name_86 (track VARCHAR, pole_position VARCHAR) ### Response: ### Response: SELECT track FROM table_name_86 WHERE pole_position = "takashi kogure"</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: From what town was Steve Zakuani? ### Context: CREATE TABLE table_name_7 (home_town VARCHAR, player VARCHAR) ### Response: ### Response: SELECT home_town FROM table_name_7 WHERE player = "steve zakuani"</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 all the distinct participant ids who attended any events? ### Context: CREATE TABLE participants_in_Events (participant_id VARCHAR) ### Response: ### Response: SELECT COUNT(DISTINCT participant_id) FROM participants_in_Events</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 Opponent of the game with a Result of w 13–0? ### Context: CREATE TABLE table_name_49 (opponent VARCHAR, result VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_49 WHERE result = "w 13–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 is the mean number of caps for Ryota Asano? ### Context: CREATE TABLE table_name_67 (caps INTEGER, player VARCHAR) ### Response: ### Response: SELECT AVG(caps) FROM table_name_67 WHERE player = "ryota asano"</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 game 81? ### Context: CREATE TABLE table_name_60 (score VARCHAR, game__number VARCHAR) ### Response: ### Response: SELECT score FROM table_name_60 WHERE game__number = 81</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: Result of 1st, and a Venue of melbourne , australia, and a Extra of 100 m happened in which year? ### Context: CREATE TABLE table_name_10 (year VARCHAR, extra VARCHAR, result VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT year FROM table_name_10 WHERE result = "1st" AND venue = "melbourne , australia" AND extra = "100 m"</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 Ben-Tahir when Bello is 51? ### Context: CREATE TABLE table_11447995_2 (ben_tahir VARCHAR, bello VARCHAR) ### Response: ### Response: SELECT ben_tahir FROM table_11447995_2 WHERE bello = "51"</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 platense is the home (2nd leg) what is the 2nd leg? ### Context: CREATE TABLE table_14219514_2 (home__2nd_leg_ VARCHAR) ### Response: ### Response: SELECT 2 AS nd_leg FROM table_14219514_2 WHERE home__2nd_leg_ = "Platense"</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 position of terry jones whose pick number was after 256? ### Context: CREATE TABLE table_name_59 (position VARCHAR, pick VARCHAR, player VARCHAR) ### Response: ### Response: SELECT position FROM table_name_59 WHERE pick > 256 AND player = "terry jones"</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 power was used when the callsign was DZYT? ### Context: CREATE TABLE table_12547903_3 (power__kw_ VARCHAR, callsign VARCHAR) ### Response: ### Response: SELECT power__kw_ FROM table_12547903_3 WHERE callsign = "DZYT"</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 did the the player with first name Len and last name Barker earn between 1985 to 1990 in total? ### Context: CREATE TABLE salary (salary INTEGER, player_id VARCHAR, year VARCHAR); CREATE TABLE player (player_id VARCHAR, name_first VARCHAR, name_last VARCHAR) ### Response: ### Response: SELECT SUM(T1.salary) FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id WHERE T2.name_first = 'Len' AND T2.name_last = 'Barker' AND T1.year BETWEEN 1985 AND 1990</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 report was there for the porsche north america? ### Context: CREATE TABLE table_10707176_2 (report VARCHAR, winning_team VARCHAR) ### Response: ### Response: SELECT report FROM table_10707176_2 WHERE winning_team = "Porsche North America"</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 marcus camby (15) has the highest amount of rebounds who has the highest amount of assists? ### Context: CREATE TABLE table_23286158_10 (high_assists VARCHAR, high_rebounds VARCHAR) ### Response: ### Response: SELECT high_assists FROM table_23286158_10 WHERE high_rebounds = "Marcus Camby (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: Who are all of the players on the Westchester High School club team? ### Context: CREATE TABLE table_10015132_9 (player VARCHAR, school_club_team VARCHAR) ### Response: ### Response: SELECT player FROM table_10015132_9 WHERE school_club_team = "Westchester High School"</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 for Portland at home on June 12? ### Context: CREATE TABLE table_name_26 (result VARCHAR, home_team VARCHAR, date VARCHAR) ### Response: ### Response: SELECT result FROM table_name_26 WHERE home_team = "portland" AND date = "june 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: Which driver has 210 as entries? ### Context: CREATE TABLE table_name_40 (driver VARCHAR, entries VARCHAR) ### Response: ### Response: SELECT driver FROM table_name_40 WHERE entries = 210</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 candidate when the result - % was 0.4%? ### Context: CREATE TABLE table_25818630_2 (candidate VARCHAR, result____percentage VARCHAR) ### Response: ### Response: SELECT candidate FROM table_25818630_2 WHERE result____percentage = "0.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: Who was the name of the opposing team on 11/02/1961? ### Context: CREATE TABLE table_name_36 (opposing_teams VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opposing_teams FROM table_name_36 WHERE date = "11/02/1961"</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 range does type FJ/PB/SCP work at? ### Context: CREATE TABLE table_21538523_1 (range__m_ VARCHAR, type VARCHAR) ### Response: ### Response: SELECT range__m_ FROM table_21538523_1 WHERE type = "FJ/PB/SCP"</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 venue when the score is 10-0 on 1997-06-22? ### Context: CREATE TABLE table_name_15 (venue VARCHAR, score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_15 WHERE score = "10-0" AND date = "1997-06-22"</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 goals are associated with over 97 caps and a Latest cap of april 24, 2013? ### Context: CREATE TABLE table_name_43 (goals INTEGER, latest_cap VARCHAR, caps VARCHAR) ### Response: ### Response: SELECT AVG(goals) FROM table_name_43 WHERE latest_cap = "april 24, 2013" AND caps > 97</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 win percentage of a season with a GB of 5? ### Context: CREATE TABLE table_name_76 (win__percentage INTEGER, gb_ VARCHAR, d_ VARCHAR) ### Response: ### Response: SELECT AVG(win__percentage) FROM table_name_76 WHERE gb_[d_] = "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: Who were the candidates where the result was retired Republican hold and the incumbent was Philemon Bliss? ### Context: CREATE TABLE table_2646656_3 (candidates VARCHAR, result VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT candidates FROM table_2646656_3 WHERE result = "Retired Republican hold" AND incumbent = "Philemon Bliss"</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 series had a release on 1939-07-15 with the 8863 production number? ### Context: CREATE TABLE table_name_53 (series VARCHAR, release_date VARCHAR, production_num VARCHAR) ### Response: ### Response: SELECT series FROM table_name_53 WHERE release_date = "1939-07-15" AND production_num = "8863"</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 rank where the distance is 52.73? ### Context: CREATE TABLE table_26454128_9 (rank INTEGER, distance__metres_ VARCHAR) ### Response: ### Response: SELECT MAX(rank) FROM table_26454128_9 WHERE distance__metres_ = "52.73"</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 2006 census population when the area is 159? ### Context: CREATE TABLE table_28891101_3 (census_2006_population VARCHAR, area__km_2__ VARCHAR) ### Response: ### Response: SELECT COUNT(census_2006_population) FROM table_28891101_3 WHERE area__km_2__ = 159</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 tie number total when Harlow Town is the away team? ### Context: CREATE TABLE table_name_5 (tie_no VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT COUNT(tie_no) FROM table_name_5 WHERE away_team = "harlow town"</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 week 9 that had a week 6 of 7, a week 10 of greater than 2, a week 7 of 5, and a week 11 less than 2? ### Context: CREATE TABLE table_name_13 (wk_9 INTEGER, wk_11 VARCHAR, wk_7 VARCHAR, wk_6 VARCHAR, wk_10 VARCHAR) ### Response: ### Response: SELECT MAX(wk_9) FROM table_name_13 WHERE wk_6 = "7" AND wk_10 > 2 AND wk_7 = "5" AND wk_11 < 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: Which Field has a Discovery of na, and an Operator(s) of woc, and a Geological Trend of western ### Context: CREATE TABLE table_name_15 (field VARCHAR, geological_trend VARCHAR, discovery VARCHAR, operator_s_ VARCHAR) ### Response: ### Response: SELECT field FROM table_name_15 WHERE discovery = "na" AND operator_s_ = "woc" AND geological_trend = "western"</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: I want the team for date of vacancy being 28 february ### Context: CREATE TABLE table_name_52 (team VARCHAR, date_of_vacancy VARCHAR) ### Response: ### Response: SELECT team FROM table_name_52 WHERE date_of_vacancy = "28 february"</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 attended the Rams game against the Kansas City Chiefs? ### Context: CREATE TABLE table_name_86 (attendance VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_86 WHERE opponent = "kansas city chiefs"</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 Type, when Newspaper/Magazine is Telecoms & It Magazine? ### Context: CREATE TABLE table_name_97 (type VARCHAR, newspaper_magazine VARCHAR) ### Response: ### Response: SELECT type FROM table_name_97 WHERE newspaper_magazine = "telecoms & it magazine"</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 incumbent Albert Wynn belong to? ### Context: CREATE TABLE table_1341423_20 (party VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT party FROM table_1341423_20 WHERE incumbent = "Albert Wynn"</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 gold when the rank is more than 5? ### Context: CREATE TABLE table_name_5 (gold INTEGER, rank INTEGER) ### Response: ### Response: SELECT AVG(gold) FROM table_name_5 WHERE rank > 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 date had an attendance of 76,518? ### Context: CREATE TABLE table_name_27 (date VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT date FROM table_name_27 WHERE attendance = "76,518"</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 record after game 45? ### Context: CREATE TABLE table_name_13 (record VARCHAR, game VARCHAR) ### Response: ### Response: SELECT record FROM table_name_13 WHERE game = "45"</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 United States school/club team from Arkansas play in Toronto ### Context: CREATE TABLE table_name_87 (years_in_toronto VARCHAR, nationality VARCHAR, school_club_team VARCHAR) ### Response: ### Response: SELECT years_in_toronto FROM table_name_87 WHERE nationality = "united states" AND school_club_team = "arkansas"</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 settlements are named ђурђин (croatian: đurđin)? ### Context: CREATE TABLE table_2562572_26 (settlement VARCHAR, cyrillic_name_other_names VARCHAR) ### Response: ### Response: SELECT COUNT(settlement) FROM table_2562572_26 WHERE cyrillic_name_other_names = "Ђурђин (Croatian: Đurđin)"</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 game on July 12 played against? ### Context: CREATE TABLE table_19789597_6 (opponent VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent FROM table_19789597_6 WHERE date = "July 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 Pole Position, when Fastest Lap is Ben Spies, and when Location is Barber Motorsports Park? ### Context: CREATE TABLE table_name_84 (pole_position VARCHAR, fastest_lap VARCHAR, location VARCHAR) ### Response: ### Response: SELECT pole_position FROM table_name_84 WHERE fastest_lap = "ben spies" AND location = "barber motorsports park"</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 Lead has a Nation of switzerland? ### Context: CREATE TABLE table_name_15 (lead VARCHAR, nation VARCHAR) ### Response: ### Response: SELECT lead FROM table_name_15 WHERE nation = "switzerland"</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 names of the visitors whose membership level is higher than 4, and order the results by the level from high to low. ### Context: CREATE TABLE visitor (name VARCHAR, Level_of_membership INTEGER) ### Response: ### Response: SELECT name FROM visitor WHERE Level_of_membership > 4 ORDER BY Level_of_membership DESC</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 Lost for Team Matlock Town when the Goals Against is higher than 66? ### Context: CREATE TABLE table_name_79 (lost INTEGER, team VARCHAR, goals_against VARCHAR) ### Response: ### Response: SELECT AVG(lost) FROM table_name_79 WHERE team = "matlock town" AND goals_against > 66</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 country for airline of gol ### Context: CREATE TABLE table_name_33 (country VARCHAR, airline VARCHAR) ### Response: ### Response: SELECT country FROM table_name_33 WHERE airline = "gol"</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 distinct hometowns of gymnasts with total points more than 57.5? ### Context: CREATE TABLE gymnast (Gymnast_ID VARCHAR, Total_Points INTEGER); CREATE TABLE people (Hometown VARCHAR, People_ID VARCHAR) ### Response: ### Response: SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID WHERE T1.Total_Points > 57.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: How many votes went to other candidates in the county that gave 1.9% votes to them, and 160,390 total votes to Bush? ### Context: CREATE TABLE table_name_12 (others_number INTEGER, others_percentage VARCHAR, bush_number VARCHAR) ### Response: ### Response: SELECT MIN(others_number) FROM table_name_12 WHERE others_percentage = "1.9%" AND bush_number < 160 OFFSET 390</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 Drew has a Lost larger than 14? ### Context: CREATE TABLE table_name_17 (drew INTEGER, lost INTEGER) ### Response: ### Response: SELECT SUM(drew) FROM table_name_17 WHERE lost > 14</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 nominating festival for director of 2004 ### Context: CREATE TABLE table_name_1 (nominating_festival VARCHAR, director_s_ VARCHAR) ### Response: ### Response: SELECT nominating_festival FROM table_name_1 WHERE director_s_ = "2004"</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 Qual 1 has a Team of team player's, and a Best of 58.405? ### Context: CREATE TABLE table_name_91 (qual_1 VARCHAR, team VARCHAR, best VARCHAR) ### Response: ### Response: SELECT qual_1 FROM table_name_91 WHERE team = "team player's" AND best = "58.405"</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's the original airdate of the episode directed by Pete Travis? ### Context: CREATE TABLE table_12919003_3 (original_airdate VARCHAR, director VARCHAR) ### Response: ### Response: SELECT original_airdate FROM table_12919003_3 WHERE director = "Pete Travis"</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 when the local board is albert–eden, and a Decile of 9? ### Context: CREATE TABLE table_name_36 (name VARCHAR, local_board VARCHAR, decile VARCHAR) ### Response: ### Response: SELECT name FROM table_name_36 WHERE local_board = "albert–eden" AND decile = "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: Which entrant was present prior to 1953? ### Context: CREATE TABLE table_name_67 (entrant VARCHAR, year INTEGER) ### Response: ### Response: SELECT entrant FROM table_name_67 WHERE year < 1953</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 19 is the stage who is the points classification? ### Context: CREATE TABLE table_18733814_2 (points_classification VARCHAR, stage VARCHAR) ### Response: ### Response: SELECT points_classification FROM table_18733814_2 WHERE stage = 19</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 degree for chemistry 1965 ### Context: CREATE TABLE table_name_90 (degree VARCHAR, award_year VARCHAR, award VARCHAR) ### Response: ### Response: SELECT degree FROM table_name_90 WHERE award_year = 1965 AND award = "chemistry"</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 Term Start, when Born-Died is Prime Ministers 1939 - 1943? ### Context: CREATE TABLE table_name_53 (term_start VARCHAR, born_died VARCHAR) ### Response: ### Response: SELECT term_start FROM table_name_53 WHERE born_died = "prime ministers 1939 - 1943"</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 were the high points on April 8? ### Context: CREATE TABLE table_27713030_12 (high_points VARCHAR, date VARCHAR) ### Response: ### Response: SELECT high_points FROM table_27713030_12 WHERE date = "April 8"</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 title of the film that has the highest high market estimation. ### Context: CREATE TABLE film_market_estimation (Film_ID VARCHAR); CREATE TABLE film (Film_ID VARCHAR) ### Response: ### Response: SELECT t1.title FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID ORDER BY high_estimate DESC LIMIT 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: Who was the winner for the world championship formula 1 at the venue, circuit de monaco? ### Context: CREATE TABLE table_name_89 (winner VARCHAR, notes VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT winner FROM table_name_89 WHERE notes = "world championship formula 1" AND venue = "circuit de monaco"</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 rated power for the reactor that ended construction on May 10, 1978? ### Context: CREATE TABLE table_name_52 (rated_power VARCHAR, finish_construction VARCHAR) ### Response: ### Response: SELECT rated_power FROM table_name_52 WHERE finish_construction = "may 10, 1978"</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 number of three pointers in games that kendall gill played? ### Context: CREATE TABLE table_22824324_2 (three_pointers INTEGER, player VARCHAR) ### Response: ### Response: SELECT MIN(three_pointers) FROM table_22824324_2 WHERE player = "Kendall Gill"</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 college team did the pick for Pittsburgh Penguins come from? ### Context: CREATE TABLE table_2781227_7 (college_junior_club_team VARCHAR, nhl_team VARCHAR) ### Response: ### Response: SELECT college_junior_club_team FROM table_2781227_7 WHERE nhl_team = "Pittsburgh Penguins"</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 who was famous for finished in 9th ### Context: CREATE TABLE table_14345690_4 (famous_for VARCHAR, finished VARCHAR) ### Response: ### Response: SELECT famous_for FROM table_14345690_4 WHERE finished = "9th"</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 were the 3rd couple that were viewed by 4.89 million viewers? ### Context: CREATE TABLE table_25664518_4 (viewers__millions_ VARCHAR) ### Response: ### Response: SELECT 3 AS rd_couple FROM table_25664518_4 WHERE viewers__millions_ = "4.89"</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 state was the president who was elected earlier than 1848 born in? ### Context: CREATE TABLE table_name_43 (birth_state VARCHAR, election_year INTEGER) ### Response: ### Response: SELECT birth_state FROM table_name_43 WHERE election_year < 1848</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 year leicester was established? ### Context: CREATE TABLE table_142950_1 (established INTEGER, location VARCHAR) ### Response: ### Response: SELECT MAX(established) FROM table_142950_1 WHERE location = "Leicester"</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 Batsman from the year 1982? ### Context: CREATE TABLE table_name_83 (batsmen VARCHAR, year VARCHAR) ### Response: ### Response: SELECT batsmen FROM table_name_83 WHERE year = "1982"</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 krypton has an argon of 20.85? ### Context: CREATE TABLE table_name_18 (krypton VARCHAR, argon VARCHAR) ### Response: ### Response: SELECT krypton FROM table_name_18 WHERE argon = "20.85"</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 Latitude of the Alajen Vallis named after 1997? ### Context: CREATE TABLE table_name_86 (latitude VARCHAR, year_named VARCHAR, name VARCHAR) ### Response: ### Response: SELECT latitude FROM table_name_86 WHERE year_named > 1997 AND name = "alajen vallis"</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 Kerry J. Donley's Party? ### Context: CREATE TABLE table_name_48 (party VARCHAR, name VARCHAR) ### Response: ### Response: SELECT party FROM table_name_48 WHERE name = "kerry j. donley"</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 products are there? ### Context: CREATE TABLE products (Id VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM products</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 average points for an engine of ford zetec-r v8? ### Context: CREATE TABLE table_name_63 (points INTEGER, engine VARCHAR) ### Response: ### Response: SELECT AVG(points) FROM table_name_63 WHERE engine = "ford zetec-r v8"</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 Player, when Score is "66-74-76=216"? ### Context: CREATE TABLE table_name_48 (player VARCHAR, score VARCHAR) ### Response: ### Response: SELECT player FROM table_name_48 WHERE score = 66 - 74 - 76 = 216</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 varsity name of the university of mcgill university? ### Context: CREATE TABLE table_27369069_4 (varsity_name VARCHAR, university VARCHAR) ### Response: ### Response: SELECT varsity_name FROM table_27369069_4 WHERE university = "McGill university"</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 Offer Team has a date of July 29, 1994? ### Context: CREATE TABLE table_name_24 (offer_team VARCHAR, date VARCHAR) ### Response: ### Response: SELECT offer_team FROM table_name_24 WHERE date = "july 29, 1994"</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 had the high assists when the record was 33–15? ### Context: CREATE TABLE table_name_6 (high_assists VARCHAR, record VARCHAR) ### Response: ### Response: SELECT high_assists FROM table_name_6 WHERE record = "33–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: What was drawn for 6 bonus points and is against 410 points? ### Context: CREATE TABLE table_name_87 (drawn VARCHAR, bonus_points VARCHAR, points_against VARCHAR) ### Response: ### Response: SELECT drawn FROM table_name_87 WHERE bonus_points = "6" AND points_against = "410"</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 lost for % won of 55.37 ### Context: CREATE TABLE table_name_46 (lost VARCHAR, _percentage_won VARCHAR) ### Response: ### Response: SELECT lost FROM table_name_46 WHERE _percentage_won = "55.37"</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 laps did Ricardo Zonta drive with a grid less than 14? ### Context: CREATE TABLE table_name_15 (laps INTEGER, grid VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT SUM(laps) FROM table_name_15 WHERE grid < 14 AND driver = "ricardo zonta"</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 analysts ### Context: CREATE TABLE table_22654139_2 (s_analyst VARCHAR) ### Response: ### Response: SELECT s_analyst FROM table_22654139_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 is the PAL B, G, H for the PAL I 4.43361875mhz? ### Context: CREATE TABLE table_name_60 (pal_b VARCHAR, g VARCHAR, h VARCHAR, pal_i VARCHAR) ### Response: ### Response: SELECT pal_b, g, h FROM table_name_60 WHERE pal_i = "4.43361875mhz"</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's the value for race 4 when race 1 is dsq? ### Context: CREATE TABLE table_name_76 (race_4 VARCHAR, race_1 VARCHAR) ### Response: ### Response: SELECT race_4 FROM table_name_76 WHERE race_1 = "dsq"</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 title is am/pm callanetics , what are all the copyright information? ### Context: CREATE TABLE table_11222744_2 (copyright_information VARCHAR, title VARCHAR) ### Response: ### Response: SELECT copyright_information FROM table_11222744_2 WHERE title = "AM/PM Callanetics"</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 assets when the rank is 1435 ### Context: CREATE TABLE table_24307126_3 (assets_2013__bil$_ VARCHAR, rank_2013 VARCHAR) ### Response: ### Response: SELECT assets_2013__bil$_ FROM table_24307126_3 WHERE rank_2013 = 1435</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 Name had a Games of 2008 beijing, and a Medal of gold? ### Context: CREATE TABLE table_name_37 (name VARCHAR, games VARCHAR, medal VARCHAR) ### Response: ### Response: SELECT name FROM table_name_37 WHERE games = "2008 beijing" AND medal = "gold"</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 production code for the episode whose original air date was May15,2000? ### Context: CREATE TABLE table_29391888_1 (production_code VARCHAR, original_air_date VARCHAR) ### Response: ### Response: SELECT production_code FROM table_29391888_1 WHERE original_air_date = "May15,2000"</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 value of other religions associated with atheism at 1.86%? ### Context: CREATE TABLE table_name_80 (other VARCHAR, atheism VARCHAR) ### Response: ### Response: SELECT other FROM table_name_80 WHERE atheism = "1.86%"</s>