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: What is the latitude of the point with a longitude of 147.1w? ### Context: CREATE TABLE table_name_7 (latitude VARCHAR, longitude VARCHAR) ### Response: ### Response: SELECT latitude FROM table_name_7 WHERE longitude = "147.1w"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Record of the 1991 Port of Spain Games? ### Context: CREATE TABLE table_name_56 (record VARCHAR, games VARCHAR) ### Response: ### Response: SELECT record FROM table_name_56 WHERE games = "1991 port of 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: Name the power for dymd-fm ### Context: CREATE TABLE table_27914076_1 (power_kw VARCHAR, callsign VARCHAR) ### Response: ### Response: SELECT power_kw FROM table_27914076_1 WHERE callsign = "DYMD-FM"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 frequency of WMAD? ### Context: CREATE TABLE table_name_21 (frequency VARCHAR, call_letters VARCHAR) ### Response: ### Response: SELECT frequency FROM table_name_21 WHERE call_letters = "wmad"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is per capita income when median household income is $42,845? ### Context: CREATE TABLE table_name_43 (per_capita_income VARCHAR, median_household_income VARCHAR) ### Response: ### Response: SELECT per_capita_income FROM table_name_43 WHERE median_household_income = "$42,845"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Christopher Petry with the production cod 3x6006? ### Context: CREATE TABLE table_26464364_1 (title VARCHAR, directed_by VARCHAR, production_code VARCHAR) ### Response: ### Response: SELECT title FROM table_26464364_1 WHERE directed_by = "Christopher Petry" AND production_code = "3X6006"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 power of the Type R? ### Context: CREATE TABLE table_250230_2 (power VARCHAR, model VARCHAR) ### Response: ### Response: SELECT power FROM table_250230_2 WHERE model = "Type R"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the home team for the 2013 season and the result was 0–0? ### Context: CREATE TABLE table_24949975_1 (home_team VARCHAR, season VARCHAR, result VARCHAR) ### Response: ### Response: SELECT home_team FROM table_24949975_1 WHERE season = "2013" AND result = "0–0"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the constructor of the car driven by Heikki Kovalainen? ### Context: CREATE TABLE table_name_39 (constructor VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT constructor FROM table_name_39 WHERE driver = "heikki kovalainen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ticket/office for orville preston ### Context: CREATE TABLE table_22607062_1 (ticket___office VARCHAR, secretary_of_state VARCHAR) ### Response: ### Response: SELECT ticket___office FROM table_22607062_1 WHERE secretary_of_state = "Orville Preston"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Ryan McCay's speed that has a rank better than 8? ### Context: CREATE TABLE table_name_65 (speed VARCHAR, rank VARCHAR, rider VARCHAR) ### Response: ### Response: SELECT speed FROM table_name_65 WHERE rank > 8 AND rider = "ryan mccay"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for reason for change is district michigan 3rd? ### Context: CREATE TABLE table_1652224_5 (reason_for_change VARCHAR, district VARCHAR) ### Response: ### Response: SELECT COUNT(reason_for_change) FROM table_1652224_5 WHERE district = "Michigan 3rd"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game did they lose by 6 - 5? ### Context: CREATE TABLE table_name_67 (loss VARCHAR, score VARCHAR) ### Response: ### Response: SELECT loss FROM table_name_67 WHERE score = "6 - 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 Touchdowns is the lowest one that has Points of 5, and a Field goals larger than 0? ### Context: CREATE TABLE table_name_81 (touchdowns INTEGER, points VARCHAR, field_goals VARCHAR) ### Response: ### Response: SELECT MIN(touchdowns) FROM table_name_81 WHERE points = 5 AND field_goals > 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: How many times did Niels Christian Kaldau win the men's single and Pi Hongyan win the women's single in the same year? ### Context: CREATE TABLE table_12275654_1 (year VARCHAR, mens_singles VARCHAR, womens_singles VARCHAR) ### Response: ### Response: SELECT COUNT(year) FROM table_12275654_1 WHERE mens_singles = "Niels Christian Kaldau" AND womens_singles = "Pi Hongyan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 genre is the song recorded in 1929? ### Context: CREATE TABLE table_name_26 (genre VARCHAR, year_recorded VARCHAR) ### Response: ### Response: SELECT genre FROM table_name_26 WHERE year_recorded = "1929"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What date did Micky Adams vacate his position? ### Context: CREATE TABLE table_18788823_5 (date_of_vacancy VARCHAR, outgoing_manager VARCHAR) ### Response: ### Response: SELECT date_of_vacancy FROM table_18788823_5 WHERE outgoing_manager = "Micky Adams"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Hessen the year that Saar was FK Pirmasens? ### Context: CREATE TABLE table_name_23 (hessen VARCHAR, saar VARCHAR) ### Response: ### Response: SELECT hessen FROM table_name_23 WHERE saar = "fk pirmasens"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 OVERALL AVERAGE WITH A 22 PICK, FROM RICE COLLEGE, AND ROUND BIGGER THAN 10? ### Context: CREATE TABLE table_name_23 (overall INTEGER, round VARCHAR, pick VARCHAR, college VARCHAR) ### Response: ### Response: SELECT AVG(overall) FROM table_name_23 WHERE pick = 22 AND college = "rice" AND round > 10</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the record for Game 8? ### Context: CREATE TABLE table_name_42 (record VARCHAR, game VARCHAR) ### Response: ### Response: SELECT record FROM table_name_42 WHERE game = "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 2004 value with 2r in 1994? ### Context: CREATE TABLE table_name_60 (Id VARCHAR) ### Response: ### Response: SELECT 2004 FROM table_name_60 WHERE 1994 = "2r"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 final score in Tie #28? ### Context: CREATE TABLE table_name_90 (score VARCHAR, tie_no VARCHAR) ### Response: ### Response: SELECT score FROM table_name_90 WHERE tie_no = 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: How many points did Costa score in the Macau Grand Prix since 2011? ### Context: CREATE TABLE table_name_23 (points VARCHAR, season VARCHAR, series VARCHAR) ### Response: ### Response: SELECT points FROM table_name_23 WHERE season > 2011 AND series = "macau grand prix"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Show the faculty id of each faculty member, along with the number of students he or she advises. ### Context: CREATE TABLE Faculty (FacID VARCHAR); CREATE TABLE Student (advisor VARCHAR) ### Response: ### Response: SELECT T1.FacID, COUNT(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 maximum power of engine code 2e? ### Context: CREATE TABLE table_name_95 (max_power_at_rpm VARCHAR, engine_code_s_ VARCHAR) ### Response: ### Response: SELECT max_power_at_rpm FROM table_name_95 WHERE engine_code_s_ = "2e"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Spain's skip? ### Context: CREATE TABLE table_name_92 (skip VARCHAR, nation VARCHAR) ### Response: ### Response: SELECT skip FROM table_name_92 WHERE nation = "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: What is British, when Australian is "i, ɪ, ə", and when Examples is "œsophagus"? ### Context: CREATE TABLE table_name_83 (british VARCHAR, australian VARCHAR, examples VARCHAR) ### Response: ### Response: SELECT british FROM table_name_83 WHERE australian = "i, ɪ, ə" AND examples = "œsophagus"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game played that was at the Seattle Center Coliseum? ### Context: CREATE TABLE table_name_54 (date VARCHAR, location_attendance VARCHAR) ### Response: ### Response: SELECT date FROM table_name_54 WHERE location_attendance = "seattle center coliseum"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 performed with Tina Parekh? ### Context: CREATE TABLE table_18278508_2 (main_contestant VARCHAR, co_contestant__yaar_vs_pyaar_ VARCHAR) ### Response: ### Response: SELECT main_contestant FROM table_18278508_2 WHERE co_contestant__yaar_vs_pyaar_ = "Tina Parekh"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What country has an ICAO of ENZV? ### Context: CREATE TABLE table_name_85 (country VARCHAR, icao VARCHAR) ### Response: ### Response: SELECT country FROM table_name_85 WHERE icao = "enzv"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was the game on September 12 played when the Dallas Cowboys was the visiting team? ### Context: CREATE TABLE table_name_26 (stadium VARCHAR, visiting_team VARCHAR, date VARCHAR) ### Response: ### Response: SELECT stadium FROM table_name_26 WHERE visiting_team = "dallas cowboys" AND date = "september 12"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the enrollment at the institution in New London, Connecticut? ### Context: CREATE TABLE table_261931_2 (enrollment VARCHAR, location VARCHAR) ### Response: ### Response: SELECT enrollment FROM table_261931_2 WHERE location = "New London, Connecticut"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Award of troisième prix, and a Year smaller than 2010, and a Director of jan komasa is what film? ### Context: CREATE TABLE table_name_10 (film VARCHAR, director VARCHAR, award VARCHAR, year VARCHAR) ### Response: ### Response: SELECT film FROM table_name_10 WHERE award = "troisième prix" AND year < 2010 AND director = "jan komasa"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Class AAAA champion in 2006-07? ### Context: CREATE TABLE table_14603057_2 (class_aAAA VARCHAR, school_year VARCHAR) ### Response: ### Response: SELECT class_aAAA FROM table_14603057_2 WHERE school_year = "2006-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: Name the segment c for couscous ### Context: CREATE TABLE table_15187735_3 (segment_c VARCHAR, segment_b VARCHAR) ### Response: ### Response: SELECT segment_c FROM table_15187735_3 WHERE segment_b = "Couscous"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 site of the game against Buffalo Bills ? ### Context: CREATE TABLE table_14875671_1 (game_site VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT game_site FROM table_14875671_1 WHERE opponent = "Buffalo Bills"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 gold that has bronze less than 2, a silver of 1 and total more than 4? ### Context: CREATE TABLE table_name_32 (gold INTEGER, total VARCHAR, bronze VARCHAR, silver VARCHAR) ### Response: ### Response: SELECT SUM(gold) FROM table_name_32 WHERE bronze < 2 AND silver = 1 AND total > 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: Tell me the shuttle run with grade c ### Context: CREATE TABLE table_name_36 (shuttle_run__sec_ VARCHAR, grade VARCHAR) ### Response: ### Response: SELECT shuttle_run__sec_ FROM table_name_36 WHERE grade = "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: How many episodes had the us viewers (millions) figure of 5.0? ### Context: CREATE TABLE table_21312959_1 (no_in_season VARCHAR, us_viewers__millions_ VARCHAR) ### Response: ### Response: SELECT COUNT(no_in_season) FROM table_21312959_1 WHERE us_viewers__millions_ = "5.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: Name the result for north carolina 9 ### Context: CREATE TABLE table_2668329_18 (result VARCHAR, district VARCHAR) ### Response: ### Response: SELECT COUNT(result) FROM table_2668329_18 WHERE district = "North Carolina 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 number of graduates in "San Francisco State University" in year 2004? ### Context: CREATE TABLE discipline_enrollments (graduate INTEGER, campus VARCHAR, year VARCHAR); CREATE TABLE campuses (id VARCHAR, campus VARCHAR) ### Response: ### Response: SELECT SUM(t1.graduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = "San Francisco State 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: Tell me the championship game for big eight ### Context: CREATE TABLE table_name_29 (championship_game VARCHAR, conference VARCHAR) ### Response: ### Response: SELECT championship_game FROM table_name_29 WHERE conference = "big eight"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home leg score against fc schalke 04? ### Context: CREATE TABLE table_2214582_3 (home_leg VARCHAR, opponents VARCHAR) ### Response: ### Response: SELECT home_leg FROM table_2214582_3 WHERE opponents = "FC Schalke 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: Tell me the sum of silver for liechtenstein and bronze more than 4 ### Context: CREATE TABLE table_name_34 (silver INTEGER, nation VARCHAR, bronze VARCHAR) ### Response: ### Response: SELECT SUM(silver) FROM table_name_34 WHERE nation = "liechtenstein" AND bronze > 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 Races is Test Driver what is the Position? ### Context: CREATE TABLE table_name_40 (position VARCHAR, races VARCHAR) ### Response: ### Response: SELECT position FROM table_name_40 WHERE races = "test driver"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 date the claim was made, the date it was settled and the amount settled for all the claims which had exactly one settlement. ### Context: CREATE TABLE Claims (claim_id VARCHAR, date_claim_made VARCHAR, Date_Claim_Settled VARCHAR, Claim_id VARCHAR); CREATE TABLE Settlements (Claim_id VARCHAR) ### Response: ### Response: SELECT T1.claim_id, T1.date_claim_made, T1.Date_Claim_Settled FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id GROUP BY T1.claim_id HAVING COUNT(*) = 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 was the margin of victory over Brad Faxon? ### Context: CREATE TABLE table_name_51 (margin_of_victory VARCHAR, runner_s__up VARCHAR) ### Response: ### Response: SELECT margin_of_victory FROM table_name_51 WHERE runner_s__up = "brad faxon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 margin where runner(s)-up is phil mickelson ### Context: CREATE TABLE table_11570261_1 (margin VARCHAR, runner_s__up VARCHAR) ### Response: ### Response: SELECT margin FROM table_11570261_1 WHERE runner_s__up = "Phil Mickelson"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 grid with laps larger than 23? ### Context: CREATE TABLE table_name_85 (grid INTEGER, laps INTEGER) ### Response: ### Response: SELECT MIN(grid) FROM table_name_85 WHERE laps > 23</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 score with record of 68-66 ### Context: CREATE TABLE table_name_69 (score VARCHAR, record VARCHAR) ### Response: ### Response: SELECT score FROM table_name_69 WHERE record = "68-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: How many teams named argentina? ### Context: CREATE TABLE table_14573770_4 (fourth_place INTEGER, nation VARCHAR) ### Response: ### Response: SELECT MAX(fourth_place) FROM table_14573770_4 WHERE nation = "Argentina"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attendance for the date of 11/11/01? ### Context: CREATE TABLE table_name_19 (attendance VARCHAR, date VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_19 WHERE date = "11/11/01"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Date, when Surface is "Carpet"? ### Context: CREATE TABLE table_name_24 (date VARCHAR, surface VARCHAR) ### Response: ### Response: SELECT date FROM table_name_24 WHERE surface = "carpet"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 English translation of 哀郢? ### Context: CREATE TABLE table_1805919_1 (english_translation VARCHAR, traditional_chinese VARCHAR) ### Response: ### Response: SELECT english_translation FROM table_1805919_1 WHERE traditional_chinese = "哀郢"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 losses of the team with games less than 14, wins less than 3, in the Maac Conference at Fairfield School? ### Context: CREATE TABLE table_name_61 (losses VARCHAR, school VARCHAR, conference VARCHAR, games VARCHAR, wins VARCHAR) ### Response: ### Response: SELECT COUNT(losses) FROM table_name_61 WHERE games < 14 AND wins < 3 AND conference = "maac" AND school = "fairfield"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of clock rate mhz when bandwidth mb/s is 2400 ### Context: CREATE TABLE table_142573_1 (clock_rate__mhz_ VARCHAR, bandwidth__mb_s_ VARCHAR) ### Response: ### Response: SELECT COUNT(clock_rate__mhz_) FROM table_142573_1 WHERE bandwidth__mb_s_ = 2400</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the smallest code associated with a type of m for a region less than 17 named, named saint-sylvère? ### Context: CREATE TABLE table_name_98 (code INTEGER, region VARCHAR, type VARCHAR, name VARCHAR) ### Response: ### Response: SELECT MIN(code) FROM table_name_98 WHERE type = "m" AND name = "saint-sylvère" AND region < 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: What is the maximum number of top 10s when he finished in 63rd? ### Context: CREATE TABLE table_1637041_2 (top_10 INTEGER, position VARCHAR) ### Response: ### Response: SELECT MAX(top_10) FROM table_1637041_2 WHERE position = "63rd"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 draft picks are there at the Defensive End position? ### Context: CREATE TABLE table_16729063_1 (pick__number VARCHAR, position VARCHAR) ### Response: ### Response: SELECT COUNT(pick__number) FROM table_16729063_1 WHERE position = "Defensive End"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total silver when bronze is smaller than 0? ### Context: CREATE TABLE table_name_92 (silver VARCHAR, bronze INTEGER) ### Response: ### Response: SELECT COUNT(silver) FROM table_name_92 WHERE bronze < 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: Which text has Wade-Giles translation of ai-ma … hsin-yüan? ### Context: CREATE TABLE table_name_85 (text VARCHAR, wade_giles VARCHAR) ### Response: ### Response: SELECT text FROM table_name_85 WHERE wade_giles = "ai-ma … hsin-yüan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 year has most number of concerts? ### Context: CREATE TABLE concert (YEAR VARCHAR) ### Response: ### Response: SELECT YEAR FROM concert GROUP BY YEAR ORDER BY COUNT(*) 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 is the status for seed 14 ### Context: CREATE TABLE table_29572583_20 (status VARCHAR, seed VARCHAR) ### Response: ### Response: SELECT status FROM table_29572583_20 WHERE seed = 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: What is the gayndah when perry is 304? ### Context: CREATE TABLE table_12526990_1 (gayndah INTEGER, perry VARCHAR) ### Response: ### Response: SELECT MAX(gayndah) FROM table_12526990_1 WHERE perry = 304</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lowest Overall average that has a College of Arkansas, and a Round larger than 3? ### Context: CREATE TABLE table_name_51 (overall INTEGER, college VARCHAR, round VARCHAR) ### Response: ### Response: SELECT MIN(overall) FROM table_name_51 WHERE college = "arkansas" AND round > 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: Find the patient who most recently stayed in room 111. ### Context: CREATE TABLE stay (patient VARCHAR, room VARCHAR, staystart VARCHAR) ### Response: ### Response: SELECT patient FROM stay WHERE room = 111 ORDER BY staystart 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: When the record was 67-82, what was the final score recorded? ### Context: CREATE TABLE table_name_55 (score VARCHAR, record VARCHAR) ### Response: ### Response: SELECT score FROM table_name_55 WHERE record = "67-82"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 names of colleges with enrollment greater than that of some (at least one) college in the FL state. ### Context: CREATE TABLE college (cName VARCHAR, enr INTEGER, state VARCHAR) ### Response: ### Response: SELECT DISTINCT cName FROM college WHERE enr > (SELECT MIN(enr) FROM college WHERE state = 'FL')</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: November 25, 2001 was what week of the season? ### Context: CREATE TABLE table_name_52 (week VARCHAR, date VARCHAR) ### Response: ### Response: SELECT COUNT(week) FROM table_name_52 WHERE date = "november 25, 2001"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 maximum torque at rpm for the engine with code BMM? ### Context: CREATE TABLE table_name_31 (max_torque_at_rpm VARCHAR, engine_code_s_ VARCHAR) ### Response: ### Response: SELECT max_torque_at_rpm FROM table_name_31 WHERE engine_code_s_ = "bmm"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Hale Boggs belong to? ### Context: CREATE TABLE table_1341884_20 (party VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT party FROM table_1341884_20 WHERE incumbent = "Hale Boggs"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Tournament when the 1990 is Olympic Games? ### Context: CREATE TABLE table_name_61 (tournament VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_61 WHERE 1990 = "olympic games"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 percent (1990) where state is united states ### Context: CREATE TABLE table_1182314_5 (percent__1990_ VARCHAR, state VARCHAR) ### Response: ### Response: SELECT percent__1990_ FROM table_1182314_5 WHERE state = "United states"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Built, when Floors is less than 22, when Rank is less than 8, and when Name is White, Mediacityuk? ### Context: CREATE TABLE table_name_55 (built VARCHAR, name VARCHAR, floors VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT COUNT(built) FROM table_name_55 WHERE floors < 22 AND rank < 8 AND name = "white, mediacityuk"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: for the other of mouy, what's the khmer? ### Context: CREATE TABLE table_name_20 (khmer VARCHAR, other VARCHAR) ### Response: ### Response: SELECT khmer FROM table_name_20 WHERE other = "mouy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tries for points against of 583 ### Context: CREATE TABLE table_name_92 (tries_for VARCHAR, points_against VARCHAR) ### Response: ### Response: SELECT tries_for FROM table_name_92 WHERE points_against = "583"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Mary Davis with a Gay Mitchell that is 4.6%? ### Context: CREATE TABLE table_name_96 (mary_davis VARCHAR, gay_mitchell VARCHAR) ### Response: ### Response: SELECT mary_davis FROM table_name_96 WHERE gay_mitchell = "4.6%"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score of the game where the adelaide 36ers were the home team? ### Context: CREATE TABLE table_name_39 (score VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT score FROM table_name_39 WHERE home_team = "adelaide 36ers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the railroad length is 362 feet how many miles is it from kingston? ### Context: CREATE TABLE table_16226584_1 (mi_from_kingston VARCHAR, length_feet VARCHAR) ### Response: ### Response: SELECT mi_from_kingston FROM table_16226584_1 WHERE length_feet = 362</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Attendance has an Arena of arrowhead pond of anaheim, and Points smaller than 5? ### Context: CREATE TABLE table_name_20 (attendance VARCHAR, arena VARCHAR, points VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_20 WHERE arena = "arrowhead pond of anaheim" AND points < 5</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which character won before 2006? ### Context: CREATE TABLE table_name_44 (character VARCHAR, result VARCHAR, year VARCHAR) ### Response: ### Response: SELECT character FROM table_name_44 WHERE result = "won" AND year < 2006</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 took third place in 2012? ### Context: CREATE TABLE table_name_82 (third_place VARCHAR, year VARCHAR) ### Response: ### Response: SELECT third_place FROM table_name_82 WHERE year = 2012</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 wheel arrangement made in 1890? ### Context: CREATE TABLE table_name_99 (wheel_arrangement VARCHAR, year_made VARCHAR) ### Response: ### Response: SELECT wheel_arrangement FROM table_name_99 WHERE year_made = "1890"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 star for the Vara network? ### Context: CREATE TABLE table_name_61 (starring VARCHAR, network VARCHAR) ### Response: ### Response: SELECT starring FROM table_name_61 WHERE network = "vara"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 torque does daewoo have? ### Context: CREATE TABLE table_name_18 (torque VARCHAR, type VARCHAR) ### Response: ### Response: SELECT torque FROM table_name_18 WHERE type = "daewoo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Jessica Pengelly? ### Context: CREATE TABLE table_name_52 (nationality VARCHAR, name VARCHAR) ### Response: ### Response: SELECT nationality FROM table_name_52 WHERE name = "jessica pengelly"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Frequency, when Part Number(s) is AY80609004002AC? ### Context: CREATE TABLE table_name_85 (frequency VARCHAR, part_number_s_ VARCHAR) ### Response: ### Response: SELECT frequency FROM table_name_85 WHERE part_number_s_ = "ay80609004002ac"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 opponent on June 6? ### Context: CREATE TABLE table_name_23 (opponent VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_23 WHERE date = "june 6"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Find the number of routes whose destination airports are in Canada. ### Context: CREATE TABLE routes (dst_apid VARCHAR); CREATE TABLE airports (apid VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE country = 'Canada'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: For events with under 3 times played and fewer than 1 cut made, what is the total number of top-10 finishes? ### Context: CREATE TABLE table_name_24 (top_10 VARCHAR, events VARCHAR, cuts_made VARCHAR) ### Response: ### Response: SELECT COUNT(top_10) FROM table_name_24 WHERE events < 3 AND cuts_made < 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Total has a Silver larger than 8, and a Bronze of 20, and a Gold smaller than 20? ### Context: CREATE TABLE table_name_93 (total VARCHAR, gold VARCHAR, silver VARCHAR, bronze VARCHAR) ### Response: ### Response: SELECT COUNT(total) FROM table_name_93 WHERE silver > 8 AND bronze = 20 AND gold < 20</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What are the years for the player with fewer than 62 goals, debut year of 1981 and 28 games? ### Context: CREATE TABLE table_name_61 (years_at_club VARCHAR, games VARCHAR, goals VARCHAR, debut_year VARCHAR) ### Response: ### Response: SELECT years_at_club FROM table_name_61 WHERE goals < 62 AND debut_year = 1981 AND games = 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: Who had the pole position(s) when rob guiver won and kyle ryde had the fastest lap? ### Context: CREATE TABLE table_29162856_1 (pole_position VARCHAR, winning_rider VARCHAR, fastest_lap VARCHAR) ### Response: ### Response: SELECT pole_position FROM table_29162856_1 WHERE winning_rider = "Rob Guiver" AND fastest_lap = "Kyle Ryde"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 position of digital channel 5 44 (+1)? ### Context: CREATE TABLE table_182410_10 (position VARCHAR, digital_terrestrial_channel VARCHAR) ### Response: ### Response: SELECT position FROM table_182410_10 WHERE digital_terrestrial_channel = "5 44 (+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 Gil's partner on 10–12 july 2009 ### Context: CREATE TABLE table_18042031_16 (partnering VARCHAR, date VARCHAR) ### Response: ### Response: SELECT partnering FROM table_18042031_16 WHERE date = "10–12 July 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: Name the 20 questions when centerfold model is cherie witter ### Context: CREATE TABLE table_1566848_6 (centerfold_model VARCHAR) ### Response: ### Response: SELECT 20 AS _questions FROM table_1566848_6 WHERE centerfold_model = "Cherie Witter"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 if 44 is tosses/pyramids? ### Context: CREATE TABLE table_22014431_3 (total VARCHAR, tosses_pyramids VARCHAR) ### Response: ### Response: SELECT total FROM table_22014431_3 WHERE tosses_pyramids = "44"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Frequency has the Identifier of CBFX-FM-6? ### Context: CREATE TABLE table_name_53 (frequency VARCHAR, identifier VARCHAR) ### Response: ### Response: SELECT frequency FROM table_name_53 WHERE identifier = "cbfx-fm-6"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the general classification at stage 18 that has a points classification of Tony Rominger? ### Context: CREATE TABLE table_name_59 (general_classification VARCHAR, points_classification VARCHAR, stage VARCHAR) ### Response: ### Response: SELECT general_classification FROM table_name_59 WHERE points_classification = "tony rominger" AND stage = "18"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: List the number for the operator melbourne and metropolitan tramways board. ### Context: CREATE TABLE table_22481967_1 (number VARCHAR, operator VARCHAR) ### Response: ### Response: SELECT number FROM table_22481967_1 WHERE operator = "Melbourne and Metropolitan Tramways Board"</s>