inputs
stringlengths
400
1.34k
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many undergraduates are there in "San Jose State University" in year 2004? ### Context: CREATE TABLE discipline_enrollments (undergraduate INTEGER, campus VARCHAR, year VARCHAR); CREATE TABLE campuses (id VARCHAR, campus VARCHAR) ### Response: ### Response: SELECT SUM(t1.undergraduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = "San Jose 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: Which podiums did the alfa romeo team have? ### Context: CREATE TABLE table_10753917_1 (podiums VARCHAR, team VARCHAR) ### Response: ### Response: SELECT podiums FROM table_10753917_1 WHERE team = "Alfa Romeo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Surface has a Date of 15 february 1988? ### Context: CREATE TABLE table_name_64 (surface VARCHAR, date VARCHAR) ### Response: ### Response: SELECT surface FROM table_name_64 WHERE date = "15 february 1988"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total number of German submarines lost with more than 120958 sunk by mines? ### Context: CREATE TABLE table_name_46 (german_submarines_lost VARCHAR, sunk_by_mines INTEGER) ### Response: ### Response: SELECT COUNT(german_submarines_lost) FROM table_name_46 WHERE sunk_by_mines > 120958</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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(s) have a Height of 6-3? ### Context: CREATE TABLE table_name_42 (player VARCHAR, height VARCHAR) ### Response: ### Response: SELECT player FROM table_name_42 WHERE height = "6-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 is Northern Colorado's Rnd.? ### Context: CREATE TABLE table_name_18 (rnd VARCHAR, college VARCHAR) ### Response: ### Response: SELECT rnd FROM table_name_18 WHERE college = "northern colorado"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the player who was right guard score? ### Context: CREATE TABLE table_14342592_7 (points VARCHAR, position VARCHAR) ### Response: ### Response: SELECT COUNT(points) FROM table_14342592_7 WHERE position = "Right guard"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name for plymouth albion orrell ### Context: CREATE TABLE table_22977424_8 (name VARCHAR, promoted_to_league VARCHAR) ### Response: ### Response: SELECT name FROM table_22977424_8 WHERE promoted_to_league = "Plymouth Albion Orrell"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 highest attendance on December 23? ### Context: CREATE TABLE table_name_91 (attendance INTEGER, date VARCHAR) ### Response: ### Response: SELECT MAX(attendance) FROM table_name_91 WHERE date = "december 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: What are the fewest points for goals fewer than 13? ### Context: CREATE TABLE table_name_74 (points INTEGER, goals_for INTEGER) ### Response: ### Response: SELECT MIN(points) FROM table_name_74 WHERE goals_for < 13</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 mike bibby (8) had the highest amount of assists what is the record? ### Context: CREATE TABLE table_17311759_9 (record VARCHAR, high_assists VARCHAR) ### Response: ### Response: SELECT record FROM table_17311759_9 WHERE high_assists = "Mike Bibby (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 was the final result when the viewers selected ejay? ### Context: CREATE TABLE table_15162503_1 (result VARCHAR, viewers_selection VARCHAR) ### Response: ### Response: SELECT result FROM table_15162503_1 WHERE viewers_selection = "Ejay"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sd listings where the status is quarterfinals lost to Novak Djokovic [1]? ### Context: CREATE TABLE table_27615896_18 (sd VARCHAR, status VARCHAR) ### Response: ### Response: SELECT COUNT(sd) FROM table_27615896_18 WHERE status = "Quarterfinals lost to Novak Djokovic [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: List all total poll percentages when the for percentage is 59,532 (54). ### Context: CREATE TABLE table_1289762_1 (total_poll___percentage_ VARCHAR, for___percentage_ VARCHAR) ### Response: ### Response: SELECT total_poll___percentage_ FROM table_1289762_1 WHERE for___percentage_ = "59,532 (54)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total of the player with a 7 to par? ### Context: CREATE TABLE table_name_71 (total INTEGER, to_par VARCHAR) ### Response: ### Response: SELECT MAX(total) FROM table_name_71 WHERE to_par = 7</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is English Meaning, when Case Suffix (Case) is "-sa (dative)"? ### Context: CREATE TABLE table_name_40 (english_meaning VARCHAR, case_suffix__case_ VARCHAR) ### Response: ### Response: SELECT english_meaning FROM table_name_40 WHERE case_suffix__case_ = "-sa (dative)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number pick was Paul Seymour in round 1? ### Context: CREATE TABLE table_name_31 (pick INTEGER, round VARCHAR, player VARCHAR) ### Response: ### Response: SELECT SUM(pick) FROM table_name_31 WHERE round = 1 AND player = "paul seymour"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 all episode air dates where Luiza Possi was the guest fourth judge? ### Context: CREATE TABLE table_27615445_1 (episode_air_date VARCHAR, guest_fourth_judge VARCHAR) ### Response: ### Response: SELECT episode_air_date FROM table_27615445_1 WHERE guest_fourth_judge = "Luiza Possi"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What type of regular season/preseason game was played on August 25, 2007? ### Context: CREATE TABLE table_name_70 (regular_season___preseason VARCHAR, date VARCHAR) ### Response: ### Response: SELECT regular_season___preseason FROM table_name_70 WHERE date = "august 25, 2007"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the language for a journal that has a frequency of 3 times per year and has an ISSN number of 1136-7385? ### Context: CREATE TABLE table_name_43 (language VARCHAR, frequency VARCHAR, issn VARCHAR) ### Response: ### Response: SELECT language FROM table_name_43 WHERE frequency = "3 times per year" AND issn = "1136-7385"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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, when the Opponent is the Tampa Bay Buccaneers? ### Context: CREATE TABLE table_name_80 (attendance VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_80 WHERE opponent = "tampa bay buccaneers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 games did the team lose that played 7 games and has a GA of less than 27? ### Context: CREATE TABLE table_name_1 (losses VARCHAR, games_played VARCHAR, goals_against VARCHAR) ### Response: ### Response: SELECT COUNT(losses) FROM table_name_1 WHERE games_played = 7 AND goals_against < 27</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who had the high point total when dee brown (5) had the high assist total? ### Context: CREATE TABLE table_13619105_4 (high_points VARCHAR, high_assists VARCHAR) ### Response: ### Response: SELECT high_points FROM table_13619105_4 WHERE high_assists = "Dee Brown (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 Average Cards a game has a Season of 1997/1998, and a Games larger than 38? ### Context: CREATE TABLE table_name_78 (average_cards_a_game INTEGER, season VARCHAR, games VARCHAR) ### Response: ### Response: SELECT MAX(average_cards_a_game) FROM table_name_78 WHERE season = "1997/1998" AND games > 38</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 archive for run time of 23:55 ### Context: CREATE TABLE table_2102782_1 (archive VARCHAR, run_time VARCHAR) ### Response: ### Response: SELECT archive FROM table_2102782_1 WHERE run_time = "23:55"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 episode for jenny bicks and cindy chupack nominees in 2004 ### Context: CREATE TABLE table_name_16 (episode VARCHAR, year VARCHAR, nominee_s_ VARCHAR) ### Response: ### Response: SELECT episode FROM table_name_16 WHERE year = 2004 AND nominee_s_ = "jenny bicks and cindy chupack"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Word Form, when the Khmer is greater than ១០០០០០, and the UNGEGN is (muŏy) dáb leăn? ### Context: CREATE TABLE table_name_39 (word_form VARCHAR, khmer VARCHAR, ungegn VARCHAR) ### Response: ### Response: SELECT word_form FROM table_name_39 WHERE khmer > ១០០០០០ AND ungegn = "(muŏy) dáb leăn"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 district for first elected 1810 ### Context: CREATE TABLE table_2668352_14 (district VARCHAR, first_elected VARCHAR) ### Response: ### Response: SELECT district FROM table_2668352_14 WHERE first_elected = "1810"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 shippensburg university Colonized? ### Context: CREATE TABLE table_name_56 (colonized VARCHAR, school VARCHAR) ### Response: ### Response: SELECT colonized FROM table_name_56 WHERE school = "shippensburg university"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the result of the game against the Chicago Bears? ### Context: CREATE TABLE table_14966537_1 (result VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT result FROM table_14966537_1 WHERE opponent = "Chicago Bears"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Bronze with a 17 Rank and a Total less than 5 ### Context: CREATE TABLE table_name_30 (bronze INTEGER, rank VARCHAR, total VARCHAR) ### Response: ### Response: SELECT MIN(bronze) FROM table_name_30 WHERE rank = "17" AND total < 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 is the 110m H number when the overall points are 7835 (sb)? ### Context: CREATE TABLE table_name_85 (overall_points VARCHAR) ### Response: ### Response: SELECT 110 AS _m_h FROM table_name_85 WHERE overall_points = "7835 (sb)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 12 is the rank who is the most recent cyclist? ### Context: CREATE TABLE table_18676973_3 (most_recent_cyclist VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT most_recent_cyclist FROM table_18676973_3 WHERE rank = "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 shape has nickel as the metal, and one rupee as the denomination? ### Context: CREATE TABLE table_name_78 (shape VARCHAR, metal VARCHAR, denomination VARCHAR) ### Response: ### Response: SELECT shape FROM table_name_78 WHERE metal = "nickel" AND denomination = "one rupee"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Goalsagainst that has a Points of 108, and a Lost smaller than 14 has what average? ### Context: CREATE TABLE table_name_40 (goalsagainst INTEGER, points VARCHAR, lost VARCHAR) ### Response: ### Response: SELECT AVG(goalsagainst) FROM table_name_40 WHERE points = 108 AND lost < 14</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who were the Opponents in the Match with Partner Rushmi Chakravarthi? ### Context: CREATE TABLE table_name_80 (opponents VARCHAR, partner VARCHAR) ### Response: ### Response: SELECT opponents FROM table_name_80 WHERE partner = "rushmi chakravarthi"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 regular season had an average attendance of 1,242? ### Context: CREATE TABLE table_name_89 (reg_season VARCHAR, avg_attendance_† VARCHAR) ### Response: ### Response: SELECT reg_season FROM table_name_89 WHERE avg_attendance_† = "1,242"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 partner of the tournament on 6 July 1987? ### Context: CREATE TABLE table_name_12 (partner VARCHAR, date VARCHAR) ### Response: ### Response: SELECT partner FROM table_name_12 WHERE date = "6 july 1987"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 value for change% for area of 1835.01? ### Context: CREATE TABLE table_26321719_1 (change___percentage_ VARCHAR, area__km²_ VARCHAR) ### Response: ### Response: SELECT change___percentage_ FROM table_26321719_1 WHERE area__km²_ = "1835.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 was the result of the game against Luxembourg? ### Context: CREATE TABLE table_name_97 (results¹ VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT results¹ FROM table_name_97 WHERE opponent = "luxembourg"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Player who won in 1931? ### Context: CREATE TABLE table_name_88 (player VARCHAR, year_s__won VARCHAR) ### Response: ### Response: SELECT player FROM table_name_88 WHERE year_s__won = "1931"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 launched date of the station in cora huichol tepehuano nahuatl language? ### Context: CREATE TABLE table_name_1 (launched VARCHAR, languages VARCHAR) ### Response: ### Response: SELECT launched FROM table_name_1 WHERE languages = "cora huichol tepehuano nahuatl"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 most assists and how many did they have on April 8? ### Context: CREATE TABLE table_27722408_11 (high_assists VARCHAR, date VARCHAR) ### Response: ### Response: SELECT high_assists FROM table_27722408_11 WHERE date = "April 8"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: how many total with bush # being 1552 ### Context: CREATE TABLE table_13606924_1 (total VARCHAR, bush__number VARCHAR) ### Response: ### Response: SELECT COUNT(total) FROM table_13606924_1 WHERE bush__number = 1552</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Original title with a Country that is canada? ### Context: CREATE TABLE table_name_55 (original_title VARCHAR, country VARCHAR) ### Response: ### Response: SELECT original_title FROM table_name_55 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: How many opponents fought on 1982-12-03? ### Context: CREATE TABLE table_12206918_2 (opponent VARCHAR, date VARCHAR) ### Response: ### Response: SELECT COUNT(opponent) FROM table_12206918_2 WHERE date = "1982-12-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 was her final score on the ribbon apparatus? ### Context: CREATE TABLE table_name_86 (score_final VARCHAR, apparatus VARCHAR) ### Response: ### Response: SELECT score_final FROM table_name_86 WHERE apparatus = "ribbon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team was the second semi finalist in 2007? ### Context: CREATE TABLE table_11214772_2 (semi_finalist__number2 VARCHAR, year VARCHAR) ### Response: ### Response: SELECT semi_finalist__number2 FROM table_11214772_2 WHERE year = 2007</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Position of guard, and a Pick # larger than 9 is what highest round? ### Context: CREATE TABLE table_name_67 (round INTEGER, position VARCHAR, pick__number VARCHAR) ### Response: ### Response: SELECT MAX(round) FROM table_name_67 WHERE position = "guard" AND pick__number > 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 Series, when Days is greater than 99, and when Prize is €50,000? ### Context: CREATE TABLE table_name_15 (series VARCHAR, days VARCHAR, prize VARCHAR) ### Response: ### Response: SELECT series FROM table_name_15 WHERE days > 99 AND prize = "€50,000"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 low goal for kenny miller with an average smaller than 0.261? ### Context: CREATE TABLE table_name_24 (goals INTEGER, name VARCHAR, average VARCHAR) ### Response: ### Response: SELECT MIN(goals) FROM table_name_24 WHERE name = "kenny miller" AND average < 0.261</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Round has a College of arizona? ### Context: CREATE TABLE table_name_26 (round INTEGER, college VARCHAR) ### Response: ### Response: SELECT MIN(round) FROM table_name_26 WHERE college = "arizona"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 region where Roskilde is the largest city, what is the seat of administration? ### Context: CREATE TABLE table_16278602_1 (seat_of_administration VARCHAR, largest_city VARCHAR) ### Response: ### Response: SELECT seat_of_administration FROM table_16278602_1 WHERE largest_city = "Roskilde"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 27585 is the attendance what are the results of the games? ### Context: CREATE TABLE table_21436373_7 (result_games VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT result_games FROM table_21436373_7 WHERE attendance = 27585</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 object type when the right ascension (j2000) is 11h10m42.8s? ### Context: CREATE TABLE table_name_77 (object_type VARCHAR, right_ascension___j2000__ VARCHAR) ### Response: ### Response: SELECT object_type FROM table_name_77 WHERE right_ascension___j2000__ = "11h10m42.8s"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the away team at glenferrie oval? ### Context: CREATE TABLE table_name_33 (away_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_33 WHERE venue = "glenferrie oval"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 adac rally deutschland's rally HQ? ### Context: CREATE TABLE table_name_62 (rally_hq VARCHAR, rally_name VARCHAR) ### Response: ### Response: SELECT rally_hq FROM table_name_62 WHERE rally_name = "adac rally deutschland"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 first edition has an ISBN of 978-0785166252? ### Context: CREATE TABLE table_name_50 (first_edition VARCHAR, isbn VARCHAR) ### Response: ### Response: SELECT first_edition FROM table_name_50 WHERE isbn = "978-0785166252"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 car won the same award in 2001 that the bmw m67d39 3.9l v8 e38 740d won in 1999? ### Context: CREATE TABLE table_name_26 (Id VARCHAR) ### Response: ### Response: SELECT 2001 FROM table_name_26 WHERE 1999 = "bmw m67d39 3.9l v8 e38 740d"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Position, when Laps is 156? ### Context: CREATE TABLE table_name_90 (position VARCHAR, laps VARCHAR) ### Response: ### Response: SELECT position FROM table_name_90 WHERE laps = 156</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Bronze has a Gold smaller than 1, and a Rank of 17, and a Nation of china? ### Context: CREATE TABLE table_name_78 (bronze INTEGER, nation VARCHAR, gold VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT MAX(bronze) FROM table_name_78 WHERE gold < 1 AND rank = "17" AND nation = "china"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for craig ### Context: CREATE TABLE table_22815568_12 (population VARCHAR, county VARCHAR) ### Response: ### Response: SELECT COUNT(population) FROM table_22815568_12 WHERE county = "Craig"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the number of the name for number 4? ### Context: CREATE TABLE table_12803263_1 (name VARCHAR, _number VARCHAR) ### Response: ### Response: SELECT COUNT(name) FROM table_12803263_1 WHERE _number = 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: Where did Fitzroy play as the home team? ### Context: CREATE TABLE table_name_22 (venue VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_22 WHERE home_team = "fitzroy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 are there for 63 tries against? ### Context: CREATE TABLE table_17625749_3 (points_for VARCHAR, tries_against VARCHAR) ### Response: ### Response: SELECT points_for FROM table_17625749_3 WHERE tries_against = "63"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 final score in 2007 for the world league in novi sad played against Italy? ### Context: CREATE TABLE table_name_31 (final_score VARCHAR, opponent VARCHAR, town VARCHAR, year VARCHAR, competition VARCHAR) ### Response: ### Response: SELECT final_score FROM table_name_31 WHERE year = 2007 AND competition = "world league" AND town = "novi sad" AND opponent = "italy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 date for bundaberg rum stadium ### Context: CREATE TABLE table_16388439_3 (date VARCHAR, ground VARCHAR) ### Response: ### Response: SELECT date FROM table_16388439_3 WHERE ground = "Bundaberg Rum 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: Which AFC cup does Kenji Arai have? ### Context: CREATE TABLE table_name_43 (afc_cup VARCHAR, name VARCHAR) ### Response: ### Response: SELECT afc_cup FROM table_name_43 WHERE name = "kenji arai"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Constructor has Laps larger than 9, and a Grid smaller than 2? ### Context: CREATE TABLE table_name_7 (constructor VARCHAR, laps VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT constructor FROM table_name_7 WHERE laps > 9 AND grid < 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: How many jockeys are listed running at the Sir Rupert Clarke Stakes? ### Context: CREATE TABLE table_14981555_3 (jockey VARCHAR, race VARCHAR) ### Response: ### Response: SELECT COUNT(jockey) FROM table_14981555_3 WHERE race = "Sir Rupert Clarke Stakes"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Score of the match where Opponents in the Final was Vitalia Diatchenko Irena Pavlovic? ### Context: CREATE TABLE table_name_46 (score VARCHAR, opponents_in_the_final VARCHAR) ### Response: ### Response: SELECT score FROM table_name_46 WHERE opponents_in_the_final = "vitalia diatchenko irena pavlovic"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sspec number when the socket is standard power? ### Context: CREATE TABLE table_name_75 (sspec_number VARCHAR, socket VARCHAR) ### Response: ### Response: SELECT sspec_number FROM table_name_75 WHERE socket = "standard power"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 background colour for the Australian Capital Territory ### Context: CREATE TABLE table_1000181_1 (text_background_colour VARCHAR, state_territory VARCHAR) ### Response: ### Response: SELECT text_background_colour FROM table_1000181_1 WHERE state_territory = "Australian Capital Territory"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 gdp per capita in 2008 for the region that had a combined gross enrollment ration of 89.0? ### Context: CREATE TABLE table_25042332_33 (gdp__ppp__per_capita__2008_ INTEGER, combined_gross_enrollment_ratio__2009_ VARCHAR) ### Response: ### Response: SELECT MIN(gdp__ppp__per_capita__2008_) FROM table_25042332_33 WHERE combined_gross_enrollment_ratio__2009_ = "89.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 company has an author of Aristophanes and play of Plutus? ### Context: CREATE TABLE table_name_74 (company VARCHAR, author VARCHAR, play VARCHAR) ### Response: ### Response: SELECT company FROM table_name_74 WHERE author = "aristophanes" AND play = "plutus"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 constructed piercarlo ghinzani's car with under 44 laps? ### Context: CREATE TABLE table_name_59 (constructor VARCHAR, laps VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT constructor FROM table_name_59 WHERE laps < 44 AND driver = "piercarlo ghinzani"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 giant slalom with a 37 super g? ### Context: CREATE TABLE table_name_94 (Giant VARCHAR, super_g VARCHAR) ### Response: ### Response: SELECT Giant AS slalom FROM table_name_94 WHERE super_g = "37"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What difference has a points greater than 10, and a drawn less than 2? ### Context: CREATE TABLE table_name_66 (difference VARCHAR, points VARCHAR, drawn VARCHAR) ### Response: ### Response: SELECT difference FROM table_name_66 WHERE points > 10 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 game had the highest score and a time of 2:35? ### Context: CREATE TABLE table_name_34 (game INTEGER, time VARCHAR) ### Response: ### Response: SELECT MAX(game) FROM table_name_34 WHERE time = "2:35"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average silver for total more than 1 with bronze of 2 for france and gold more than 0 ### Context: CREATE TABLE table_name_62 (silver INTEGER, gold VARCHAR, nation VARCHAR, total VARCHAR, bronze VARCHAR) ### Response: ### Response: SELECT AVG(silver) FROM table_name_62 WHERE total > 1 AND bronze = 2 AND nation = "france" AND gold > 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 label for traditional chinese 情歌沒有告訴你 ### Context: CREATE TABLE table_1893815_1 (label VARCHAR, chinese__traditional_ VARCHAR) ### Response: ### Response: SELECT label FROM table_1893815_1 WHERE chinese__traditional_ = "情歌沒有告訴你"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: English title of malèna had what original title? ### Context: CREATE TABLE table_name_9 (original_title VARCHAR, english_title VARCHAR) ### Response: ### Response: SELECT original_title FROM table_name_9 WHERE english_title = "malè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 the corinthians have a position of less than 5, what is the average against? ### Context: CREATE TABLE table_name_58 (against INTEGER, position VARCHAR, team VARCHAR) ### Response: ### Response: SELECT AVG(against) FROM table_name_58 WHERE position < 5 AND team = "corinthians"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 maximum age of all the students. ### Context: CREATE TABLE STUDENT (Age INTEGER) ### Response: ### Response: SELECT MAX(Age) FROM STUDENT</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the largest crowd at vfl park? ### Context: CREATE TABLE table_name_75 (crowd INTEGER, venue VARCHAR) ### Response: ### Response: SELECT MAX(crowd) FROM table_name_75 WHERE venue = "vfl park"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the oberliga bayern for sv sandhausen for 1986-87 ### Context: CREATE TABLE table_14242137_4 (oberliga_bayern VARCHAR, oberliga_baden_württemberg VARCHAR, season VARCHAR) ### Response: ### Response: SELECT oberliga_bayern FROM table_14242137_4 WHERE oberliga_baden_württemberg = "SV Sandhausen" AND season = "1986-87"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 day did philadelphia visit? ### Context: CREATE TABLE table_name_31 (date VARCHAR, visitor VARCHAR) ### Response: ### Response: SELECT date FROM table_name_31 WHERE visitor = "philadelphia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Rank, when the Current Seating Capacity is 137,000? ### Context: CREATE TABLE table_name_55 (rank INTEGER, current_seating_capacity VARCHAR) ### Response: ### Response: SELECT MIN(rank) FROM table_name_55 WHERE current_seating_capacity = 137 OFFSET 000</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Termination of Mission with a Title of Ambassador Extraordinary and Plenipotentiary with a Representative of Reynold E. Carlson? ### Context: CREATE TABLE table_name_37 (termination_of_mission VARCHAR, title VARCHAR, representative VARCHAR) ### Response: ### Response: SELECT termination_of_mission FROM table_name_37 WHERE title = "ambassador extraordinary and plenipotentiary" AND representative = "reynold e. carlson"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 arrangement for bets3ab 3alia nafsy? ### Context: CREATE TABLE table_28005100_1 (arrangement VARCHAR, title VARCHAR) ### Response: ### Response: SELECT arrangement FROM table_28005100_1 WHERE title = "Bets3ab 3alia Nafsy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name, address road, and city for all branches sorted by open year. ### Context: CREATE TABLE branch (name VARCHAR, address_road VARCHAR, city VARCHAR, open_year VARCHAR) ### Response: ### Response: SELECT name, address_road, city FROM branch ORDER BY open_year</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 mascot with a #/County of 34 Howard? ### Context: CREATE TABLE table_name_41 (mascot VARCHAR, _number___county VARCHAR) ### Response: ### Response: SELECT mascot FROM table_name_41 WHERE _number___county = "34 howard"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 January has an Opponent of @ detroit red wings? ### Context: CREATE TABLE table_name_74 (january INTEGER, opponent VARCHAR) ### Response: ### Response: SELECT AVG(january) FROM table_name_74 WHERE opponent = "@ detroit red wings"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 April 28 rank when the Mar 24 is 17? ### Context: CREATE TABLE table_name_92 (april_28 VARCHAR, mar_24 VARCHAR) ### Response: ### Response: SELECT april_28 FROM table_name_92 WHERE mar_24 = "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 name of customers who did not pay with Cash. ### Context: CREATE TABLE customers (customer_name VARCHAR, payment_method VARCHAR) ### Response: ### Response: SELECT customer_name FROM customers WHERE payment_method <> 'Cash'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of 2500-3000ft ### Context: CREATE TABLE table_1456056_1 (Id VARCHAR) ### Response: ### Response: SELECT MAX(2500 AS _3000ft) FROM table_1456056_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 claim processing stages are there in total? ### Context: CREATE TABLE claims_processing_stages (Id VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM claims_processing_stages</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of each treatment, together with the first name of the professional who operated it. ### Context: CREATE TABLE Treatments (date_of_treatment VARCHAR, professional_id VARCHAR); CREATE TABLE Professionals (first_name VARCHAR, professional_id VARCHAR) ### Response: ### Response: SELECT T1.date_of_treatment, T2.first_name FROM Treatments AS T1 JOIN Professionals AS T2 ON T1.professional_id = T2.professional_id</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many grids does dave walker have? ### Context: CREATE TABLE table_name_6 (grid VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT COUNT(grid) FROM table_name_6 WHERE driver = "dave walker"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 film actor (actress) starred the most films? List his or her first name, last name and actor id. ### Context: CREATE TABLE film_actor (actor_id VARCHAR); CREATE TABLE actor (first_name VARCHAR, last_name VARCHAR, actor_id VARCHAR) ### Response: ### Response: SELECT T2.first_name, T2.last_name, T2.actor_id FROM film_actor AS T1 JOIN actor AS T2 ON T1.actor_id = T2.actor_id GROUP BY T2.actor_id ORDER BY COUNT(*) DESC LIMIT 1</s>