inputs
stringlengths
400
1.34k
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many pole data were given on season 2012 with 252 points? ### Context: CREATE TABLE table_25538763_1 (poles VARCHAR, season VARCHAR, points VARCHAR) ### Response: ### Response: SELECT COUNT(poles) FROM table_25538763_1 WHERE season = 2012 AND points = "252"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Tournaments with Highest Rank of Maegashira 13? ### Context: CREATE TABLE table_name_46 (tournaments INTEGER, highest_rank VARCHAR) ### Response: ### Response: SELECT MIN(tournaments) FROM table_name_46 WHERE highest_rank = "maegashira 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: If the partial thromboplastin and bleeding time is prolonged, what is the prothrombin time? ### Context: CREATE TABLE table_1557752_1 (prothrombin_time VARCHAR, partial_thromboplastin_time VARCHAR, bleeding_time VARCHAR) ### Response: ### Response: SELECT prothrombin_time FROM table_1557752_1 WHERE partial_thromboplastin_time = "Prolonged" AND bleeding_time = "Prolonged"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rounds did Vic Elford with a Ford cosworth dfv 3.0 v8 engine have? ### Context: CREATE TABLE table_name_63 (rounds VARCHAR, driver VARCHAR, engine VARCHAR) ### Response: ### Response: SELECT rounds FROM table_name_63 WHERE driver = "vic elford" AND engine = "ford cosworth dfv 3.0 v8"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 bronze from Puerto Rico with a total of less than 1? ### Context: CREATE TABLE table_name_27 (bronze INTEGER, nation VARCHAR, total VARCHAR) ### Response: ### Response: SELECT SUM(bronze) FROM table_name_27 WHERE nation = "puerto rico" AND 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 was the attendance for record 2-0? ### Context: CREATE TABLE table_name_52 (attendance VARCHAR, record VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_52 WHERE record = "2-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 lowest age of an astronaut named Stu Roosa? ### Context: CREATE TABLE table_name_81 (age_on_mission INTEGER, name VARCHAR) ### Response: ### Response: SELECT MIN(age_on_mission) FROM table_name_81 WHERE name = "stu roosa"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 nickname of the University of Massachusetts Lowell (UMass Lowell)? ### Context: CREATE TABLE table_12936521_2 (nickname VARCHAR, institution VARCHAR) ### Response: ### Response: SELECT nickname FROM table_12936521_2 WHERE institution = "University of Massachusetts Lowell (UMass Lowell)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total access count of all documents in the most popular document type. ### Context: CREATE TABLE documents (access_count INTEGER, document_type_code VARCHAR) ### Response: ### Response: SELECT SUM(access_count) FROM documents GROUP BY document_type_code 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's the sum of sign with more than 53 bits precision, double extended (80-bit) type, and more than 80 total bits? ### Context: CREATE TABLE table_name_98 (sign INTEGER, total_bits VARCHAR, bits_precision VARCHAR, type VARCHAR) ### Response: ### Response: SELECT SUM(sign) FROM table_name_98 WHERE bits_precision > 53 AND type = "double extended (80-bit)" AND total_bits > 80</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Partner with the surface of Clay ended up as a runner-up with a score of 1–6, 6–4, [10–12]? ### Context: CREATE TABLE table_name_45 (partner VARCHAR, score VARCHAR, surface VARCHAR, outcome VARCHAR) ### Response: ### Response: SELECT partner FROM table_name_45 WHERE surface = "clay" AND outcome = "runner-up" AND score = "1–6, 6–4, [10–12]"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many games ended up with 16 points? ### Context: CREATE TABLE table_12886178_4 (played VARCHAR, points VARCHAR) ### Response: ### Response: SELECT played FROM table_12886178_4 WHERE points = "16"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the series number where the date of first broadcast is 16 october 2008? ### Context: CREATE TABLE table_12995531_3 (series_number VARCHAR, date_of_first_broadcast VARCHAR) ### Response: ### Response: SELECT series_number FROM table_12995531_3 WHERE date_of_first_broadcast = "16 October 2008"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game site for l 26–42 ### Context: CREATE TABLE table_26401898_2 (game_site VARCHAR, final_score VARCHAR) ### Response: ### Response: SELECT game_site FROM table_26401898_2 WHERE final_score = "L 26–42"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 names of members who did not participate in any round. ### Context: CREATE TABLE member (Name VARCHAR, Member_ID VARCHAR); CREATE TABLE round (Name VARCHAR, Member_ID VARCHAR) ### Response: ### Response: SELECT Name FROM member WHERE NOT Member_ID IN (SELECT Member_ID FROM round)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 2009, when 2008 is "A", when 2011 is "A", and when Tournament is "Paris Masters"? ### Context: CREATE TABLE table_name_25 (tournament VARCHAR) ### Response: ### Response: SELECT 2009 FROM table_name_25 WHERE 2008 = "a" AND 2011 = "a" AND tournament = "paris masters"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: in the milwaukee team who made the high points ### Context: CREATE TABLE table_30049462_3 (high_points VARCHAR, team VARCHAR) ### Response: ### Response: SELECT high_points FROM table_30049462_3 WHERE team = "Milwaukee"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 won the mountains classification when Maarten Tjallingii won most corageous? ### Context: CREATE TABLE table_25055040_22 (mountains_classification VARCHAR, most_courageous VARCHAR) ### Response: ### Response: SELECT mountains_classification FROM table_25055040_22 WHERE most_courageous = "Maarten Tjallingii"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 time of IFL: Championship Final? ### Context: CREATE TABLE table_name_98 (time VARCHAR, event VARCHAR) ### Response: ### Response: SELECT time FROM table_name_98 WHERE event = "ifl: championship final"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 nationality of the Team Purdue? ### Context: CREATE TABLE table_name_73 (nationality VARCHAR, school_club_team VARCHAR) ### Response: ### Response: SELECT nationality FROM table_name_73 WHERE school_club_team = "purdue"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What game was played on May 29? ### Context: CREATE TABLE table_name_1 (game VARCHAR, date VARCHAR) ### Response: ### Response: SELECT game FROM table_name_1 WHERE date = "may 29"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1953, which of the institutions joined? ### Context: CREATE TABLE table_261895_1 (institution VARCHAR, joined VARCHAR) ### Response: ### Response: SELECT institution FROM table_261895_1 WHERE joined = "1953"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 average position of club burgos cf, which has more than 42 goals against and more than 14 losses? ### Context: CREATE TABLE table_name_60 (position INTEGER, losses VARCHAR, goals_against VARCHAR, club VARCHAR) ### Response: ### Response: SELECT AVG(position) FROM table_name_60 WHERE goals_against > 42 AND club = "burgos cf" AND losses > 14</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Find the first names of the faculty members who are playing Canoeing or Kayaking. ### Context: CREATE TABLE activity (activity_name VARCHAR); CREATE TABLE Faculty_participates_in (facID VARCHAR, actid VARCHAR); CREATE TABLE Faculty (lname VARCHAR, facID VARCHAR) ### Response: ### Response: SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' OR T3.activity_name = 'Kayaking'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Find the name of students who have taken the prerequisite course of the course with title International Finance. ### Context: CREATE TABLE student (name VARCHAR, id VARCHAR); CREATE TABLE course (course_id VARCHAR, title VARCHAR); CREATE TABLE prereq (prereq_id VARCHAR, course_id VARCHAR); CREATE TABLE takes (id VARCHAR, course_id VARCHAR) ### Response: ### Response: SELECT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id = T2.id WHERE T2.course_id IN (SELECT T4.prereq_id FROM course AS T3 JOIN prereq AS T4 ON T3.course_id = T4.course_id WHERE T3.title = 'International Finance')</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has a Country of united states and a To par of –3? ### Context: CREATE TABLE table_name_39 (player VARCHAR, country VARCHAR, to_par VARCHAR) ### Response: ### Response: SELECT player FROM table_name_39 WHERE country = "united states" AND to_par = "–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: List the names of people that are not perpetrators. ### Context: CREATE TABLE people (Name VARCHAR, People_ID VARCHAR); CREATE TABLE perpetrator (Name VARCHAR, People_ID VARCHAR) ### Response: ### Response: SELECT Name FROM people WHERE NOT People_ID IN (SELECT People_ID FROM perpetrator)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 on 5 October 2004? ### Context: CREATE TABLE table_name_1 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_1 WHERE date = "5 october 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: What was the end result for 28 February 2001? ### Context: CREATE TABLE table_name_52 (result VARCHAR, date VARCHAR) ### Response: ### Response: SELECT result FROM table_name_52 WHERE date = "28 february 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: Date of april 10, 2006 had what surface? ### Context: CREATE TABLE table_name_51 (surface VARCHAR, date VARCHAR) ### Response: ### Response: SELECT surface FROM table_name_51 WHERE date = "april 10, 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: what nation is bianca knight the answer for? ### Context: CREATE TABLE table_name_60 (nation VARCHAR, athlete VARCHAR) ### Response: ### Response: SELECT nation FROM table_name_60 WHERE athlete = "bianca knight"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 comment on the Denali area? ### Context: CREATE TABLE table_17978052_2 (comment VARCHAR, borough_or_census_area VARCHAR) ### Response: ### Response: SELECT comment FROM table_17978052_2 WHERE borough_or_census_area = "Denali"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 average 2006 metropolitan population of Lima with a GDP per capita over $13,100? ### Context: CREATE TABLE table_name_38 (metropolitan_population__2006__millions INTEGER, metropolitan_area VARCHAR, gdp__ppp__us$_per_capita VARCHAR) ### Response: ### Response: SELECT AVG(metropolitan_population__2006__millions) FROM table_name_38 WHERE metropolitan_area = "lima" AND gdp__ppp__us$_per_capita > 13 OFFSET 100</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What region has the symbol 八尾? ### Context: CREATE TABLE table_name_71 (region VARCHAR, japanese VARCHAR) ### Response: ### Response: SELECT region FROM table_name_71 WHERE 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: Which venue had 5000 m notes in 2009 with a 1st position? ### Context: CREATE TABLE table_name_2 (venue VARCHAR, position VARCHAR, notes VARCHAR, year VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_2 WHERE notes = "5000 m" AND year = 2009 AND position = "1st"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Water (sqmi) has a Township of yorktown, and a GEO ID smaller than 3802187940? ### Context: CREATE TABLE table_name_22 (water__sqmi_ INTEGER, township VARCHAR, geo_id VARCHAR) ### Response: ### Response: SELECT MIN(water__sqmi_) FROM table_name_22 WHERE township = "yorktown" AND geo_id < 3802187940</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Show the number of trains ### Context: CREATE TABLE train (Id VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM train</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What team played before game 71 and had a score w 91–86 (ot)? ### Context: CREATE TABLE table_name_36 (team VARCHAR, game VARCHAR, score VARCHAR) ### Response: ### Response: SELECT team FROM table_name_36 WHERE game < 71 AND score = "w 91–86 (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: Who is the spouse of the queen who is the daughter of Ferdinand I of the two sicilies? ### Context: CREATE TABLE table_name_54 (spouse VARCHAR, father VARCHAR) ### Response: ### Response: SELECT spouse FROM table_name_54 WHERE father = "ferdinand i of the two sicilies"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 driver won the i race of champions? ### Context: CREATE TABLE table_1140099_6 (winning_driver VARCHAR, race_name VARCHAR) ### Response: ### Response: SELECT winning_driver FROM table_1140099_6 WHERE race_name = "I Race of Champions"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Italy's UNWTO region? ### Context: CREATE TABLE table_name_24 (unwto_region VARCHAR, country VARCHAR) ### Response: ### Response: SELECT unwto_region FROM table_name_24 WHERE country = "italy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the fixed telephone line for 25.6% vehicle ### Context: CREATE TABLE table_25042332_27 (fixed_telephone_line VARCHAR, vehicle VARCHAR) ### Response: ### Response: SELECT fixed_telephone_line FROM table_25042332_27 WHERE vehicle = "25.6%"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average number of participants in 2012 when there were less than 8 in 2013 and 7 in 2011? ### Context: CREATE TABLE table_name_19 (Id VARCHAR) ### Response: ### Response: SELECT AVG(2012) FROM table_name_19 WHERE 2013 < 8 AND 2011 = 7</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When did the person who died on 6 Dec 1240 get married? ### Context: CREATE TABLE table_name_59 (marriage VARCHAR, death VARCHAR) ### Response: ### Response: SELECT marriage FROM table_name_59 WHERE death = "6 dec 1240"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Score of 108-85 is what lowest game? ### Context: CREATE TABLE table_name_77 (game INTEGER, score VARCHAR) ### Response: ### Response: SELECT MIN(game) FROM table_name_77 WHERE score = "108-85"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rounds have School/club team of pan american? ### Context: CREATE TABLE table_name_91 (round INTEGER, school_club_team VARCHAR) ### Response: ### Response: SELECT SUM(round) FROM table_name_91 WHERE school_club_team = "pan american"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 location for 2-1 record ### Context: CREATE TABLE table_23192661_3 (location VARCHAR, record VARCHAR) ### Response: ### Response: SELECT location FROM table_23192661_3 WHERE record = "2-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 average expected life expectancy for countries in the region of Central Africa? ### Context: CREATE TABLE country (LifeExpectancy INTEGER, Region VARCHAR) ### Response: ### Response: SELECT AVG(LifeExpectancy) FROM country WHERE Region = "Central Africa"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 gender of Congresswoman Jaime Herrera Beutler's baby? ### Context: CREATE TABLE table_name_66 (baby_gender VARCHAR, congresswoman VARCHAR) ### Response: ### Response: SELECT baby_gender FROM table_name_66 WHERE congresswoman = "jaime herrera beutler"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 shares of 45.3% and total seats less than 166. what is the greatest number of seat? ### Context: CREATE TABLE table_name_61 (seats INTEGER, share_of_votes VARCHAR, total_seats VARCHAR) ### Response: ### Response: SELECT MAX(seats) FROM table_name_61 WHERE share_of_votes = "45.3%" AND total_seats < 166</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 positions that have 2012 ratings of 0.92? ### Context: CREATE TABLE table_name_21 (position VARCHAR) ### Response: ### Response: SELECT COUNT(position) FROM table_name_21 WHERE 2012 = "0.92"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 episode 02x02 first broadcast? ### Context: CREATE TABLE table_29141354_2 (first_broadcast VARCHAR, episode VARCHAR) ### Response: ### Response: SELECT first_broadcast FROM table_29141354_2 WHERE episode = "02x02"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Vigo Tournament? ### Context: CREATE TABLE table_name_65 (date VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT date FROM table_name_65 WHERE tournament = "vigo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Year has a Venue of bydgoszcz, poland, and an Event of junior team? ### Context: CREATE TABLE table_name_75 (year INTEGER, venue VARCHAR, event VARCHAR) ### Response: ### Response: SELECT AVG(year) FROM table_name_75 WHERE venue = "bydgoszcz, poland" AND event = "junior team"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 in heat 5 from Guyana? ### Context: CREATE TABLE table_name_64 (name VARCHAR, heat VARCHAR, country VARCHAR) ### Response: ### Response: SELECT name FROM table_name_64 WHERE heat = 5 AND country = "guyana"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 season had 34 losses? ### Context: CREATE TABLE table_name_35 (season VARCHAR, losses VARCHAR) ### Response: ### Response: SELECT season FROM table_name_35 WHERE losses = "34"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Played, when Points Against is "374"? ### Context: CREATE TABLE table_name_62 (played VARCHAR, points_against VARCHAR) ### Response: ### Response: SELECT played FROM table_name_62 WHERE points_against = "374"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has a Position of linebacker? ### Context: CREATE TABLE table_name_86 (team VARCHAR, position VARCHAR) ### Response: ### Response: SELECT team FROM table_name_86 WHERE position = "linebacker"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Wayne Grady's total? ### Context: CREATE TABLE table_name_93 (total INTEGER, player VARCHAR) ### Response: ### Response: SELECT SUM(total) FROM table_name_93 WHERE player = "wayne grady"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Qual 2 of a Team of american spirit team johansson and a Best of 59.073? ### Context: CREATE TABLE table_name_15 (qual_2 VARCHAR, team VARCHAR, best VARCHAR) ### Response: ### Response: SELECT qual_2 FROM table_name_15 WHERE team = "american spirit team johansson" AND best = "59.073"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Inki and the Minah Bird released? ### Context: CREATE TABLE table_name_71 (release_date VARCHAR, title VARCHAR) ### Response: ### Response: SELECT release_date FROM table_name_71 WHERE title = "inki and the minah bird"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 usage for the f136e engline? ### Context: CREATE TABLE table_name_60 (usage VARCHAR, engine VARCHAR) ### Response: ### Response: SELECT usage FROM table_name_60 WHERE engine = "f136e"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Player from Memphis? ### Context: CREATE TABLE table_name_70 (player VARCHAR, school_club_team VARCHAR) ### Response: ### Response: SELECT player FROM table_name_70 WHERE school_club_team = "memphis"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 average goals for that has +40 as the goals difference, with points 1 greater than 55? ### Context: CREATE TABLE table_name_62 (goals_for INTEGER, goal_difference VARCHAR, points_1 VARCHAR) ### Response: ### Response: SELECT AVG(goals_for) FROM table_name_62 WHERE goal_difference = "+40" AND points_1 > 55</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the number of districts for december 1799 ### Context: CREATE TABLE table_15572443_1 (district VARCHAR, election_date VARCHAR) ### Response: ### Response: SELECT COUNT(district) FROM table_15572443_1 WHERE election_date = "December 1799"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Round has a Time of n/a, in rio de janeiro , brazil? ### Context: CREATE TABLE table_name_5 (round VARCHAR, time VARCHAR, location VARCHAR) ### Response: ### Response: SELECT round FROM table_name_5 WHERE time = "n/a" AND location = "rio de janeiro , brazil"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 written by for john trefor ### Context: CREATE TABLE table_2430014_6 (written_by VARCHAR, directed_by VARCHAR) ### Response: ### Response: SELECT written_by FROM table_2430014_6 WHERE directed_by = "John Trefor"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 against have a Club of cd castellón, and Points smaller than 24? ### Context: CREATE TABLE table_name_15 (goals_against INTEGER, club VARCHAR, points VARCHAR) ### Response: ### Response: SELECT AVG(goals_against) FROM table_name_15 WHERE club = "cd castellón" AND points < 24</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What other venue was a runner up to Hawthorn? ### Context: CREATE TABLE table_1139835_9 (venue VARCHAR, runner_up VARCHAR) ### Response: ### Response: SELECT venue FROM table_1139835_9 WHERE runner_up = "Hawthorn"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 in the game against Memphis? ### Context: CREATE TABLE table_22879323_8 (record VARCHAR, team VARCHAR) ### Response: ### Response: SELECT record FROM table_22879323_8 WHERE team = "Memphis"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 country/region with seasons and winners being season 1, 2012: demetra malalan ### Context: CREATE TABLE table_13779832_1 (country_region VARCHAR, seasons_and_winners VARCHAR) ### Response: ### Response: SELECT country_region FROM table_13779832_1 WHERE seasons_and_winners = "Season 1, 2012: Demetra Malalan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where Award is newcomer actress, what is the work? ### Context: CREATE TABLE table_name_19 (work VARCHAR, award VARCHAR) ### Response: ### Response: SELECT work FROM table_name_19 WHERE award = "newcomer actress"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 recorded result under presidential majority 2000/2004 when the presiditial majority in 2012 was non-voting? ### Context: CREATE TABLE table_14700336_1 (presidential_majority_2000_2004 VARCHAR, presidential_majority_2012 VARCHAR) ### Response: ### Response: SELECT presidential_majority_2000_2004 FROM table_14700336_1 WHERE presidential_majority_2012 = "Non-voting"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 GDP 2012 Millions of Euro, when Population in Millions is less than 1.3, and when GDP (Nominal) Per Capita 2012 Euro is 20,700(p)? ### Context: CREATE TABLE table_name_51 (gdp_2012_millions_of_euro VARCHAR, population_in_millions VARCHAR, gdp__nominal__per_capita_2012_euro VARCHAR) ### Response: ### Response: SELECT gdp_2012_millions_of_euro FROM table_name_51 WHERE population_in_millions < 1.3 AND gdp__nominal__per_capita_2012_euro = "20,700(p)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 white percentages of cities and the crime rates of counties they are in. ### Context: CREATE TABLE city (White VARCHAR, County_ID VARCHAR); CREATE TABLE county_public_safety (Crime_rate VARCHAR, County_ID VARCHAR) ### Response: ### Response: SELECT T1.White, T2.Crime_rate FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID = T2.County_ID</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the career SR with a 1r in 1985? ### Context: CREATE TABLE table_name_43 (career_sr VARCHAR) ### Response: ### Response: SELECT career_sr FROM table_name_43 WHERE 1985 = "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: Who was the original artist for First Solo? ### Context: CREATE TABLE table_26250176_1 (original_artist VARCHAR, theme VARCHAR) ### Response: ### Response: SELECT original_artist FROM table_26250176_1 WHERE theme = "First Solo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 sum of the ranks for india? ### Context: CREATE TABLE table_name_59 (rank INTEGER, country VARCHAR) ### Response: ### Response: SELECT SUM(rank) FROM table_name_59 WHERE country = "india"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 was the away team Hawthorn? ### Context: CREATE TABLE table_name_78 (date VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_78 WHERE away_team = "hawthorn"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 valora roucek is the contestant how many heights in centimeters are there? ### Context: CREATE TABLE table_18626383_2 (height__cm_ VARCHAR, contestant VARCHAR) ### Response: ### Response: SELECT COUNT(height__cm_) FROM table_18626383_2 WHERE contestant = "Valora Roucek"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 in class for the Whitehaven Coal? ### Context: CREATE TABLE table_name_13 (number_in_class INTEGER, owner VARCHAR) ### Response: ### Response: SELECT SUM(number_in_class) FROM table_name_13 WHERE owner = "whitehaven coal"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 car models that are produced by each maker and what is the id and full name of each maker? ### Context: CREATE TABLE CAR_MAKERS (FullName VARCHAR, id VARCHAR, Id VARCHAR); CREATE TABLE MODEL_LIST (Maker VARCHAR) ### Response: ### Response: SELECT COUNT(*), T2.FullName, T2.id FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id GROUP BY T2.id</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which player had a position of t1 and played in the united states? ### Context: CREATE TABLE table_name_49 (player VARCHAR, place VARCHAR, country VARCHAR) ### Response: ### Response: SELECT player FROM table_name_49 WHERE place = "t1" AND country = "united states"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who won at the Circuit of lakeside international raceway? ### Context: CREATE TABLE table_name_89 (winner VARCHAR, circuit VARCHAR) ### Response: ### Response: SELECT winner FROM table_name_89 WHERE circuit = "lakeside international 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 college is Vanderbilt, what is the position? ### Context: CREATE TABLE table_27132791_3 (position VARCHAR, college VARCHAR) ### Response: ### Response: SELECT position FROM table_27132791_3 WHERE college = "Vanderbilt"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player who has had 7 first team appearances? ### Context: CREATE TABLE table_name_79 (player VARCHAR, first_team_appearances VARCHAR) ### Response: ### Response: SELECT player FROM table_name_79 WHERE first_team_appearances = "7"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the unit for a submarine type ship from Norway? ### Context: CREATE TABLE table_name_74 (unit VARCHAR, type VARCHAR, origin VARCHAR) ### Response: ### Response: SELECT unit FROM table_name_74 WHERE type = "submarine" AND origin = "norway"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the total number of height for number 32 ### Context: CREATE TABLE table_25360865_1 (height VARCHAR, _number VARCHAR) ### Response: ### Response: SELECT COUNT(height) FROM table_25360865_1 WHERE _number = 32</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 party of Joseph Vance? ### Context: CREATE TABLE table_2668243_19 (party VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT party FROM table_2668243_19 WHERE incumbent = "Joseph Vance"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 networks run on virtual channel 23.4? ### Context: CREATE TABLE table_2857352_3 (network VARCHAR, virtual_channel VARCHAR) ### Response: ### Response: SELECT COUNT(network) FROM table_2857352_3 WHERE virtual_channel = "23.4"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total number of played for the goals against over 44 and a goal difference of 11? ### Context: CREATE TABLE table_name_68 (played VARCHAR, goal_difference VARCHAR, goals_against VARCHAR) ### Response: ### Response: SELECT COUNT(played) FROM table_name_68 WHERE goal_difference = 11 AND goals_against > 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: Where was the game held when the attendance was 56,770? ### Context: CREATE TABLE table_name_63 (game_site VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT game_site FROM table_name_63 WHERE attendance = "56,770"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 name of the team that went 113.316mph? ### Context: CREATE TABLE table_name_18 (team VARCHAR, speed VARCHAR) ### Response: ### Response: SELECT team FROM table_name_18 WHERE speed = "113.316mph"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Allied Force targetted Woensdrecht? ### Context: CREATE TABLE table_1160161_12 (allied_forces VARCHAR, target VARCHAR) ### Response: ### Response: SELECT allied_forces FROM table_1160161_12 WHERE target = "Woensdrecht"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 against when the difference is 10 and played is greater than 8? ### Context: CREATE TABLE table_name_3 (against VARCHAR, difference VARCHAR, played VARCHAR) ### Response: ### Response: SELECT COUNT(against) FROM table_name_3 WHERE difference = "10" AND played > 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: Can you tell me the Tournament that has the 2009 of 1r, and the 2012 of w? ### Context: CREATE TABLE table_name_1 (tournament VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_1 WHERE 2009 = "1r" AND 2012 = "w"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 segment b for Netflix s01e21? ### Context: CREATE TABLE table_name_34 (segment_b VARCHAR, netflix VARCHAR) ### Response: ### Response: SELECT segment_b FROM table_name_34 WHERE netflix = "s01e21"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 relative height of Scotland with Ben Vorlich as parent? ### Context: CREATE TABLE table_name_9 (relative_height__m_ VARCHAR, country VARCHAR, parent VARCHAR) ### Response: ### Response: SELECT COUNT(relative_height__m_) FROM table_name_9 WHERE country = "scotland" AND parent = "ben vorlich"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 height with current club being dkv joventut ### Context: CREATE TABLE table_12962773_5 (height VARCHAR, current_club VARCHAR) ### Response: ### Response: SELECT height FROM table_12962773_5 WHERE current_club = "DKV Joventut"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 opponents for 24 july 2011 ### Context: CREATE TABLE table_name_45 (opponents VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponents FROM table_name_45 WHERE date = "24 july 2011"</s>