text
stringlengths
380
1.33k
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Name has a Height (m) of 2980? ### Context: CREATE TABLE table_name_63 (name VARCHAR, height__m_ VARCHAR) [/INST] ### Response: SELECT name FROM table_name_63 WHERE height__m_ = 2980 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which AVE-No has a Name of livigno alps? ### Context: CREATE TABLE table_name_28 (ave__no INTEGER, name VARCHAR) [/INST] ### Response: SELECT MIN(ave__no) FROM table_name_28 WHERE name = "livigno alps" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the winning driver when pole position was jenson button, the fastest lap was michael schumacher and the car was ferrari? ### Context: CREATE TABLE table_name_13 (winning_driver VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR, constructor VARCHAR) [/INST] ### Response: SELECT winning_driver FROM table_name_13 WHERE fastest_lap = "michael schumacher" AND constructor = "ferrari" AND pole_position = "jenson button" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the pole position at the san marino grand prix with michael schumacher as winning driver? ### Context: CREATE TABLE table_name_36 (pole_position VARCHAR, winning_driver VARCHAR, grand_prix VARCHAR) [/INST] ### Response: SELECT pole_position FROM table_name_36 WHERE winning_driver = "michael schumacher" AND grand_prix = "san marino grand prix" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the Grand Prix for pole position of kimi räikkönen ### Context: CREATE TABLE table_name_23 (grand_prix VARCHAR, pole_position VARCHAR) [/INST] ### Response: SELECT grand_prix FROM table_name_23 WHERE pole_position = "kimi räikkönen" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which is the category of the group was establishe in 1990? ### Context: CREATE TABLE table_name_8 (category VARCHAR, established VARCHAR) [/INST] ### Response: SELECT category FROM table_name_8 WHERE established = 1990 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the category of the touchdown atlantic? ### Context: CREATE TABLE table_name_76 (category VARCHAR, event_name VARCHAR) [/INST] ### Response: SELECT category FROM table_name_76 WHERE event_name = "touchdown atlantic" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the result for 13 october 2004 ### Context: CREATE TABLE table_name_85 (result VARCHAR, date VARCHAR) [/INST] ### Response: SELECT result FROM table_name_85 WHERE date = "13 october 2004" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the date that has a friendly competition at rheinpark stadion, vaduz ### Context: CREATE TABLE table_name_71 (date VARCHAR, competition VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT date FROM table_name_71 WHERE competition = "friendly" AND venue = "rheinpark stadion, vaduz" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is the constructor of John Surtees's Oulton Park circuit car? ### Context: CREATE TABLE table_name_67 (constructor VARCHAR, circuit VARCHAR, winning_driver VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_67 WHERE circuit = "oulton park" AND winning_driver = "john surtees" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which race was Matra the constructor? ### Context: CREATE TABLE table_name_90 (race_name VARCHAR, constructor VARCHAR) [/INST] ### Response: SELECT race_name FROM table_name_90 WHERE constructor = "matra" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which race was at Hockenheim circuit? ### Context: CREATE TABLE table_name_74 (race_name VARCHAR, circuit VARCHAR) [/INST] ### Response: SELECT race_name FROM table_name_74 WHERE circuit = "hockenheim" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the winner of the XII Spring Trophy race with BRM as the constructor? ### Context: CREATE TABLE table_name_22 (winning_driver VARCHAR, constructor VARCHAR, race_name VARCHAR) [/INST] ### Response: SELECT winning_driver FROM table_name_22 WHERE constructor = "brm" AND race_name = "xii spring trophy" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the away team at victoria park? ### Context: CREATE TABLE table_name_69 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_69 WHERE venue = "victoria park" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which away team is from junction oval? ### Context: CREATE TABLE table_name_38 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_38 WHERE venue = "junction oval" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the term of Hon Peter Morris? ### Context: CREATE TABLE table_name_42 (term_in_office VARCHAR, member VARCHAR) [/INST] ### Response: SELECT term_in_office FROM table_name_42 WHERE member = "hon peter morris" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What party is the member that has an electorate of Lindsay? ### Context: CREATE TABLE table_name_34 (party VARCHAR, electorate VARCHAR) [/INST] ### Response: SELECT party FROM table_name_34 WHERE electorate = "lindsay" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the low lap total for the under 4 grid car driven by juan pablo montoya? ### Context: CREATE TABLE table_name_65 (laps INTEGER, grid VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT MIN(laps) FROM table_name_65 WHERE grid < 4 AND driver = "juan pablo montoya" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who drove the grid 11 car? ### Context: CREATE TABLE table_name_43 (driver VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_43 WHERE grid = 11 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the grid total for cars with over 69 laps? ### Context: CREATE TABLE table_name_34 (grid VARCHAR, laps INTEGER) [/INST] ### Response: SELECT COUNT(grid) FROM table_name_34 WHERE laps > 69 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the time/retired with 22 laps and a grid of 29? ### Context: CREATE TABLE table_name_80 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT time_retired FROM table_name_80 WHERE laps = 22 AND grid = 29 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest number of laps with a time of +6.643 and grid less than 2? ### Context: CREATE TABLE table_name_58 (laps INTEGER, time_retired VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT MAX(laps) FROM table_name_58 WHERE time_retired = "+6.643" AND grid < 2 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When was there 204 deaths? ### Context: CREATE TABLE table_name_93 (dates_active VARCHAR, deaths VARCHAR) [/INST] ### Response: SELECT dates_active FROM table_name_93 WHERE deaths = "204" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When is the birth date of player with right arm fast style? ### Context: CREATE TABLE table_name_74 (date_of_birth VARCHAR, bowling_style VARCHAR) [/INST] ### Response: SELECT date_of_birth FROM table_name_74 WHERE bowling_style = "right arm fast" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What batting style corresponds to a bowling style of right arm medium for Stuart Williams? ### Context: CREATE TABLE table_name_32 (batting_style VARCHAR, bowling_style VARCHAR, player VARCHAR) [/INST] ### Response: SELECT batting_style FROM table_name_32 WHERE bowling_style = "right arm medium" AND player = "stuart williams" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the birth date for Mervyn Dillon? ### Context: CREATE TABLE table_name_11 (date_of_birth VARCHAR, player VARCHAR) [/INST] ### Response: SELECT date_of_birth FROM table_name_11 WHERE player = "mervyn dillon" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What position does Michael Ruffin play? ### Context: CREATE TABLE table_name_98 (position VARCHAR, player VARCHAR) [/INST] ### Response: SELECT position FROM table_name_98 WHERE player = "michael ruffin" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the nationality of the center? ### Context: CREATE TABLE table_name_72 (nationality VARCHAR, position VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_72 WHERE position = "center" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the nationality of the Jazz player 1977-79? ### Context: CREATE TABLE table_name_30 (nationality VARCHAR, years_for_jazz VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_30 WHERE years_for_jazz = "1977-79" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Tell me the School/Club team of the player from the United States that play'de guard? ### Context: CREATE TABLE table_name_53 (school_club_team VARCHAR, nationality VARCHAR, position VARCHAR) [/INST] ### Response: SELECT school_club_team FROM table_name_53 WHERE nationality = "united states" AND position = "guard" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What nationality is Bill Robinzine? ### Context: CREATE TABLE table_name_69 (nationality VARCHAR, player VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_69 WHERE player = "bill robinzine" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average of seasons for 10th place finishes? ### Context: CREATE TABLE table_name_95 (season INTEGER, position VARCHAR) [/INST] ### Response: SELECT AVG(season) FROM table_name_95 WHERE position = "10th" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What season was there a 2nd place finish? ### Context: CREATE TABLE table_name_81 (season VARCHAR, position VARCHAR) [/INST] ### Response: SELECT season FROM table_name_81 WHERE position = "2nd" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What level for seasons after 2003, a Division of kakkonen (second division), and a Position of 12th? ### Context: CREATE TABLE table_name_21 (level VARCHAR, position VARCHAR, season VARCHAR, division VARCHAR) [/INST] ### Response: SELECT level FROM table_name_21 WHERE season > 2003 AND division = "kakkonen (second division)" AND position = "12th" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the streak on April 2? ### Context: CREATE TABLE table_name_61 (streak VARCHAR, date VARCHAR) [/INST] ### Response: SELECT streak FROM table_name_61 WHERE date = "april 2" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the visiting team when the leading scorer was Jones : 20? ### Context: CREATE TABLE table_name_9 (visitor VARCHAR, leading_scorer VARCHAR) [/INST] ### Response: SELECT visitor FROM table_name_9 WHERE leading_scorer = "jones : 20" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many people watched season 1? ### Context: CREATE TABLE table_name_69 (viewers__in_millions_ VARCHAR, season VARCHAR) [/INST] ### Response: SELECT viewers__in_millions_ FROM table_name_69 WHERE season = "1" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the PI GP of Rob Flockhart, who has a pick # less than 122 and a round # less than 3? ### Context: CREATE TABLE table_name_44 (pl_gp INTEGER, rd__number VARCHAR, pick__number VARCHAR, player VARCHAR) [/INST] ### Response: SELECT SUM(pl_gp) FROM table_name_44 WHERE pick__number < 122 AND player = "rob flockhart" AND rd__number < 3 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest reg gp of the player with a round # more than 2, a pick # of 80, and a PI GP larger than 0? ### Context: CREATE TABLE table_name_69 (reg_gp INTEGER, pl_gp VARCHAR, rd__number VARCHAR, pick__number VARCHAR) [/INST] ### Response: SELECT MIN(reg_gp) FROM table_name_69 WHERE rd__number > 2 AND pick__number = 80 AND pl_gp > 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the highest FIPS code for coordinates of 41.827547, -74.118478 and land less than 1.196 ### Context: CREATE TABLE table_name_58 (fips_code INTEGER, coordinates VARCHAR, land___sq_mi__ VARCHAR) [/INST] ### Response: SELECT MAX(fips_code) FROM table_name_58 WHERE coordinates = "41.827547, -74.118478" AND land___sq_mi__ < 1.196 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the CDP name for FIPS code of 3659708 ### Context: CREATE TABLE table_name_58 (cdp_name VARCHAR, fips_code VARCHAR) [/INST] ### Response: SELECT cdp_name FROM table_name_58 WHERE fips_code = 3659708 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the FIPS code for county of wyoming and CDP name of pike ### Context: CREATE TABLE table_name_36 (fips_code VARCHAR, county VARCHAR, cdp_name VARCHAR) [/INST] ### Response: SELECT fips_code FROM table_name_36 WHERE county = "wyoming" AND cdp_name = "pike" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the sum of land for ANSI code of 2390496 and population less than 7,284 ### Context: CREATE TABLE table_name_80 (land___sq_mi__ INTEGER, ansi_code VARCHAR, pop__2010_ VARCHAR) [/INST] ### Response: SELECT SUM(land___sq_mi__) FROM table_name_80 WHERE ansi_code = 2390496 AND pop__2010_ < 7 OFFSET 284 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many sacks for the player with over 1 tackle, under 3 assisted tackles, and over 0 yards? ### Context: CREATE TABLE table_name_46 (sack VARCHAR, yards VARCHAR, tackles VARCHAR, assisted VARCHAR) [/INST] ### Response: SELECT COUNT(sack) FROM table_name_46 WHERE tackles > 1 AND assisted < 3 AND yards > 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What stamp design has a denomination of $1.18? ### Context: CREATE TABLE table_name_33 (design VARCHAR, denomination VARCHAR) [/INST] ### Response: SELECT design FROM table_name_33 WHERE denomination = "$1.18" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the denomination for the stamp issued 8 January 2009? ### Context: CREATE TABLE table_name_34 (denomination VARCHAR, date_of_issue VARCHAR) [/INST] ### Response: SELECT denomination FROM table_name_34 WHERE date_of_issue = "8 january 2009" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What date was the John Belisle, Kosta Tsetsekas stamp issued? ### Context: CREATE TABLE table_name_43 (date_of_issue VARCHAR, design VARCHAR) [/INST] ### Response: SELECT date_of_issue FROM table_name_43 WHERE design = "john belisle, kosta tsetsekas" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the first day cover cancellation for the Karen Smith Design stamp? ### Context: CREATE TABLE table_name_31 (first_day_cover_cancellation VARCHAR, design VARCHAR) [/INST] ### Response: SELECT first_day_cover_cancellation FROM table_name_31 WHERE design = "karen smith design" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the date of Competition of 2008 africa cup of nations? ### Context: CREATE TABLE table_name_37 (date VARCHAR, competition VARCHAR) [/INST] ### Response: SELECT date FROM table_name_37 WHERE competition = "2008 africa cup of nations" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the score on 22 january 2008? ### Context: CREATE TABLE table_name_88 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_88 WHERE date = "22 january 2008" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which venue was used 22 january 2008? ### Context: CREATE TABLE table_name_86 (venue VARCHAR, date VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_86 WHERE date = "22 january 2008" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What result has a Score of 1–0, and a Competition of 2014 fifa world cup qualification? ### Context: CREATE TABLE table_name_47 (result VARCHAR, score VARCHAR, competition VARCHAR) [/INST] ### Response: SELECT result FROM table_name_47 WHERE score = "1–0" AND competition = "2014 fifa world cup qualification" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What date was the Competition of 2014 fifa world cup qualification, with a Score of 1–0? ### Context: CREATE TABLE table_name_26 (date VARCHAR, competition VARCHAR, score VARCHAR) [/INST] ### Response: SELECT date FROM table_name_26 WHERE competition = "2014 fifa world cup qualification" AND score = "1–0" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the object type when the right ascension (j2000) is 11h10m42.8s? ### Context: CREATE TABLE table_name_77 (object_type VARCHAR, right_ascension___j2000__ VARCHAR) [/INST] ### Response: SELECT object_type FROM table_name_77 WHERE right_ascension___j2000__ = "11h10m42.8s" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the declination (j2000) when the ngc number is higher than 3593? ### Context: CREATE TABLE table_name_90 (declination___j2000__ VARCHAR, ngc_number INTEGER) [/INST] ### Response: SELECT declination___j2000__ FROM table_name_90 WHERE ngc_number > 3593 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the constellation when the object type is spiral galaxy, the ngc number is less than 3593 and the right ascension (j2000) is 11h05m48.9s? ### Context: CREATE TABLE table_name_24 (constellation VARCHAR, right_ascension___j2000__ VARCHAR, object_type VARCHAR, ngc_number VARCHAR) [/INST] ### Response: SELECT constellation FROM table_name_24 WHERE object_type = "spiral galaxy" AND ngc_number < 3593 AND right_ascension___j2000__ = "11h05m48.9s" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the right ascension (j2000) when the ngc number is 3576? ### Context: CREATE TABLE table_name_41 (right_ascension___j2000__ VARCHAR, ngc_number VARCHAR) [/INST] ### Response: SELECT right_ascension___j2000__ FROM table_name_41 WHERE ngc_number = 3576 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is the driver when the grid is 18? ### Context: CREATE TABLE table_name_18 (driver VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_18 WHERE grid = "18" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the time/retired when the grid is 19? ### Context: CREATE TABLE table_name_42 (time_retired VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT time_retired FROM table_name_42 WHERE grid = "19" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was St Kilda's home team opponents score? ### Context: CREATE TABLE table_name_56 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_56 WHERE away_team = "st kilda" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When did Hawthorn play at home? ### Context: CREATE TABLE table_name_27 (date VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_27 WHERE home_team = "hawthorn" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many people were in attendance at St Kilda's away match? ### Context: CREATE TABLE table_name_18 (crowd VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT crowd FROM table_name_18 WHERE away_team = "st kilda" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the date of the British Rail class 111 tslrb description? ### Context: CREATE TABLE table_name_40 (date VARCHAR, description VARCHAR) [/INST] ### Response: SELECT date FROM table_name_40 WHERE description = "british rail class 111 tslrb" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the number & name with an Undergoing overhaul, restoration or repairs date? ### Context: CREATE TABLE table_name_65 (number_ VARCHAR, _name VARCHAR, date VARCHAR) [/INST] ### Response: SELECT number_ & _name FROM table_name_65 WHERE date = "undergoing overhaul, restoration or repairs" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the number & name of the livery in 1958? ### Context: CREATE TABLE table_name_78 (number_ VARCHAR, _name VARCHAR, date VARCHAR) [/INST] ### Response: SELECT number_ & _name FROM table_name_78 WHERE date = "1958" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest rank for a nation with 29 total medals, over 5 silvers, and under 16 bronze? ### Context: CREATE TABLE table_name_71 (rank INTEGER, bronze VARCHAR, silver VARCHAR, total VARCHAR) [/INST] ### Response: SELECT MIN(rank) FROM table_name_71 WHERE silver > 5 AND total = 29 AND bronze < 16 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest rank for a nation with 26 golds and over 17 silvers? ### Context: CREATE TABLE table_name_39 (rank INTEGER, gold VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT MAX(rank) FROM table_name_39 WHERE gold = 26 AND silver > 17 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the catalog number with the date November 16, 2004? ### Context: CREATE TABLE table_name_15 (catalog VARCHAR, date VARCHAR) [/INST] ### Response: SELECT catalog FROM table_name_15 WHERE date = "november 16, 2004" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the date of the item with a label of Sony BMG, Epic and a Catalog number 5187482? ### Context: CREATE TABLE table_name_82 (date VARCHAR, label VARCHAR, catalog VARCHAR) [/INST] ### Response: SELECT date FROM table_name_82 WHERE label = "sony bmg, epic" AND catalog = "5187482" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Catalog has a Region of Canada and a Format of cd/dvd? ### Context: CREATE TABLE table_name_61 (catalog VARCHAR, region VARCHAR, format VARCHAR) [/INST] ### Response: SELECT catalog FROM table_name_61 WHERE region = "canada" AND format = "cd/dvd" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the date for a CD format with a Region of Europe? ### Context: CREATE TABLE table_name_54 (date VARCHAR, region VARCHAR, format VARCHAR) [/INST] ### Response: SELECT date FROM table_name_54 WHERE region = "europe" AND format = "cd" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What nationality is the la salle team? ### Context: CREATE TABLE table_name_28 (nationality VARCHAR, school_club_team VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_28 WHERE school_club_team = "la salle" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the nationality of jim les? ### Context: CREATE TABLE table_name_24 (nationality VARCHAR, player VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_24 WHERE player = "jim les" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which player has a nationality of spain? ### Context: CREATE TABLE table_name_24 (player VARCHAR, nationality VARCHAR) [/INST] ### Response: SELECT player FROM table_name_24 WHERE nationality = "spain" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What position is listed for the nebraska team? ### Context: CREATE TABLE table_name_75 (position VARCHAR, school_club_team VARCHAR) [/INST] ### Response: SELECT position FROM table_name_75 WHERE school_club_team = "nebraska" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: On October 24, who played at home when there was a decision of Ward? ### Context: CREATE TABLE table_name_95 (home VARCHAR, decision VARCHAR, date VARCHAR) [/INST] ### Response: SELECT home FROM table_name_95 WHERE decision = "ward" AND date = "october 24" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many laps are there for grid 8? ### Context: CREATE TABLE table_name_53 (laps VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT laps FROM table_name_53 WHERE grid = 8 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the driver for Grid 8? ### Context: CREATE TABLE table_name_46 (driver VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_46 WHERE grid = 8 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average grid for Clay Regazzoni? ### Context: CREATE TABLE table_name_29 (grid INTEGER, driver VARCHAR) [/INST] ### Response: SELECT AVG(grid) FROM table_name_29 WHERE driver = "clay regazzoni" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average laps for the grid smaller than 21 for Renzo Zorzi? ### Context: CREATE TABLE table_name_6 (laps INTEGER, grid VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT AVG(laps) FROM table_name_6 WHERE grid < 21 AND driver = "renzo zorzi" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average laps for Grid 9? ### Context: CREATE TABLE table_name_87 (laps INTEGER, grid VARCHAR) [/INST] ### Response: SELECT AVG(laps) FROM table_name_87 WHERE grid = 9 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the constituted for labor and scullin ministry ### Context: CREATE TABLE table_name_86 (constituted VARCHAR, party VARCHAR, name VARCHAR) [/INST] ### Response: SELECT constituted FROM table_name_86 WHERE party = "labor" AND name = "scullin ministry" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was South Melbourne's away team opponents? ### Context: CREATE TABLE table_name_70 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_70 WHERE home_team = "south melbourne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the leading scorer on November 2, 2007? ### Context: CREATE TABLE table_name_62 (leading_scorer VARCHAR, date VARCHAR) [/INST] ### Response: SELECT leading_scorer FROM table_name_62 WHERE date = "november 2, 2007" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the attendance when the Hawks played? ### Context: CREATE TABLE table_name_24 (attendance VARCHAR, home VARCHAR) [/INST] ### Response: SELECT COUNT(attendance) FROM table_name_24 WHERE home = "hawks" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many bronzes are there for the total nation with 112 silver and a total of 72? ### Context: CREATE TABLE table_name_39 (bronze INTEGER, silver VARCHAR, nation VARCHAR) [/INST] ### Response: SELECT AVG(bronze) FROM table_name_39 WHERE "total" > 72 AND nation = "total" AND silver < 112 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest bronze for San Marino with less than 82 total and less than 3 golds? ### Context: CREATE TABLE table_name_53 (bronze INTEGER, gold VARCHAR, total VARCHAR, nation VARCHAR) [/INST] ### Response: SELECT MAX(bronze) FROM table_name_53 WHERE total < 82 AND nation = "san marino" AND gold < 3 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many golds were there when there was more than 11 bronze and 29 in total? ### Context: CREATE TABLE table_name_92 (gold VARCHAR, bronze VARCHAR, total VARCHAR) [/INST] ### Response: SELECT COUNT(gold) FROM table_name_92 WHERE bronze > 11 AND total = 29 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was Montenegro's average bronze with less than 7 silver and more than 4 golds? ### Context: CREATE TABLE table_name_66 (bronze INTEGER, gold VARCHAR, silver VARCHAR, nation VARCHAR) [/INST] ### Response: SELECT AVG(bronze) FROM table_name_66 WHERE silver < 7 AND nation = "montenegro" AND gold > 4 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many golds were there for Iceland with more than 15 silver? ### Context: CREATE TABLE table_name_71 (gold VARCHAR, silver VARCHAR, nation VARCHAR) [/INST] ### Response: SELECT COUNT(gold) FROM table_name_71 WHERE silver > 15 AND nation = "iceland" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was Andorra's total with less than 10 silver and more than 5 bronze? ### Context: CREATE TABLE table_name_97 (total INTEGER, bronze VARCHAR, silver VARCHAR, nation VARCHAR) [/INST] ### Response: SELECT SUM(total) FROM table_name_97 WHERE silver < 10 AND nation = "andorra" AND bronze > 5 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the roll number of Poroti school, which has a 6 decile? ### Context: CREATE TABLE table_name_45 (roll VARCHAR, decile VARCHAR, name VARCHAR) [/INST] ### Response: SELECT roll FROM table_name_45 WHERE decile = "6" AND name = "poroti school" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the roll number of the school with a state authority in Waiotira? ### Context: CREATE TABLE table_name_76 (roll VARCHAR, authority VARCHAR, area VARCHAR) [/INST] ### Response: SELECT roll FROM table_name_76 WHERE authority = "state" AND area = "waiotira" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the area of the school with a decile of 2 and a roll number 222? ### Context: CREATE TABLE table_name_33 (area VARCHAR, decile VARCHAR, roll VARCHAR) [/INST] ### Response: SELECT area FROM table_name_33 WHERE decile = "2" AND roll = "222" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: WHat is the decile of the school in Purua? ### Context: CREATE TABLE table_name_38 (decile VARCHAR, area VARCHAR) [/INST] ### Response: SELECT decile FROM table_name_38 WHERE area = "purua" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the away team score when the home team is essendon? ### Context: CREATE TABLE table_name_2 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_2 WHERE home_team = "essendon" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many total ties had less than 1183 total games, 121 years, and more than 541 losses? ### Context: CREATE TABLE table_name_98 (tied VARCHAR, lost VARCHAR, total_games VARCHAR, years VARCHAR) [/INST] ### Response: SELECT COUNT(tied) FROM table_name_98 WHERE total_games < 1183 AND years = 121 AND lost > 541 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many losses had more than 122 years and more than 1244 total games? ### Context: CREATE TABLE table_name_2 (lost INTEGER, years VARCHAR, total_games VARCHAR) [/INST] ### Response: SELECT SUM(lost) FROM table_name_2 WHERE years > 122 AND total_games > 1244 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest earnings for a player with over 24 wins? ### Context: CREATE TABLE table_name_65 (earnings__ INTEGER, wins INTEGER) [/INST] ### Response: SELECT MIN(earnings__) AS $__ FROM table_name_65 WHERE wins > 24 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which constructor has Chuck Weyant as a driver, 45 laps, and a qual of less than 142.29? ### Context: CREATE TABLE table_name_28 (constructor VARCHAR, driver VARCHAR, laps VARCHAR, qual VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_28 WHERE laps = 45 AND qual < 142.29 AND driver = "chuck weyant" </s>