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: Where is the miss global teen? ### Context: CREATE TABLE table_1825751_14 (hometown VARCHAR, pageant VARCHAR) ### Response: ### Response: SELECT hometown FROM table_1825751_14 WHERE pageant = "Miss Global Teen"</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 highest amount of losses of Camperdown when the against was less than 945? ### Context: CREATE TABLE table_name_81 (losses INTEGER, club VARCHAR, against VARCHAR) ### Response: ### Response: SELECT MAX(losses) FROM table_name_81 WHERE club = "camperdown" AND against < 945</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 when not nominated was the result, and In the Navel of the Sea was the film title used in nomination? ### Context: CREATE TABLE table_name_24 (year__ceremony_ VARCHAR, result VARCHAR, film_title_used_in_nomination VARCHAR) ### Response: ### Response: SELECT year__ceremony_ FROM table_name_24 WHERE result = "not nominated" AND film_title_used_in_nomination = "in the navel of the sea"</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 number of concerts happened in the stadium with the highest capacity . ### Context: CREATE TABLE concert (stadium_id VARCHAR, capacity VARCHAR); CREATE TABLE stadium (stadium_id VARCHAR, capacity VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM concert WHERE stadium_id = (SELECT stadium_id FROM stadium ORDER BY capacity 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: What event is defending champion the total? ### Context: CREATE TABLE table_name_4 (event VARCHAR, total VARCHAR) ### Response: ### Response: SELECT event FROM table_name_4 WHERE total = "defending champion"</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 Rank of the rower with a Time of 8:23.02? ### Context: CREATE TABLE table_name_35 (rank VARCHAR, time VARCHAR) ### Response: ### Response: SELECT COUNT(rank) FROM table_name_35 WHERE time = "8:23.02"</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 series number 47 shown? ### Context: CREATE TABLE table_11630008_4 (season_no VARCHAR, series_no VARCHAR) ### Response: ### Response: SELECT COUNT(season_no) FROM table_11630008_4 WHERE series_no = 47</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 pageants were in san fernando, pampanga? ### Context: CREATE TABLE table_1825751_14 (pageant VARCHAR, hometown VARCHAR) ### Response: ### Response: SELECT COUNT(pageant) FROM table_1825751_14 WHERE hometown = "San Fernando, Pampanga"</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 paragraphs for the document with name 'Summer Show'? ### Context: CREATE TABLE Documents (document_ID VARCHAR, document_name VARCHAR); CREATE TABLE Paragraphs (document_ID VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_ID = T2.document_ID WHERE T2.document_name = 'Summer Show'</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 players have a height of 2.07m? ### Context: CREATE TABLE table_23670057_5 (player VARCHAR, height__m_ VARCHAR) ### Response: ### Response: SELECT player FROM table_23670057_5 WHERE height__m_ = "2.07"</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 film was filmed in Spain? ### Context: CREATE TABLE table_name_49 (film VARCHAR, country VARCHAR) ### Response: ### Response: SELECT film FROM table_name_49 WHERE country = "spain"</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 number of dorms that have some amenity. ### Context: CREATE TABLE has_amenity (dormid VARCHAR) ### Response: ### Response: SELECT COUNT(DISTINCT dormid) FROM has_amenity</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 fewest number of places for a skater from Norway with fewer than 1524.9 points? ### Context: CREATE TABLE table_name_11 (places INTEGER, nation VARCHAR, points VARCHAR) ### Response: ### Response: SELECT MIN(places) FROM table_name_11 WHERE nation = "norway" AND points < 1524.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 the title of the episode directed by Mark Tinker? ### Context: CREATE TABLE table_11058032_1 (title VARCHAR, directed_by VARCHAR) ### Response: ### Response: SELECT title FROM table_11058032_1 WHERE directed_by = "Mark Tinker"</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 tasks are there in total? ### Context: CREATE TABLE Tasks (Id VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM Tasks</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 bubbles has an atribute of onlostpointercapture? ### Context: CREATE TABLE table_name_87 (bubbles VARCHAR, attribute VARCHAR) ### Response: ### Response: SELECT bubbles FROM table_name_87 WHERE attribute = "onlostpointercapture"</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 in the 6 atlas stones event of the player who got 2 (6 in 30.89s) in the 3 dead lift event? ### Context: CREATE TABLE table_24302700_6 (event_6_atlas_stones VARCHAR, event_3_dead_lift VARCHAR) ### Response: ### Response: SELECT COUNT(event_6_atlas_stones) FROM table_24302700_6 WHERE event_3_dead_lift = "2 (6 in 30.89s)"</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 total attendance of the leagues in season of 2010? ### Context: CREATE TABLE table_10815352_1 (total_attendance VARCHAR, season VARCHAR) ### Response: ### Response: SELECT COUNT(total_attendance) FROM table_10815352_1 WHERE 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: What was the title of the episode directed by Jesse Warn? ### Context: CREATE TABLE table_24938621_3 (production_code VARCHAR, directed_by VARCHAR) ### Response: ### Response: SELECT production_code FROM table_24938621_3 WHERE directed_by = "Jesse Warn"</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 Quantity Made, when Manufacturer is "Baldwin"? ### Context: CREATE TABLE table_name_3 (quantity_made VARCHAR, manufacturer VARCHAR) ### Response: ### Response: SELECT quantity_made FROM table_name_3 WHERE manufacturer = "baldwin"</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 lived in the district with a code GP in 2011? ### Context: CREATE TABLE table_2801442_1 (population__2011_census_ INTEGER, code VARCHAR) ### Response: ### Response: SELECT MIN(population__2011_census_) FROM table_2801442_1 WHERE code = "GP"</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 result of the game at Bishop Kearney Field on August 2? ### Context: CREATE TABLE table_name_24 (result VARCHAR, field VARCHAR, date VARCHAR) ### Response: ### Response: SELECT result FROM table_name_24 WHERE field = "bishop kearney field" AND date = "august 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: when was garibaldets (гарибальдиец) launched? ### Context: CREATE TABLE table_name_94 (launched VARCHAR, name VARCHAR) ### Response: ### Response: SELECT launched FROM table_name_94 WHERE name = "garibaldets (гарибальдиец)"</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 Dialcode of whitechapel? ### Context: CREATE TABLE table_name_62 (dialcode VARCHAR, location VARCHAR) ### Response: ### Response: SELECT dialcode FROM table_name_62 WHERE location = "whitechapel"</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 the tkkm o manawatu coed school in kelvin grove, what is the Authority listed/ ### Context: CREATE TABLE table_name_93 (authority VARCHAR, name VARCHAR, gender VARCHAR, area VARCHAR) ### Response: ### Response: SELECT authority FROM table_name_93 WHERE gender = "coed" AND area = "kelvin grove" AND name = "tkkm o manawatu"</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 week did the member who's original tribe was shark and who was sent to the third island on week 14 arrive on the main island? ### Context: CREATE TABLE table_11764007_2 (week_arrived_on_main_island VARCHAR, original_tribe VARCHAR, week_sent_to_third_island VARCHAR) ### Response: ### Response: SELECT week_arrived_on_main_island FROM table_11764007_2 WHERE original_tribe = "Shark" AND week_sent_to_third_island = "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: Who had a 33-30-8 record at home? ### Context: CREATE TABLE table_name_99 (home VARCHAR, record VARCHAR) ### Response: ### Response: SELECT home FROM table_name_99 WHERE record = "33-30-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: How many color systems has a bit rate of 5.734? ### Context: CREATE TABLE table_1926240_1 (color_system VARCHAR, bit_rate_ VARCHAR, _mbit_s_ VARCHAR) ### Response: ### Response: SELECT COUNT(color_system) FROM table_1926240_1 WHERE bit_rate_[_mbit_s_] = "5.734"</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 centerfold model when interview subject is steve jobs ### Context: CREATE TABLE table_1566848_6 (centerfold_model VARCHAR, interview_subject VARCHAR) ### Response: ### Response: SELECT centerfold_model FROM table_1566848_6 WHERE interview_subject = "Steve Jobs"</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 most rebounds for larry smith ### Context: CREATE TABLE table_22824319_3 (rebounds INTEGER, player VARCHAR) ### Response: ### Response: SELECT MAX(rebounds) FROM table_22824319_3 WHERE player = "Larry Smith"</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 the Batsmen from the year 2002? ### Context: CREATE TABLE table_name_98 (batsmen VARCHAR, year VARCHAR) ### Response: ### Response: SELECT batsmen FROM table_name_98 WHERE year = "2002"</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 catagories are there for the na player? ### Context: CREATE TABLE table_25642873_2 (extra_points VARCHAR, player VARCHAR) ### Response: ### Response: SELECT COUNT(extra_points) FROM table_25642873_2 WHERE player = "na"</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 there are 2 wins, how many poles are? ### Context: CREATE TABLE table_26223231_1 (poles VARCHAR, wins VARCHAR) ### Response: ### Response: SELECT poles FROM table_26223231_1 WHERE wins = 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 kind of surface was the tournament at Pune played on? ### Context: CREATE TABLE table_name_56 (surface VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT surface FROM table_name_56 WHERE tournament = "pune"</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 result has a Goal of deacon 2/5? ### Context: CREATE TABLE table_name_47 (result VARCHAR, goals VARCHAR) ### Response: ### Response: SELECT result FROM table_name_47 WHERE goals = "deacon 2/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: What Round against Aleksander Emelianenko had a time of 5:00? ### Context: CREATE TABLE table_name_98 (round VARCHAR, time VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT round FROM table_name_98 WHERE time = "5:00" AND opponent = "aleksander emelianenko"</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 landesliga mitte sv türk gücü münchen ### Context: CREATE TABLE table_20181270_3 (landesliga_mitte VARCHAR, bayernliga VARCHAR) ### Response: ### Response: SELECT landesliga_mitte FROM table_20181270_3 WHERE bayernliga = "SV Türk Gücü München"</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 height for steffen hamann ### Context: CREATE TABLE table_23670057_6 (height__f_ VARCHAR, player VARCHAR) ### Response: ### Response: SELECT height__f_ FROM table_23670057_6 WHERE player = "Steffen Hamann"</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 digital reaction for week of top 5 for Taylor Hicks? ### Context: CREATE TABLE table_name_20 (hot_digital_songs_reaction VARCHAR, week VARCHAR, performer_s_ VARCHAR) ### Response: ### Response: SELECT hot_digital_songs_reaction FROM table_name_20 WHERE week = "top 5" AND performer_s_ = "taylor hicks"</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 attended during the game with a score of 80-94? ### Context: CREATE TABLE table_name_52 (attendance INTEGER, score VARCHAR) ### Response: ### Response: SELECT SUM(attendance) FROM table_name_52 WHERE score = "80-94"</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 incumbent with candidates being sam hobbs (d) 88.2% c. w. mckay (r) 11.8% ### Context: CREATE TABLE table_1342292_2 (incumbent VARCHAR, candidates VARCHAR) ### Response: ### Response: SELECT incumbent FROM table_1342292_2 WHERE candidates = "Sam Hobbs (D) 88.2% C. W. McKay (R) 11.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 Player is a Wide Receiver? ### Context: CREATE TABLE table_name_40 (player VARCHAR, position VARCHAR) ### Response: ### Response: SELECT player FROM table_name_40 WHERE position = "wide receiver"</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 react when the lane is 3 and heat is 2? ### Context: CREATE TABLE table_name_98 (react VARCHAR, lane VARCHAR, heat VARCHAR) ### Response: ### Response: SELECT react FROM table_name_98 WHERE lane = 3 AND heat = 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: On which date did the shock at latitude 08.909° s occur? ### Context: CREATE TABLE table_25675509_1 (date__yyyy_mm_dd_ VARCHAR, latitude VARCHAR) ### Response: ### Response: SELECT date__yyyy_mm_dd_ FROM table_25675509_1 WHERE latitude = "08.909° S"</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 a year under 1988, loser of Philadelphia Eagles, location of Giants Stadium, and a result of 21-0? ### Context: CREATE TABLE table_name_68 (date VARCHAR, result VARCHAR, location VARCHAR, year VARCHAR, loser VARCHAR) ### Response: ### Response: SELECT date FROM table_name_68 WHERE year < 1988 AND loser = "philadelphia eagles" AND location = "giants stadium" AND result = "21-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: Find all students taught by OTHA MOYER. Output the first and last names of the students. ### Context: CREATE TABLE list (firstname VARCHAR, lastname VARCHAR, classroom VARCHAR); CREATE TABLE teachers (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR) ### Response: ### Response: SELECT T1.firstname, T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "OTHA" AND T2.lastname = "MOYER"</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 when the championship was us open on a hard surface? ### Context: CREATE TABLE table_name_30 (partner VARCHAR, surface VARCHAR, championship VARCHAR) ### Response: ### Response: SELECT partner FROM table_name_30 WHERE surface = "hard" AND championship = "us open"</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 rank is the lowest with 37 games and more than 613 points? ### Context: CREATE TABLE table_name_44 (rank INTEGER, games VARCHAR, points VARCHAR) ### Response: ### Response: SELECT MIN(rank) FROM table_name_44 WHERE games = 37 AND points > 613</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 position that has a Height larger than 179, and Player is Ezgi Arslan? ### Context: CREATE TABLE table_name_54 (position VARCHAR, height VARCHAR, player VARCHAR) ### Response: ### Response: SELECT position FROM table_name_54 WHERE height > 179 AND player = "ezgi arslan"</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 when the B Score was 9.15 for Cheng Fei ( chn )? ### Context: CREATE TABLE table_name_70 (total INTEGER, b_score VARCHAR, gymnast VARCHAR) ### Response: ### Response: SELECT AVG(total) FROM table_name_70 WHERE b_score = 9.15 AND gymnast = "cheng fei ( chn )"</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 nationality is Barry Duench? ### Context: CREATE TABLE table_name_6 (nationality VARCHAR, player VARCHAR) ### Response: ### Response: SELECT nationality FROM table_name_6 WHERE player = "barry duench"</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 Label has the Region of Australia? ### Context: CREATE TABLE table_name_84 (label VARCHAR, region VARCHAR) ### Response: ### Response: SELECT label FROM table_name_84 WHERE region = "australia"</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 week for december 4, 2009 ### Context: CREATE TABLE table_name_80 (week VARCHAR, date VARCHAR) ### Response: ### Response: SELECT week FROM table_name_80 WHERE date = "december 4, 2009"</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 year when 1851 had 634? ### Context: CREATE TABLE table_name_29 (year VARCHAR) ### Response: ### Response: SELECT year FROM table_name_29 WHERE 1851 = "634"</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 traditional Chinese for the translation of "Crossing the River"? ### Context: CREATE TABLE table_1805919_1 (traditional_chinese VARCHAR, english_translation VARCHAR) ### Response: ### Response: SELECT COUNT(traditional_chinese) FROM table_1805919_1 WHERE english_translation = "Crossing the River"</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 ids of the problems reported before the date of any problem reported by Lysanne Turcotte? ### Context: CREATE TABLE problems (problem_id VARCHAR, reported_by_staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, staff_first_name VARCHAR, staff_last_name VARCHAR); CREATE TABLE problems (reported_by_staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR) ### Response: ### Response: SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported < (SELECT MIN(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = "Lysanne" AND T4.staff_last_name = "Turcotte")</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 Age of f/c Posiiton? ### Context: CREATE TABLE table_name_85 (year_born__age_ VARCHAR, position VARCHAR) ### Response: ### Response: SELECT year_born__age_ FROM table_name_85 WHERE position = "f/c"</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 hte license for beeone smod/hms software? ### Context: CREATE TABLE table_15038373_1 (license VARCHAR, software VARCHAR) ### Response: ### Response: SELECT license FROM table_15038373_1 WHERE software = "BeeOne SMOD/HMS"</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 sail numbers for boat skippered by Geoff Ross? ### Context: CREATE TABLE table_20854943_2 (sail_number VARCHAR, skipper VARCHAR) ### Response: ### Response: SELECT COUNT(sail_number) FROM table_20854943_2 WHERE skipper = "Geoff Ross"</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 ticket price at Canadian National Exhibition Stadium? ### Context: CREATE TABLE table_name_7 (ticket_price_s_ VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT ticket_price_s_ FROM table_name_7 WHERE venue = "canadian national exhibition stadium"</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 the Centurions play the Hamburg Sea Devils? ### Context: CREATE TABLE table_27764201_2 (game_site VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT game_site FROM table_27764201_2 WHERE opponent = "Hamburg Sea Devils"</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 position did the team with the total score of 41/60 get? ### Context: CREATE TABLE table_18278508_2 (position VARCHAR, total_score_week VARCHAR) ### Response: ### Response: SELECT position FROM table_18278508_2 WHERE total_score_week = "41/60"</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 every school with basic elements of 52? ### Context: CREATE TABLE table_21995420_6 (school VARCHAR, basic_elements VARCHAR) ### Response: ### Response: SELECT school FROM table_21995420_6 WHERE basic_elements = 52</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 james e. holmes for erselle young ### Context: CREATE TABLE table_25330991_3 (james_e_holmes VARCHAR, reidsville VARCHAR) ### Response: ### Response: SELECT james_e_holmes FROM table_25330991_3 WHERE reidsville = "Erselle Young"</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 max processor has a maximum memory of 256 gb? ### Context: CREATE TABLE table_10818465_1 (max_processors VARCHAR, max_memory VARCHAR) ### Response: ### Response: SELECT max_processors FROM table_10818465_1 WHERE max_memory = "256 GB"</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 coin with a € equivalency of 0.30 made of? ### Context: CREATE TABLE table_name_67 (composition VARCHAR, €_equiv VARCHAR) ### Response: ### Response: SELECT composition FROM table_name_67 WHERE €_equiv = "0.30"</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 County has Precincts of 90/90? ### Context: CREATE TABLE table_name_51 (county VARCHAR, precincts VARCHAR) ### Response: ### Response: SELECT county FROM table_name_51 WHERE precincts = "90/90"</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 range (varies by payload weight) for Shahab-4? ### Context: CREATE TABLE table_name_71 (range__varies_with_payload_weight_ VARCHAR, name_designation VARCHAR) ### Response: ### Response: SELECT range__varies_with_payload_weight_ FROM table_name_71 WHERE name_designation = "shahab-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: If the round is the semi-finals, what are the new entries this round? ### Context: CREATE TABLE table_1859269_1 (new_entries_this_round VARCHAR, round VARCHAR) ### Response: ### Response: SELECT new_entries_this_round FROM table_1859269_1 WHERE round = "Semi-finals"</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 number of interview scores that have an evening gown score of 9.543 and an average that is bigger than 9.521? ### Context: CREATE TABLE table_name_59 (interview INTEGER, evening_gown VARCHAR, average VARCHAR) ### Response: ### Response: SELECT SUM(interview) FROM table_name_59 WHERE evening_gown = 9.543 AND average > 9.521</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 race name where stirling moss won on 16 april ### Context: CREATE TABLE table_name_61 (race_name VARCHAR, winning_driver VARCHAR, date VARCHAR) ### Response: ### Response: SELECT race_name FROM table_name_61 WHERE winning_driver = "stirling moss" AND date = "16 april"</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 points smaller than 22 and a drawn of 2? ### Context: CREATE TABLE table_name_4 (name VARCHAR, points VARCHAR, drawn VARCHAR) ### Response: ### Response: SELECT name FROM table_name_4 WHERE points < 22 AND drawn = 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 date of Gavril Radomir's Bulgarian Victory? ### Context: CREATE TABLE table_name_15 (date VARCHAR, result VARCHAR, bulgarian_commander VARCHAR) ### Response: ### Response: SELECT date FROM table_name_15 WHERE result = "bulgarian victory" AND bulgarian_commander = "gavril radomir"</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 round did the spartak moscow club play? ### Context: CREATE TABLE table_name_12 (round VARCHAR, club VARCHAR) ### Response: ### Response: SELECT round FROM table_name_12 WHERE club = "spartak moscow"</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 series number that had 5.31 million viewers? ### Context: CREATE TABLE table_25548213_1 (series__number INTEGER, us_viewers__million_ VARCHAR) ### Response: ### Response: SELECT MAX(series__number) FROM table_25548213_1 WHERE us_viewers__million_ = "5.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's the highest Points with the Team of Tacuary, and has Losses that's smaller than 4? ### Context: CREATE TABLE table_name_56 (points INTEGER, team VARCHAR, losses VARCHAR) ### Response: ### Response: SELECT MAX(points) FROM table_name_56 WHERE team = "tacuary" AND losses < 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 try bonus when the loss is 13 and the draw is 2? ### Context: CREATE TABLE table_name_51 (try_bonus VARCHAR, lost VARCHAR, drawn VARCHAR) ### Response: ### Response: SELECT try_bonus FROM table_name_51 WHERE lost = "13" AND drawn = "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 was the score for the date of 15/6/03 ### Context: CREATE TABLE table_name_84 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_84 WHERE date = "15/6/03"</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 part number when the release date is january 2011, the frequency is 3.4 ghz and the release price (usd) is $317? ### Context: CREATE TABLE table_name_99 (part_number_s_ VARCHAR, release_price___usd__ VARCHAR, release_date VARCHAR, frequency VARCHAR) ### Response: ### Response: SELECT part_number_s_ FROM table_name_99 WHERE release_date = "january 2011" AND frequency = "3.4 ghz" AND release_price___usd__ = "$317"</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 Unanimous of the Minnesota Southern California School? ### Context: CREATE TABLE table_name_93 (unanimous VARCHAR, school VARCHAR) ### Response: ### Response: SELECT unanimous FROM table_name_93 WHERE school = "minnesota southern california"</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 drivetrain for 2ur-fse ### Context: CREATE TABLE table_21530474_1 (drivetrain VARCHAR, engine_code VARCHAR) ### Response: ### Response: SELECT drivetrain FROM table_21530474_1 WHERE engine_code = "2UR-FSE"</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 high points when high rebound is gray (8)? ### Context: CREATE TABLE table_11960610_10 (high_points VARCHAR, high_rebounds VARCHAR) ### Response: ### Response: SELECT high_points FROM table_11960610_10 WHERE high_rebounds = "Gray (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 minimum of t20 matches? ### Context: CREATE TABLE table_1176371_1 (t20_matches INTEGER) ### Response: ### Response: SELECT MIN(t20_matches) FROM table_1176371_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: How many picks went to College of Letran? ### Context: CREATE TABLE table_name_95 (pick VARCHAR, college VARCHAR) ### Response: ### Response: SELECT COUNT(pick) FROM table_name_95 WHERE college = "letran"</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 of game 43? ### Context: CREATE TABLE table_name_57 (score VARCHAR, game VARCHAR) ### Response: ### Response: SELECT score FROM table_name_57 WHERE game = 43</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 lane that David Payne was in when he ran longer than 13.17? ### Context: CREATE TABLE table_name_99 (lane INTEGER, athlete VARCHAR, time VARCHAR) ### Response: ### Response: SELECT MAX(lane) FROM table_name_99 WHERE athlete = "david payne" AND time > 13.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: Find the names of all artists that have "a" in their names. ### Context: CREATE TABLE ARTIST (Name VARCHAR) ### Response: ### Response: SELECT Name FROM ARTIST WHERE Name LIKE "%a%"</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 when the game is higher than 66 on march 28? ### Context: CREATE TABLE table_name_82 (score VARCHAR, game VARCHAR, march VARCHAR) ### Response: ### Response: SELECT score FROM table_name_82 WHERE game > 66 AND march = 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 was the result of the election with jamie l. whitten? ### Context: CREATE TABLE table_1342218_24 (result VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT result FROM table_1342218_24 WHERE incumbent = "Jamie L. Whitten"</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 to par score of the golfer that had a score of 68-70=138? ### Context: CREATE TABLE table_name_91 (to_par VARCHAR, score VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_91 WHERE score = 68 - 70 = 138</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: List the physicians' employee ids together with their primary affiliation departments' ids. ### Context: CREATE TABLE affiliated_with (physician VARCHAR, department VARCHAR, primaryaffiliation VARCHAR) ### Response: ### Response: SELECT physician, department FROM affiliated_with WHERE primaryaffiliation = 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 highest amount of games played in the 2003-04 season? ### Context: CREATE TABLE table_name_25 (played INTEGER, season VARCHAR) ### Response: ### Response: SELECT MAX(played) FROM table_name_25 WHERE season = "2003-04"</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 highest number a couple has ranked at? ### Context: CREATE TABLE table_20424140_3 (place INTEGER) ### Response: ### Response: SELECT MAX(place) FROM table_20424140_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: What did the away team score when playing Footscray? ### Context: CREATE TABLE table_name_37 (away_team VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_37 WHERE home_team = "footscray"</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 Points have an Opponent of @ atlanta thrashers, and a Game smaller than 28? ### Context: CREATE TABLE table_name_2 (points INTEGER, opponent VARCHAR, game VARCHAR) ### Response: ### Response: SELECT SUM(points) FROM table_name_2 WHERE opponent = "@ atlanta thrashers" AND game < 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: Name the total number of population 2011 for perlez ### Context: CREATE TABLE table_2562572_35 (population__2011_ VARCHAR, settlement VARCHAR) ### Response: ### Response: SELECT COUNT(population__2011_) FROM table_2562572_35 WHERE settlement = "Perlez"</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 tournament did Pauline Parmentier finish LQ in 2007? ### Context: CREATE TABLE table_name_34 (tournament VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_34 WHERE 2007 = "lq"</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 number lost when the number tied is more than 42, the years are less than 132, and the PCT is less than 0.5729000000000001? ### Context: CREATE TABLE table_name_57 (lost INTEGER, pct VARCHAR, tied VARCHAR, years VARCHAR) ### Response: ### Response: SELECT MAX(lost) FROM table_name_57 WHERE tied > 42 AND years < 132 AND pct < 0.5729000000000001</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 opponent at the game with a score of 111-106? ### Context: CREATE TABLE table_name_78 (opponent VARCHAR, score VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_78 WHERE score = "111-106"</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 won in 1993? ### Context: CREATE TABLE table_name_21 (player VARCHAR, year_s__won VARCHAR) ### Response: ### Response: SELECT player FROM table_name_21 WHERE year_s__won = "1993"</s>