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:
What is the highest number of laps that max biaggi rode on a grid larger than 2?
### Context:
CREATE TABLE table_name_12 (laps INTEGER, rider VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT MAX(laps) FROM table_name_12 WHERE rider = "max biaggi" 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:
What is the highest grid that tetsuya harada rode in?
### Context:
CREATE TABLE table_name_71 (grid INTEGER, rider VARCHAR) [/INST]
### Response:
SELECT MAX(grid) FROM table_name_71 WHERE rider = "tetsuya harada" </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 number of laps that were made when the race took a time of +48.325?
### Context:
CREATE TABLE table_name_89 (laps INTEGER, time_retired VARCHAR) [/INST]
### Response:
SELECT AVG(laps) FROM table_name_89 WHERE time_retired = "+48.325" </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 total number of laps during the race that had a time of +9.682?
### Context:
CREATE TABLE table_name_6 (laps VARCHAR, time_retired VARCHAR) [/INST]
### Response:
SELECT COUNT(laps) FROM table_name_6 WHERE time_retired = "+9.682" </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 Pick, when College is "Syracuse", and when Overall is less than 18?
### Context:
CREATE TABLE table_name_40 (pick INTEGER, college VARCHAR, overall VARCHAR) [/INST]
### Response:
SELECT MAX(pick) FROM table_name_40 WHERE college = "syracuse" AND overall < 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 Position, when College is "Houston"?
### Context:
CREATE TABLE table_name_97 (position VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_97 WHERE college = "houston" </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 of networks when the size of rest bit field is 8?
### Context:
CREATE TABLE table_name_93 (number_of_networks VARCHAR, size_of_rest_bit_field VARCHAR) [/INST]
### Response:
SELECT number_of_networks FROM table_name_93 WHERE size_of_rest_bit_field = "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 start address when the network number bit field is 16?
### Context:
CREATE TABLE table_name_88 (start_address VARCHAR, size_of_network_number_bit_field VARCHAR) [/INST]
### Response:
SELECT start_address FROM table_name_88 WHERE size_of_network_number_bit_field = "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 end address for the Class E (Reserved)?
### Context:
CREATE TABLE table_name_61 (end_address VARCHAR, class VARCHAR) [/INST]
### Response:
SELECT end_address FROM table_name_61 WHERE class = "class e (reserved)" </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 size of the rest bit field when the leading bits are more than 110 and the start address is 224.0.0.0?
### Context:
CREATE TABLE table_name_12 (size_of_rest_bit_field VARCHAR, leading_bits VARCHAR, start_address VARCHAR) [/INST]
### Response:
SELECT size_of_rest_bit_field FROM table_name_12 WHERE leading_bits > 110 AND start_address = "224.0.0.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:
W hat was the lowest Goals For when they played Team Goole Town and had a position lower than 9?
### Context:
CREATE TABLE table_name_65 (goals_for INTEGER, team VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT MIN(goals_for) FROM table_name_65 WHERE team = "goole town" AND position < 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:
Which team has a position higher than 3, a Drawn lower than 12, and a Goals Against higher than 85?
### Context:
CREATE TABLE table_name_15 (team VARCHAR, goals_against VARCHAR, drawn VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_15 WHERE drawn < 12 AND position > 3 AND goals_against > 85 </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 the Points 1 were 44 and the Goals For were larger than 65, what was the total number of Goals Against?
### Context:
CREATE TABLE table_name_14 (goals_against VARCHAR, points_1 VARCHAR, goals_for VARCHAR) [/INST]
### Response:
SELECT COUNT(goals_against) FROM table_name_14 WHERE points_1 = 44 AND goals_for > 65 </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 year when the diameter was 729 km?
### Context:
CREATE TABLE table_name_59 (year_named VARCHAR, diameter__km_ VARCHAR) [/INST]
### Response:
SELECT year_named FROM table_name_59 WHERE diameter__km_ = 729 </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 diameter when the latitude is 43.5s?
### Context:
CREATE TABLE table_name_3 (diameter__km_ INTEGER, latitude VARCHAR) [/INST]
### Response:
SELECT MAX(diameter__km_) FROM table_name_3 WHERE latitude = "43.5s" </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 what Date was the Attendance 75,891?
### Context:
CREATE TABLE table_name_77 (date VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_77 WHERE attendance = "75,891" </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 Week on September 5, 1993?
### Context:
CREATE TABLE table_name_37 (week VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT week FROM table_name_37 WHERE date = "september 5, 1993" </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 Opponent on October 31, 1993?
### Context:
CREATE TABLE table_name_71 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_71 WHERE date = "october 31, 1993" </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 traction type electric with calgary location?
### Context:
CREATE TABLE table_name_18 (date__from_ VARCHAR, traction_type VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT date__from_ FROM table_name_18 WHERE traction_type = "electric" AND location = "calgary" </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 date has date started from 30 Sep 1913?
### Context:
CREATE TABLE table_name_79 (date__to_ VARCHAR, date__from_ VARCHAR) [/INST]
### Response:
SELECT date__to_ FROM table_name_79 WHERE date__from_ = "30 sep 1913" </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 1st leg of 2q round?
### Context:
CREATE TABLE table_name_33 (round VARCHAR) [/INST]
### Response:
SELECT 1 AS st_leg FROM table_name_33 WHERE round = "2q" </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 competition has the club villareal?
### Context:
CREATE TABLE table_name_89 (competition VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_89 WHERE club = "villareal" </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 competition has aik club?
### Context:
CREATE TABLE table_name_32 (competition VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_32 WHERE club = "aik" </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 round of club bečej?
### Context:
CREATE TABLE table_name_38 (round VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_38 WHERE club = "bečej" </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 1st leg of the uefa intertoto cup competition with club silkeborg?
### Context:
CREATE TABLE table_name_66 (competition VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT 1 AS st_leg FROM table_name_66 WHERE competition = "uefa intertoto cup" AND club = "silkeborg" </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 had the high rebounds when the score was w 105–95 (ot) and Jason Kidd (8) had the high assists?
### Context:
CREATE TABLE table_name_57 (high_rebounds VARCHAR, high_assists VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT high_rebounds FROM table_name_57 WHERE high_assists = "jason kidd (8)" AND score = "w 105–95 (ot)" </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 team scored l 87–115 (ot)?
### Context:
CREATE TABLE table_name_61 (team VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_61 WHERE score = "l 87–115 (ot)" </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 record of Game 56?
### Context:
CREATE TABLE table_name_37 (record VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_37 WHERE game = 56 </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 team that played at Energysolutions Arena 19,911?
### Context:
CREATE TABLE table_name_29 (team VARCHAR, location_attendance VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_29 WHERE location_attendance = "energysolutions arena 19,911" </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 had the high assists when the game was at American Airlines Center 20,223?
### Context:
CREATE TABLE table_name_8 (high_assists VARCHAR, location_attendance VARCHAR) [/INST]
### Response:
SELECT high_assists FROM table_name_8 WHERE location_attendance = "american airlines center 20,223" </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 team has a Record of 50–28?
### Context:
CREATE TABLE table_name_9 (team VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_9 WHERE record = "50–28" </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 date of game 75?
### Context:
CREATE TABLE table_name_93 (date VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_93 WHERE game = 75 </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 manufacturer was used after 1969 with a finish position of 34?
### Context:
CREATE TABLE table_name_14 (manufacturer VARCHAR, year VARCHAR, finish VARCHAR) [/INST]
### Response:
SELECT manufacturer FROM table_name_14 WHERE year > 1969 AND finish = 34 </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 total attendance on April 25?
### Context:
CREATE TABLE table_name_28 (attendance VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT COUNT(attendance) FROM table_name_28 WHERE date = "april 25" </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 decision of the game with an attendance greater than 19,883?
### Context:
CREATE TABLE table_name_49 (decision VARCHAR, attendance INTEGER) [/INST]
### Response:
SELECT decision FROM table_name_49 WHERE attendance > 19 OFFSET 883 </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 the score was 76-73-67-69=285 what was the To par?
### Context:
CREATE TABLE table_name_31 (to_par VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_31 WHERE score = 76 - 73 - 67 - 69 = 285 </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 To par of –6?
### Context:
CREATE TABLE table_name_83 (player VARCHAR, to_par VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_83 WHERE to_par = "–6" </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 much memory (RAM) does the Maemo 5 operating system have?
### Context:
CREATE TABLE table_name_40 (memory___ram__ VARCHAR, operating_system_version VARCHAR) [/INST]
### Response:
SELECT memory___ram__ FROM table_name_40 WHERE operating_system_version = "maemo 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:
Which operating system has a storage (flash) of 128MB?
### Context:
CREATE TABLE table_name_18 (operating_system_version VARCHAR, storage___flash__ VARCHAR) [/INST]
### Response:
SELECT operating_system_version FROM table_name_18 WHERE storage___flash__ = "128mb" </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 weight and dimensions of an N800?
### Context:
CREATE TABLE table_name_42 (weight VARCHAR, _dimensions VARCHAR, model VARCHAR) [/INST]
### Response:
SELECT weight, _dimensions FROM table_name_42 WHERE model = "n800" </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 operating system has 1GB (mobile ddr) memory (RAM)?
### Context:
CREATE TABLE table_name_27 (operating_system_version VARCHAR, memory___ram__ VARCHAR) [/INST]
### Response:
SELECT operating_system_version FROM table_name_27 WHERE memory___ram__ = "1gb (mobile ddr)" </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 total number of Pick, when Round is greater than 1, and when Player is "Jim Stack"?
### Context:
CREATE TABLE table_name_1 (pick VARCHAR, round VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT COUNT(pick) FROM table_name_1 WHERE round > 1 AND player = "jim stack" </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 Round, when College is "Washington State", and when Pick is less than 48?
### Context:
CREATE TABLE table_name_25 (round INTEGER, college VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT MIN(round) FROM table_name_25 WHERE college = "washington state" AND pick < 48 </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 College, when Round is greater than 1, and when Pick is greater than 163?
### Context:
CREATE TABLE table_name_11 (college VARCHAR, round VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT college FROM table_name_11 WHERE round > 1 AND pick > 163 </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 location for the software of BIND and an IPv6 address of 2001:503:c27::2:30?
### Context:
CREATE TABLE table_name_90 (location__numbersites__global_local_ VARCHAR, software VARCHAR, ipv6_address VARCHAR) [/INST]
### Response:
SELECT location__numbersites__global_local_ FROM table_name_90 WHERE software = "bind" AND ipv6_address = "2001:503:c27::2:30" </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 IPv6 address has an operator of Wide project?
### Context:
CREATE TABLE table_name_65 (ipv6_address VARCHAR, operator VARCHAR) [/INST]
### Response:
SELECT ipv6_address FROM table_name_65 WHERE operator = "wide project" </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 letter has an operator of VeriSign and an AS-number of AS26415?
### Context:
CREATE TABLE table_name_45 (letter VARCHAR, operator VARCHAR, as_number VARCHAR) [/INST]
### Response:
SELECT letter FROM table_name_45 WHERE operator = "verisign" AND as_number = "as26415" </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 location has an AS-number of N/A?
### Context:
CREATE TABLE table_name_60 (location__numbersites__global_local_ VARCHAR, as_number VARCHAR) [/INST]
### Response:
SELECT location__numbersites__global_local_ FROM table_name_60 WHERE as_number = "n/a" </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 letter has an operator of the Defense Information Systems Agency?
### Context:
CREATE TABLE table_name_32 (letter VARCHAR, operator VARCHAR) [/INST]
### Response:
SELECT letter FROM table_name_32 WHERE operator = "defense information systems agency" </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 sum of All-Time, when Amateur Era is less than 0?
### Context:
CREATE TABLE table_name_39 (all_time INTEGER, amateur_era INTEGER) [/INST]
### Response:
SELECT SUM(all_time) FROM table_name_39 WHERE amateur_era < 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 lowest All-Time, when First Title is before 1974, when Last Title is "1933", and when Amateur Era is greater than 2?
### Context:
CREATE TABLE table_name_95 (all_time INTEGER, amateur_era VARCHAR, first_title VARCHAR, last_title VARCHAR) [/INST]
### Response:
SELECT MIN(all_time) FROM table_name_95 WHERE first_title < 1974 AND last_title = 1933 AND amateur_era > 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:
What is the lowest All-Time, when First Title is "2007, and when Amateur Era is greater than 0?
### Context:
CREATE TABLE table_name_35 (all_time INTEGER, first_title VARCHAR, amateur_era VARCHAR) [/INST]
### Response:
SELECT MIN(all_time) FROM table_name_35 WHERE first_title = 2007 AND amateur_era > 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 lowest First Title, when All-Time is greater than 1, when Country is "United States (USA)", and when Amateur Era is greater than 17?
### Context:
CREATE TABLE table_name_13 (first_title INTEGER, amateur_era VARCHAR, all_time VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT MIN(first_title) FROM table_name_13 WHERE all_time > 1 AND country = "united states (usa)" AND amateur_era > 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 Place of the Player with a To par of +2 and a Score of 70-72-73=215?
### Context:
CREATE TABLE table_name_22 (place VARCHAR, to_par VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_22 WHERE to_par = "+2" AND score = 70 - 72 - 73 = 215 </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:
From what Country is T6 Place Player Robert Karlsson?
### Context:
CREATE TABLE table_name_19 (country VARCHAR, place VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_19 WHERE place = "t6" AND player = "robert karlsson" </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 To par of the T4 Place Player with a Score of 72-69-73=214?
### Context:
CREATE TABLE table_name_63 (to_par VARCHAR, place VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_63 WHERE place = "t4" AND score = 72 - 69 - 73 = 214 </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 To par of the Player with a Score of 70-72-73=215?
### Context:
CREATE TABLE table_name_7 (to_par VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_7 WHERE score = 70 - 72 - 73 = 215 </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 Country is Rocco Mediate from?
### Context:
CREATE TABLE table_name_49 (country VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_49 WHERE player = "rocco mediate" </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 Mike Smith's To par?
### Context:
CREATE TABLE table_name_79 (to_par VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_79 WHERE player = "mike smith" </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 Scott Hoch with a Score of 66 Country?
### Context:
CREATE TABLE table_name_36 (country VARCHAR, score VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_36 WHERE score = 66 AND player = "scott hoch" </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 T4 Place Player with a Score of more than 66?
### Context:
CREATE TABLE table_name_1 (player VARCHAR, score VARCHAR, place VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_1 WHERE score > 66 AND place = "t4" </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 vacancy date for the manager appointed on 2 November 2009 who left due to mutual consent?
### Context:
CREATE TABLE table_name_75 (date_of_vacancy VARCHAR, manner_of_departure VARCHAR, date_of_appointment VARCHAR) [/INST]
### Response:
SELECT date_of_vacancy FROM table_name_75 WHERE manner_of_departure = "mutual consent" AND date_of_appointment = "2 november 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 was the manner of departure for the vacancy date of 20 September 2009?
### Context:
CREATE TABLE table_name_30 (manner_of_departure VARCHAR, date_of_vacancy VARCHAR) [/INST]
### Response:
SELECT manner_of_departure FROM table_name_30 WHERE date_of_vacancy = "20 september 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 was the vacancy date of the manager appointed on 11 March 2010?
### Context:
CREATE TABLE table_name_45 (date_of_vacancy VARCHAR, date_of_appointment VARCHAR) [/INST]
### Response:
SELECT date_of_vacancy FROM table_name_45 WHERE date_of_appointment = "11 march 2010" </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 pick number where the overall pick number was 38?
### Context:
CREATE TABLE table_name_73 (pick INTEGER, overall VARCHAR) [/INST]
### Response:
SELECT MIN(pick) FROM table_name_73 WHERE overall = 38 </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 position of the player who was picked in round 22?
### Context:
CREATE TABLE table_name_49 (position VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_49 WHERE round = 22 </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 call sign for ERP W of 99?
### Context:
CREATE TABLE table_name_68 (call_sign VARCHAR, erp_w VARCHAR) [/INST]
### Response:
SELECT call_sign FROM table_name_68 WHERE erp_w = 99 </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 team 1 in the match with a team 2 of Karabakh?
### Context:
CREATE TABLE table_name_20 (team_1 VARCHAR, team_2 VARCHAR) [/INST]
### Response:
SELECT team_1 FROM table_name_20 WHERE team_2 = "karabakh" </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 round of pick 63?
### Context:
CREATE TABLE table_name_36 (round VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_36 WHERE pick = 63 </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 round of player chris burkett?
### Context:
CREATE TABLE table_name_99 (round INTEGER, player VARCHAR) [/INST]
### Response:
SELECT MIN(round) FROM table_name_99 WHERE player = "chris burkett" </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 pick of school/club team kutztown state with a round 4?
### Context:
CREATE TABLE table_name_3 (pick INTEGER, round VARCHAR, school_club_team VARCHAR) [/INST]
### Response:
SELECT AVG(pick) FROM table_name_3 WHERE round = 4 AND school_club_team = "kutztown state" </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 number of matches of leonardo in seasons after 1?
### Context:
CREATE TABLE table_name_79 (matches INTEGER, name VARCHAR, seasons VARCHAR) [/INST]
### Response:
SELECT AVG(matches) FROM table_name_79 WHERE name = "leonardo" AND seasons > 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 average membership with 3.33% LDS and less than 47 branches?
### Context:
CREATE TABLE table_name_15 (membership INTEGER, _percentage_lds VARCHAR, branches VARCHAR) [/INST]
### Response:
SELECT AVG(membership) FROM table_name_15 WHERE _percentage_lds = "3.33%" AND branches < 47 </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 2005 when 2003 is A, 2007 is 2r and 2012 is 3r?
### Context:
CREATE TABLE table_name_49 (Id VARCHAR) [/INST]
### Response:
SELECT 2005 FROM table_name_49 WHERE 2003 = "a" AND 2007 = "2r" AND 2012 = "3r" </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 2004 when the tournament is paris masters?
### Context:
CREATE TABLE table_name_49 (tournament VARCHAR) [/INST]
### Response:
SELECT 2004 FROM table_name_49 WHERE tournament = "paris masters" </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 2009 when 2004 is 107?
### Context:
CREATE TABLE table_name_5 (Id VARCHAR) [/INST]
### Response:
SELECT 2009 FROM table_name_5 WHERE 2004 = "107" </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 2003 when 2005 is did not qualify?
### Context:
CREATE TABLE table_name_37 (Id VARCHAR) [/INST]
### Response:
SELECT 2003 FROM table_name_37 WHERE 2005 = "did not qualify" </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 2012 when the tournament is win %?
### Context:
CREATE TABLE table_name_9 (tournament VARCHAR) [/INST]
### Response:
SELECT 2012 FROM table_name_9 WHERE tournament = "win %" </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 record on February 2?
### Context:
CREATE TABLE table_name_42 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_42 WHERE date = "february 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:
What was the location of the game on February 2?
### Context:
CREATE TABLE table_name_50 (location_attendance VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT location_attendance FROM table_name_50 WHERE date = "february 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:
What year was Black Swan up for the Gotham Awards?
### Context:
CREATE TABLE table_name_47 (year VARCHAR, title VARCHAR, award VARCHAR) [/INST]
### Response:
SELECT COUNT(year) FROM table_name_47 WHERE title = "black swan" AND award = "gotham awards" </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 earliest year in which Requiem for a Dream was in the running for Best Director?
### Context:
CREATE TABLE table_name_21 (year INTEGER, title VARCHAR, category VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_21 WHERE title = "requiem for a dream" AND category = "best director" </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:
Can you tell me the Record that has the Location of fleetcenter, and the Date of fri. apr. 5?
### Context:
CREATE TABLE table_name_16 (record VARCHAR, location VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_16 WHERE location = "fleetcenter" AND date = "fri. apr. 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:
Can you tell me the Record that has the Game smaller than 76?
### Context:
CREATE TABLE table_name_61 (record VARCHAR, game INTEGER) [/INST]
### Response:
SELECT record FROM table_name_61 WHERE game < 76 </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:
Can you tell me the highest Game that has the Opponent of atlanta hawks?
### Context:
CREATE TABLE table_name_56 (game INTEGER, opponent VARCHAR) [/INST]
### Response:
SELECT MAX(game) FROM table_name_56 WHERE opponent = "atlanta 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:
Can you tell me the Game that has the Opponent of miami heat?
### Context:
CREATE TABLE table_name_19 (game VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT game FROM table_name_19 WHERE opponent = "miami heat" </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:
Can you tell me the Record that has the Score of 100-105?
### Context:
CREATE TABLE table_name_99 (record VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_99 WHERE score = "100-105" </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 Opponent has a Location/Attendance of delta center/19,911 on dec 6?
### Context:
CREATE TABLE table_name_63 (opponent VARCHAR, location_attendance VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_63 WHERE location_attendance = "delta center/19,911" AND date = "dec 6" </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 Record for Game 17?
### Context:
CREATE TABLE table_name_36 (record VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_36 WHERE game = "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 Location/Attendance on Dec 14?
### Context:
CREATE TABLE table_name_66 (location_attendance VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT location_attendance FROM table_name_66 WHERE date = "dec 14" </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 Record is dated Dec 10?
### Context:
CREATE TABLE table_name_49 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_49 WHERE date = "dec 10" </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 Location/Attendance on Dec 2?
### Context:
CREATE TABLE table_name_29 (location_attendance VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT location_attendance FROM table_name_29 WHERE date = "dec 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 rode a Honda CBR1000rr, had fewer than 22 laps, and a time of +2 laps?
### Context:
CREATE TABLE table_name_43 (rider VARCHAR, time VARCHAR, bike VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT rider FROM table_name_43 WHERE bike = "honda cbr1000rr" AND laps < 22 AND time = "+2 laps" </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 grid when the time is +45.162?
### Context:
CREATE TABLE table_name_65 (grid INTEGER, time VARCHAR) [/INST]
### Response:
SELECT MAX(grid) FROM table_name_65 WHERE time = "+45.162" </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 Fonsi Nieto's average grid when he's riding a Suzuki GSX-R1000?
### Context:
CREATE TABLE table_name_25 (grid INTEGER, bike VARCHAR, rider VARCHAR) [/INST]
### Response:
SELECT AVG(grid) FROM table_name_25 WHERE bike = "suzuki gsx-r1000" AND rider = "fonsi nieto" </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 grids did Shinichi Nakatomi ride in?
### Context:
CREATE TABLE table_name_46 (grid INTEGER, rider VARCHAR) [/INST]
### Response:
SELECT SUM(grid) FROM table_name_46 WHERE rider = "shinichi nakatomi" </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 tries against have a losing bonus of 9?
### Context:
CREATE TABLE table_name_72 (tries_against VARCHAR, losing_bonus VARCHAR) [/INST]
### Response:
SELECT tries_against FROM table_name_72 WHERE losing_bonus = "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:
How many points were there for 15 losses?
### Context:
CREATE TABLE table_name_28 (points_for VARCHAR, lost VARCHAR) [/INST]
### Response:
SELECT points_for FROM table_name_28 WHERE lost = "15" </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:
For which play was the points 271?
### Context:
CREATE TABLE table_name_74 (played VARCHAR, points_against VARCHAR) [/INST]
### Response:
SELECT played FROM table_name_74 WHERE points_against = "271" </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 points were there when the try bonus was 2?
### Context:
CREATE TABLE table_name_35 (points VARCHAR, try_bonus VARCHAR) [/INST]
### Response:
SELECT points FROM table_name_35 WHERE try_bonus = "2" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.