instruction
stringlengths 12
244
| input
stringlengths 27
489
| output
stringlengths 18
557
| text
stringlengths 194
1.14k
|
---|---|---|---|
On what date was the first match for the competition that ended its last match on December 16, 2007? | CREATE TABLE table_name_81 (first_match VARCHAR, last_match VARCHAR) | SELECT first_match FROM table_name_81 WHERE last_match = "december 16, 2007" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (first_match VARCHAR, last_match VARCHAR) Question: On what date was the first match for the competition that ended its last match on December 16, 2007? [/INST] SELECT first_match FROM table_name_81 WHERE last_match = "december 16, 2007" </s> |
What competition had a final round in the finals and the final position winners? | CREATE TABLE table_name_66 (competition VARCHAR, final_position VARCHAR, final_round VARCHAR) | SELECT competition FROM table_name_66 WHERE final_position = "winners" AND final_round = "finals" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (competition VARCHAR, final_position VARCHAR, final_round VARCHAR) Question: What competition had a final round in the finals and the final position winners? [/INST] SELECT competition FROM table_name_66 WHERE final_position = "winners" AND final_round = "finals" </s> |
On what date did the first match occur for the competition that ended with a final position of winners and the final round in the finals? | CREATE TABLE table_name_35 (first_match VARCHAR, final_position VARCHAR, final_round VARCHAR) | SELECT first_match FROM table_name_35 WHERE final_position = "winners" AND final_round = "finals" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (first_match VARCHAR, final_position VARCHAR, final_round VARCHAR) Question: On what date did the first match occur for the competition that ended with a final position of winners and the final round in the finals? [/INST] SELECT first_match FROM table_name_35 WHERE final_position = "winners" AND final_round = "finals" </s> |
What competition had its first match on December 20, 2007? | CREATE TABLE table_name_15 (competition VARCHAR, first_match VARCHAR) | SELECT competition FROM table_name_15 WHERE first_match = "december 20, 2007" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (competition VARCHAR, first_match VARCHAR) Question: What competition had its first match on December 20, 2007? [/INST] SELECT competition FROM table_name_15 WHERE first_match = "december 20, 2007" </s> |
What was the date of the first match of the Fifa Club World Cup that ended with the final position as winners? | CREATE TABLE table_name_6 (first_match VARCHAR, final_position VARCHAR, competition VARCHAR) | SELECT first_match FROM table_name_6 WHERE final_position = "winners" AND competition = "fifa club world cup" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (first_match VARCHAR, final_position VARCHAR, competition VARCHAR) Question: What was the date of the first match of the Fifa Club World Cup that ended with the final position as winners? [/INST] SELECT first_match FROM table_name_6 WHERE final_position = "winners" AND competition = "fifa club world cup" </s> |
What was Len Sutton's total number of completed laps when his qualifying time was 142.653? | CREATE TABLE table_name_49 (laps VARCHAR, qual VARCHAR) | SELECT COUNT(laps) FROM table_name_49 WHERE qual = "142.653" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (laps VARCHAR, qual VARCHAR) Question: What was Len Sutton's total number of completed laps when his qualifying time was 142.653? [/INST] SELECT COUNT(laps) FROM table_name_49 WHERE qual = "142.653" </s> |
What call sign has a frequency of 91.3 MHz? | CREATE TABLE table_name_81 (call_sign VARCHAR, frequency_mhz VARCHAR) | SELECT call_sign FROM table_name_81 WHERE frequency_mhz = 91.3 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (call_sign VARCHAR, frequency_mhz VARCHAR) Question: What call sign has a frequency of 91.3 MHz? [/INST] SELECT call_sign FROM table_name_81 WHERE frequency_mhz = 91.3 </s> |
What city of license has a value of k293bg for its call sign? | CREATE TABLE table_name_82 (city_of_license VARCHAR, call_sign VARCHAR) | SELECT city_of_license FROM table_name_82 WHERE call_sign = "k293bg" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (city_of_license VARCHAR, call_sign VARCHAR) Question: What city of license has a value of k293bg for its call sign? [/INST] SELECT city_of_license FROM table_name_82 WHERE call_sign = "k293bg" </s> |
When the frequency is 103.7 MHz and the ERP W is more than 10, what is the call sign? | CREATE TABLE table_name_77 (call_sign VARCHAR, erp_w VARCHAR, frequency_mhz VARCHAR) | SELECT call_sign FROM table_name_77 WHERE erp_w > 10 AND frequency_mhz = 103.7 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (call_sign VARCHAR, erp_w VARCHAR, frequency_mhz VARCHAR) Question: When the frequency is 103.7 MHz and the ERP W is more than 10, what is the call sign? [/INST] SELECT call_sign FROM table_name_77 WHERE erp_w > 10 AND frequency_mhz = 103.7 </s> |
In Los Banos, California, when the ERP W is than 10, what is the average Frequency MHz? | CREATE TABLE table_name_21 (frequency_mhz INTEGER, city_of_license VARCHAR, erp_w VARCHAR) | SELECT AVG(frequency_mhz) FROM table_name_21 WHERE city_of_license = "los banos, california" AND erp_w < 10 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (frequency_mhz INTEGER, city_of_license VARCHAR, erp_w VARCHAR) Question: In Los Banos, California, when the ERP W is than 10, what is the average Frequency MHz? [/INST] SELECT AVG(frequency_mhz) FROM table_name_21 WHERE city_of_license = "los banos, california" AND erp_w < 10 </s> |
What is the call sign when the frequency is less than 95.5 MHz, and a ERP W is higher than 10? | CREATE TABLE table_name_16 (call_sign VARCHAR, frequency_mhz VARCHAR, erp_w VARCHAR) | SELECT call_sign FROM table_name_16 WHERE frequency_mhz < 95.5 AND erp_w > 10 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (call_sign VARCHAR, frequency_mhz VARCHAR, erp_w VARCHAR) Question: What is the call sign when the frequency is less than 95.5 MHz, and a ERP W is higher than 10? [/INST] SELECT call_sign FROM table_name_16 WHERE frequency_mhz < 95.5 AND erp_w > 10 </s> |
Name the player with score of 73-69-74-71=287 | CREATE TABLE table_name_12 (player VARCHAR, score VARCHAR) | SELECT player FROM table_name_12 WHERE score = 73 - 69 - 74 - 71 = 287 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (player VARCHAR, score VARCHAR) Question: Name the player with score of 73-69-74-71=287 [/INST] SELECT player FROM table_name_12 WHERE score = 73 - 69 - 74 - 71 = 287 </s> |
Name the sum To par for score of 71-74-71-72=288 | CREATE TABLE table_name_26 (to_par INTEGER, score VARCHAR) | SELECT SUM(to_par) FROM table_name_26 WHERE score = 71 - 74 - 71 - 72 = 288 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (to_par INTEGER, score VARCHAR) Question: Name the sum To par for score of 71-74-71-72=288 [/INST] SELECT SUM(to_par) FROM table_name_26 WHERE score = 71 - 74 - 71 - 72 = 288 </s> |
Tell me the tournament for kathy horvath opponent | CREATE TABLE table_name_95 (tournament VARCHAR, opponent VARCHAR) | SELECT tournament FROM table_name_95 WHERE opponent = "kathy horvath" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (tournament VARCHAR, opponent VARCHAR) Question: Tell me the tournament for kathy horvath opponent [/INST] SELECT tournament FROM table_name_95 WHERE opponent = "kathy horvath" </s> |
Name the date for hard surface at maybelline classic with opponent of wendy turnbull | CREATE TABLE table_name_59 (date VARCHAR, opponent VARCHAR, surface VARCHAR, tournament VARCHAR) | SELECT date FROM table_name_59 WHERE surface = "hard" AND tournament = "maybelline classic" AND opponent = "wendy turnbull" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (date VARCHAR, opponent VARCHAR, surface VARCHAR, tournament VARCHAR) Question: Name the date for hard surface at maybelline classic with opponent of wendy turnbull [/INST] SELECT date FROM table_name_59 WHERE surface = "hard" AND tournament = "maybelline classic" AND opponent = "wendy turnbull" </s> |
Name the tournament for semifinal hard surface for opponent of pam casale | CREATE TABLE table_name_86 (tournament VARCHAR, opponent VARCHAR, round VARCHAR, surface VARCHAR) | SELECT tournament FROM table_name_86 WHERE round = "semifinal" AND surface = "hard" AND opponent = "pam casale" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (tournament VARCHAR, opponent VARCHAR, round VARCHAR, surface VARCHAR) Question: Name the tournament for semifinal hard surface for opponent of pam casale [/INST] SELECT tournament FROM table_name_86 WHERE round = "semifinal" AND surface = "hard" AND opponent = "pam casale" </s> |
Name the date for grass surface for quarterfinal at the nsw building society open tournament | CREATE TABLE table_name_36 (date VARCHAR, tournament VARCHAR, surface VARCHAR, round VARCHAR) | SELECT date FROM table_name_36 WHERE surface = "grass" AND round = "quarterfinal" AND tournament = "nsw building society open" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (date VARCHAR, tournament VARCHAR, surface VARCHAR, round VARCHAR) Question: Name the date for grass surface for quarterfinal at the nsw building society open tournament [/INST] SELECT date FROM table_name_36 WHERE surface = "grass" AND round = "quarterfinal" AND tournament = "nsw building society open" </s> |
Name the surface for united airlines tournament of champions final round | CREATE TABLE table_name_56 (surface VARCHAR, tournament VARCHAR, round VARCHAR) | SELECT surface FROM table_name_56 WHERE tournament = "united airlines tournament of champions" AND round = "final" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (surface VARCHAR, tournament VARCHAR, round VARCHAR) Question: Name the surface for united airlines tournament of champions final round [/INST] SELECT surface FROM table_name_56 WHERE tournament = "united airlines tournament of champions" AND round = "final" </s> |
Name the date for chris evert opponent and carpet surface | CREATE TABLE table_name_98 (date VARCHAR, opponent VARCHAR, surface VARCHAR) | SELECT date FROM table_name_98 WHERE opponent = "chris evert" AND surface = "carpet" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (date VARCHAR, opponent VARCHAR, surface VARCHAR) Question: Name the date for chris evert opponent and carpet surface [/INST] SELECT date FROM table_name_98 WHERE opponent = "chris evert" AND surface = "carpet" </s> |
Name the venue for 25 may 2008 | CREATE TABLE table_name_94 (venue VARCHAR, date VARCHAR) | SELECT venue FROM table_name_94 WHERE date = "25 may 2008" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (venue VARCHAR, date VARCHAR) Question: Name the venue for 25 may 2008 [/INST] SELECT venue FROM table_name_94 WHERE date = "25 may 2008" </s> |
Name the score for 2015 afc asian cup qualification | CREATE TABLE table_name_73 (score VARCHAR, competition VARCHAR) | SELECT score FROM table_name_73 WHERE competition = "2015 afc asian cup qualification" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (score VARCHAR, competition VARCHAR) Question: Name the score for 2015 afc asian cup qualification [/INST] SELECT score FROM table_name_73 WHERE competition = "2015 afc asian cup qualification" </s> |
Name the competition for 13 december 2012 | CREATE TABLE table_name_6 (competition VARCHAR, date VARCHAR) | SELECT competition FROM table_name_6 WHERE date = "13 december 2012" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (competition VARCHAR, date VARCHAR) Question: Name the competition for 13 december 2012 [/INST] SELECT competition FROM table_name_6 WHERE date = "13 december 2012" </s> |
What was arrows racing team's highest points after 1982? | CREATE TABLE table_name_51 (points INTEGER, entrant VARCHAR, year VARCHAR) | SELECT MAX(points) FROM table_name_51 WHERE entrant = "arrows racing team" AND year > 1982 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (points INTEGER, entrant VARCHAR, year VARCHAR) Question: What was arrows racing team's highest points after 1982? [/INST] SELECT MAX(points) FROM table_name_51 WHERE entrant = "arrows racing team" AND year > 1982 </s> |
How many years has 2 points? | CREATE TABLE table_name_85 (year INTEGER, points VARCHAR) | SELECT SUM(year) FROM table_name_85 WHERE points = 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (year INTEGER, points VARCHAR) Question: How many years has 2 points? [/INST] SELECT SUM(year) FROM table_name_85 WHERE points = 2 </s> |
Name the catalogue with song title of love me tonight | CREATE TABLE table_name_33 (catalogue VARCHAR, song_title VARCHAR) | SELECT catalogue FROM table_name_33 WHERE song_title = "love me tonight" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (catalogue VARCHAR, song_title VARCHAR) Question: Name the catalogue with song title of love me tonight [/INST] SELECT catalogue FROM table_name_33 WHERE song_title = "love me tonight" </s> |
Name the song title with time of 1:51 | CREATE TABLE table_name_75 (song_title VARCHAR, time VARCHAR) | SELECT song_title FROM table_name_75 WHERE time = "1:51" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (song_title VARCHAR, time VARCHAR) Question: Name the song title with time of 1:51 [/INST] SELECT song_title FROM table_name_75 WHERE time = "1:51" </s> |
Name the least track with song of little sister | CREATE TABLE table_name_67 (track INTEGER, song_title VARCHAR) | SELECT MIN(track) FROM table_name_67 WHERE song_title = "little sister" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (track INTEGER, song_title VARCHAR) Question: Name the least track with song of little sister [/INST] SELECT MIN(track) FROM table_name_67 WHERE song_title = "little sister" </s> |
What player has a score of 79? | CREATE TABLE table_name_53 (player VARCHAR, score VARCHAR) | SELECT player FROM table_name_53 WHERE score = "79" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (player VARCHAR, score VARCHAR) Question: What player has a score of 79? [/INST] SELECT player FROM table_name_53 WHERE score = "79" </s> |
Who played on waca ground and scored 79 points? | CREATE TABLE table_name_43 (opponent VARCHAR, ground VARCHAR, score VARCHAR) | SELECT opponent FROM table_name_43 WHERE ground = "waca ground" AND score = "79" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (opponent VARCHAR, ground VARCHAR, score VARCHAR) Question: Who played on waca ground and scored 79 points? [/INST] SELECT opponent FROM table_name_43 WHERE ground = "waca ground" AND score = "79" </s> |
What player had 49 balls? | CREATE TABLE table_name_8 (player VARCHAR, balls VARCHAR) | SELECT player FROM table_name_8 WHERE balls = 49 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (player VARCHAR, balls VARCHAR) Question: What player had 49 balls? [/INST] SELECT player FROM table_name_8 WHERE balls = 49 </s> |
What was the highest attendance of a game that had a score of 3-5? | CREATE TABLE table_name_83 (attendance INTEGER, score VARCHAR) | SELECT MAX(attendance) FROM table_name_83 WHERE score = "3-5" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (attendance INTEGER, score VARCHAR) Question: What was the highest attendance of a game that had a score of 3-5? [/INST] SELECT MAX(attendance) FROM table_name_83 WHERE score = "3-5" </s> |
Who took the loss in the game that ended with a 54-61 record? | CREATE TABLE table_name_29 (loss VARCHAR, record VARCHAR) | SELECT loss FROM table_name_29 WHERE record = "54-61" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (loss VARCHAR, record VARCHAR) Question: Who took the loss in the game that ended with a 54-61 record? [/INST] SELECT loss FROM table_name_29 WHERE record = "54-61" </s> |
Name the 125cc winner with circuit of estoril | CREATE TABLE table_name_2 (circuit VARCHAR) | SELECT 125 AS cc_winner FROM table_name_2 WHERE circuit = "estoril" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (circuit VARCHAR) Question: Name the 125cc winner with circuit of estoril [/INST] SELECT 125 AS cc_winner FROM table_name_2 WHERE circuit = "estoril" </s> |
Name the date for motogp winner of casey stoner and grand prix of valencian grand prix | CREATE TABLE table_name_15 (date VARCHAR, motogp_winner VARCHAR, grand_prix VARCHAR) | SELECT date FROM table_name_15 WHERE motogp_winner = "casey stoner" AND grand_prix = "valencian grand prix" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (date VARCHAR, motogp_winner VARCHAR, grand_prix VARCHAR) Question: Name the date for motogp winner of casey stoner and grand prix of valencian grand prix [/INST] SELECT date FROM table_name_15 WHERE motogp_winner = "casey stoner" AND grand_prix = "valencian grand prix" </s> |
Name the circuit for round 18 | CREATE TABLE table_name_25 (circuit VARCHAR, round VARCHAR) | SELECT circuit FROM table_name_25 WHERE round = 18 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (circuit VARCHAR, round VARCHAR) Question: Name the circuit for round 18 [/INST] SELECT circuit FROM table_name_25 WHERE round = 18 </s> |
Name the grand prix for casey stoner and circuit of losail | CREATE TABLE table_name_55 (grand_prix VARCHAR, motogp_winner VARCHAR, circuit VARCHAR) | SELECT grand_prix FROM table_name_55 WHERE motogp_winner = "casey stoner" AND circuit = "losail" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (grand_prix VARCHAR, motogp_winner VARCHAR, circuit VARCHAR) Question: Name the grand prix for casey stoner and circuit of losail [/INST] SELECT grand_prix FROM table_name_55 WHERE motogp_winner = "casey stoner" AND circuit = "losail" </s> |
Where was the game held that was played on 2002-03-07? | CREATE TABLE table_name_36 (venue VARCHAR, date VARCHAR) | SELECT venue FROM table_name_36 WHERE date = "2002-03-07" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (venue VARCHAR, date VARCHAR) Question: Where was the game held that was played on 2002-03-07? [/INST] SELECT venue FROM table_name_36 WHERE date = "2002-03-07" </s> |
What is the total gold from New zealand and a rank less than 14? | CREATE TABLE table_name_18 (gold INTEGER, nation VARCHAR, rank VARCHAR) | SELECT SUM(gold) FROM table_name_18 WHERE nation = "new zealand" AND rank < 14 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (gold INTEGER, nation VARCHAR, rank VARCHAR) Question: What is the total gold from New zealand and a rank less than 14? [/INST] SELECT SUM(gold) FROM table_name_18 WHERE nation = "new zealand" AND rank < 14 </s> |
What is the average of the silver that has less than 0 gold | CREATE TABLE table_name_75 (silver INTEGER, gold INTEGER) | SELECT AVG(silver) FROM table_name_75 WHERE gold < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (silver INTEGER, gold INTEGER) Question: What is the average of the silver that has less than 0 gold [/INST] SELECT AVG(silver) FROM table_name_75 WHERE gold < 0 </s> |
Which nation has 0 gold, 0 silver and 2 total? | CREATE TABLE table_name_53 (nation VARCHAR, total VARCHAR, gold VARCHAR, silver VARCHAR) | SELECT nation FROM table_name_53 WHERE gold = 0 AND silver = 0 AND total = 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (nation VARCHAR, total VARCHAR, gold VARCHAR, silver VARCHAR) Question: Which nation has 0 gold, 0 silver and 2 total? [/INST] SELECT nation FROM table_name_53 WHERE gold = 0 AND silver = 0 AND total = 2 </s> |
What is the total gold in Norway with more than 1 bronze? | CREATE TABLE table_name_84 (gold INTEGER, nation VARCHAR, bronze VARCHAR) | SELECT SUM(gold) FROM table_name_84 WHERE nation = "norway" AND bronze > 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (gold INTEGER, nation VARCHAR, bronze VARCHAR) Question: What is the total gold in Norway with more than 1 bronze? [/INST] SELECT SUM(gold) FROM table_name_84 WHERE nation = "norway" AND bronze > 1 </s> |
What is the total bronze from Puerto Rico with a total of less than 1? | CREATE TABLE table_name_27 (bronze INTEGER, nation VARCHAR, total VARCHAR) | SELECT SUM(bronze) FROM table_name_27 WHERE nation = "puerto rico" AND total < 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (bronze INTEGER, nation VARCHAR, total VARCHAR) Question: What is the total bronze from Puerto Rico with a total of less than 1? [/INST] SELECT SUM(bronze) FROM table_name_27 WHERE nation = "puerto rico" AND total < 1 </s> |
Which season has the Celtic club? | CREATE TABLE table_name_53 (season VARCHAR, club VARCHAR) | SELECT season FROM table_name_53 WHERE club = "celtic" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (season VARCHAR, club VARCHAR) Question: Which season has the Celtic club? [/INST] SELECT season FROM table_name_53 WHERE club = "celtic" </s> |
What was Parker Moloney's party affiliation when he was the Minister for Markets? | CREATE TABLE table_name_3 (party VARCHAR, minister VARCHAR, title VARCHAR) | SELECT party FROM table_name_3 WHERE minister = "parker moloney" AND title = "minister for markets" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (party VARCHAR, minister VARCHAR, title VARCHAR) Question: What was Parker Moloney's party affiliation when he was the Minister for Markets? [/INST] SELECT party FROM table_name_3 WHERE minister = "parker moloney" AND title = "minister for markets" </s> |
What was the starting date for the Minister for agriculture, fisheries and forestry that is in order number 25?? | CREATE TABLE table_name_47 (term_start VARCHAR, title VARCHAR, order VARCHAR) | SELECT term_start FROM table_name_47 WHERE title = "minister for agriculture, fisheries and forestry" AND order = "25" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (term_start VARCHAR, title VARCHAR, order VARCHAR) Question: What was the starting date for the Minister for agriculture, fisheries and forestry that is in order number 25?? [/INST] SELECT term_start FROM table_name_47 WHERE title = "minister for agriculture, fisheries and forestry" AND order = "25" </s> |
What was the score in the venue of Seoul that resulted in 8-0? | CREATE TABLE table_name_32 (score VARCHAR, venue VARCHAR, result VARCHAR) | SELECT score FROM table_name_32 WHERE venue = "seoul" AND result = "8-0" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (score VARCHAR, venue VARCHAR, result VARCHAR) Question: What was the score in the venue of Seoul that resulted in 8-0? [/INST] SELECT score FROM table_name_32 WHERE venue = "seoul" AND result = "8-0" </s> |
What date had a result of 8-0? | CREATE TABLE table_name_40 (date VARCHAR, result VARCHAR) | SELECT date FROM table_name_40 WHERE result = "8-0" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (date VARCHAR, result VARCHAR) Question: What date had a result of 8-0? [/INST] SELECT date FROM table_name_40 WHERE result = "8-0" </s> |
On July 26, 1977, what competition played at the venue of Kuala Lumpur, resulted in 4-0? | CREATE TABLE table_name_89 (competition VARCHAR, date VARCHAR, venue VARCHAR, result VARCHAR) | SELECT competition FROM table_name_89 WHERE venue = "kuala lumpur" AND result = "4-0" AND date = "july 26, 1977" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (competition VARCHAR, date VARCHAR, venue VARCHAR, result VARCHAR) Question: On July 26, 1977, what competition played at the venue of Kuala Lumpur, resulted in 4-0? [/INST] SELECT competition FROM table_name_89 WHERE venue = "kuala lumpur" AND result = "4-0" AND date = "july 26, 1977" </s> |
What venue were the 1986 Asian games resulting in 2-0 played at? | CREATE TABLE table_name_44 (venue VARCHAR, competition VARCHAR, result VARCHAR) | SELECT venue FROM table_name_44 WHERE competition = "1986 asian games" AND result = "2-0" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (venue VARCHAR, competition VARCHAR, result VARCHAR) Question: What venue were the 1986 Asian games resulting in 2-0 played at? [/INST] SELECT venue FROM table_name_44 WHERE competition = "1986 asian games" AND result = "2-0" </s> |
How many total League goals does Player John O'Flynn have? | CREATE TABLE table_name_45 (league_goals INTEGER, player VARCHAR) | SELECT SUM(league_goals) FROM table_name_45 WHERE player = "john o'flynn" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (league_goals INTEGER, player VARCHAR) Question: How many total League goals does Player John O'Flynn have? [/INST] SELECT SUM(league_goals) FROM table_name_45 WHERE player = "john o'flynn" </s> |
What is the earliest year that had a Lotus 49B chassis? | CREATE TABLE table_name_73 (year INTEGER, chassis VARCHAR) | SELECT MIN(year) FROM table_name_73 WHERE chassis = "lotus 49b" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (year INTEGER, chassis VARCHAR) Question: What is the earliest year that had a Lotus 49B chassis? [/INST] SELECT MIN(year) FROM table_name_73 WHERE chassis = "lotus 49b" </s> |
Name the least lane for lenny krayzelburg | CREATE TABLE table_name_18 (lane INTEGER, name VARCHAR) | SELECT MIN(lane) FROM table_name_18 WHERE name = "lenny krayzelburg" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (lane INTEGER, name VARCHAR) Question: Name the least lane for lenny krayzelburg [/INST] SELECT MIN(lane) FROM table_name_18 WHERE name = "lenny krayzelburg" </s> |
Round of 9 involved what name? | CREATE TABLE table_name_67 (name VARCHAR, round VARCHAR) | SELECT name FROM table_name_67 WHERE round = 9 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (name VARCHAR, round VARCHAR) Question: Round of 9 involved what name? [/INST] SELECT name FROM table_name_67 WHERE round = 9 </s> |
Name of calvin o'neal, and a Round smaller than 6 had what number total overall? | CREATE TABLE table_name_3 (overall VARCHAR, name VARCHAR, round VARCHAR) | SELECT COUNT(overall) FROM table_name_3 WHERE name = "calvin o'neal" AND round < 6 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (overall VARCHAR, name VARCHAR, round VARCHAR) Question: Name of calvin o'neal, and a Round smaller than 6 had what number total overall? [/INST] SELECT COUNT(overall) FROM table_name_3 WHERE name = "calvin o'neal" AND round < 6 </s> |
Name the work for years before 2007 that won blockbuster entertainment awards | CREATE TABLE table_name_47 (work VARCHAR, year VARCHAR, award VARCHAR) | SELECT work FROM table_name_47 WHERE year < 2007 AND award = "blockbuster entertainment awards" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (work VARCHAR, year VARCHAR, award VARCHAR) Question: Name the work for years before 2007 that won blockbuster entertainment awards [/INST] SELECT work FROM table_name_47 WHERE year < 2007 AND award = "blockbuster entertainment awards" </s> |
Name the Cole for years before 2009 where Dylan was nominated for big daddy at mtv movie awards | CREATE TABLE table_name_94 (cole VARCHAR, award VARCHAR, work VARCHAR, year VARCHAR, dylan VARCHAR) | SELECT cole FROM table_name_94 WHERE year < 2009 AND dylan = "nominated" AND work = "big daddy" AND award = "mtv movie awards" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (cole VARCHAR, award VARCHAR, work VARCHAR, year VARCHAR, dylan VARCHAR) Question: Name the Cole for years before 2009 where Dylan was nominated for big daddy at mtv movie awards [/INST] SELECT cole FROM table_name_94 WHERE year < 2009 AND dylan = "nominated" AND work = "big daddy" AND award = "mtv movie awards" </s> |
Position of running back involves which college? | CREATE TABLE table_name_57 (college VARCHAR, position VARCHAR) | SELECT college FROM table_name_57 WHERE position = "running back" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (college VARCHAR, position VARCHAR) Question: Position of running back involves which college? [/INST] SELECT college FROM table_name_57 WHERE position = "running back" </s> |
Round larger than 2, and a Position of guard involves what college? | CREATE TABLE table_name_6 (college VARCHAR, round VARCHAR, position VARCHAR) | SELECT college FROM table_name_6 WHERE round > 2 AND position = "guard" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (college VARCHAR, round VARCHAR, position VARCHAR) Question: Round larger than 2, and a Position of guard involves what college? [/INST] SELECT college FROM table_name_6 WHERE round > 2 AND position = "guard" </s> |
Pick # smaller than 46, and a Round of 5, and a Position of defensive tackle involves which college? | CREATE TABLE table_name_72 (college VARCHAR, position VARCHAR, pick__number VARCHAR, round VARCHAR) | SELECT college FROM table_name_72 WHERE pick__number < 46 AND round = 5 AND position = "defensive tackle" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (college VARCHAR, position VARCHAR, pick__number VARCHAR, round VARCHAR) Question: Pick # smaller than 46, and a Round of 5, and a Position of defensive tackle involves which college? [/INST] SELECT college FROM table_name_72 WHERE pick__number < 46 AND round = 5 AND position = "defensive tackle" </s> |
What is the percentage who speak Russian? | CREATE TABLE table_name_73 (percentage___percentage_ VARCHAR, language VARCHAR) | SELECT percentage___percentage_ FROM table_name_73 WHERE language = "russian" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (percentage___percentage_ VARCHAR, language VARCHAR) Question: What is the percentage who speak Russian? [/INST] SELECT percentage___percentage_ FROM table_name_73 WHERE language = "russian" </s> |
How many speak german? | CREATE TABLE table_name_50 (number VARCHAR, language VARCHAR) | SELECT number FROM table_name_50 WHERE language = "german" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (number VARCHAR, language VARCHAR) Question: How many speak german? [/INST] SELECT number FROM table_name_50 WHERE language = "german" </s> |
What is the percentage where males equal 99? | CREATE TABLE table_name_35 (percentage___percentage_ VARCHAR, males VARCHAR) | SELECT percentage___percentage_ FROM table_name_35 WHERE males = "99" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (percentage___percentage_ VARCHAR, males VARCHAR) Question: What is the percentage where males equal 99? [/INST] SELECT percentage___percentage_ FROM table_name_35 WHERE males = "99" </s> |
How many women speak German? | CREATE TABLE table_name_67 (females VARCHAR, language VARCHAR) | SELECT females FROM table_name_67 WHERE language = "german" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (females VARCHAR, language VARCHAR) Question: How many women speak German? [/INST] SELECT females FROM table_name_67 WHERE language = "german" </s> |
What is the lowest number of league cups associated with 0 FA cups? | CREATE TABLE table_name_65 (league_cup INTEGER, fa_cup INTEGER) | SELECT MIN(league_cup) FROM table_name_65 WHERE fa_cup < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (league_cup INTEGER, fa_cup INTEGER) Question: What is the lowest number of league cups associated with 0 FA cups? [/INST] SELECT MIN(league_cup) FROM table_name_65 WHERE fa_cup < 0 </s> |
How many FA cups for the player with under 5 champs, 0 league cups, and over 3 total? | CREATE TABLE table_name_13 (fa_cup INTEGER, total VARCHAR, championship VARCHAR, league_cup VARCHAR) | SELECT SUM(fa_cup) FROM table_name_13 WHERE championship < 5 AND league_cup = 0 AND total > 3 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (fa_cup INTEGER, total VARCHAR, championship VARCHAR, league_cup VARCHAR) Question: How many FA cups for the player with under 5 champs, 0 league cups, and over 3 total? [/INST] SELECT SUM(fa_cup) FROM table_name_13 WHERE championship < 5 AND league_cup = 0 AND total > 3 </s> |
How many league cups associated with under 10 championships and a total of under 3? | CREATE TABLE table_name_36 (league_cup INTEGER, championship VARCHAR, total VARCHAR) | SELECT SUM(league_cup) FROM table_name_36 WHERE championship < 10 AND total < 3 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (league_cup INTEGER, championship VARCHAR, total VARCHAR) Question: How many league cups associated with under 10 championships and a total of under 3? [/INST] SELECT SUM(league_cup) FROM table_name_36 WHERE championship < 10 AND total < 3 </s> |
Result F–A of 2–0 had what group position? | CREATE TABLE table_name_80 (group_position VARCHAR, result_f_a VARCHAR) | SELECT group_position FROM table_name_80 WHERE result_f_a = "2–0" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (group_position VARCHAR, result_f_a VARCHAR) Question: Result F–A of 2–0 had what group position? [/INST] SELECT group_position FROM table_name_80 WHERE result_f_a = "2–0" </s> |
Result F–A of 5–0 had what group position? | CREATE TABLE table_name_93 (group_position VARCHAR, result_f_a VARCHAR) | SELECT group_position FROM table_name_93 WHERE result_f_a = "5–0" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (group_position VARCHAR, result_f_a VARCHAR) Question: Result F–A of 5–0 had what group position? [/INST] SELECT group_position FROM table_name_93 WHERE result_f_a = "5–0" </s> |
Group position of 1st, and a Result F–A of 2–0 has what average attendance? | CREATE TABLE table_name_69 (attendance INTEGER, group_position VARCHAR, result_f_a VARCHAR) | SELECT AVG(attendance) FROM table_name_69 WHERE group_position = "1st" AND result_f_a = "2–0" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (attendance INTEGER, group_position VARCHAR, result_f_a VARCHAR) Question: Group position of 1st, and a Result F–A of 2–0 has what average attendance? [/INST] SELECT AVG(attendance) FROM table_name_69 WHERE group_position = "1st" AND result_f_a = "2–0" </s> |
Result F–A of 5–0 had what date? | CREATE TABLE table_name_72 (date VARCHAR, result_f_a VARCHAR) | SELECT date FROM table_name_72 WHERE result_f_a = "5–0" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (date VARCHAR, result_f_a VARCHAR) Question: Result F–A of 5–0 had what date? [/INST] SELECT date FROM table_name_72 WHERE result_f_a = "5–0" </s> |
Date of 1 october 2003 had what attendance? | CREATE TABLE table_name_18 (attendance VARCHAR, date VARCHAR) | SELECT attendance FROM table_name_18 WHERE date = "1 october 2003" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (attendance VARCHAR, date VARCHAR) Question: Date of 1 october 2003 had what attendance? [/INST] SELECT attendance FROM table_name_18 WHERE date = "1 october 2003" </s> |
what score is it with tathiana garbin as partner? | CREATE TABLE table_name_84 (score VARCHAR, partner VARCHAR) | SELECT score FROM table_name_84 WHERE partner = "tathiana garbin" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (score VARCHAR, partner VARCHAR) Question: what score is it with tathiana garbin as partner? [/INST] SELECT score FROM table_name_84 WHERE partner = "tathiana garbin" </s> |
what date was giulia casoni the partner? | CREATE TABLE table_name_48 (date VARCHAR, partner VARCHAR) | SELECT date FROM table_name_48 WHERE partner = "giulia casoni" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (date VARCHAR, partner VARCHAR) Question: what date was giulia casoni the partner? [/INST] SELECT date FROM table_name_48 WHERE partner = "giulia casoni" </s> |
for country of spain and iata of ibz, what's the city? | CREATE TABLE table_name_29 (city VARCHAR, country VARCHAR, iata VARCHAR) | SELECT city FROM table_name_29 WHERE country = "spain" AND iata = "ibz" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (city VARCHAR, country VARCHAR, iata VARCHAR) Question: for country of spain and iata of ibz, what's the city? [/INST] SELECT city FROM table_name_29 WHERE country = "spain" AND iata = "ibz" </s> |
for fiumicino airport what is the icao? | CREATE TABLE table_name_76 (icao VARCHAR, airport VARCHAR) | SELECT icao FROM table_name_76 WHERE airport = "fiumicino airport" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (icao VARCHAR, airport VARCHAR) Question: for fiumicino airport what is the icao? [/INST] SELECT icao FROM table_name_76 WHERE airport = "fiumicino airport" </s> |
for milan and the iata of lin what is the airport? | CREATE TABLE table_name_95 (airport VARCHAR, city VARCHAR, iata VARCHAR) | SELECT airport FROM table_name_95 WHERE city = "milan" AND iata = "lin" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (airport VARCHAR, city VARCHAR, iata VARCHAR) Question: for milan and the iata of lin what is the airport? [/INST] SELECT airport FROM table_name_95 WHERE city = "milan" AND iata = "lin" </s> |
what's the iata for the icao of eheh? | CREATE TABLE table_name_39 (iata VARCHAR, icao VARCHAR) | SELECT iata FROM table_name_39 WHERE icao = "eheh" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (iata VARCHAR, icao VARCHAR) Question: what's the iata for the icao of eheh? [/INST] SELECT iata FROM table_name_39 WHERE icao = "eheh" </s> |
which aiport is in the united kingdom and has iata of lcy? | CREATE TABLE table_name_58 (airport VARCHAR, country VARCHAR, iata VARCHAR) | SELECT airport FROM table_name_58 WHERE country = "united kingdom" AND iata = "lcy" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (airport VARCHAR, country VARCHAR, iata VARCHAR) Question: which aiport is in the united kingdom and has iata of lcy? [/INST] SELECT airport FROM table_name_58 WHERE country = "united kingdom" AND iata = "lcy" </s> |
Name the F. Goals for games of 22 22 and points of 012 12 | CREATE TABLE table_name_31 (games VARCHAR, points VARCHAR) | SELECT F.goals FROM table_name_31 WHERE games = "22 22" AND points = "012 12" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (games VARCHAR, points VARCHAR) Question: Name the F. Goals for games of 22 22 and points of 012 12 [/INST] SELECT F.goals FROM table_name_31 WHERE games = "22 22" AND points = "012 12" </s> |
Name the points for games of 16 16 | CREATE TABLE table_name_43 (points VARCHAR, games VARCHAR) | SELECT points FROM table_name_43 WHERE games = "16 16" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (points VARCHAR, games VARCHAR) Question: Name the points for games of 16 16 [/INST] SELECT points FROM table_name_43 WHERE games = "16 16" </s> |
Name the tries that has a points of 008 8 and games of 27 27 | CREATE TABLE table_name_98 (tries VARCHAR, points VARCHAR, games VARCHAR) | SELECT tries FROM table_name_98 WHERE points = "008 8" AND games = "27 27" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (tries VARCHAR, points VARCHAR, games VARCHAR) Question: Name the tries that has a points of 008 8 and games of 27 27 [/INST] SELECT tries FROM table_name_98 WHERE points = "008 8" AND games = "27 27" </s> |
Name the F. Goals with tries of 0 0 and games of 05 5 | CREATE TABLE table_name_18 (tries VARCHAR, games VARCHAR) | SELECT F.goals FROM table_name_18 WHERE tries = "0 0" AND games = "05 5" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (tries VARCHAR, games VARCHAR) Question: Name the F. Goals with tries of 0 0 and games of 05 5 [/INST] SELECT F.goals FROM table_name_18 WHERE tries = "0 0" AND games = "05 5" </s> |
Name the player with tries of 02 2 and points of 008 8 | CREATE TABLE table_name_83 (player VARCHAR, tries VARCHAR, points VARCHAR) | SELECT player FROM table_name_83 WHERE tries = "02 2" AND points = "008 8" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (player VARCHAR, tries VARCHAR, points VARCHAR) Question: Name the player with tries of 02 2 and points of 008 8 [/INST] SELECT player FROM table_name_83 WHERE tries = "02 2" AND points = "008 8" </s> |
Which area has a Name of william colenso college? | CREATE TABLE table_name_73 (area VARCHAR, name VARCHAR) | SELECT area FROM table_name_73 WHERE name = "william colenso college" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (area VARCHAR, name VARCHAR) Question: Which area has a Name of william colenso college? [/INST] SELECT area FROM table_name_73 WHERE name = "william colenso college" </s> |
Which authority has a Name of tamatea high school? | CREATE TABLE table_name_41 (authority VARCHAR, name VARCHAR) | SELECT authority FROM table_name_41 WHERE name = "tamatea high school" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (authority VARCHAR, name VARCHAR) Question: Which authority has a Name of tamatea high school? [/INST] SELECT authority FROM table_name_41 WHERE name = "tamatea high school" </s> |
Which gender has a Decile of 8, an Area of taradale, and Years of 1–13? | CREATE TABLE table_name_90 (gender VARCHAR, years VARCHAR, decile VARCHAR, area VARCHAR) | SELECT gender FROM table_name_90 WHERE decile = 8 AND area = "taradale" AND years = "1–13" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (gender VARCHAR, years VARCHAR, decile VARCHAR, area VARCHAR) Question: Which gender has a Decile of 8, an Area of taradale, and Years of 1–13? [/INST] SELECT gender FROM table_name_90 WHERE decile = 8 AND area = "taradale" AND years = "1–13" </s> |
Which Decile has Years of –, and a Gender of coed? | CREATE TABLE table_name_69 (decile VARCHAR, years VARCHAR, gender VARCHAR) | SELECT decile FROM table_name_69 WHERE years = "–" AND gender = "coed" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (decile VARCHAR, years VARCHAR, gender VARCHAR) Question: Which Decile has Years of –, and a Gender of coed? [/INST] SELECT decile FROM table_name_69 WHERE years = "–" AND gender = "coed" </s> |
Name the total number of division for apps more than 5 for greece | CREATE TABLE table_name_83 (division VARCHAR, apps VARCHAR, country VARCHAR) | SELECT COUNT(division) FROM table_name_83 WHERE apps > 5 AND country = "greece" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (division VARCHAR, apps VARCHAR, country VARCHAR) Question: Name the total number of division for apps more than 5 for greece [/INST] SELECT COUNT(division) FROM table_name_83 WHERE apps > 5 AND country = "greece" </s> |
Name the average apps for smederevo | CREATE TABLE table_name_73 (apps INTEGER, team VARCHAR) | SELECT AVG(apps) FROM table_name_73 WHERE team = "smederevo" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (apps INTEGER, team VARCHAR) Question: Name the average apps for smederevo [/INST] SELECT AVG(apps) FROM table_name_73 WHERE team = "smederevo" </s> |
What model engine has a lotus 16 chassis? | CREATE TABLE table_name_64 (engine VARCHAR, chassis VARCHAR) | SELECT engine FROM table_name_64 WHERE chassis = "lotus 16" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (engine VARCHAR, chassis VARCHAR) Question: What model engine has a lotus 16 chassis? [/INST] SELECT engine FROM table_name_64 WHERE chassis = "lotus 16" </s> |
How many points after 1960 for fred tuck cars? | CREATE TABLE table_name_80 (points INTEGER, entrant VARCHAR, year VARCHAR) | SELECT MAX(points) FROM table_name_80 WHERE entrant = "fred tuck cars" AND year > 1960 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (points INTEGER, entrant VARCHAR, year VARCHAR) Question: How many points after 1960 for fred tuck cars? [/INST] SELECT MAX(points) FROM table_name_80 WHERE entrant = "fred tuck cars" AND year > 1960 </s> |
What is the distance for the unnamed race with 3 runners at Newcastle? | CREATE TABLE table_name_94 (dist__miles_ VARCHAR, course VARCHAR, race_name VARCHAR, runners VARCHAR) | SELECT dist__miles_ FROM table_name_94 WHERE race_name = "unnamed race" AND runners = "3" AND course = "newcastle" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (dist__miles_ VARCHAR, course VARCHAR, race_name VARCHAR, runners VARCHAR) Question: What is the distance for the unnamed race with 3 runners at Newcastle? [/INST] SELECT dist__miles_ FROM table_name_94 WHERE race_name = "unnamed race" AND runners = "3" AND course = "newcastle" </s> |
Name the score when the record was 18-25 | CREATE TABLE table_name_51 (score VARCHAR, record VARCHAR) | SELECT score FROM table_name_51 WHERE record = "18-25" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (score VARCHAR, record VARCHAR) Question: Name the score when the record was 18-25 [/INST] SELECT score FROM table_name_51 WHERE record = "18-25" </s> |
Name the loss for the angels opponent | CREATE TABLE table_name_10 (loss VARCHAR, opponent VARCHAR) | SELECT loss FROM table_name_10 WHERE opponent = "angels" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (loss VARCHAR, opponent VARCHAR) Question: Name the loss for the angels opponent [/INST] SELECT loss FROM table_name_10 WHERE opponent = "angels" </s> |
Name the total number of people that went when the record was 16-22 | CREATE TABLE table_name_32 (attendance VARCHAR, record VARCHAR) | SELECT COUNT(attendance) FROM table_name_32 WHERE record = "16-22" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (attendance VARCHAR, record VARCHAR) Question: Name the total number of people that went when the record was 16-22 [/INST] SELECT COUNT(attendance) FROM table_name_32 WHERE record = "16-22" </s> |
Name the score for the mariners opponent on may 10 | CREATE TABLE table_name_20 (score VARCHAR, opponent VARCHAR, date VARCHAR) | SELECT score FROM table_name_20 WHERE opponent = "mariners" AND date = "may 10" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (score VARCHAR, opponent VARCHAR, date VARCHAR) Question: Name the score for the mariners opponent on may 10 [/INST] SELECT score FROM table_name_20 WHERE opponent = "mariners" AND date = "may 10" </s> |
What was the Outcome for the Partner of Jürgen Melzer and the Date of January 7, 2012? | CREATE TABLE table_name_25 (outcome VARCHAR, partner VARCHAR, date VARCHAR) | SELECT outcome FROM table_name_25 WHERE partner = "jürgen melzer" AND date = "january 7, 2012" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (outcome VARCHAR, partner VARCHAR, date VARCHAR) Question: What was the Outcome for the Partner of Jürgen Melzer and the Date of January 7, 2012? [/INST] SELECT outcome FROM table_name_25 WHERE partner = "jürgen melzer" AND date = "january 7, 2012" </s> |
What was the Surface for the Partner of Jürgen Melzer, and a Date of July 16, 2011? | CREATE TABLE table_name_79 (surface VARCHAR, partner VARCHAR, date VARCHAR) | SELECT surface FROM table_name_79 WHERE partner = "jürgen melzer" AND date = "july 16, 2011" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (surface VARCHAR, partner VARCHAR, date VARCHAR) Question: What was the Surface for the Partner of Jürgen Melzer, and a Date of July 16, 2011? [/INST] SELECT surface FROM table_name_79 WHERE partner = "jürgen melzer" AND date = "july 16, 2011" </s> |
What's the Outcome for the Date of July 16, 2011? | CREATE TABLE table_name_76 (outcome VARCHAR, date VARCHAR) | SELECT outcome FROM table_name_76 WHERE date = "july 16, 2011" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (outcome VARCHAR, date VARCHAR) Question: What's the Outcome for the Date of July 16, 2011? [/INST] SELECT outcome FROM table_name_76 WHERE date = "july 16, 2011" </s> |
What's the Outcome for the Partner of Jürgen Melzer on the Date of February 7, 2010? | CREATE TABLE table_name_94 (outcome VARCHAR, partner VARCHAR, date VARCHAR) | SELECT outcome FROM table_name_94 WHERE partner = "jürgen melzer" AND date = "february 7, 2010" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (outcome VARCHAR, partner VARCHAR, date VARCHAR) Question: What's the Outcome for the Partner of Jürgen Melzer on the Date of February 7, 2010? [/INST] SELECT outcome FROM table_name_94 WHERE partner = "jürgen melzer" AND date = "february 7, 2010" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.