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 population of Cardwell? ### Context: CREATE TABLE table_171236_2 (population INTEGER, official_name VARCHAR) ### Response: ### Response: SELECT MIN(population) FROM table_171236_2 WHERE official_name = "Cardwell"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Give me the result for a format saying album with 1994 as the year. ### Context: CREATE TABLE table_name_91 (result_s_ VARCHAR, format_s_ VARCHAR, year VARCHAR) ### Response: ### Response: SELECT result_s_ FROM table_name_91 WHERE format_s_ = "album" AND year = 1994</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What New Delhi Competition has a Result of Loss? ### Context: CREATE TABLE table_name_33 (competition VARCHAR, venue VARCHAR, result VARCHAR) ### Response: ### Response: SELECT competition FROM table_name_33 WHERE venue = "new delhi" AND result = "loss"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score of the game played on January 19? ### Context: CREATE TABLE table_15780049_6 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_15780049_6 WHERE date = "January 19"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In which year did he compete in the Universiade? ### Context: CREATE TABLE table_name_21 (year VARCHAR, competition VARCHAR) ### Response: ### Response: SELECT year FROM table_name_21 WHERE competition = "universiade"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many teams played against the Mavericks in a game where the score was w 99–91 (ot)? ### Context: CREATE TABLE table_23284271_7 (team VARCHAR, score VARCHAR) ### Response: ### Response: SELECT COUNT(team) FROM table_23284271_7 WHERE score = "W 99–91 (OT)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What's the lowest average for a swimsuit over 6.89, evening gown over 7.76, and an interview over 8.57 in illinois? ### Context: CREATE TABLE table_name_29 (average INTEGER, interview VARCHAR, state VARCHAR, swimsuit VARCHAR, evening_gown VARCHAR) ### Response: ### Response: SELECT MIN(average) FROM table_name_29 WHERE swimsuit > 6.89 AND evening_gown > 7.76 AND state = "illinois" AND interview > 8.57</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who are the players that have attended Stanford? ### Context: CREATE TABLE table_16494599_10 (player VARCHAR, school_club_team VARCHAR) ### Response: ### Response: SELECT player FROM table_16494599_10 WHERE school_club_team = "Stanford"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 private/baptist school founded? ### Context: CREATE TABLE table_261941_1 (founded VARCHAR, type VARCHAR) ### Response: ### Response: SELECT founded FROM table_261941_1 WHERE type = "Private/Baptist"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 different classes of verbs are there whose part 3 is lucon? ### Context: CREATE TABLE table_1745843_6 (class VARCHAR, part_3 VARCHAR) ### Response: ### Response: SELECT COUNT(class) FROM table_1745843_6 WHERE part_3 = "lucon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: For the provider that costs 266 sar, what is the Bandwidth Included? ### Context: CREATE TABLE table_name_66 (bandwidth_included VARCHAR, price VARCHAR) ### Response: ### Response: SELECT bandwidth_included FROM table_name_66 WHERE price = "266 sar"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What genre is the song recorded in 1926? ### Context: CREATE TABLE table_name_56 (genre VARCHAR, year_recorded VARCHAR) ### Response: ### Response: SELECT genre FROM table_name_56 WHERE year_recorded = "1926"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 city has hosted the most events? ### Context: CREATE TABLE city (city VARCHAR, city_id VARCHAR); CREATE TABLE hosting_city (host_city VARCHAR) ### Response: ### Response: SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city GROUP BY T2.host_city ORDER BY COUNT(*) DESC LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What are all info of students who registered courses but not attended courses? ### Context: CREATE TABLE student_course_attendance (student_id VARCHAR); CREATE TABLE student_course_registrations (student_id VARCHAR) ### Response: ### Response: SELECT * FROM student_course_registrations WHERE NOT student_id IN (SELECT student_id FROM student_course_attendance)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What category was the winner in? ### Context: CREATE TABLE table_name_45 (category VARCHAR, outcome VARCHAR) ### Response: ### Response: SELECT category FROM table_name_45 WHERE outcome = "winner"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home on October 13? ### Context: CREATE TABLE table_name_26 (home VARCHAR, date VARCHAR) ### Response: ### Response: SELECT home FROM table_name_26 WHERE date = "october 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: What is the name for the locomotive n464? ### Context: CREATE TABLE table_name_95 (name VARCHAR, locomotive VARCHAR) ### Response: ### Response: SELECT name FROM table_name_95 WHERE locomotive = "n464"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 December has a Record of 21–6–5? ### Context: CREATE TABLE table_name_59 (december INTEGER, record VARCHAR) ### Response: ### Response: SELECT AVG(december) FROM table_name_59 WHERE record = "21–6–5"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What F/Laps listing has entries of n/a Points, 1 Poles, and 0 Wins? ### Context: CREATE TABLE table_name_94 (f_laps VARCHAR, wins VARCHAR, points VARCHAR, poles VARCHAR) ### Response: ### Response: SELECT f_laps FROM table_name_94 WHERE points = "n/a" AND poles = "1" AND wins = "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 was the final score of the game where josh powell (13) scored the most points? ### Context: CREATE TABLE table_27734577_2 (score VARCHAR, high_points VARCHAR) ### Response: ### Response: SELECT score FROM table_27734577_2 WHERE high_points = "Josh Powell (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: Who was the 2004 color commentator? ### Context: CREATE TABLE table_name_82 (color_commentator_s_ VARCHAR, year VARCHAR) ### Response: ### Response: SELECT color_commentator_s_ FROM table_name_82 WHERE year = 2004</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the latitude of laima tessera ### Context: CREATE TABLE table_16799784_2 (latitude VARCHAR, name VARCHAR) ### Response: ### Response: SELECT latitude FROM table_16799784_2 WHERE name = "Laima Tessera"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 attendance among Group E games? ### Context: CREATE TABLE table_name_93 (attendance INTEGER, round VARCHAR) ### Response: ### Response: SELECT MAX(attendance) FROM table_name_93 WHERE round = "group e"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 obverse of the archery coin? ### Context: CREATE TABLE table_name_45 (obverse VARCHAR, reverse VARCHAR) ### Response: ### Response: SELECT obverse FROM table_name_45 WHERE reverse = "archery"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 where Footscray was the away team? ### Context: CREATE TABLE table_name_2 (date VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_2 WHERE away_team = "footscray"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest rank of the athlete with a taijiquan greater than 9.42 and a 19.02 total? ### Context: CREATE TABLE table_name_89 (rank INTEGER, taijiquan VARCHAR, total VARCHAR) ### Response: ### Response: SELECT MIN(rank) FROM table_name_89 WHERE taijiquan > 9.42 AND total = 19.02</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total number of cuts made of tournaments with 2 Events? ### Context: CREATE TABLE table_name_81 (cuts_made VARCHAR, events VARCHAR) ### Response: ### Response: SELECT COUNT(cuts_made) FROM table_name_81 WHERE events = 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 score when the competition is 1995 southeast asian games? ### Context: CREATE TABLE table_name_1 (score VARCHAR, competition VARCHAR) ### Response: ### Response: SELECT score FROM table_name_1 WHERE competition = "1995 southeast asian games"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Overall place has a Yacht name of lg flatron? ### Context: CREATE TABLE table_name_57 (overall_place VARCHAR, yacht_name VARCHAR) ### Response: ### Response: SELECT overall_place FROM table_name_57 WHERE yacht_name = "lg flatron"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: with a Time/Retired of +47.376 what is the lap sum? ### Context: CREATE TABLE table_name_67 (laps INTEGER, time_retired VARCHAR) ### Response: ### Response: SELECT SUM(laps) FROM table_name_67 WHERE time_retired = "+47.376"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 away team at collingwood? ### Context: CREATE TABLE table_name_95 (away_team VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_95 WHERE home_team = "collingwood"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What final score was there on October 8, 2006? ### Context: CREATE TABLE table_name_96 (score_in_the_final VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score_in_the_final FROM table_name_96 WHERE date = "october 8, 2006"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many games played for the team with 686 points against? ### Context: CREATE TABLE table_1676073_12 (played VARCHAR, points_against VARCHAR) ### Response: ### Response: SELECT played FROM table_1676073_12 WHERE points_against = "686"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has a Pick smaller than 11, and a Position of rhp, and a Team of new york mets? ### Context: CREATE TABLE table_name_6 (player VARCHAR, team VARCHAR, pick VARCHAR, position VARCHAR) ### Response: ### Response: SELECT player FROM table_name_6 WHERE pick < 11 AND position = "rhp" AND team = "new york mets"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 composer of track Fast As a Shark? ### Context: CREATE TABLE tracks (composer VARCHAR, name VARCHAR) ### Response: ### Response: SELECT composer FROM tracks WHERE name = "Fast As a Shark"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 description of all aircrafts. ### Context: CREATE TABLE aircraft (Description VARCHAR) ### Response: ### Response: SELECT Description FROM aircraft</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 was given at the August 17, 2005 match? ### Context: CREATE TABLE table_name_47 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_47 WHERE date = "august 17, 2005"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What time is CDT when PDT is 3:17 a.m.? ### Context: CREATE TABLE table_name_13 (cdt___5_utc_ VARCHAR, pdt___7_utc_ VARCHAR) ### Response: ### Response: SELECT cdt___5_utc_ FROM table_name_13 WHERE pdt___7_utc_ = "3:17 a.m."</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: For the game that was played on week 2, what is the record? ### Context: CREATE TABLE table_name_24 (record VARCHAR, week VARCHAR) ### Response: ### Response: SELECT record FROM table_name_24 WHERE week = 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: Find all airlines that have fewer than 200 flights. ### Context: CREATE TABLE FLIGHTS (Airline VARCHAR); CREATE TABLE AIRLINES (Airline VARCHAR, uid VARCHAR) ### Response: ### Response: SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING COUNT(*) < 200</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Home has a Round of r1, and an Opponent of dundee united? ### Context: CREATE TABLE table_name_72 (home VARCHAR, round VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT home FROM table_name_72 WHERE round = "r1" AND opponent = "dundee united"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What station has a Rapid of ↑, is 3.4 km away, and has a Japanese title of δΈ‹ι΄¨η”Ÿ? ### Context: CREATE TABLE table_name_91 (station VARCHAR, japanese VARCHAR, rapid VARCHAR, distance__km_ VARCHAR) ### Response: ### Response: SELECT station FROM table_name_91 WHERE rapid = "↑" AND distance__km_ > 3.4 AND japanese = "δΈ‹ι΄¨η”Ÿ"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many teams were listed as runner up in 2005 and there the first semi finalist was Western Carolina? ### Context: CREATE TABLE table_11214772_2 (runner_up VARCHAR, semi_finalist__number1 VARCHAR, year VARCHAR) ### Response: ### Response: SELECT COUNT(runner_up) FROM table_11214772_2 WHERE semi_finalist__number1 = "Western Carolina" AND year = 2005</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 winner for nick nuyens for general classification and stage of 2 ### Context: CREATE TABLE table_name_96 (winner VARCHAR, general_classification VARCHAR, stage VARCHAR) ### Response: ### Response: SELECT winner FROM table_name_96 WHERE general_classification = "nick nuyens" AND stage = "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 every website with specialization of engineering and division of dhaka division? ### Context: CREATE TABLE table_2112260_1 (website VARCHAR, specialization VARCHAR, division VARCHAR) ### Response: ### Response: SELECT website FROM table_2112260_1 WHERE specialization = "Engineering" AND division = "Dhaka division"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 opening date of the musical at the adelphi theatre? ### Context: CREATE TABLE table_name_6 (opening_date VARCHAR, classification VARCHAR, theatre VARCHAR) ### Response: ### Response: SELECT opening_date FROM table_name_6 WHERE classification = "musical" AND theatre = "adelphi theatre"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the most rebounds and how many did they have on April 1? ### Context: CREATE TABLE table_27700530_14 (high_rebounds VARCHAR, date VARCHAR) ### Response: ### Response: SELECT high_rebounds FROM table_27700530_14 WHERE date = "April 1"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the first elected date for the incumbent in the South Carolina 4 district? ### Context: CREATE TABLE table_name_98 (first_elected VARCHAR, district VARCHAR) ### Response: ### Response: SELECT first_elected FROM table_name_98 WHERE district = "south carolina 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: Show all product names and the total quantity ordered for each product name. ### Context: CREATE TABLE Products (product_name VARCHAR, product_id VARCHAR); CREATE TABLE Order_items (product_quantity INTEGER, product_id VARCHAR) ### Response: ### Response: SELECT T2.product_name, SUM(T1.product_quantity) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_name</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the score when the championship is rome and the opponent is richard krajicek? ### Context: CREATE TABLE table_name_31 (score VARCHAR, championship VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT score FROM table_name_31 WHERE championship = "rome" AND opponent = "richard krajicek"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 sign of Burmese taninganwe တနင်္ဂနွေ? ### Context: CREATE TABLE table_name_87 (sign VARCHAR, burmese VARCHAR) ### Response: ### Response: SELECT sign FROM table_name_87 WHERE burmese = "taninganwe တနင်္ဂနွေ"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Tony Bettenhausen's qualifying time in 1947? ### Context: CREATE TABLE table_name_61 (qual VARCHAR, year VARCHAR) ### Response: ### Response: SELECT qual FROM table_name_61 WHERE year = "1947"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Date has a Set 1 of 21–25? ### Context: CREATE TABLE table_name_31 (date VARCHAR, set_1 VARCHAR) ### Response: ### Response: SELECT date FROM table_name_31 WHERE set_1 = "21–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 losing bonus with 1 draw and 13 losses? ### Context: CREATE TABLE table_name_22 (losing_bonus VARCHAR, drawn VARCHAR, lost VARCHAR) ### Response: ### Response: SELECT losing_bonus FROM table_name_22 WHERE drawn = "1" AND lost = "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: what date did the m3 motorsport team compete at winton motor raceway? ### Context: CREATE TABLE table_name_38 (date VARCHAR, team VARCHAR, circuit VARCHAR) ### Response: ### Response: SELECT date FROM table_name_38 WHERE team = "m3 motorsport" AND circuit = "winton motor raceway"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total points is 5, what is the 2005-2006 points total number? ### Context: CREATE TABLE table_23215145_2 (total_points VARCHAR) ### Response: ### Response: SELECT COUNT(2005 AS _06_points) FROM table_23215145_2 WHERE total_points = 5</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Crowd has a Home team of richmond? ### Context: CREATE TABLE table_name_14 (crowd INTEGER, home_team VARCHAR) ### Response: ### Response: SELECT SUM(crowd) FROM table_name_14 WHERE home_team = "richmond"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Opponent name at memorial stadium β€’ minneapolis, mn on 10/20/1928? ### Context: CREATE TABLE table_name_25 (opponent_number VARCHAR, site VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent_number FROM table_name_25 WHERE site = "memorial stadium β€’ minneapolis, mn" AND date = "10/20/1928"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 election had seat no 1 filled by jacques lachapelle but seat no 5 was filled by g. sanscartier ### Context: CREATE TABLE table_2231241_1 (election VARCHAR, seat_no_1 VARCHAR, seat_no_5 VARCHAR) ### Response: ### Response: SELECT election FROM table_2231241_1 WHERE seat_no_1 = "Jacques Lachapelle" AND seat_no_5 = "G. Sanscartier"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Rams opponent had a record of 2-3? ### Context: CREATE TABLE table_name_87 (opponent VARCHAR, record VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_87 WHERE record = "2-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 in the Notes for Player Name Grella? ### Context: CREATE TABLE table_name_67 (notes VARCHAR, name VARCHAR) ### Response: ### Response: SELECT notes FROM table_name_67 WHERE name = "grella"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many times a year is the Paris 20k road race held? ### Context: CREATE TABLE table_26166836_3 (month_held VARCHAR, road_race VARCHAR) ### Response: ### Response: SELECT COUNT(month_held) FROM table_26166836_3 WHERE road_race = "Paris 20K"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the production code for the episode that aired on October 15, 2004? ### Context: CREATE TABLE table_28859177_3 (production_code VARCHAR, original_air_date VARCHAR) ### Response: ### Response: SELECT production_code FROM table_28859177_3 WHERE original_air_date = "October 15, 2004"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many touchdowns were there when Heston was in play? ### Context: CREATE TABLE table_14342592_7 (touchdowns INTEGER, player VARCHAR) ### Response: ### Response: SELECT MAX(touchdowns) FROM table_14342592_7 WHERE player = "Heston"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 wins when the goals against is larger than 41, points is 29, and draws are larger than 5? ### Context: CREATE TABLE table_name_53 (wins VARCHAR, draws VARCHAR, goals_against VARCHAR, points VARCHAR) ### Response: ### Response: SELECT COUNT(wins) FROM table_name_53 WHERE goals_against > 41 AND points = 29 AND draws > 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 was the result of the game from 10 October 2009? ### Context: CREATE TABLE table_name_47 (result VARCHAR, date VARCHAR) ### Response: ### Response: SELECT result FROM table_name_47 WHERE date = "10 october 2009"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many rebound did the person who scored 147 points have? ### Context: CREATE TABLE table_22824199_1 (rebounds VARCHAR, points VARCHAR) ### Response: ### Response: SELECT COUNT(rebounds) FROM table_22824199_1 WHERE points = 147</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What pick in round 5 did the 49ers pick Jim Pilot? ### Context: CREATE TABLE table_name_69 (pick INTEGER, player VARCHAR, round VARCHAR) ### Response: ### Response: SELECT SUM(pick) FROM table_name_69 WHERE player = "jim pilot" AND round > 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 club was from Great Britain? ### Context: CREATE TABLE table_name_27 (club VARCHAR, nation VARCHAR) ### Response: ### Response: SELECT club FROM table_name_27 WHERE nation = "great britain"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 has the rank 2011? ### Context: CREATE TABLE table_name_97 (player VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT player FROM table_name_97 WHERE rank = 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: When is the finish of the season that started on September 25? ### Context: CREATE TABLE table_22383603_1 (finish__incl_championship_ VARCHAR, start__reg_season_ VARCHAR) ### Response: ### Response: SELECT finish__incl_championship_ FROM table_22383603_1 WHERE start__reg_season_ = "September 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: Which laps has a grid of 8? ### Context: CREATE TABLE table_name_25 (laps VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT laps FROM table_name_25 WHERE grid = "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 fate when the nationality is french and the ship is pierre lott? ### Context: CREATE TABLE table_name_97 (fate VARCHAR, nationality VARCHAR, ship VARCHAR) ### Response: ### Response: SELECT fate FROM table_name_97 WHERE nationality = "french" AND ship = "pierre lott"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Bert Yancey's finishing score to par? ### Context: CREATE TABLE table_name_21 (to_par VARCHAR, player VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_21 WHERE player = "bert yancey"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 1st leg for Instituto? ### Context: CREATE TABLE table_name_45 (home__2nd_leg_ VARCHAR) ### Response: ### Response: SELECT 1 AS st_leg FROM table_name_45 WHERE home__2nd_leg_ = "instituto"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: 5 Hoops that has a Place larger than 7, and a Total larger than 38.525 had what sum? ### Context: CREATE TABLE table_name_83 (place VARCHAR, total VARCHAR) ### Response: ### Response: SELECT SUM(5 AS _hoops) FROM table_name_83 WHERE place > 7 AND total > 38.525</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 label for Shake Your Groove Thing in USA? ### Context: CREATE TABLE table_name_59 (label VARCHAR, country_of_release VARCHAR, title VARCHAR) ### Response: ### Response: SELECT label FROM table_name_59 WHERE country_of_release = "usa" AND title = "shake your groove thing"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Highest Attendance, when Rank is 90, and when Venue Name is Infineon Raceway? ### Context: CREATE TABLE table_name_69 (highest_attendance VARCHAR, rank VARCHAR, venue_name VARCHAR) ### Response: ### Response: SELECT highest_attendance FROM table_name_69 WHERE rank = 90 AND venue_name = "infineon raceway"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 with a Loss and Record of 7-9? ### Context: CREATE TABLE table_name_91 (date VARCHAR, result VARCHAR, record VARCHAR) ### Response: ### Response: SELECT date FROM table_name_91 WHERE result = "loss" AND record = "7-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 Outcome has a Score of 6–2, 6–2? ### Context: CREATE TABLE table_name_20 (outcome VARCHAR, score VARCHAR) ### Response: ### Response: SELECT outcome FROM table_name_20 WHERE score = "6–2, 6–2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When 70 is the total points what is the rr4 points? ### Context: CREATE TABLE table_21489362_2 (rr4_pts VARCHAR, total_pts VARCHAR) ### Response: ### Response: SELECT rr4_pts FROM table_21489362_2 WHERE total_pts = 70</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 round when the college is penn state? ### Context: CREATE TABLE table_name_72 (round INTEGER, college VARCHAR) ### Response: ### Response: SELECT MAX(round) FROM table_name_72 WHERE college = "penn state"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Game has a November of 22? ### Context: CREATE TABLE table_name_32 (game INTEGER, november VARCHAR) ### Response: ### Response: SELECT SUM(game) FROM table_name_32 WHERE november = 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 the green rating for the vehicle with L/100km urban (cold) over 10.9, mpg in the US (urban) over 14.1, manufacturer of Volkswagen, and engine capacity under 3189? ### Context: CREATE TABLE table_name_68 (green_rating VARCHAR, engine_capacity VARCHAR, manufacturer VARCHAR, l_100km_urban__cold_ VARCHAR, mpg_us_urban VARCHAR) ### Response: ### Response: SELECT green_rating FROM table_name_68 WHERE l_100km_urban__cold_ > 10.9 AND mpg_us_urban > 14.1 AND manufacturer = "volkswagen" AND engine_capacity < 3189</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 party for spencer bachus ### Context: CREATE TABLE table_25030512_4 (party VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT party FROM table_25030512_4 WHERE incumbent = "Spencer Bachus"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 net power, when the type was wwer-440/230, and when construction was finished on 24.10.1977? ### Context: CREATE TABLE table_name_74 (net_power VARCHAR, type VARCHAR, finish_construction VARCHAR) ### Response: ### Response: SELECT net_power FROM table_name_74 WHERE type = "wwer-440/230" AND finish_construction = "24.10.1977"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 was the game in argentina ### Context: CREATE TABLE table_name_92 (date VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT date FROM table_name_92 WHERE opponent = "argentina"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Goals For has a Team of congleton town, and a Lost larger than 11? ### Context: CREATE TABLE table_name_27 (goals_for INTEGER, team VARCHAR, lost VARCHAR) ### Response: ### Response: SELECT MAX(goals_for) FROM table_name_27 WHERE team = "congleton town" AND lost > 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: What is the qual for rank 20? ### Context: CREATE TABLE table_name_5 (qual VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT qual FROM table_name_5 WHERE rank = "20"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the highest number of losses with 25 points? ### Context: CREATE TABLE table_name_79 (lost INTEGER, points VARCHAR) ### Response: ### Response: SELECT MAX(lost) FROM table_name_79 WHERE points = 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's the total for a league cup less than 1? ### Context: CREATE TABLE table_name_30 (league VARCHAR, total INTEGER) ### Response: ### Response: SELECT COUNT(league) AS Cup FROM table_name_30 WHERE total < 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the outcome with marina erakovic as opponent? ### Context: CREATE TABLE table_name_37 (outcome VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT outcome FROM table_name_37 WHERE opponent = "marina erakovic"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 director of the episode Rebel Rabbit? ### Context: CREATE TABLE table_name_90 (director VARCHAR, title VARCHAR) ### Response: ### Response: SELECT director FROM table_name_90 WHERE title = "rebel rabbit"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Year for the Position of 7th (sf)? ### Context: CREATE TABLE table_name_47 (year INTEGER, position VARCHAR) ### Response: ### Response: SELECT AVG(year) FROM table_name_47 WHERE position = "7th (sf)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What season did School/Club Team, East have an Acquisition via of trade? ### Context: CREATE TABLE table_name_19 (season VARCHAR, acquisition_via VARCHAR, school_club_team VARCHAR) ### Response: ### Response: SELECT season FROM table_name_19 WHERE acquisition_via = "trade" AND school_club_team = "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 lowest game number with Aris Thessaloniki with points smaller than 120? ### Context: CREATE TABLE table_name_70 (games INTEGER, team VARCHAR, points VARCHAR) ### Response: ### Response: SELECT MIN(games) FROM table_name_70 WHERE team = "aris thessaloniki" AND points < 120</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 6606 is the sail number what is the type of yacht? ### Context: CREATE TABLE table_1858574_2 (yacht VARCHAR, sail_number VARCHAR) ### Response: ### Response: SELECT yacht AS Type FROM table_1858574_2 WHERE sail_number = "6606"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 NHL team for Round 5 and an overall ranking of #154? ### Context: CREATE TABLE table_name_7 (nhl_team VARCHAR, round VARCHAR, overall VARCHAR) ### Response: ### Response: SELECT nhl_team FROM table_name_7 WHERE round = "5" AND overall = "#154"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 colonized date for Michigan? ### Context: CREATE TABLE table_name_92 (colonized VARCHAR, state VARCHAR) ### Response: ### Response: SELECT colonized FROM table_name_92 WHERE state = "michigan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 time for Sheffield? ### Context: CREATE TABLE table_name_15 (time VARCHAR, city VARCHAR) ### Response: ### Response: SELECT time FROM table_name_15 WHERE city = "sheffield"</s>