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 Week 8 result of the team that lost to syarcuse (4-2) in Week 7? ### Context: CREATE TABLE table_name_44 (week_8_oct_26 VARCHAR, week_7_oct_19 VARCHAR) ### Response: ### Response: SELECT week_8_oct_26 FROM table_name_44 WHERE week_7_oct_19 = "syarcuse (4-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: For the game with 528 attendance, what was the result? ### Context: CREATE TABLE table_name_14 (result VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT result FROM table_name_14 WHERE attendance = "528"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 strategy game in 1992, how many players were allowed per console? ### Context: CREATE TABLE table_name_51 (players_per_console VARCHAR, genre VARCHAR, year VARCHAR) ### Response: ### Response: SELECT players_per_console FROM table_name_51 WHERE genre = "strategy" AND year = 1992</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the campuses that is in Northridge, Los Angeles or in San Francisco, San Francisco. ### Context: CREATE TABLE campuses (campus VARCHAR, LOCATION VARCHAR, county VARCHAR) ### Response: ### Response: SELECT campus FROM campuses WHERE LOCATION = "Northridge" AND county = "Los Angeles" UNION SELECT campus FROM campuses WHERE LOCATION = "San Francisco" AND county = "San Francisco"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average total matches have a swansea win less than 3, fa cup as the competition, with a draw less than 0? ### Context: CREATE TABLE table_name_23 (total_matches INTEGER, draw VARCHAR, swansea_win VARCHAR, competition VARCHAR) ### Response: ### Response: SELECT AVG(total_matches) FROM table_name_23 WHERE swansea_win < 3 AND competition = "fa cup" AND draw < 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 least amount of podiums? ### Context: CREATE TABLE table_25548630_1 (podiums INTEGER) ### Response: ### Response: SELECT MIN(podiums) FROM table_25548630_1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Team has a Score of 108-105 (ot)? ### Context: CREATE TABLE table_name_9 (team VARCHAR, score VARCHAR) ### Response: ### Response: SELECT team FROM table_name_9 WHERE score = "108-105 (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: Tell me the origin for mi-2 ### Context: CREATE TABLE table_name_57 (origin VARCHAR, versions VARCHAR) ### Response: ### Response: SELECT origin FROM table_name_57 WHERE versions = "mi-2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many items appear in the area column when Glasvaunta is the townland? ### Context: CREATE TABLE table_30120556_1 (area__acres__ VARCHAR, townland VARCHAR) ### Response: ### Response: SELECT COUNT(area__acres__) FROM table_30120556_1 WHERE townland = "Glasvaunta"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 match held that lasted 3:24? ### Context: CREATE TABLE table_name_90 (location VARCHAR, time VARCHAR) ### Response: ### Response: SELECT location FROM table_name_90 WHERE time = "3: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: In the Champions league, what is the Minimum ### Context: CREATE TABLE table_17505751_5 (Champions INTEGER) ### Response: ### Response: SELECT MIN(Champions) AS league FROM table_17505751_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 languages are spoken when call sign XEJAM is used? ### Context: CREATE TABLE table_14670060_1 (languages VARCHAR, call_sign VARCHAR) ### Response: ### Response: SELECT languages FROM table_14670060_1 WHERE call_sign = "XEJAM"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 brand for pick number 15 ### Context: CREATE TABLE table_26397277_3 (brand__to_ VARCHAR, pick__number VARCHAR) ### Response: ### Response: SELECT brand__to_ FROM table_26397277_3 WHERE pick__number = 15</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1901 with 1851 of 1961 ### Context: CREATE TABLE table_name_12 (Id VARCHAR) ### Response: ### Response: SELECT 1901 FROM table_name_12 WHERE 1851 = "1961"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 production code when the writer was brian egeston after season 5? ### Context: CREATE TABLE table_name_6 (production_code INTEGER, written_by VARCHAR, season__number VARCHAR) ### Response: ### Response: SELECT MAX(production_code) FROM table_name_6 WHERE written_by = "brian egeston" AND season__number > 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 fastest lap time in the Escort Radar Warning 200? ### Context: CREATE TABLE table_10706961_2 (fastest_lap VARCHAR, name VARCHAR) ### Response: ### Response: SELECT fastest_lap FROM table_10706961_2 WHERE name = "Escort Radar Warning 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: What is the interview score for the state of Virginia? ### Context: CREATE TABLE table_12338595_1 (interview VARCHAR, state VARCHAR) ### Response: ### Response: SELECT interview FROM table_12338595_1 WHERE state = "Virginia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 traditional for area 544 ### Context: CREATE TABLE table_2013618_1 (traditional VARCHAR, area VARCHAR) ### Response: ### Response: SELECT traditional FROM table_2013618_1 WHERE area = 544</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 doctor when the author was Gary Hopkins category:articles with hcards? ### Context: CREATE TABLE table_1620397_5 (doctor VARCHAR, author VARCHAR) ### Response: ### Response: SELECT doctor FROM table_1620397_5 WHERE author = "Gary Hopkins Category:Articles with hCards"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 career of the rank higher than 1, with an average less than 36.13 and 15 wickets, and player George O'Brien? ### Context: CREATE TABLE table_name_71 (career VARCHAR, player VARCHAR, wickets VARCHAR, rank VARCHAR, average VARCHAR) ### Response: ### Response: SELECT career FROM table_name_71 WHERE rank > 1 AND average < 36.13 AND wickets = 15 AND player = "george o'brien"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 position does Matt Hobgood play? ### Context: CREATE TABLE table_11677100_15 (position VARCHAR, player VARCHAR) ### Response: ### Response: SELECT position FROM table_11677100_15 WHERE player = "Matt Hobgood"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In what game did the New York Rangers play against the Chicago Black Hawks? ### Context: CREATE TABLE table_name_5 (game VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT game FROM table_name_5 WHERE opponent = "chicago black hawks"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 position(s) did the player(s) with a pick number of 125 play? ### Context: CREATE TABLE table_name_38 (position VARCHAR, pick__number VARCHAR) ### Response: ### Response: SELECT position FROM table_name_38 WHERE pick__number = 125</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 post 1991 tournament where the Czech Republic received the bronze and Russia received the silver? ### Context: CREATE TABLE table_name_40 (venue VARCHAR, silver VARCHAR, year VARCHAR, bronze VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_40 WHERE year > 1991 AND bronze = "czech republic" AND silver = "russia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 competition in tokyo with the result loss? ### Context: CREATE TABLE table_name_3 (competition VARCHAR, location VARCHAR, result VARCHAR) ### Response: ### Response: SELECT competition FROM table_name_3 WHERE location = "tokyo" 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 commercial operation that has a gross capacity of 1,126 mw, and a unit of tianwan-4? ### Context: CREATE TABLE table_name_95 (commercial_operation VARCHAR, gross_capacity VARCHAR, unit VARCHAR) ### Response: ### Response: SELECT commercial_operation FROM table_name_95 WHERE gross_capacity = "1,126 mw" AND unit = "tianwan-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 chemical class for ri? ### Context: CREATE TABLE table_name_33 (chemical_class VARCHAR, formula VARCHAR) ### Response: ### Response: SELECT chemical_class FROM table_name_33 WHERE formula = "ri"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 semifinals did ferhat pehlivan attend? ### Context: CREATE TABLE table_27294107_11 (semifinals VARCHAR, athlete VARCHAR) ### Response: ### Response: SELECT COUNT(semifinals) FROM table_27294107_11 WHERE athlete = "Ferhat Pehlivan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 losses for the vancouver burrards in the 1947 season with fewer than 24 games? ### Context: CREATE TABLE table_name_8 (losses VARCHAR, games VARCHAR, team_name VARCHAR, season VARCHAR) ### Response: ### Response: SELECT COUNT(losses) FROM table_name_8 WHERE team_name = "vancouver burrards" AND season = "1947" AND games < 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 was the record when the Bruins had 41 points? ### Context: CREATE TABLE table_20760407_1 (record VARCHAR, bruins_points VARCHAR) ### Response: ### Response: SELECT record FROM table_20760407_1 WHERE bruins_points = 41</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of 2q round? ### Context: CREATE TABLE table_name_33 (round VARCHAR) ### Response: ### Response: SELECT 1 AS st_leg FROM table_name_33 WHERE round = "2q"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 poor law unions have an area of 262 acres and is in drinagh civil parish? ### Context: CREATE TABLE table_30121096_1 (poor_law_union VARCHAR, area__acres__ VARCHAR, civil_parish VARCHAR) ### Response: ### Response: SELECT COUNT(poor_law_union) FROM table_30121096_1 WHERE area__acres__ = 262 AND civil_parish = "Drinagh"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 polls show different percentages for Tom Emmer and 38% for Matt Entenza? ### Context: CREATE TABLE table_20032301_3 (tom_emmer__r_ VARCHAR, matt_entenza__dfl_ VARCHAR) ### Response: ### Response: SELECT COUNT(tom_emmer__r_) FROM table_20032301_3 WHERE matt_entenza__dfl_ = "38%"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Years Member has a School of cairo high school? ### Context: CREATE TABLE table_name_47 (years_member VARCHAR, school VARCHAR) ### Response: ### Response: SELECT years_member FROM table_name_47 WHERE school = "cairo high school"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 position did the drafted player affiliated with UCLA play? ### Context: CREATE TABLE table_name_85 (position VARCHAR, affiliation VARCHAR) ### Response: ### Response: SELECT position FROM table_name_85 WHERE affiliation = "ucla"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 intergiro classification is there for team Polti at stage 14? ### Context: CREATE TABLE table_name_53 (intergiro_classification VARCHAR, trofeo_fast_team VARCHAR, stage VARCHAR) ### Response: ### Response: SELECT intergiro_classification FROM table_name_53 WHERE trofeo_fast_team = "team polti" AND stage = "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 series name and country of the tv channel that is playing some cartoons directed by Ben Jones and Michael Chang? ### Context: CREATE TABLE TV_Channel (series_name VARCHAR, country VARCHAR, id VARCHAR); CREATE TABLE cartoon (Channel VARCHAR, directed_by VARCHAR) ### Response: ### Response: SELECT T1.series_name, T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Michael Chang' INTERSECT SELECT T1.series_name, T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Ben Jones'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Netflix where Segment D is pressure gauges ? ### Context: CREATE TABLE table_15187735_12 (netflix VARCHAR, segment_d VARCHAR) ### Response: ### Response: SELECT netflix FROM table_15187735_12 WHERE segment_d = "Pressure Gauges"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Works Number, when Type is RS-11, and when Number is 61? ### Context: CREATE TABLE table_name_7 (works_number VARCHAR, type VARCHAR, number VARCHAR) ### Response: ### Response: SELECT works_number FROM table_name_7 WHERE type = "rs-11" AND number = "61"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What are the least losses of Mortlake having less than 970 against? ### Context: CREATE TABLE table_name_96 (losses INTEGER, club VARCHAR, against VARCHAR) ### Response: ### Response: SELECT MIN(losses) FROM table_name_96 WHERE club = "mortlake" AND against < 970</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 song when the points is more than 64, the national final is 4th and draw is more than 3? ### Context: CREATE TABLE table_name_50 (song VARCHAR, draw VARCHAR, points VARCHAR, national_final VARCHAR) ### Response: ### Response: SELECT song FROM table_name_50 WHERE points > 64 AND national_final = "4th" AND draw > 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: Name the population for бачки моноштор (croatian: monoštor) ### Context: CREATE TABLE table_2562572_22 (population__2011_ VARCHAR, cyrillic_name_other_names VARCHAR) ### Response: ### Response: SELECT population__2011_ FROM table_2562572_22 WHERE cyrillic_name_other_names = "Бачки Моноштор (Croatian: Monoštor)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the smallest number of tries when Matt Diskin is the player and there are more than 16 points? ### Context: CREATE TABLE table_name_84 (tries INTEGER, player VARCHAR, points VARCHAR) ### Response: ### Response: SELECT MIN(tries) FROM table_name_84 WHERE player = "matt diskin" AND 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 time of the match with 3 rounds and a 9-3 record? ### Context: CREATE TABLE table_name_52 (time VARCHAR, round VARCHAR, record VARCHAR) ### Response: ### Response: SELECT time FROM table_name_52 WHERE round = 3 AND record = "9-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 the highest value for co-champions when the PCT is less than 0.786 and MRC championships is 6 with records of 88-45-6? ### Context: CREATE TABLE table_name_51 (co_champions INTEGER, records VARCHAR, pct VARCHAR, mrc_championships VARCHAR) ### Response: ### Response: SELECT MAX(co_champions) FROM table_name_51 WHERE pct < 0.786 AND mrc_championships = 6 AND records = "88-45-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 Time, when Ground is Waverley Park, and when Away Team is Footscray? ### Context: CREATE TABLE table_name_69 (time VARCHAR, ground VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT time FROM table_name_69 WHERE ground = "waverley park" AND 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: Tell me the highest league goals with total goals less than 1 and FA cups more than 0 ### Context: CREATE TABLE table_name_67 (league_goals INTEGER, total_goals VARCHAR, fa_cup_goals VARCHAR) ### Response: ### Response: SELECT MAX(league_goals) FROM table_name_67 WHERE total_goals < 1 AND fa_cup_goals > 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Tell me the score of praterstadion, vienna, and competition of euro 1980 qualifier ### Context: CREATE TABLE table_name_54 (result VARCHAR, venue VARCHAR, competition VARCHAR) ### Response: ### Response: SELECT result FROM table_name_54 WHERE venue = "praterstadion, vienna" AND competition = "euro 1980 qualifier"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 debut when the play er is radoslava topalova and the years played is less than 2? ### Context: CREATE TABLE table_name_33 (debut INTEGER, player VARCHAR, years_played VARCHAR) ### Response: ### Response: SELECT AVG(debut) FROM table_name_33 WHERE player = "radoslava topalova" AND years_played < 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 grand prix de sar la princesse lalla meryem is the tournament what is the town? ### Context: CREATE TABLE table_2803662_3 (town VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT town FROM table_2803662_3 WHERE tournament = "Grand Prix De SAR La Princesse Lalla Meryem"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 to par when the score was 68-73=141? ### Context: CREATE TABLE table_name_46 (to_par VARCHAR, score VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_46 WHERE score = 68 - 73 = 141</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 country scored 66-68=134? ### Context: CREATE TABLE table_name_60 (country VARCHAR, score VARCHAR) ### Response: ### Response: SELECT country FROM table_name_60 WHERE score = 66 - 68 = 134</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 model of the engine d5244 t? ### Context: CREATE TABLE table_1147701_5 (model_name VARCHAR, engine_code VARCHAR) ### Response: ### Response: SELECT model_name FROM table_1147701_5 WHERE engine_code = "D5244 T"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 payment method and phone of the party with email "enrico09@example.com". ### Context: CREATE TABLE parties (payment_method_code VARCHAR, party_phone VARCHAR, party_email VARCHAR) ### Response: ### Response: SELECT payment_method_code, party_phone FROM parties WHERE party_email = "enrico09@example.com"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Purpose has an Elevation + Height of 0 + metres (ft), a Location of bikini, namu (charlie), and a Yield of 220 kt? ### Context: CREATE TABLE table_name_37 (purpose VARCHAR, yield VARCHAR, location VARCHAR, elevation_ VARCHAR, _height VARCHAR) ### Response: ### Response: SELECT purpose FROM table_name_37 WHERE elevation_ + _height = "0 + metres (ft)" AND location = "bikini, namu (charlie)" AND yield = "220 kt"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which player from GER has a transfer window of summer, and a transfer fee of n/a? ### Context: CREATE TABLE table_name_85 (name VARCHAR, transfer_fee VARCHAR, transfer_window VARCHAR, nat VARCHAR) ### Response: ### Response: SELECT name FROM table_name_85 WHERE transfer_window = "summer" AND nat = "ger" AND transfer_fee = "n/a"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many points were scored in the Detroit Home? ### Context: CREATE TABLE table_name_21 (points VARCHAR, home VARCHAR) ### Response: ### Response: SELECT points FROM table_name_21 WHERE home = "detroit"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 competition did not qualify for UEFA competitions in the 1970-71 season? ### Context: CREATE TABLE table_name_67 (competition VARCHAR, lost VARCHAR, season VARCHAR) ### Response: ### Response: SELECT competition FROM table_name_67 WHERE lost = "did not qualify for uefa competitions" AND season = "1970-71"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 categorization in 2010 when it was A in 2008 and 20011 while being QF in 2012? ### Context: CREATE TABLE table_name_10 (Id VARCHAR) ### Response: ### Response: SELECT 2010 FROM table_name_10 WHERE 2008 = "a" AND 2011 = "a" AND 2012 = "qf"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pick number 34? ### Context: CREATE TABLE table_29836557_2 (player VARCHAR, pick__number VARCHAR) ### Response: ### Response: SELECT player FROM table_29836557_2 WHERE pick__number = 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: Which Giro di Lombardia has a Paris–Roubaix of servais knaven ( ned )? ### Context: CREATE TABLE table_name_38 (giro_di_lombardia VARCHAR, paris_roubaix VARCHAR) ### Response: ### Response: SELECT giro_di_lombardia FROM table_name_38 WHERE paris_roubaix = "servais knaven ( ned )"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for the game where the opponent was the Carolina Hurricanes? ### Context: CREATE TABLE table_27537518_9 (record VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT record FROM table_27537518_9 WHERE opponent = "Carolina Hurricanes"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the result of the europe/africa group i, round robin game in Murcia (esp) before 1999? ### Context: CREATE TABLE table_name_9 (result VARCHAR, competition VARCHAR, location VARCHAR, year VARCHAR) ### Response: ### Response: SELECT result FROM table_name_9 WHERE location = "murcia (esp)" AND year < 1999 AND competition = "europe/africa group i, round robin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pick of a player for the SS, P Position for the Minnesota Twins? ### Context: CREATE TABLE table_name_51 (pick INTEGER, position VARCHAR, team VARCHAR) ### Response: ### Response: SELECT MIN(pick) FROM table_name_51 WHERE position = "ss, p" AND team = "minnesota twins"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1995 Grand Slam Tournament if 1990 is LQ? ### Context: CREATE TABLE table_name_96 (Id VARCHAR) ### Response: ### Response: SELECT 1995 FROM table_name_96 WHERE 1990 = "lq"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 episode did 18.74 million people tune in? ### Context: CREATE TABLE table_25996938_1 (title VARCHAR, us_viewers__million_ VARCHAR) ### Response: ### Response: SELECT title FROM table_25996938_1 WHERE us_viewers__million_ = "18.74"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 District is Constituency number 22? ### Context: CREATE TABLE table_name_43 (district VARCHAR, constituency_number VARCHAR) ### Response: ### Response: SELECT district FROM table_name_43 WHERE constituency_number = "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: Which Visa 4 has besart berisha as Visa 1? ### Context: CREATE TABLE table_name_42 (visa_4 VARCHAR, visa_1 VARCHAR) ### Response: ### Response: SELECT visa_4 FROM table_name_42 WHERE visa_1 = "besart berisha"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of citizenship has a stock car vehicle with a year of 1999? ### Context: CREATE TABLE table_name_78 (nation_of_citizenship VARCHAR, type_of_vehicle VARCHAR, year VARCHAR) ### Response: ### Response: SELECT nation_of_citizenship FROM table_name_78 WHERE type_of_vehicle = "stock car" AND year = 1999</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home team played the West Coast away team? ### Context: CREATE TABLE table_16388230_1 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team FROM table_16388230_1 WHERE away_team = "West Coast"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 president with date of inauguration being 4june1979 ### Context: CREATE TABLE table_12134383_1 (president VARCHAR, date_of_inauguration VARCHAR) ### Response: ### Response: SELECT COUNT(president) FROM table_12134383_1 WHERE date_of_inauguration = "4June1979"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 French Open tournament had 2r in 2012, what was it in 2010? ### Context: CREATE TABLE table_name_31 (tournament VARCHAR) ### Response: ### Response: SELECT 2010 FROM table_name_31 WHERE 2012 = "2r" AND tournament = "french open"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was the candidates dan mica (d) 55.3% bill james (r) 44.7%? ### Context: CREATE TABLE table_1341663_10 (incumbent VARCHAR, candidates VARCHAR) ### Response: ### Response: SELECT COUNT(incumbent) FROM table_1341663_10 WHERE candidates = "Dan Mica (D) 55.3% Bill James (R) 44.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 was the score of the away team at princes park? ### Context: CREATE TABLE table_name_30 (away_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_30 WHERE venue = "princes park"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the date for home team Collingwood? ### Context: CREATE TABLE table_name_19 (date VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_19 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: Name the Fixtures Sec which has a Season of 2009–2010 ### Context: CREATE TABLE table_name_12 (fixtures_sec VARCHAR, season VARCHAR) ### Response: ### Response: SELECT fixtures_sec FROM table_name_12 WHERE season = "2009–2010"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 value for Points, when Games is greater than 34, and when Name is Andrew Panko? ### Context: CREATE TABLE table_name_98 (points INTEGER, games VARCHAR, name VARCHAR) ### Response: ### Response: SELECT MIN(points) FROM table_name_98 WHERE games > 34 AND name = "andrew panko"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 type of bulykin, which has a summer transfer window? ### Context: CREATE TABLE table_name_79 (type VARCHAR, transfer_window VARCHAR, name VARCHAR) ### Response: ### Response: SELECT type FROM table_name_79 WHERE transfer_window = "summer" AND name = "bulykin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 dates had matches at the venue Sabina Park? ### Context: CREATE TABLE table_name_50 (date VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT date FROM table_name_50 WHERE venue = "sabina park"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the highest number of points for players with less than 2 touchdowns and 0 extra points? ### Context: CREATE TABLE table_name_88 (points INTEGER, extra_points VARCHAR, touchdowns VARCHAR) ### Response: ### Response: SELECT MAX(points) FROM table_name_88 WHERE extra_points = 0 AND touchdowns < 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: Name the incumbent for lost renomination republican hold ### Context: CREATE TABLE table_19753079_4 (incumbent VARCHAR, result VARCHAR) ### Response: ### Response: SELECT incumbent FROM table_19753079_4 WHERE result = "Lost renomination Republican hold"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for week 14? ### Context: CREATE TABLE table_name_29 (result VARCHAR, week VARCHAR) ### Response: ### Response: SELECT result FROM table_name_29 WHERE week = 14</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the swimsuit score when evening gown score is 9.165 (3)? ### Context: CREATE TABLE table_name_13 (swimsuit VARCHAR, evening_gown VARCHAR) ### Response: ### Response: SELECT swimsuit FROM table_name_13 WHERE evening_gown = "9.165 (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: The 147.481 Qual, happened in what year? ### Context: CREATE TABLE table_name_15 (year VARCHAR, qual VARCHAR) ### Response: ### Response: SELECT year FROM table_name_15 WHERE qual = "147.481"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the record for the Superbrawl 21? ### Context: CREATE TABLE table_name_68 (record VARCHAR, event VARCHAR) ### Response: ### Response: SELECT record FROM table_name_68 WHERE event = "superbrawl 21"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average for steals per game ### Context: CREATE TABLE table_26611679_3 (average VARCHAR, category VARCHAR) ### Response: ### Response: SELECT COUNT(average) FROM table_26611679_3 WHERE category = "Steals per game"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Nationality / Opponent of rosario? ### Context: CREATE TABLE table_name_64 (competition VARCHAR, nationality___opponent VARCHAR) ### Response: ### Response: SELECT competition FROM table_name_64 WHERE nationality___opponent = "rosario"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 PICK WITH K POSITION AND OVERALL SMALLER THAN 181? ### Context: CREATE TABLE table_name_40 (pick INTEGER, position VARCHAR, overall VARCHAR) ### Response: ### Response: SELECT SUM(pick) FROM table_name_40 WHERE position = "k" AND overall < 181</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 WInner with a TIme of 1:10.60, and Owner of Leslie Combs II? ### Context: CREATE TABLE table_name_43 (winner VARCHAR, time VARCHAR, owner VARCHAR) ### Response: ### Response: SELECT winner FROM table_name_43 WHERE time = "1:10.60" AND owner = "leslie combs ii"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 wrote episode number 11? ### Context: CREATE TABLE table_29273243_1 (written_by VARCHAR, no_in_season VARCHAR) ### Response: ### Response: SELECT written_by FROM table_29273243_1 WHERE no_in_season = 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 year did Elf Team Tyrrell have 34 points? ### Context: CREATE TABLE table_name_59 (year INTEGER, entrant VARCHAR, points VARCHAR) ### Response: ### Response: SELECT AVG(year) FROM table_name_59 WHERE entrant = "elf team tyrrell" AND points = "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 the Result of the AFG Arena, St. Gallen Competition with a Score of 1–0? ### Context: CREATE TABLE table_name_92 (result VARCHAR, venue VARCHAR, score VARCHAR) ### Response: ### Response: SELECT result FROM table_name_92 WHERE venue = "afg arena, st. gallen" AND score = "1–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 Opponent of the game after October 28? ### Context: CREATE TABLE table_name_56 (opponent VARCHAR, october INTEGER) ### Response: ### Response: SELECT opponent FROM table_name_56 WHERE october > 28</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What year did was the Inside Soap Awards won? ### Context: CREATE TABLE table_name_41 (year INTEGER, result VARCHAR, award VARCHAR) ### Response: ### Response: SELECT AVG(year) FROM table_name_41 WHERE result = "won" AND award = "inside soap awards"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 opponent with the time 3:59? ### Context: CREATE TABLE table_name_52 (opponent VARCHAR, time VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_52 WHERE time = "3:59"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of laps for ryan newman with over 96 points, a cur number under 24, ### Context: CREATE TABLE table_name_49 (laps INTEGER, driver VARCHAR, points VARCHAR, car__number VARCHAR) ### Response: ### Response: SELECT MIN(laps) FROM table_name_49 WHERE points > 96 AND car__number < 24 AND driver = "ryan newman"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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/retired for alain prost? ### Context: CREATE TABLE table_name_60 (time_retired VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT time_retired FROM table_name_60 WHERE driver = "alain prost"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tom smith built train enter service with a number under 7007? ### Context: CREATE TABLE table_name_73 (entered_service INTEGER, builder VARCHAR, number VARCHAR) ### Response: ### Response: SELECT AVG(entered_service) FROM table_name_73 WHERE builder = "tom smith" AND number < 7007</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 person there the numbers is 2343 ### Context: CREATE TABLE table_28498999_6 (player VARCHAR, points VARCHAR) ### Response: ### Response: SELECT player FROM table_28498999_6 WHERE points = 2343</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 in the men singles group in the year when Yoshie Takada won in the women singles? ### Context: CREATE TABLE table_28138035_13 (mens_singles VARCHAR, womens_singles VARCHAR) ### Response: ### Response: SELECT mens_singles FROM table_28138035_13 WHERE womens_singles = "Yoshie Takada"</s>