instruction
stringlengths 12
244
| input
stringlengths 27
489
| output
stringlengths 18
557
| text
stringlengths 194
1.14k
|
---|---|---|---|
what is the country when the total is 111 and the day 1 is 69?
|
CREATE TABLE table_name_4 (country VARCHAR, total VARCHAR, day_1 VARCHAR)
|
SELECT country FROM table_name_4 WHERE total = 111 AND day_1 = 69
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (country VARCHAR, total VARCHAR, day_1 VARCHAR) Question: what is the country when the total is 111 and the day 1 is 69? [/INST] SELECT country FROM table_name_4 WHERE total = 111 AND day_1 = 69 </s>
|
what is the average rank when the day 1 is less than 71 and the country is romania?
|
CREATE TABLE table_name_62 (rank INTEGER, day_1 VARCHAR, country VARCHAR)
|
SELECT AVG(rank) FROM table_name_62 WHERE day_1 < 71 AND country = "romania"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (rank INTEGER, day_1 VARCHAR, country VARCHAR) Question: what is the average rank when the day 1 is less than 71 and the country is romania? [/INST] SELECT AVG(rank) FROM table_name_62 WHERE day_1 < 71 AND country = "romania" </s>
|
how many times is the athlete jin di and the total less than 118?
|
CREATE TABLE table_name_77 (rank VARCHAR, athlete VARCHAR, total VARCHAR)
|
SELECT COUNT(rank) FROM table_name_77 WHERE athlete = "jin di" AND total < 118
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (rank VARCHAR, athlete VARCHAR, total VARCHAR) Question: how many times is the athlete jin di and the total less than 118? [/INST] SELECT COUNT(rank) FROM table_name_77 WHERE athlete = "jin di" AND total < 118 </s>
|
What is the highest goal for a GEO nat., that ended after 2010?
|
CREATE TABLE table_name_6 (goals INTEGER, nat VARCHAR, ends VARCHAR)
|
SELECT MAX(goals) FROM table_name_6 WHERE nat = "geo" AND ends > 2010
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (goals INTEGER, nat VARCHAR, ends VARCHAR) Question: What is the highest goal for a GEO nat., that ended after 2010? [/INST] SELECT MAX(goals) FROM table_name_6 WHERE nat = "geo" AND ends > 2010 </s>
|
what is the venue when the year is 2006, the competition is asian games and the event is 400 m?
|
CREATE TABLE table_name_20 (venue VARCHAR, event VARCHAR, year VARCHAR, competition VARCHAR)
|
SELECT venue FROM table_name_20 WHERE year = 2006 AND competition = "asian games" AND event = "400 m"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (venue VARCHAR, event VARCHAR, year VARCHAR, competition VARCHAR) Question: what is the venue when the year is 2006, the competition is asian games and the event is 400 m? [/INST] SELECT venue FROM table_name_20 WHERE year = 2006 AND competition = "asian games" AND event = "400 m" </s>
|
what is the venue when the event is 4x400 m relay and the competition is asian championships?
|
CREATE TABLE table_name_7 (venue VARCHAR, event VARCHAR, competition VARCHAR)
|
SELECT venue FROM table_name_7 WHERE event = "4x400 m relay" AND competition = "asian championships"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (venue VARCHAR, event VARCHAR, competition VARCHAR) Question: what is the venue when the event is 4x400 m relay and the competition is asian championships? [/INST] SELECT venue FROM table_name_7 WHERE event = "4x400 m relay" AND competition = "asian championships" </s>
|
what is the venue when the competition is asian games, the event is 4x400 m relay and the year is 2002?
|
CREATE TABLE table_name_93 (venue VARCHAR, year VARCHAR, competition VARCHAR, event VARCHAR)
|
SELECT venue FROM table_name_93 WHERE competition = "asian games" AND event = "4x400 m relay" AND year = 2002
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (venue VARCHAR, year VARCHAR, competition VARCHAR, event VARCHAR) Question: what is the venue when the competition is asian games, the event is 4x400 m relay and the year is 2002? [/INST] SELECT venue FROM table_name_93 WHERE competition = "asian games" AND event = "4x400 m relay" AND year = 2002 </s>
|
During the voting order 11, when the commentator was pierre tchernia, who was the spokesperson?
|
CREATE TABLE table_name_7 (spokespersons VARCHAR, commentator VARCHAR, voting_order VARCHAR)
|
SELECT spokespersons FROM table_name_7 WHERE commentator = "pierre tchernia" AND voting_order = 11
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (spokespersons VARCHAR, commentator VARCHAR, voting_order VARCHAR) Question: During the voting order 11, when the commentator was pierre tchernia, who was the spokesperson? [/INST] SELECT spokespersons FROM table_name_7 WHERE commentator = "pierre tchernia" AND voting_order = 11 </s>
|
What was the voting order when bunny carr was the commentator?
|
CREATE TABLE table_name_50 (voting_order INTEGER, commentator VARCHAR)
|
SELECT SUM(voting_order) FROM table_name_50 WHERE commentator = "bunny carr"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (voting_order INTEGER, commentator VARCHAR) Question: What was the voting order when bunny carr was the commentator? [/INST] SELECT SUM(voting_order) FROM table_name_50 WHERE commentator = "bunny carr" </s>
|
Who was the commentator when the spokesperson was michael aspel?
|
CREATE TABLE table_name_35 (commentator VARCHAR, spokespersons VARCHAR)
|
SELECT commentator FROM table_name_35 WHERE spokespersons = "michael aspel"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (commentator VARCHAR, spokespersons VARCHAR) Question: Who was the commentator when the spokesperson was michael aspel? [/INST] SELECT commentator FROM table_name_35 WHERE spokespersons = "michael aspel" </s>
|
What was the voting order when the commentator was renato tagliani?
|
CREATE TABLE table_name_95 (voting_order VARCHAR, commentator VARCHAR)
|
SELECT voting_order FROM table_name_95 WHERE commentator = "renato tagliani"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (voting_order VARCHAR, commentator VARCHAR) Question: What was the voting order when the commentator was renato tagliani? [/INST] SELECT voting_order FROM table_name_95 WHERE commentator = "renato tagliani" </s>
|
Which Bronze has a Total smaller than 1?
|
CREATE TABLE table_name_15 (bronze INTEGER, total INTEGER)
|
SELECT AVG(bronze) FROM table_name_15 WHERE total < 1
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (bronze INTEGER, total INTEGER) Question: Which Bronze has a Total smaller than 1? [/INST] SELECT AVG(bronze) FROM table_name_15 WHERE total < 1 </s>
|
How much Silver has a Bronze larger than 1, and a Gold of 0, and a Rank smaller than 4?
|
CREATE TABLE table_name_95 (silver VARCHAR, rank VARCHAR, bronze VARCHAR, gold VARCHAR)
|
SELECT COUNT(silver) FROM table_name_95 WHERE bronze > 1 AND gold = 0 AND rank < 4
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (silver VARCHAR, rank VARCHAR, bronze VARCHAR, gold VARCHAR) Question: How much Silver has a Bronze larger than 1, and a Gold of 0, and a Rank smaller than 4? [/INST] SELECT COUNT(silver) FROM table_name_95 WHERE bronze > 1 AND gold = 0 AND rank < 4 </s>
|
Which Bronze has a Rank of 4, and a Gold smaller than 0?
|
CREATE TABLE table_name_7 (bronze INTEGER, rank VARCHAR, gold VARCHAR)
|
SELECT MAX(bronze) FROM table_name_7 WHERE rank = 4 AND gold < 0
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (bronze INTEGER, rank VARCHAR, gold VARCHAR) Question: Which Bronze has a Rank of 4, and a Gold smaller than 0? [/INST] SELECT MAX(bronze) FROM table_name_7 WHERE rank = 4 AND gold < 0 </s>
|
How much Gold has a Bronze smaller than 2, and a Silver of 0, and a Rank larger than 3?
|
CREATE TABLE table_name_78 (gold INTEGER, rank VARCHAR, bronze VARCHAR, silver VARCHAR)
|
SELECT SUM(gold) FROM table_name_78 WHERE bronze < 2 AND silver = 0 AND rank > 3
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (gold INTEGER, rank VARCHAR, bronze VARCHAR, silver VARCHAR) Question: How much Gold has a Bronze smaller than 2, and a Silver of 0, and a Rank larger than 3? [/INST] SELECT SUM(gold) FROM table_name_78 WHERE bronze < 2 AND silver = 0 AND rank > 3 </s>
|
What percentage of the 2011 population had a mother tongue language that was spoken by 45.22% of the population in 2006 (over 120)?
|
CREATE TABLE table_name_13 (percentage__2011_ VARCHAR, population__2006_ VARCHAR, percentage__2006_ VARCHAR)
|
SELECT percentage__2011_ FROM table_name_13 WHERE population__2006_ > 120 AND percentage__2006_ = "45.22%"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (percentage__2011_ VARCHAR, population__2006_ VARCHAR, percentage__2006_ VARCHAR) Question: What percentage of the 2011 population had a mother tongue language that was spoken by 45.22% of the population in 2006 (over 120)? [/INST] SELECT percentage__2011_ FROM table_name_13 WHERE population__2006_ > 120 AND percentage__2006_ = "45.22%" </s>
|
What is the total number of people in 2011 speaking the mother tongue language spoken by 120 in 2006?
|
CREATE TABLE table_name_49 (population__2011_ VARCHAR, population__2006_ VARCHAR)
|
SELECT COUNT(population__2011_) FROM table_name_49 WHERE population__2006_ = 120
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (population__2011_ VARCHAR, population__2006_ VARCHAR) Question: What is the total number of people in 2011 speaking the mother tongue language spoken by 120 in 2006? [/INST] SELECT COUNT(population__2011_) FROM table_name_49 WHERE population__2006_ = 120 </s>
|
How many people ha Romanian as their mother tongue in 2006?
|
CREATE TABLE table_name_12 (population__2006_ INTEGER, mother_tongue VARCHAR)
|
SELECT MAX(population__2006_) FROM table_name_12 WHERE mother_tongue = "romanian"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (population__2006_ INTEGER, mother_tongue VARCHAR) Question: How many people ha Romanian as their mother tongue in 2006? [/INST] SELECT MAX(population__2006_) FROM table_name_12 WHERE mother_tongue = "romanian" </s>
|
What is the mother tongue language shared by 300 people in 2006?
|
CREATE TABLE table_name_94 (mother_tongue VARCHAR, population__2006_ VARCHAR)
|
SELECT mother_tongue FROM table_name_94 WHERE population__2006_ = 300
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (mother_tongue VARCHAR, population__2006_ VARCHAR) Question: What is the mother tongue language shared by 300 people in 2006? [/INST] SELECT mother_tongue FROM table_name_94 WHERE population__2006_ = 300 </s>
|
What's the total number of points when the English translation is Long Live Life and the draw is less than 2?
|
CREATE TABLE table_name_64 (points VARCHAR, english_translation VARCHAR, draw VARCHAR)
|
SELECT COUNT(points) FROM table_name_64 WHERE english_translation = "long live life" AND draw < 2
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (points VARCHAR, english_translation VARCHAR, draw VARCHAR) Question: What's the total number of points when the English translation is Long Live Life and the draw is less than 2? [/INST] SELECT COUNT(points) FROM table_name_64 WHERE english_translation = "long live life" AND draw < 2 </s>
|
What's the language of Draw number 9?
|
CREATE TABLE table_name_65 (language VARCHAR, draw VARCHAR)
|
SELECT language FROM table_name_65 WHERE draw = 9
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (language VARCHAR, draw VARCHAR) Question: What's the language of Draw number 9? [/INST] SELECT language FROM table_name_65 WHERE draw = 9 </s>
|
What are the lowest points when the language is Portuguese?
|
CREATE TABLE table_name_87 (points INTEGER, language VARCHAR)
|
SELECT MIN(points) FROM table_name_87 WHERE language = "portuguese"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (points INTEGER, language VARCHAR) Question: What are the lowest points when the language is Portuguese? [/INST] SELECT MIN(points) FROM table_name_87 WHERE language = "portuguese" </s>
|
What's the island with a summit of Haleakalā?
|
CREATE TABLE table_name_74 (island VARCHAR, summit VARCHAR)
|
SELECT island FROM table_name_74 WHERE summit = "haleakalā"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (island VARCHAR, summit VARCHAR) Question: What's the island with a summit of Haleakalā? [/INST] SELECT island FROM table_name_74 WHERE summit = "haleakalā" </s>
|
What's the lowest Col ranked less than 6 with an Island of Molokaʻi?
|
CREATE TABLE table_name_96 (col__m_ INTEGER, island VARCHAR, rank VARCHAR)
|
SELECT MIN(col__m_) FROM table_name_96 WHERE island = "island of molokaʻi" AND rank < 6
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (col__m_ INTEGER, island VARCHAR, rank VARCHAR) Question: What's the lowest Col ranked less than 6 with an Island of Molokaʻi? [/INST] SELECT MIN(col__m_) FROM table_name_96 WHERE island = "island of molokaʻi" AND rank < 6 </s>
|
What's the col (m) ranked more than 4 with a summit of Kawaikini?
|
CREATE TABLE table_name_84 (col__m_ VARCHAR, rank VARCHAR, summit VARCHAR)
|
SELECT col__m_ FROM table_name_84 WHERE rank > 4 AND summit = "kawaikini"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (col__m_ VARCHAR, rank VARCHAR, summit VARCHAR) Question: What's the col (m) ranked more than 4 with a summit of Kawaikini? [/INST] SELECT col__m_ FROM table_name_84 WHERE rank > 4 AND summit = "kawaikini" </s>
|
What's the rank when the col (m) is less than 33 and has a summit of Haleakalā?
|
CREATE TABLE table_name_80 (rank INTEGER, col__m_ VARCHAR, summit VARCHAR)
|
SELECT SUM(rank) FROM table_name_80 WHERE col__m_ < 33 AND summit = "haleakalā"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (rank INTEGER, col__m_ VARCHAR, summit VARCHAR) Question: What's the rank when the col (m) is less than 33 and has a summit of Haleakalā? [/INST] SELECT SUM(rank) FROM table_name_80 WHERE col__m_ < 33 AND summit = "haleakalā" </s>
|
What's the summit when the rank is less than 2 and has a col (m) of 0?
|
CREATE TABLE table_name_72 (summit VARCHAR, col__m_ VARCHAR, rank VARCHAR)
|
SELECT summit FROM table_name_72 WHERE col__m_ = 0 AND rank < 2
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (summit VARCHAR, col__m_ VARCHAR, rank VARCHAR) Question: What's the summit when the rank is less than 2 and has a col (m) of 0? [/INST] SELECT summit FROM table_name_72 WHERE col__m_ = 0 AND rank < 2 </s>
|
Which Year has an Edition of 41st?
|
CREATE TABLE table_name_58 (year VARCHAR, edition VARCHAR)
|
SELECT year FROM table_name_58 WHERE edition = "41st"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (year VARCHAR, edition VARCHAR) Question: Which Year has an Edition of 41st? [/INST] SELECT year FROM table_name_58 WHERE edition = "41st" </s>
|
How many Events have a Country of trinidad and tobago, and a Date of march 30-april 1?
|
CREATE TABLE table_name_13 (no_of_events VARCHAR, country VARCHAR, date VARCHAR)
|
SELECT no_of_events FROM table_name_13 WHERE country = "trinidad and tobago" AND date = "march 30-april 1"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (no_of_events VARCHAR, country VARCHAR, date VARCHAR) Question: How many Events have a Country of trinidad and tobago, and a Date of march 30-april 1? [/INST] SELECT no_of_events FROM table_name_13 WHERE country = "trinidad and tobago" AND date = "march 30-april 1" </s>
|
Which Country has a Top Team of jam, and an Edition of 31st?
|
CREATE TABLE table_name_93 (country VARCHAR, top_team VARCHAR, edition VARCHAR)
|
SELECT country FROM table_name_93 WHERE top_team = "jam" AND edition = "31st"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (country VARCHAR, top_team VARCHAR, edition VARCHAR) Question: Which Country has a Top Team of jam, and an Edition of 31st? [/INST] SELECT country FROM table_name_93 WHERE top_team = "jam" AND edition = "31st" </s>
|
What was the outcome of the final with a partner of Brett Steven?
|
CREATE TABLE table_name_62 (outcome VARCHAR, partner VARCHAR)
|
SELECT outcome FROM table_name_62 WHERE partner = "brett steven"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (outcome VARCHAR, partner VARCHAR) Question: What was the outcome of the final with a partner of Brett Steven? [/INST] SELECT outcome FROM table_name_62 WHERE partner = "brett steven" </s>
|
On what type of surface was the tournament of Italy f28?
|
CREATE TABLE table_name_84 (surface VARCHAR, tournament VARCHAR)
|
SELECT surface FROM table_name_84 WHERE tournament = "italy f28"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (surface VARCHAR, tournament VARCHAR) Question: On what type of surface was the tournament of Italy f28? [/INST] SELECT surface FROM table_name_84 WHERE tournament = "italy f28" </s>
|
Who was the opponent in the final of the Senegal f2 tournament>
|
CREATE TABLE table_name_8 (opponent_in_the_final VARCHAR, tournament VARCHAR)
|
SELECT opponent_in_the_final FROM table_name_8 WHERE tournament = "senegal f2"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (opponent_in_the_final VARCHAR, tournament VARCHAR) Question: Who was the opponent in the final of the Senegal f2 tournament> [/INST] SELECT opponent_in_the_final FROM table_name_8 WHERE tournament = "senegal f2" </s>
|
What's the score on December 12, 1998?
|
CREATE TABLE table_name_11 (score VARCHAR, date VARCHAR)
|
SELECT score FROM table_name_11 WHERE date = "december 12, 1998"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (score VARCHAR, date VARCHAR) Question: What's the score on December 12, 1998? [/INST] SELECT score FROM table_name_11 WHERE date = "december 12, 1998" </s>
|
What was the venue when the score was 7-1?
|
CREATE TABLE table_name_93 (venue VARCHAR, score VARCHAR)
|
SELECT venue FROM table_name_93 WHERE score = "7-1"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (venue VARCHAR, score VARCHAR) Question: What was the venue when the score was 7-1? [/INST] SELECT venue FROM table_name_93 WHERE score = "7-1" </s>
|
What's the score of the friendly competition?
|
CREATE TABLE table_name_18 (score VARCHAR, competition VARCHAR)
|
SELECT score FROM table_name_18 WHERE competition = "friendly"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (score VARCHAR, competition VARCHAR) Question: What's the score of the friendly competition? [/INST] SELECT score FROM table_name_18 WHERE competition = "friendly" </s>
|
What's the competition that happened in Singapore?
|
CREATE TABLE table_name_59 (competition VARCHAR, venue VARCHAR)
|
SELECT competition FROM table_name_59 WHERE venue = "singapore"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (competition VARCHAR, venue VARCHAR) Question: What's the competition that happened in Singapore? [/INST] SELECT competition FROM table_name_59 WHERE venue = "singapore" </s>
|
What's the venue of the 1995 Southeast Asian Games?
|
CREATE TABLE table_name_97 (venue VARCHAR, competition VARCHAR)
|
SELECT venue FROM table_name_97 WHERE competition = "1995 southeast asian games"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (venue VARCHAR, competition VARCHAR) Question: What's the venue of the 1995 Southeast Asian Games? [/INST] SELECT venue FROM table_name_97 WHERE competition = "1995 southeast asian games" </s>
|
What was the date of the inauguration in the row with an entry of lifespan in the lifespan column?
|
CREATE TABLE table_name_71 (date_of_inauguration VARCHAR)
|
SELECT date_of_inauguration FROM table_name_71 WHERE "lifespan" = "lifespan"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (date_of_inauguration VARCHAR) Question: What was the date of the inauguration in the row with an entry of lifespan in the lifespan column? [/INST] SELECT date_of_inauguration FROM table_name_71 WHERE "lifespan" = "lifespan" </s>
|
What was the date of death entry in the row that has a date of inauguration entry of date of inauguration?
|
CREATE TABLE table_name_76 (date_of_death VARCHAR, date_of_inauguration VARCHAR)
|
SELECT date_of_death FROM table_name_76 WHERE date_of_inauguration = "date of inauguration"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (date_of_death VARCHAR, date_of_inauguration VARCHAR) Question: What was the date of death entry in the row that has a date of inauguration entry of date of inauguration? [/INST] SELECT date_of_death FROM table_name_76 WHERE date_of_inauguration = "date of inauguration" </s>
|
What is the length of retirement for president Sharma, Shankar Shankar Dayal Sharma?
|
CREATE TABLE table_name_49 (length_of_retirement VARCHAR, president VARCHAR)
|
SELECT length_of_retirement FROM table_name_49 WHERE president = "sharma, shankar shankar dayal sharma"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (length_of_retirement VARCHAR, president VARCHAR) Question: What is the length of retirement for president Sharma, Shankar Shankar Dayal Sharma? [/INST] SELECT length_of_retirement FROM table_name_49 WHERE president = "sharma, shankar shankar dayal sharma" </s>
|
How many draw is in a place that is less than 1?
|
CREATE TABLE table_name_67 (draw VARCHAR, place INTEGER)
|
SELECT COUNT(draw) FROM table_name_67 WHERE place < 1
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (draw VARCHAR, place INTEGER) Question: How many draw is in a place that is less than 1? [/INST] SELECT COUNT(draw) FROM table_name_67 WHERE place < 1 </s>
|
Emilya Valenti has what draw average?
|
CREATE TABLE table_name_31 (draw INTEGER, artist VARCHAR)
|
SELECT AVG(draw) FROM table_name_31 WHERE artist = "emilya valenti"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (draw INTEGER, artist VARCHAR) Question: Emilya Valenti has what draw average? [/INST] SELECT AVG(draw) FROM table_name_31 WHERE artist = "emilya valenti" </s>
|
What's the airing date of Armed Reaction 陀槍師姐 with 20 episodes in the Modern Action genre having an official website?
|
CREATE TABLE table_name_50 (airing_date VARCHAR, english_title__chinese_title_ VARCHAR, genre VARCHAR, official_website VARCHAR, number_of_episodes VARCHAR)
|
SELECT airing_date FROM table_name_50 WHERE official_website = "official website" AND number_of_episodes = 20 AND genre = "modern action" AND english_title__chinese_title_ = "armed reaction 陀槍師姐"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (airing_date VARCHAR, english_title__chinese_title_ VARCHAR, genre VARCHAR, official_website VARCHAR, number_of_episodes VARCHAR) Question: What's the airing date of Armed Reaction 陀槍師姐 with 20 episodes in the Modern Action genre having an official website? [/INST] SELECT airing_date FROM table_name_50 WHERE official_website = "official website" AND number_of_episodes = 20 AND genre = "modern action" AND english_title__chinese_title_ = "armed reaction 陀槍師姐" </s>
|
What's the airing date for the show with 62 episodes?
|
CREATE TABLE table_name_1 (airing_date VARCHAR, number_of_episodes VARCHAR)
|
SELECT airing_date FROM table_name_1 WHERE number_of_episodes = 62
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (airing_date VARCHAR, number_of_episodes VARCHAR) Question: What's the airing date for the show with 62 episodes? [/INST] SELECT airing_date FROM table_name_1 WHERE number_of_episodes = 62 </s>
|
What's the official website of Burning Flame 烈火雄心 with 22 episodes?
|
CREATE TABLE table_name_33 (official_website VARCHAR, number_of_episodes VARCHAR, english_title__chinese_title_ VARCHAR)
|
SELECT official_website FROM table_name_33 WHERE number_of_episodes > 22 AND english_title__chinese_title_ = "burning flame 烈火雄心"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (official_website VARCHAR, number_of_episodes VARCHAR, english_title__chinese_title_ VARCHAR) Question: What's the official website of Burning Flame 烈火雄心 with 22 episodes? [/INST] SELECT official_website FROM table_name_33 WHERE number_of_episodes > 22 AND english_title__chinese_title_ = "burning flame 烈火雄心" </s>
|
what is the position for the competitor that has a score more than 7
|
CREATE TABLE table_name_44 (position VARCHAR, a_score INTEGER)
|
SELECT position FROM table_name_44 WHERE a_score > 7
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (position VARCHAR, a_score INTEGER) Question: what is the position for the competitor that has a score more than 7 [/INST] SELECT position FROM table_name_44 WHERE a_score > 7 </s>
|
what is the score for the 5th position and a score less than 7
|
CREATE TABLE table_name_40 (b_score INTEGER, position VARCHAR, a_score VARCHAR)
|
SELECT MIN(b_score) FROM table_name_40 WHERE position = "5th" AND a_score < 7
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (b_score INTEGER, position VARCHAR, a_score VARCHAR) Question: what is the score for the 5th position and a score less than 7 [/INST] SELECT MIN(b_score) FROM table_name_40 WHERE position = "5th" AND a_score < 7 </s>
|
what is the total scored for the 8th position and a score more than 6.6
|
CREATE TABLE table_name_8 (total INTEGER, position VARCHAR, a_score VARCHAR)
|
SELECT MAX(total) FROM table_name_8 WHERE position = "8th" AND a_score > 6.6
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (total INTEGER, position VARCHAR, a_score VARCHAR) Question: what is the total scored for the 8th position and a score more than 6.6 [/INST] SELECT MAX(total) FROM table_name_8 WHERE position = "8th" AND a_score > 6.6 </s>
|
What is the Meet of the Event with a Time of 7:55.02?
|
CREATE TABLE table_name_33 (meet VARCHAR, time VARCHAR)
|
SELECT meet FROM table_name_33 WHERE time = "7:55.02"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (meet VARCHAR, time VARCHAR) Question: What is the Meet of the Event with a Time of 7:55.02? [/INST] SELECT meet FROM table_name_33 WHERE time = "7:55.02" </s>
|
What is the Location of the Event with a Time of 2:22.32?
|
CREATE TABLE table_name_93 (location VARCHAR, time VARCHAR)
|
SELECT location FROM table_name_93 WHERE time = "2:22.32"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (location VARCHAR, time VARCHAR) Question: What is the Location of the Event with a Time of 2:22.32? [/INST] SELECT location FROM table_name_93 WHERE time = "2:22.32" </s>
|
Which Body Width/mm has a Lead Pitch/mm smaller than 0.55, and a Body Length/mm larger than 18.4?
|
CREATE TABLE table_name_48 (body_width_mm INTEGER, lead_pitch_mm VARCHAR, body_length_mm VARCHAR)
|
SELECT MIN(body_width_mm) FROM table_name_48 WHERE lead_pitch_mm < 0.55 AND body_length_mm > 18.4
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (body_width_mm INTEGER, lead_pitch_mm VARCHAR, body_length_mm VARCHAR) Question: Which Body Width/mm has a Lead Pitch/mm smaller than 0.55, and a Body Length/mm larger than 18.4? [/INST] SELECT MIN(body_width_mm) FROM table_name_48 WHERE lead_pitch_mm < 0.55 AND body_length_mm > 18.4 </s>
|
Which Body Length/mm has a Lead Pitch/mm smaller than 0.5?
|
CREATE TABLE table_name_9 (body_length_mm INTEGER, lead_pitch_mm INTEGER)
|
SELECT AVG(body_length_mm) FROM table_name_9 WHERE lead_pitch_mm < 0.5
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (body_length_mm INTEGER, lead_pitch_mm INTEGER) Question: Which Body Length/mm has a Lead Pitch/mm smaller than 0.5? [/INST] SELECT AVG(body_length_mm) FROM table_name_9 WHERE lead_pitch_mm < 0.5 </s>
|
How much Body Width/mm has a Body Length/mm of 18.4, and Pins of 40?
|
CREATE TABLE table_name_50 (body_width_mm VARCHAR, body_length_mm VARCHAR, pins VARCHAR)
|
SELECT COUNT(body_width_mm) FROM table_name_50 WHERE body_length_mm = 18.4 AND pins = "40"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (body_width_mm VARCHAR, body_length_mm VARCHAR, pins VARCHAR) Question: How much Body Width/mm has a Body Length/mm of 18.4, and Pins of 40? [/INST] SELECT COUNT(body_width_mm) FROM table_name_50 WHERE body_length_mm = 18.4 AND pins = "40" </s>
|
Which Body Width/mm has a Lead Pitch/mm smaller than 0.55, and a Part Number of tsop48?
|
CREATE TABLE table_name_63 (body_width_mm INTEGER, lead_pitch_mm VARCHAR, part_number VARCHAR)
|
SELECT MIN(body_width_mm) FROM table_name_63 WHERE lead_pitch_mm < 0.55 AND part_number = "tsop48"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (body_width_mm INTEGER, lead_pitch_mm VARCHAR, part_number VARCHAR) Question: Which Body Width/mm has a Lead Pitch/mm smaller than 0.55, and a Part Number of tsop48? [/INST] SELECT MIN(body_width_mm) FROM table_name_63 WHERE lead_pitch_mm < 0.55 AND part_number = "tsop48" </s>
|
Which Lead Pitch/mm has a Part Number of tsop40, and a Body Length/mm larger than 18.4?
|
CREATE TABLE table_name_1 (lead_pitch_mm INTEGER, part_number VARCHAR, body_length_mm VARCHAR)
|
SELECT MAX(lead_pitch_mm) FROM table_name_1 WHERE part_number = "tsop40" AND body_length_mm > 18.4
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (lead_pitch_mm INTEGER, part_number VARCHAR, body_length_mm VARCHAR) Question: Which Lead Pitch/mm has a Part Number of tsop40, and a Body Length/mm larger than 18.4? [/INST] SELECT MAX(lead_pitch_mm) FROM table_name_1 WHERE part_number = "tsop40" AND body_length_mm > 18.4 </s>
|
What was the least attendance when the time was 3:15?
|
CREATE TABLE table_name_10 (attendance INTEGER, time VARCHAR)
|
SELECT MIN(attendance) FROM table_name_10 WHERE time = "3:15"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (attendance INTEGER, time VARCHAR) Question: What was the least attendance when the time was 3:15? [/INST] SELECT MIN(attendance) FROM table_name_10 WHERE time = "3:15" </s>
|
What date was at Oakland-Alameda County Coliseum with a time of 3:40 and a game less than 5?
|
CREATE TABLE table_name_6 (date VARCHAR, time VARCHAR, game VARCHAR, location VARCHAR)
|
SELECT date FROM table_name_6 WHERE game < 5 AND location = "oakland-alameda county coliseum" AND time = "3:40"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (date VARCHAR, time VARCHAR, game VARCHAR, location VARCHAR) Question: What date was at Oakland-Alameda County Coliseum with a time of 3:40 and a game less than 5? [/INST] SELECT date FROM table_name_6 WHERE game < 5 AND location = "oakland-alameda county coliseum" AND time = "3:40" </s>
|
Which Bronze has a Gold larger than 1, and a Total larger than 11, and a Silver larger than 5?
|
CREATE TABLE table_name_36 (bronze INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR)
|
SELECT AVG(bronze) FROM table_name_36 WHERE gold > 1 AND total > 11 AND silver > 5
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (bronze INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR) Question: Which Bronze has a Gold larger than 1, and a Total larger than 11, and a Silver larger than 5? [/INST] SELECT AVG(bronze) FROM table_name_36 WHERE gold > 1 AND total > 11 AND silver > 5 </s>
|
How many silvers have more than 2 golds?
|
CREATE TABLE table_name_67 (silver VARCHAR, gold INTEGER)
|
SELECT COUNT(silver) FROM table_name_67 WHERE gold > 2
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (silver VARCHAR, gold INTEGER) Question: How many silvers have more than 2 golds? [/INST] SELECT COUNT(silver) FROM table_name_67 WHERE gold > 2 </s>
|
What percentage of browsers were using Firefox or other Mozilla browsers during the period in which 1.93% were using Chrome?
|
CREATE TABLE table_name_12 (firefox_ VARCHAR, _other_mozilla VARCHAR, chrome VARCHAR)
|
SELECT firefox_, _other_mozilla FROM table_name_12 WHERE chrome = "1.93%"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (firefox_ VARCHAR, _other_mozilla VARCHAR, chrome VARCHAR) Question: What percentage of browsers were using Firefox or other Mozilla browsers during the period in which 1.93% were using Chrome? [/INST] SELECT firefox_, _other_mozilla FROM table_name_12 WHERE chrome = "1.93%" </s>
|
What percentage of browsers were using Internet Explorer during the period in which 24.91% were using Chrome?
|
CREATE TABLE table_name_97 (internet_explorer VARCHAR, chrome VARCHAR)
|
SELECT internet_explorer FROM table_name_97 WHERE chrome = "24.91%"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (internet_explorer VARCHAR, chrome VARCHAR) Question: What percentage of browsers were using Internet Explorer during the period in which 24.91% were using Chrome? [/INST] SELECT internet_explorer FROM table_name_97 WHERE chrome = "24.91%" </s>
|
What percentage of browsers were using Chrome during the period in which 72.03% were using Internet Explorer?
|
CREATE TABLE table_name_88 (chrome VARCHAR, internet_explorer VARCHAR)
|
SELECT chrome FROM table_name_88 WHERE internet_explorer = "72.03%"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (chrome VARCHAR, internet_explorer VARCHAR) Question: What percentage of browsers were using Chrome during the period in which 72.03% were using Internet Explorer? [/INST] SELECT chrome FROM table_name_88 WHERE internet_explorer = "72.03%" </s>
|
What percentage of browsers were using Safari during the period in which 2.05% were using Chrome?
|
CREATE TABLE table_name_57 (safari VARCHAR, chrome VARCHAR)
|
SELECT safari FROM table_name_57 WHERE chrome = "2.05%"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (safari VARCHAR, chrome VARCHAR) Question: What percentage of browsers were using Safari during the period in which 2.05% were using Chrome? [/INST] SELECT safari FROM table_name_57 WHERE chrome = "2.05%" </s>
|
What percentage of browsers were using Chrome during the period in which 0.30% were using Opera and 6.77% were using Safari?
|
CREATE TABLE table_name_22 (chrome VARCHAR, opera VARCHAR, safari VARCHAR)
|
SELECT chrome FROM table_name_22 WHERE opera = "0.30%" AND safari = "6.77%"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (chrome VARCHAR, opera VARCHAR, safari VARCHAR) Question: What percentage of browsers were using Chrome during the period in which 0.30% were using Opera and 6.77% were using Safari? [/INST] SELECT chrome FROM table_name_22 WHERE opera = "0.30%" AND safari = "6.77%" </s>
|
Which TV network was located in Brazil?
|
CREATE TABLE table_name_42 (tv_network_s_ VARCHAR, country VARCHAR)
|
SELECT tv_network_s_ FROM table_name_42 WHERE country = "brazil"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (tv_network_s_ VARCHAR, country VARCHAR) Question: Which TV network was located in Brazil? [/INST] SELECT tv_network_s_ FROM table_name_42 WHERE country = "brazil" </s>
|
What country has a series premier of unknown and mbc action as their TV network?
|
CREATE TABLE table_name_27 (country VARCHAR, series_premiere VARCHAR, tv_network_s_ VARCHAR)
|
SELECT country FROM table_name_27 WHERE series_premiere = "unknown" AND tv_network_s_ = "mbc action"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (country VARCHAR, series_premiere VARCHAR, tv_network_s_ VARCHAR) Question: What country has a series premier of unknown and mbc action as their TV network? [/INST] SELECT country FROM table_name_27 WHERE series_premiere = "unknown" AND tv_network_s_ = "mbc action" </s>
|
What is the weekly schedule for the network sky italia?
|
CREATE TABLE table_name_97 (weekly_schedule VARCHAR, tv_network_s_ VARCHAR)
|
SELECT weekly_schedule FROM table_name_97 WHERE tv_network_s_ = "sky italia"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (weekly_schedule VARCHAR, tv_network_s_ VARCHAR) Question: What is the weekly schedule for the network sky italia? [/INST] SELECT weekly_schedule FROM table_name_97 WHERE tv_network_s_ = "sky italia" </s>
|
How many Gold medals for the Nations with 6 or more Bronze medals and 18 or more Silver?
|
CREATE TABLE table_name_73 (gold INTEGER, bronze VARCHAR, silver VARCHAR)
|
SELECT AVG(gold) FROM table_name_73 WHERE bronze > 6 AND silver > 18
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (gold INTEGER, bronze VARCHAR, silver VARCHAR) Question: How many Gold medals for the Nations with 6 or more Bronze medals and 18 or more Silver? [/INST] SELECT AVG(gold) FROM table_name_73 WHERE bronze > 6 AND silver > 18 </s>
|
How many Gold medals did the Soviet Union receive?
|
CREATE TABLE table_name_98 (gold INTEGER, nation VARCHAR)
|
SELECT AVG(gold) FROM table_name_98 WHERE nation = "soviet union"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (gold INTEGER, nation VARCHAR) Question: How many Gold medals did the Soviet Union receive? [/INST] SELECT AVG(gold) FROM table_name_98 WHERE nation = "soviet union" </s>
|
What's the name of the person in the CF Pos?
|
CREATE TABLE table_name_43 (name VARCHAR, pos VARCHAR)
|
SELECT name FROM table_name_43 WHERE pos = "cf"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (name VARCHAR, pos VARCHAR) Question: What's the name of the person in the CF Pos? [/INST] SELECT name FROM table_name_43 WHERE pos = "cf" </s>
|
Which league cup apps has FA as the cup apps of 5?
|
CREATE TABLE table_name_83 (league_cup_apps VARCHAR, fa_cup_apps VARCHAR)
|
SELECT league_cup_apps FROM table_name_83 WHERE fa_cup_apps = "5"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (league_cup_apps VARCHAR, fa_cup_apps VARCHAR) Question: Which league cup apps has FA as the cup apps of 5? [/INST] SELECT league_cup_apps FROM table_name_83 WHERE fa_cup_apps = "5" </s>
|
What is the lowest league goals that has fw as the position, total goals greater than 9, with league cup goals greater than 4?
|
CREATE TABLE table_name_43 (league_goals INTEGER, league_cup_goals VARCHAR, position VARCHAR, total_goals VARCHAR)
|
SELECT MIN(league_goals) FROM table_name_43 WHERE position = "fw" AND total_goals > 9 AND league_cup_goals > 4
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (league_goals INTEGER, league_cup_goals VARCHAR, position VARCHAR, total_goals VARCHAR) Question: What is the lowest league goals that has fw as the position, total goals greater than 9, with league cup goals greater than 4? [/INST] SELECT MIN(league_goals) FROM table_name_43 WHERE position = "fw" AND total_goals > 9 AND league_cup_goals > 4 </s>
|
What is the earliest year that a team event was included at Vilamoura, Portugal?
|
CREATE TABLE table_name_11 (year INTEGER, event VARCHAR, venue VARCHAR)
|
SELECT MIN(year) FROM table_name_11 WHERE event = "team" AND venue = "vilamoura, portugal"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (year INTEGER, event VARCHAR, venue VARCHAR) Question: What is the earliest year that a team event was included at Vilamoura, Portugal? [/INST] SELECT MIN(year) FROM table_name_11 WHERE event = "team" AND venue = "vilamoura, portugal" </s>
|
In which event before 2001 did the athlete place 16th?
|
CREATE TABLE table_name_96 (event VARCHAR, year VARCHAR, result VARCHAR)
|
SELECT event FROM table_name_96 WHERE year < 2001 AND result = "16th"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (event VARCHAR, year VARCHAR, result VARCHAR) Question: In which event before 2001 did the athlete place 16th? [/INST] SELECT event FROM table_name_96 WHERE year < 2001 AND result = "16th" </s>
|
In which tournament was the result 25th?
|
CREATE TABLE table_name_24 (tournament VARCHAR, result VARCHAR)
|
SELECT tournament FROM table_name_24 WHERE result = "25th"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (tournament VARCHAR, result VARCHAR) Question: In which tournament was the result 25th? [/INST] SELECT tournament FROM table_name_24 WHERE result = "25th" </s>
|
What artist has more than 6 draws, and in a place higher than 14?
|
CREATE TABLE table_name_28 (artist VARCHAR, draw VARCHAR, place VARCHAR)
|
SELECT artist FROM table_name_28 WHERE draw > 6 AND place > 14
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (artist VARCHAR, draw VARCHAR, place VARCHAR) Question: What artist has more than 6 draws, and in a place higher than 14? [/INST] SELECT artist FROM table_name_28 WHERE draw > 6 AND place > 14 </s>
|
What Social Democratic has a Democratic and Social Centre of 10.0% 22 seats?
|
CREATE TABLE table_name_33 (social_democratic VARCHAR, democratic_and_social_centre VARCHAR)
|
SELECT social_democratic FROM table_name_33 WHERE democratic_and_social_centre = "10.0% 22 seats"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (social_democratic VARCHAR, democratic_and_social_centre VARCHAR) Question: What Social Democratic has a Democratic and Social Centre of 10.0% 22 seats? [/INST] SELECT social_democratic FROM table_name_33 WHERE democratic_and_social_centre = "10.0% 22 seats" </s>
|
What Social Democratic has the Democratic and Social Centre of 4.4% 4 seats?
|
CREATE TABLE table_name_86 (social_democratic VARCHAR, democratic_and_social_centre VARCHAR)
|
SELECT social_democratic FROM table_name_86 WHERE democratic_and_social_centre = "4.4% 4 seats"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (social_democratic VARCHAR, democratic_and_social_centre VARCHAR) Question: What Social Democratic has the Democratic and Social Centre of 4.4% 4 seats? [/INST] SELECT social_democratic FROM table_name_86 WHERE democratic_and_social_centre = "4.4% 4 seats" </s>
|
How many teams were at the 2007 details tournament where there a top goalscorer was not awarded?
|
CREATE TABLE table_name_66 (number_of_teams VARCHAR, top_goalscorer_s_ VARCHAR, year VARCHAR)
|
SELECT number_of_teams FROM table_name_66 WHERE top_goalscorer_s_ = "not awarded" AND year = "2007 details"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (number_of_teams VARCHAR, top_goalscorer_s_ VARCHAR, year VARCHAR) Question: How many teams were at the 2007 details tournament where there a top goalscorer was not awarded? [/INST] SELECT number_of_teams FROM table_name_66 WHERE top_goalscorer_s_ = "not awarded" AND year = "2007 details" </s>
|
What is the location of the tournament where the best goalkeeper had 164 (8.2)?
|
CREATE TABLE table_name_91 (location VARCHAR, best_goalkeeper VARCHAR)
|
SELECT location FROM table_name_91 WHERE best_goalkeeper = "164 (8.2)"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (location VARCHAR, best_goalkeeper VARCHAR) Question: What is the location of the tournament where the best goalkeeper had 164 (8.2)? [/INST] SELECT location FROM table_name_91 WHERE best_goalkeeper = "164 (8.2)" </s>
|
What section were they in when there were tier 2 in 1996?
|
CREATE TABLE table_name_30 (section VARCHAR, level VARCHAR, season VARCHAR)
|
SELECT section FROM table_name_30 WHERE level = "tier 2" AND season = 1996
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (section VARCHAR, level VARCHAR, season VARCHAR) Question: What section were they in when there were tier 2 in 1996? [/INST] SELECT section FROM table_name_30 WHERE level = "tier 2" AND season = 1996 </s>
|
What is the administration when the division was Ykkönen (first division), and they were in the 1st position in 1996?
|
CREATE TABLE table_name_21 (administration VARCHAR, season VARCHAR, division VARCHAR, position VARCHAR)
|
SELECT administration FROM table_name_21 WHERE division = "ykkönen (first division)" AND position = "1st" AND season = 1996
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (administration VARCHAR, season VARCHAR, division VARCHAR, position VARCHAR) Question: What is the administration when the division was Ykkönen (first division), and they were in the 1st position in 1996? [/INST] SELECT administration FROM table_name_21 WHERE division = "ykkönen (first division)" AND position = "1st" AND season = 1996 </s>
|
What was the film title that emma thompson was the actress nominated for best supporting actress?
|
CREATE TABLE table_name_81 (film_title_used_in_nomination VARCHAR, actor_actress VARCHAR, category VARCHAR)
|
SELECT film_title_used_in_nomination FROM table_name_81 WHERE actor_actress = "emma thompson" AND category = "best supporting actress"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (film_title_used_in_nomination VARCHAR, actor_actress VARCHAR, category VARCHAR) Question: What was the film title that emma thompson was the actress nominated for best supporting actress? [/INST] SELECT film_title_used_in_nomination FROM table_name_81 WHERE actor_actress = "emma thompson" AND category = "best supporting actress" </s>
|
What category was al pacino nominated for in the film, glengarry glen ross?
|
CREATE TABLE table_name_51 (category VARCHAR, actor_actress VARCHAR, film_title_used_in_nomination VARCHAR)
|
SELECT category FROM table_name_51 WHERE actor_actress = "al pacino" AND film_title_used_in_nomination = "glengarry glen ross"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (category VARCHAR, actor_actress VARCHAR, film_title_used_in_nomination VARCHAR) Question: What category was al pacino nominated for in the film, glengarry glen ross? [/INST] SELECT category FROM table_name_51 WHERE actor_actress = "al pacino" AND film_title_used_in_nomination = "glengarry glen ross" </s>
|
What is the year when sigourney weaver was nominated for best actress?
|
CREATE TABLE table_name_26 (year__ceremony_ VARCHAR, category VARCHAR, actor_actress VARCHAR)
|
SELECT year__ceremony_ FROM table_name_26 WHERE category = "best actress" AND actor_actress = "sigourney weaver"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (year__ceremony_ VARCHAR, category VARCHAR, actor_actress VARCHAR) Question: What is the year when sigourney weaver was nominated for best actress? [/INST] SELECT year__ceremony_ FROM table_name_26 WHERE category = "best actress" AND actor_actress = "sigourney weaver" </s>
|
What year was holly hunter a nominee?
|
CREATE TABLE table_name_30 (year__ceremony_ VARCHAR, result VARCHAR, actor_actress VARCHAR)
|
SELECT year__ceremony_ FROM table_name_30 WHERE result = "nominee" AND actor_actress = "holly hunter"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (year__ceremony_ VARCHAR, result VARCHAR, actor_actress VARCHAR) Question: What year was holly hunter a nominee? [/INST] SELECT year__ceremony_ FROM table_name_30 WHERE result = "nominee" AND actor_actress = "holly hunter" </s>
|
What is the per capita income of the county with a median family income of $40,492?
|
CREATE TABLE table_name_61 (per_capita_income VARCHAR, median_family_income VARCHAR)
|
SELECT per_capita_income FROM table_name_61 WHERE median_family_income = "$40,492"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (per_capita_income VARCHAR, median_family_income VARCHAR) Question: What is the per capita income of the county with a median family income of $40,492? [/INST] SELECT per_capita_income FROM table_name_61 WHERE median_family_income = "$40,492" </s>
|
what is the earliest year when the result is won and the role/episode is fox mulder?
|
CREATE TABLE table_name_21 (year INTEGER, result VARCHAR, role_episode VARCHAR)
|
SELECT MIN(year) FROM table_name_21 WHERE result = "won" AND role_episode = "fox mulder"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (year INTEGER, result VARCHAR, role_episode VARCHAR) Question: what is the earliest year when the result is won and the role/episode is fox mulder? [/INST] SELECT MIN(year) FROM table_name_21 WHERE result = "won" AND role_episode = "fox mulder" </s>
|
what is the year when the role/episode is david duchovny?
|
CREATE TABLE table_name_82 (year VARCHAR, role_episode VARCHAR)
|
SELECT year FROM table_name_82 WHERE role_episode = "david duchovny"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (year VARCHAR, role_episode VARCHAR) Question: what is the year when the role/episode is david duchovny? [/INST] SELECT year FROM table_name_82 WHERE role_episode = "david duchovny" </s>
|
What date has 9 as the week?
|
CREATE TABLE table_name_21 (date VARCHAR, week VARCHAR)
|
SELECT date FROM table_name_21 WHERE week = 9
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (date VARCHAR, week VARCHAR) Question: What date has 9 as the week? [/INST] SELECT date FROM table_name_21 WHERE week = 9 </s>
|
What is the average total of the 0-8 tally?
|
CREATE TABLE table_name_16 (total INTEGER, tally VARCHAR)
|
SELECT AVG(total) FROM table_name_16 WHERE tally = "0-8"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (total INTEGER, tally VARCHAR) Question: What is the average total of the 0-8 tally? [/INST] SELECT AVG(total) FROM table_name_16 WHERE tally = "0-8" </s>
|
What is the total rank of the match with tipperary as the opposition?
|
CREATE TABLE table_name_6 (rank VARCHAR, opposition VARCHAR)
|
SELECT COUNT(rank) FROM table_name_6 WHERE opposition = "tipperary"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (rank VARCHAR, opposition VARCHAR) Question: What is the total rank of the match with tipperary as the opposition? [/INST] SELECT COUNT(rank) FROM table_name_6 WHERE opposition = "tipperary" </s>
|
What is the lowest total of player tommy ring, who has a rank greater than 1?
|
CREATE TABLE table_name_62 (total INTEGER, player VARCHAR, rank VARCHAR)
|
SELECT MIN(total) FROM table_name_62 WHERE player = "tommy ring" AND rank > 1
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (total INTEGER, player VARCHAR, rank VARCHAR) Question: What is the lowest total of player tommy ring, who has a rank greater than 1? [/INST] SELECT MIN(total) FROM table_name_62 WHERE player = "tommy ring" AND rank > 1 </s>
|
What is the average rank of the match where offaly was the opposition and the total was greater than 9?
|
CREATE TABLE table_name_5 (rank INTEGER, opposition VARCHAR, total VARCHAR)
|
SELECT AVG(rank) FROM table_name_5 WHERE opposition = "offaly" AND total > 9
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (rank INTEGER, opposition VARCHAR, total VARCHAR) Question: What is the average rank of the match where offaly was the opposition and the total was greater than 9? [/INST] SELECT AVG(rank) FROM table_name_5 WHERE opposition = "offaly" AND total > 9 </s>
|
Which municipality has a party of Lega Friuli-VG that won elections before 2011?
|
CREATE TABLE table_name_34 (municipality VARCHAR, party VARCHAR, election VARCHAR)
|
SELECT municipality FROM table_name_34 WHERE party = "lega friuli-vg" AND election < 2011
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (municipality VARCHAR, party VARCHAR, election VARCHAR) Question: Which municipality has a party of Lega Friuli-VG that won elections before 2011? [/INST] SELECT municipality FROM table_name_34 WHERE party = "lega friuli-vg" AND election < 2011 </s>
|
Which party is Ettore Romoli from?
|
CREATE TABLE table_name_99 (party VARCHAR, mayor VARCHAR)
|
SELECT party FROM table_name_99 WHERE mayor = "ettore romoli"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (party VARCHAR, mayor VARCHAR) Question: Which party is Ettore Romoli from? [/INST] SELECT party FROM table_name_99 WHERE mayor = "ettore romoli" </s>
|
What campus is in Brgy. Alangilan, Batangas City?
|
CREATE TABLE table_name_59 (campus VARCHAR, location VARCHAR)
|
SELECT campus FROM table_name_59 WHERE location = "brgy. alangilan, batangas city"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (campus VARCHAR, location VARCHAR) Question: What campus is in Brgy. Alangilan, Batangas City? [/INST] SELECT campus FROM table_name_59 WHERE location = "brgy. alangilan, batangas city" </s>
|
When was the Balayan, Batangas campus founded?
|
CREATE TABLE table_name_41 (founded VARCHAR, location VARCHAR)
|
SELECT founded FROM table_name_41 WHERE location = "balayan, batangas"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (founded VARCHAR, location VARCHAR) Question: When was the Balayan, Batangas campus founded? [/INST] SELECT founded FROM table_name_41 WHERE location = "balayan, batangas" </s>
|
Who is the executive director of the Lemery, Batangas extension?
|
CREATE TABLE table_name_84 (executive_director VARCHAR, type VARCHAR, location VARCHAR)
|
SELECT executive_director FROM table_name_84 WHERE type = "extension" AND location = "lemery, batangas"
|
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (executive_director VARCHAR, type VARCHAR, location VARCHAR) Question: Who is the executive director of the Lemery, Batangas extension? [/INST] SELECT executive_director FROM table_name_84 WHERE type = "extension" AND location = "lemery, batangas" </s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.