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 Craft used at Coniston Water? ### Context: CREATE TABLE table_name_15 (craft VARCHAR, location VARCHAR) ### Response: ### Response: SELECT craft FROM table_name_15 WHERE location = "coniston water"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 road record for team ole miss ### Context: CREATE TABLE table_22825679_1 (road_record VARCHAR, team VARCHAR) ### Response: ### Response: SELECT COUNT(road_record) FROM table_22825679_1 WHERE team = "Ole Miss"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Leading Scorer in the Game with a Score of 96-87? ### Context: CREATE TABLE table_name_90 (Leading VARCHAR, score VARCHAR) ### Response: ### Response: SELECT Leading AS scorer FROM table_name_90 WHERE score = "96-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: Who was the player who played for Hartford Whalers NHL Team? ### Context: CREATE TABLE table_2679061_9 (player VARCHAR, nhl_team VARCHAR) ### Response: ### Response: SELECT player FROM table_2679061_9 WHERE nhl_team = "Hartford Whalers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 id of the candidate who most recently accessed the course? ### Context: CREATE TABLE candidate_assessments (candidate_id VARCHAR, assessment_date VARCHAR) ### Response: ### Response: SELECT candidate_id FROM candidate_assessments ORDER BY assessment_date 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 are the civil parishes of the Loughmarsh townland? ### Context: CREATE TABLE table_30121082_1 (civil_parish VARCHAR, townland VARCHAR) ### Response: ### Response: SELECT civil_parish FROM table_30121082_1 WHERE townland = "Loughmarsh"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Tie no when Swansea City is the Away team with a Score of 2–2? ### Context: CREATE TABLE table_name_75 (tie_no VARCHAR, score VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT tie_no FROM table_name_75 WHERE score = "2–2" AND away_team = "swansea city"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the date of the game when the Mavericks were the home team? ### Context: CREATE TABLE table_name_98 (date VARCHAR, home VARCHAR) ### Response: ### Response: SELECT date FROM table_name_98 WHERE home = "mavericks"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 venue named nassau veterans memorial coliseum established?? ### Context: CREATE TABLE table_name_45 (established INTEGER, venue VARCHAR) ### Response: ### Response: SELECT MAX(established) FROM table_name_45 WHERE venue = "nassau veterans memorial 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: What director has a worldwide gross of $149,022,650 and is ranked greater than 7? ### Context: CREATE TABLE table_name_39 (director VARCHAR, rank VARCHAR, worldwide_gross VARCHAR) ### Response: ### Response: SELECT director FROM table_name_39 WHERE rank > 7 AND worldwide_gross = "$149,022,650"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the highest rank when the metal total is 1 and the nation is the United Kingdom? ### Context: CREATE TABLE table_name_99 (rank INTEGER, total VARCHAR, nation VARCHAR) ### Response: ### Response: SELECT MAX(rank) FROM table_name_99 WHERE total = 1 AND nation = "united kingdom"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Result has the Event Strikeforce and the Method, Ko (spinning back fist)? ### Context: CREATE TABLE table_name_15 (result VARCHAR, event VARCHAR, method VARCHAR) ### Response: ### Response: SELECT result FROM table_name_15 WHERE event = "strikeforce" AND method = "ko (spinning back fist)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sanctioned the event in lincoln, illinois? ### Context: CREATE TABLE table_16275828_4 (sanction VARCHAR, location VARCHAR) ### Response: ### Response: SELECT sanction FROM table_16275828_4 WHERE location = "Lincoln, Illinois"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away team when the venue was Windy Hill? ### Context: CREATE TABLE table_name_59 (away_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_59 WHERE venue = "windy hill"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the score in the final of the tournament with a clay surface on 18 April 2011? ### Context: CREATE TABLE table_name_88 (score_in_the_final VARCHAR, surface VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score_in_the_final FROM table_name_88 WHERE surface = "clay" AND date = "18 april 2011"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is Pierre Vermeulen from? ### Context: CREATE TABLE table_24565004_22 (nationality² VARCHAR, name VARCHAR) ### Response: ### Response: SELECT nationality² FROM table_24565004_22 WHERE name = "Pierre Vermeulen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for a year after 2003, when the nominee(s) is john wells? ### Context: CREATE TABLE table_name_64 (result VARCHAR, year VARCHAR, nominee_s_ VARCHAR) ### Response: ### Response: SELECT result FROM table_name_64 WHERE year > 2003 AND nominee_s_ = "john wells"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 money that Sam Snead won? ### Context: CREATE TABLE table_name_52 (money___$__ VARCHAR, player VARCHAR) ### Response: ### Response: SELECT money___$__ FROM table_name_52 WHERE player = "sam snead"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away captain with a result of Eng by 1 wkt? ### Context: CREATE TABLE table_name_43 (away_captain VARCHAR, result VARCHAR) ### Response: ### Response: SELECT away_captain FROM table_name_43 WHERE result = "eng by 1 wkt"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 height was the player that played for the Rockets between 1992-93? ### Context: CREATE TABLE table_11734041_1 (height_in_ft VARCHAR, years_for_rockets VARCHAR) ### Response: ### Response: SELECT height_in_ft FROM table_11734041_1 WHERE years_for_rockets = "1992-93"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for the active rock format? ### Context: CREATE TABLE table_name_18 (frequency VARCHAR, format VARCHAR) ### Response: ### Response: SELECT frequency FROM table_name_18 WHERE format = "active rock"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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_13 (results¹ VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT results¹ FROM table_name_13 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 largest frequency owned by multicultural broadcasting with a Format of vietnamese? ### Context: CREATE TABLE table_name_40 (frequency INTEGER, status VARCHAR, format VARCHAR) ### Response: ### Response: SELECT MAX(frequency) FROM table_name_40 WHERE status = "owned by multicultural broadcasting" AND format = "vietnamese"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the record when Minnesota was the home team? ### Context: CREATE TABLE table_name_64 (record VARCHAR, home VARCHAR) ### Response: ### Response: SELECT record FROM table_name_64 WHERE home = "minnesota"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was there for the race with 25 laps? ### Context: CREATE TABLE table_name_31 (constructor VARCHAR, laps VARCHAR) ### Response: ### Response: SELECT constructor FROM table_name_31 WHERE laps = 25</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 least played when points is 36 and place is more than 2? ### Context: CREATE TABLE table_name_39 (played INTEGER, points VARCHAR, place VARCHAR) ### Response: ### Response: SELECT MIN(played) FROM table_name_39 WHERE points = 36 AND place > 2</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the cumulative time (min and seconds) that has more than 6 seconds in shuttle time and a total level time of 64.8 seconds? ### Context: CREATE TABLE table_name_93 (cumulative_time__min_and_seconds_ VARCHAR, shuttle_time__seconds_ VARCHAR, total_level_time__s_ VARCHAR) ### Response: ### Response: SELECT cumulative_time__min_and_seconds_ FROM table_name_93 WHERE shuttle_time__seconds_ > 6 AND total_level_time__s_ = 64.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 hometown of player Jason Place? ### Context: CREATE TABLE table_11677100_12 (hometown VARCHAR, player VARCHAR) ### Response: ### Response: SELECT hometown FROM table_11677100_12 WHERE player = "Jason Place"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average amount of Runs that has 40 innings, and Not outs larger than 6? ### Context: CREATE TABLE table_name_70 (runs INTEGER, innings VARCHAR, not_outs VARCHAR) ### Response: ### Response: SELECT AVG(runs) FROM table_name_70 WHERE innings = 40 AND not_outs > 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: Which party was Andrea Ronchi from? ### Context: CREATE TABLE table_name_85 (party VARCHAR, minister VARCHAR) ### Response: ### Response: SELECT party FROM table_name_85 WHERE minister = "andrea ronchi"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 candidate status of macedonia? ### Context: CREATE TABLE table_name_46 (candidate_status VARCHAR, state VARCHAR) ### Response: ### Response: SELECT candidate_status FROM table_name_46 WHERE state = "macedonia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 report for per-viktor widengren and alfa romeo ### Context: CREATE TABLE table_name_48 (report VARCHAR, winning_driver VARCHAR, winning_constructor VARCHAR) ### Response: ### Response: SELECT report FROM table_name_48 WHERE winning_driver = "per-viktor widengren" AND winning_constructor = "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: The score of 73-71-70=214 belongs to what country? ### Context: CREATE TABLE table_name_77 (country VARCHAR, score VARCHAR) ### Response: ### Response: SELECT country FROM table_name_77 WHERE score = 73 - 71 - 70 = 214</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Set 5, when Date is Jun 26, and when Set 2 is 25-22? ### Context: CREATE TABLE table_name_46 (set_5 VARCHAR, date VARCHAR, set_2 VARCHAR) ### Response: ### Response: SELECT set_5 FROM table_name_46 WHERE date = "jun 26" AND set_2 = "25-22"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Player, when Year(s) Won is before 1961, and when To Par is 6? ### Context: CREATE TABLE table_name_42 (player VARCHAR, year_s__won VARCHAR, to_par VARCHAR) ### Response: ### Response: SELECT player FROM table_name_42 WHERE year_s__won < 1961 AND to_par = 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 the title of the song when the result is to the live shows? ### Context: CREATE TABLE table_29547777_1 (song_title VARCHAR, result__placement_ VARCHAR) ### Response: ### Response: SELECT song_title FROM table_29547777_1 WHERE result__placement_ = "to the Live Shows"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 In service for a vessel with a listed Unit of 12th minesweeper squadron? ### Context: CREATE TABLE table_name_37 (in_service INTEGER, unit VARCHAR) ### Response: ### Response: SELECT MAX(in_service) FROM table_name_37 WHERE unit = "12th minesweeper squadron"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: On what date were the Melbourne Tigers the home team? ### Context: CREATE TABLE table_name_83 (date VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_83 WHERE home_team = "melbourne tigers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 census ranking is 231 of 5,008, what was the population? ### Context: CREATE TABLE table_171236_1 (population VARCHAR, census_ranking VARCHAR) ### Response: ### Response: SELECT population FROM table_171236_1 WHERE census_ranking = "231 of 5,008"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 province has the Chinese translation 重庆? ### Context: CREATE TABLE table_16489766_2 (province VARCHAR, chinese VARCHAR) ### Response: ### Response: SELECT COUNT(province) FROM table_16489766_2 WHERE 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: In what parish is the Askrova Bedehuskapell church? ### Context: CREATE TABLE table_178381_1 (parish__prestegjeld_ VARCHAR, church_name VARCHAR) ### Response: ### Response: SELECT parish__prestegjeld_ FROM table_178381_1 WHERE church_name = "Askrova bedehuskapell"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 owner of the radio station that plays adult hits? ### Context: CREATE TABLE table_name_8 (owner VARCHAR, format VARCHAR) ### Response: ### Response: SELECT owner FROM table_name_8 WHERE format = "adult hits"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 presenter on Thursday of the series in which Emma Willis was the presenter on Wednesday, and Alice Levine Jamie East was the presenter on Sunday? ### Context: CREATE TABLE table_name_15 (thursday VARCHAR, wednesday VARCHAR, sunday VARCHAR) ### Response: ### Response: SELECT thursday FROM table_name_15 WHERE wednesday = "emma willis" AND sunday = "alice levine jamie east"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the resale when the down (up to kbit/s) is 24000? ### Context: CREATE TABLE table_name_41 (resale VARCHAR, down__up_to_kbit_s_ VARCHAR) ### Response: ### Response: SELECT resale FROM table_name_41 WHERE down__up_to_kbit_s_ = 24000</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Metacritic released after 2005, with a Platform of playstation 3 and a GameRankings of 84.44%? ### Context: CREATE TABLE table_name_76 (metacritic VARCHAR, gamerankings VARCHAR, year_released VARCHAR, platform VARCHAR) ### Response: ### Response: SELECT metacritic FROM table_name_76 WHERE year_released > 2005 AND platform = "playstation 3" AND gamerankings = "84.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: Which Nation has the USA-18 sail? ### Context: CREATE TABLE table_name_91 (nation VARCHAR, sail VARCHAR) ### Response: ### Response: SELECT nation FROM table_name_91 WHERE sail = "usa-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: Which Third has a Nation of hungary? ### Context: CREATE TABLE table_name_6 (third VARCHAR, nation VARCHAR) ### Response: ### Response: SELECT third FROM table_name_6 WHERE nation = "hungary"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which class had a rank of 2nd? ### Context: CREATE TABLE table_name_52 (class VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT class FROM table_name_52 WHERE rank = "2nd"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 class for schliefen ### Context: CREATE TABLE table_1745843_9 (class VARCHAR, part_3 VARCHAR) ### Response: ### Response: SELECT class FROM table_1745843_9 WHERE part_3 = "schliefen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Japanese prefecture has Ibaraki, Tsukuba? ### Context: CREATE TABLE table_name_15 (japanese VARCHAR, prefecture VARCHAR, name VARCHAR) ### Response: ### Response: SELECT japanese FROM table_name_15 WHERE prefecture = "ibaraki" AND name = "tsukuba"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Can you tell me the highest Total votes that has the % of popular vote of 0.86%, and the # of seats won larger than 0? ### Context: CREATE TABLE table_name_48 (total_votes INTEGER, _percentage_of_popular_vote VARCHAR, _number_of_seats_won VARCHAR) ### Response: ### Response: SELECT MAX(total_votes) FROM table_name_48 WHERE _percentage_of_popular_vote = "0.86%" AND _number_of_seats_won > 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the area in acres of gortnaskehy? ### Context: CREATE TABLE table_30120605_1 (area__acres__ VARCHAR, townland VARCHAR) ### Response: ### Response: SELECT area__acres__ FROM table_30120605_1 WHERE townland = "Gortnaskehy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the grid was 11? ### Context: CREATE TABLE table_name_74 (constructor VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT constructor FROM table_name_74 WHERE grid = 11</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many people watched the game at Lake Oval? ### Context: CREATE TABLE table_name_1 (crowd INTEGER, venue VARCHAR) ### Response: ### Response: SELECT SUM(crowd) FROM table_name_1 WHERE venue = "lake 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: What country was Henry Picard from? ### Context: CREATE TABLE table_name_22 (country VARCHAR, player VARCHAR) ### Response: ### Response: SELECT country FROM table_name_22 WHERE player = "henry picard"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who is the director of movie Avatar? ### Context: CREATE TABLE Movie (director VARCHAR, title VARCHAR) ### Response: ### Response: SELECT director FROM Movie WHERE title = 'Avatar'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 shooting preference of Matthew Myers, acquired in 2010? ### Context: CREATE TABLE table_name_99 (shoots VARCHAR, acquired VARCHAR, player VARCHAR) ### Response: ### Response: SELECT shoots FROM table_name_99 WHERE acquired = 2010 AND player = "matthew myers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 league did they play in 2001? ### Context: CREATE TABLE table_name_39 (league VARCHAR, year VARCHAR) ### Response: ### Response: SELECT league FROM table_name_39 WHERE year = 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: During the period in which gross sales totals for "The Show Girl Must Go On" reached $2,628,457, what did the numbers show for tickets sold/ available at the box office? ### Context: CREATE TABLE table_22123920_4 (tickets_sold___available VARCHAR, gross_sales VARCHAR) ### Response: ### Response: SELECT tickets_sold___available FROM table_22123920_4 WHERE gross_sales = "$2,628,457"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Date when the result is *non-conference game. #rankings from ap poll .? ### Context: CREATE TABLE table_name_65 (date VARCHAR, result VARCHAR) ### Response: ### Response: SELECT date FROM table_name_65 WHERE result = "*non-conference game. #rankings from ap poll ."</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 director made Mi-temps? ### Context: CREATE TABLE table_name_13 (director_s_ VARCHAR, film VARCHAR) ### Response: ### Response: SELECT director_s_ FROM table_name_13 WHERE film = "mi-temps"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the date where john wall (11) had the high assists? ### Context: CREATE TABLE table_27721131_6 (date VARCHAR, high_assists VARCHAR) ### Response: ### Response: SELECT date FROM table_27721131_6 WHERE high_assists = "John Wall (11)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Airport has a IATA of erz? ### Context: CREATE TABLE table_name_63 (airport VARCHAR, iata VARCHAR) ### Response: ### Response: SELECT airport FROM table_name_63 WHERE iata = "erz"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 score has a Date of august 17? ### Context: CREATE TABLE table_name_58 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_58 WHERE date = "august 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's the average interview with Preliminaries larger than 8.27, an Evening Gown of 8.85, and an Average smaller than 8.842? ### Context: CREATE TABLE table_name_65 (interview INTEGER, average VARCHAR, preliminaries VARCHAR, evening_gown VARCHAR) ### Response: ### Response: SELECT AVG(interview) FROM table_name_65 WHERE preliminaries > 8.27 AND evening_gown = 8.85 AND average < 8.842</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 score had Essendon as an opponent and Steven Clark as a player? ### Context: CREATE TABLE table_name_53 (score VARCHAR, opponent VARCHAR, player VARCHAR) ### Response: ### Response: SELECT score FROM table_name_53 WHERE opponent = "essendon" AND player = "steven clark"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which player from A-League 39 (110) has the highest games per goal? ### Context: CREATE TABLE table_name_34 (games_per_goal INTEGER, a_league VARCHAR) ### Response: ### Response: SELECT MAX(games_per_goal) FROM table_name_34 WHERE a_league = "39 (110)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 listing for Podiums has 0 F/laps and 39 points? ### Context: CREATE TABLE table_name_38 (podiums VARCHAR, f_laps VARCHAR, points VARCHAR) ### Response: ### Response: SELECT podiums FROM table_name_38 WHERE f_laps = "0" AND points = "39"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score in the episode with john barrowman and vic reeves on sean's team? ### Context: CREATE TABLE table_23292220_4 (scores VARCHAR, seans_team VARCHAR) ### Response: ### Response: SELECT scores FROM table_23292220_4 WHERE seans_team = "John Barrowman and Vic Reeves"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for the f136fb engine? ### Context: CREATE TABLE table_name_98 (usage VARCHAR, engine VARCHAR) ### Response: ### Response: SELECT usage FROM table_name_98 WHERE engine = "f136fb"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the highest rank for a nation with 26 golds and over 17 silvers? ### Context: CREATE TABLE table_name_39 (rank INTEGER, gold VARCHAR, silver VARCHAR) ### Response: ### Response: SELECT MAX(rank) FROM table_name_39 WHERE gold = 26 AND silver > 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 first name and country code of the player who did the most number of tours. ### Context: CREATE TABLE players (country_code VARCHAR, first_name VARCHAR, player_id VARCHAR); CREATE TABLE rankings (player_id VARCHAR, tours VARCHAR) ### Response: ### Response: SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.tours 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's the average round Red Bryant was drafted with a pick larger than 121? ### Context: CREATE TABLE table_name_29 (round INTEGER, name VARCHAR, pick VARCHAR) ### Response: ### Response: SELECT AVG(round) FROM table_name_29 WHERE name = "red bryant" AND pick > 121</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 customer phone numbers under the policy "Life Insurance"? ### Context: CREATE TABLE available_policies (customer_phone VARCHAR, policy_type_code VARCHAR) ### Response: ### Response: SELECT customer_phone FROM available_policies WHERE policy_type_code = "Life Insurance"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 year with a record of 33-33 ### Context: CREATE TABLE table_name_23 (year INTEGER, record VARCHAR) ### Response: ### Response: SELECT AVG(year) FROM table_name_23 WHERE record = "33-33"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 constituency number with electorates (2009) number larger than 152,958? ### Context: CREATE TABLE table_name_40 (constituency_number VARCHAR, number_of_electorates__2009_ INTEGER) ### Response: ### Response: SELECT constituency_number FROM table_name_40 WHERE number_of_electorates__2009_ > 152 OFFSET 958</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Electrics has an Engine of 175cc, bhp (kw), and a Model Name of d10 sports & bushman? ### Context: CREATE TABLE table_name_28 (electrics VARCHAR, engine VARCHAR, model_name VARCHAR) ### Response: ### Response: SELECT electrics FROM table_name_28 WHERE engine = "175cc, bhp (kw)" AND model_name = "d10 sports & bushman"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 nickname that means god holds my life? ### Context: CREATE TABLE table_11908801_1 (nickname VARCHAR, meaning VARCHAR) ### Response: ### Response: SELECT nickname FROM table_11908801_1 WHERE meaning = "God Holds My Life"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: On what date was the venue VFL Park? ### Context: CREATE TABLE table_name_50 (date VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT date FROM table_name_50 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: What is the score for Billy Andrade? ### Context: CREATE TABLE table_name_73 (score VARCHAR, player VARCHAR) ### Response: ### Response: SELECT score FROM table_name_73 WHERE player = "billy andrade"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 place when the event is 4000 m individual pursuit? ### Context: CREATE TABLE table_name_94 (place VARCHAR, event VARCHAR) ### Response: ### Response: SELECT place FROM table_name_94 WHERE event = "4000 m individual pursuit"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 school drafted dave lewis? ### Context: CREATE TABLE table_name_75 (school VARCHAR, player VARCHAR) ### Response: ### Response: SELECT school FROM table_name_75 WHERE player = "dave lewis"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tries when 22 are played with 1 draw and a try bonus of 13? ### Context: CREATE TABLE table_name_22 (tries_against VARCHAR, try_bonus VARCHAR, played VARCHAR, drawn VARCHAR) ### Response: ### Response: SELECT tries_against FROM table_name_22 WHERE played = "22" AND drawn = "1" AND try_bonus = "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: How many cores does the processor with a release price of $426 have? ### Context: CREATE TABLE table_name_28 (cores VARCHAR, release_price___usd__ VARCHAR) ### Response: ### Response: SELECT cores FROM table_name_28 WHERE release_price___usd__ = "$426"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 unemployment rate for 34024 ### Context: CREATE TABLE table_22815568_12 (unemployment_rate VARCHAR, population VARCHAR) ### Response: ### Response: SELECT COUNT(unemployment_rate) FROM table_22815568_12 WHERE population = 34024</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 IATA for jeddah ### Context: CREATE TABLE table_name_28 (iata VARCHAR, city VARCHAR) ### Response: ### Response: SELECT iata FROM table_name_28 WHERE city = "jeddah"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In which season were there Wins of 29 and a Finished place of 3rd? ### Context: CREATE TABLE table_name_10 (season VARCHAR, wins VARCHAR, finish VARCHAR) ### Response: ### Response: SELECT season FROM table_name_10 WHERE wins = "29" AND finish = "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 was the attendance at Round 9? ### Context: CREATE TABLE table_name_59 (crowd VARCHAR, round VARCHAR) ### Response: ### Response: SELECT COUNT(crowd) FROM table_name_59 WHERE round = "round 9"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which team did Scott Pruett drive for when the grid was smaller than 20 and there were 65 laps? ### Context: CREATE TABLE table_name_80 (team VARCHAR, driver VARCHAR, laps VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT team FROM table_name_80 WHERE laps = 65 AND grid < 20 AND driver = "scott pruett"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the date when the attendance was 48,041? ### Context: CREATE TABLE table_name_84 (date VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT date FROM table_name_84 WHERE attendance = "48,041"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 score occurred when the save was ||27,108||63–44? ### Context: CREATE TABLE table_name_93 (score VARCHAR, save VARCHAR) ### Response: ### Response: SELECT score FROM table_name_93 WHERE save = "||27,108||63–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's the 1st leg of team 1 alajuelense? ### Context: CREATE TABLE table_name_50 (team_1 VARCHAR) ### Response: ### Response: SELECT 1 AS st_leg FROM table_name_50 WHERE team_1 = "alajuelense"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2008 has 1r as a 2010, A as the 2007, and 1r as the 2009? ### Context: CREATE TABLE table_name_54 (Id VARCHAR) ### Response: ### Response: SELECT 2008 FROM table_name_54 WHERE 2010 = "1r" AND 2007 = "a" AND 2009 = "1r"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Points Classification Navy Blue Jersey that has Yoann le Boulanger, and Gerolsteiner? ### Context: CREATE TABLE table_name_11 (points_classification_navy_blue_jersey VARCHAR, mountains_classification_green_jersey VARCHAR, team_classification VARCHAR) ### Response: ### Response: SELECT points_classification_navy_blue_jersey FROM table_name_11 WHERE mountains_classification_green_jersey = "yoann le boulanger" AND team_classification = "gerolsteiner"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Conference Semifinals has a Conference Finals of † denotes division championship? ### Context: CREATE TABLE table_name_57 (conference_semifinals VARCHAR, conference_finals VARCHAR) ### Response: ### Response: SELECT conference_semifinals FROM table_name_57 WHERE conference_finals = "† denotes division championship"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the numbe of provincial captial where the population is 1162900? ### Context: CREATE TABLE table_17416221_1 (provincial_capital VARCHAR, population__2013_ VARCHAR) ### Response: ### Response: SELECT COUNT(provincial_capital) FROM table_17416221_1 WHERE population__2013_ = 1162900</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of Congress has 44 cosponsors? ### Context: CREATE TABLE table_name_97 (congress VARCHAR, _number_of_cosponsors VARCHAR) ### Response: ### Response: SELECT congress FROM table_name_97 WHERE _number_of_cosponsors = 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: Which Round is the lowest one that has a Position of wide receiver, and an Overall smaller than 222? ### Context: CREATE TABLE table_name_34 (round INTEGER, position VARCHAR, overall VARCHAR) ### Response: ### Response: SELECT MIN(round) FROM table_name_34 WHERE position = "wide receiver" AND overall < 222</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 stamps have a face value of 37¢ and were printed in the banknote corporation of america? ### Context: CREATE TABLE table_15635768_1 (no_stamps_in_sheet VARCHAR, face_value VARCHAR, printer VARCHAR) ### Response: ### Response: SELECT COUNT(no_stamps_in_sheet) FROM table_15635768_1 WHERE face_value = "37¢" AND printer = "Banknote Corporation of America"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Club has a Not winning editions of 1992, 2003? ### Context: CREATE TABLE table_name_9 (club VARCHAR, not_winning_editions VARCHAR) ### Response: ### Response: SELECT club FROM table_name_9 WHERE not_winning_editions = "1992, 2003"</s>