instruction stringlengths 12 244 | input stringlengths 27 489 | output stringlengths 18 557 | text stringlengths 194 1.14k |
|---|---|---|---|
Marcell Jansen with a transfer window of summer, and of transfer as type is from what nation? | CREATE TABLE table_name_15 (nat VARCHAR, name VARCHAR, transfer_window VARCHAR, type VARCHAR) | SELECT nat FROM table_name_15 WHERE transfer_window = "summer" AND type = "transfer" AND name = "marcell jansen" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (nat VARCHAR, name VARCHAR, transfer_window VARCHAR, type VARCHAR) Question: Marcell Jansen with a transfer window of summer, and of transfer as type is from what nation? [/INST] SELECT nat FROM ta... |
Marcell Jansen of the nation GER has what for the type? | CREATE TABLE table_name_2 (type VARCHAR, nat VARCHAR, name VARCHAR) | SELECT type FROM table_name_2 WHERE nat = "ger" AND name = "marcell jansen" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (type VARCHAR, nat VARCHAR, name VARCHAR) Question: Marcell Jansen of the nation GER has what for the type? [/INST] SELECT type FROM table_name_2 WHERE nat = "ger" AND name = "marcell jansen" </s> |
What player had a transfer window of winter, and free as the transfer fee? | CREATE TABLE table_name_72 (name VARCHAR, transfer_window VARCHAR, transfer_fee VARCHAR) | SELECT name FROM table_name_72 WHERE transfer_window = "winter" AND transfer_fee = "free" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (name VARCHAR, transfer_window VARCHAR, transfer_fee VARCHAR) Question: What player had a transfer window of winter, and free as the transfer fee? [/INST] SELECT name FROM table_name_72 WHERE trans... |
Which player from GER has a transfer window of summer, and a transfer fee of n/a? | CREATE TABLE table_name_85 (name VARCHAR, transfer_fee VARCHAR, transfer_window VARCHAR, nat VARCHAR) | SELECT name FROM table_name_85 WHERE transfer_window = "summer" AND nat = "ger" AND transfer_fee = "n/a" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (name VARCHAR, transfer_fee VARCHAR, transfer_window VARCHAR, nat VARCHAR) Question: Which player from GER has a transfer window of summer, and a transfer fee of n/a? [/INST] SELECT name FROM table... |
What's the highest Year Left that's got a Conference Joined of Sagamore with a Year Joined larger than 1942? | CREATE TABLE table_name_3 (year_left INTEGER, conference_joined VARCHAR, year_joined VARCHAR) | SELECT MAX(year_left) FROM table_name_3 WHERE conference_joined = "sagamore" AND year_joined > 1942 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (year_left INTEGER, conference_joined VARCHAR, year_joined VARCHAR) Question: What's the highest Year Left that's got a Conference Joined of Sagamore with a Year Joined larger than 1942? [/INST] SEL... |
What's the highest Year Left for the School of Danville? | CREATE TABLE table_name_81 (year_left INTEGER, school VARCHAR) | SELECT MAX(year_left) FROM table_name_81 WHERE school = "danville" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (year_left INTEGER, school VARCHAR) Question: What's the highest Year Left for the School of Danville? [/INST] SELECT MAX(year_left) FROM table_name_81 WHERE school = "danville" </s> |
What was lane 4's time? | CREATE TABLE table_name_70 (time VARCHAR, lane VARCHAR) | SELECT time FROM table_name_70 WHERE lane = 4 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (time VARCHAR, lane VARCHAR) Question: What was lane 4's time? [/INST] SELECT time FROM table_name_70 WHERE lane = 4 </s> |
What's the part number of the processor that has an 1.8 ghz frequency and 2 × 256 kb L@ Cache? | CREATE TABLE table_name_56 (part_number_s_ VARCHAR, l2_cache VARCHAR, frequency VARCHAR) | SELECT part_number_s_ FROM table_name_56 WHERE l2_cache = "2 × 256 kb" AND frequency = "1.8 ghz" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (part_number_s_ VARCHAR, l2_cache VARCHAR, frequency VARCHAR) Question: What's the part number of the processor that has an 1.8 ghz frequency and 2 × 256 kb L@ Cache? [/INST] SELECT part_number_s_ ... |
What's the sSpec number of the processor having an ultra-low power I/O? | CREATE TABLE table_name_57 (sspec_number VARCHAR, i_o_bus VARCHAR) | SELECT sspec_number FROM table_name_57 WHERE i_o_bus = "ultra-low power" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (sspec_number VARCHAR, i_o_bus VARCHAR) Question: What's the sSpec number of the processor having an ultra-low power I/O? [/INST] SELECT sspec_number FROM table_name_57 WHERE i_o_bus = "ultra-low p... |
What the cores with a release date of February 2011 and a BGA-1023 socket? | CREATE TABLE table_name_81 (cores VARCHAR, socket VARCHAR, release_date VARCHAR) | SELECT cores FROM table_name_81 WHERE socket = "bga-1023" AND release_date = "february 2011" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (cores VARCHAR, socket VARCHAR, release_date VARCHAR) Question: What the cores with a release date of February 2011 and a BGA-1023 socket? [/INST] SELECT cores FROM table_name_81 WHERE socket = "bg... |
What's the L3 Cache that has a standard power I/O? | CREATE TABLE table_name_63 (l3_cache VARCHAR, i_o_bus VARCHAR) | SELECT l3_cache FROM table_name_63 WHERE i_o_bus = "standard power" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (l3_cache VARCHAR, i_o_bus VARCHAR) Question: What's the L3 Cache that has a standard power I/O? [/INST] SELECT l3_cache FROM table_name_63 WHERE i_o_bus = "standard power" </s> |
What's the release date of the processor with 2.8 ghz of frequency? | CREATE TABLE table_name_77 (release_date VARCHAR, frequency VARCHAR) | SELECT release_date FROM table_name_77 WHERE frequency = "2.8 ghz" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (release_date VARCHAR, frequency VARCHAR) Question: What's the release date of the processor with 2.8 ghz of frequency? [/INST] SELECT release_date FROM table_name_77 WHERE frequency = "2.8 ghz" </... |
What round was the match at Westpac Stadium that had the Newcastle Jets as the away team? | CREATE TABLE table_name_24 (round VARCHAR, venue VARCHAR, away VARCHAR) | SELECT round FROM table_name_24 WHERE venue = "westpac stadium" AND away = "newcastle jets" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (round VARCHAR, venue VARCHAR, away VARCHAR) Question: What round was the match at Westpac Stadium that had the Newcastle Jets as the away team? [/INST] SELECT round FROM table_name_24 WHERE venue ... |
On what weekday was the match that had Perth Glory as the away team? | CREATE TABLE table_name_86 (weekday VARCHAR, away VARCHAR) | SELECT weekday FROM table_name_86 WHERE away = "perth glory" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (weekday VARCHAR, away VARCHAR) Question: On what weekday was the match that had Perth Glory as the away team? [/INST] SELECT weekday FROM table_name_86 WHERE away = "perth glory" </s> |
What is the British record for the fish with a Guernsey record of 32-8-0? | CREATE TABLE table_name_70 (british_record VARCHAR, guernsey_record VARCHAR) | SELECT british_record FROM table_name_70 WHERE guernsey_record = "32-8-0" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (british_record VARCHAR, guernsey_record VARCHAR) Question: What is the British record for the fish with a Guernsey record of 32-8-0? [/INST] SELECT british_record FROM table_name_70 WHERE guernsey... |
What year was the Guernsey record of 2-3-12 set? | CREATE TABLE table_name_75 (year VARCHAR, guernsey_record VARCHAR) | SELECT year FROM table_name_75 WHERE guernsey_record = "2-3-12" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (year VARCHAR, guernsey_record VARCHAR) Question: What year was the Guernsey record of 2-3-12 set? [/INST] SELECT year FROM table_name_75 WHERE guernsey_record = "2-3-12" </s> |
What was the guernsey record set with a fish caught at Bordeaux Harbour? | CREATE TABLE table_name_80 (guernsey_record VARCHAR, location VARCHAR) | SELECT guernsey_record FROM table_name_80 WHERE location = "bordeaux harbour" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (guernsey_record VARCHAR, location VARCHAR) Question: What was the guernsey record set with a fish caught at Bordeaux Harbour? [/INST] SELECT guernsey_record FROM table_name_80 WHERE location = "bo... |
When was the film released that a less than 5038 production number and was of the character Bosko? | CREATE TABLE table_name_21 (release_date VARCHAR, production_num VARCHAR, characters VARCHAR) | SELECT release_date FROM table_name_21 WHERE production_num < 5038 AND characters = "bosko" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (release_date VARCHAR, production_num VARCHAR, characters VARCHAR) Question: When was the film released that a less than 5038 production number and was of the character Bosko? [/INST] SELECT releas... |
With 4645 as the production number what was the title? | CREATE TABLE table_name_4 (title VARCHAR, production_num VARCHAR) | SELECT title FROM table_name_4 WHERE production_num = 4645 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (title VARCHAR, production_num VARCHAR) Question: With 4645 as the production number what was the title? [/INST] SELECT title FROM table_name_4 WHERE production_num = 4645 </s> |
The film titled Bosko's fox hunt had what as the smallest production number? | CREATE TABLE table_name_56 (production_num INTEGER, title VARCHAR) | SELECT MIN(production_num) FROM table_name_56 WHERE title = "bosko's fox hunt" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (production_num INTEGER, title VARCHAR) Question: The film titled Bosko's fox hunt had what as the smallest production number? [/INST] SELECT MIN(production_num) FROM table_name_56 WHERE title = "b... |
What is the smallest production number for the LT series with the Dumb Patrol title? | CREATE TABLE table_name_85 (production_num INTEGER, series VARCHAR, title VARCHAR) | SELECT MIN(production_num) FROM table_name_85 WHERE series = "lt" AND title = "dumb patrol" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (production_num INTEGER, series VARCHAR, title VARCHAR) Question: What is the smallest production number for the LT series with the Dumb Patrol title? [/INST] SELECT MIN(production_num) FROM table_... |
What was the average capacity for vélez sársfield? | CREATE TABLE table_name_72 (capacity INTEGER, home_team_s_ VARCHAR) | SELECT AVG(capacity) FROM table_name_72 WHERE home_team_s_ = "vélez sársfield" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (capacity INTEGER, home_team_s_ VARCHAR) Question: What was the average capacity for vélez sársfield? [/INST] SELECT AVG(capacity) FROM table_name_72 WHERE home_team_s_ = "vélez sársfield" </s> |
What city was the home team Tigre? | CREATE TABLE table_name_5 (city VARCHAR, home_team_s_ VARCHAR) | SELECT city FROM table_name_5 WHERE home_team_s_ = "tigre" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (city VARCHAR, home_team_s_ VARCHAR) Question: What city was the home team Tigre? [/INST] SELECT city FROM table_name_5 WHERE home_team_s_ = "tigre" </s> |
What province is in Mendoza with a stadium feliciano gambarte? | CREATE TABLE table_name_72 (province VARCHAR, city VARCHAR, stadium VARCHAR) | SELECT province FROM table_name_72 WHERE city = "mendoza" AND stadium = "feliciano gambarte" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (province VARCHAR, city VARCHAR, stadium VARCHAR) Question: What province is in Mendoza with a stadium feliciano gambarte? [/INST] SELECT province FROM table_name_72 WHERE city = "mendoza" AND stad... |
On what date was there a tv time of ABC 8:00pm and after week 9? | CREATE TABLE table_name_58 (date VARCHAR, week VARCHAR, tv_time VARCHAR) | SELECT date FROM table_name_58 WHERE week > 9 AND tv_time = "abc 8:00pm" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (date VARCHAR, week VARCHAR, tv_time VARCHAR) Question: On what date was there a tv time of ABC 8:00pm and after week 9? [/INST] SELECT date FROM table_name_58 WHERE week > 9 AND tv_time = "abc 8:0... |
What is total number of years that has genre of first-person shooter? | CREATE TABLE table_name_50 (year INTEGER, genre VARCHAR) | SELECT SUM(year) FROM table_name_50 WHERE genre = "first-person shooter" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (year INTEGER, genre VARCHAR) Question: What is total number of years that has genre of first-person shooter? [/INST] SELECT SUM(year) FROM table_name_50 WHERE genre = "first-person shooter" </s> |
Which year is the lowest for genre of action-adventure? | CREATE TABLE table_name_36 (year INTEGER, genre VARCHAR) | SELECT MIN(year) FROM table_name_36 WHERE genre = "action-adventure" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (year INTEGER, genre VARCHAR) Question: Which year is the lowest for genre of action-adventure? [/INST] SELECT MIN(year) FROM table_name_36 WHERE genre = "action-adventure" </s> |
what is the "normalized" transliteration for Roman i | CREATE TABLE table_name_9 (roman_equivalent VARCHAR) | SELECT "normalised" AS _transliteration FROM table_name_9 WHERE roman_equivalent = "i" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (roman_equivalent VARCHAR) Question: what is the "normalized" transliteration for Roman i [/INST] SELECT "normalised" AS _transliteration FROM table_name_9 WHERE roman_equivalent = "i" </s> |
what is the normal environment of occurrence that has a Proto-Germanic origin /ai/ | CREATE TABLE table_name_86 (normal_environment_of_occurrence__in_native_words_ VARCHAR, proto_germanic_origin VARCHAR) | SELECT normal_environment_of_occurrence__in_native_words_ FROM table_name_86 WHERE proto_germanic_origin = "/ai/" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (normal_environment_of_occurrence__in_native_words_ VARCHAR, proto_germanic_origin VARCHAR) Question: what is the normal environment of occurrence that has a Proto-Germanic origin /ai/ [/INST] SELE... |
Which the lowest Against has a Status of tour match, and a Venue of ravenhill , belfast? | CREATE TABLE table_name_66 (against INTEGER, status VARCHAR, venue VARCHAR) | SELECT MIN(against) FROM table_name_66 WHERE status = "tour match" AND venue = "ravenhill , belfast" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (against INTEGER, status VARCHAR, venue VARCHAR) Question: Which the lowest Against has a Status of tour match, and a Venue of ravenhill , belfast? [/INST] SELECT MIN(against) FROM table_name_66 WH... |
Name the average Against that has a Venue of twickenham , london on 25 november 1978? | CREATE TABLE table_name_73 (against INTEGER, venue VARCHAR, date VARCHAR) | SELECT AVG(against) FROM table_name_73 WHERE venue = "twickenham , london" AND date = "25 november 1978" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (against INTEGER, venue VARCHAR, date VARCHAR) Question: Name the average Against that has a Venue of twickenham , london on 25 november 1978? [/INST] SELECT AVG(against) FROM table_name_73 WHERE v... |
Name the highest Against on 21 november 1978? | CREATE TABLE table_name_30 (against INTEGER, date VARCHAR) | SELECT MAX(against) FROM table_name_30 WHERE date = "21 november 1978" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (against INTEGER, date VARCHAR) Question: Name the highest Against on 21 november 1978? [/INST] SELECT MAX(against) FROM table_name_30 WHERE date = "21 november 1978" </s> |
Name the Against of Venue of brewery field , bridgend? | CREATE TABLE table_name_31 (against VARCHAR, venue VARCHAR) | SELECT against FROM table_name_31 WHERE venue = "brewery field , bridgend" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (against VARCHAR, venue VARCHAR) Question: Name the Against of Venue of brewery field , bridgend? [/INST] SELECT against FROM table_name_31 WHERE venue = "brewery field , bridgend" </s> |
Name the Status with an Against larger than 15? | CREATE TABLE table_name_98 (status VARCHAR, against INTEGER) | SELECT status FROM table_name_98 WHERE against > 15 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (status VARCHAR, against INTEGER) Question: Name the Status with an Against larger than 15? [/INST] SELECT status FROM table_name_98 WHERE against > 15 </s> |
Who is the home team when the away team is newcastle united? | CREATE TABLE table_name_16 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_16 WHERE away_team = "newcastle united" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (home_team VARCHAR, away_team VARCHAR) Question: Who is the home team when the away team is newcastle united? [/INST] SELECT home_team FROM table_name_16 WHERE away_team = "newcastle united" </s> |
who is the home team when the away team is wolverhampton wanderers? | CREATE TABLE table_name_20 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_20 WHERE away_team = "wolverhampton wanderers" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (home_team VARCHAR, away_team VARCHAR) Question: who is the home team when the away team is wolverhampton wanderers? [/INST] SELECT home_team FROM table_name_20 WHERE away_team = "wolverhampton wan... |
what is the date when the tie no is 9? | CREATE TABLE table_name_46 (date VARCHAR, tie_no VARCHAR) | SELECT date FROM table_name_46 WHERE tie_no = "9" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (date VARCHAR, tie_no VARCHAR) Question: what is the date when the tie no is 9? [/INST] SELECT date FROM table_name_46 WHERE tie_no = "9" </s> |
who is the away team when the tie no is 7? | CREATE TABLE table_name_7 (away_team VARCHAR, tie_no VARCHAR) | SELECT away_team FROM table_name_7 WHERE tie_no = "7" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (away_team VARCHAR, tie_no VARCHAR) Question: who is the away team when the tie no is 7? [/INST] SELECT away_team FROM table_name_7 WHERE tie_no = "7" </s> |
what is the score when the home team is sunderland? | CREATE TABLE table_name_91 (score VARCHAR, home_team VARCHAR) | SELECT score FROM table_name_91 WHERE home_team = "sunderland" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (score VARCHAR, home_team VARCHAR) Question: what is the score when the home team is sunderland? [/INST] SELECT score FROM table_name_91 WHERE home_team = "sunderland" </s> |
What is the name of the title that was directed by Friz Freleng and has a production number of 443? | CREATE TABLE table_name_81 (title VARCHAR, director VARCHAR, production_number VARCHAR) | SELECT title FROM table_name_81 WHERE director = "friz freleng" AND production_number = "443" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (title VARCHAR, director VARCHAR, production_number VARCHAR) Question: What is the name of the title that was directed by Friz Freleng and has a production number of 443? [/INST] SELECT title FROM ... |
Which title has a production number of 627? | CREATE TABLE table_name_21 (title VARCHAR, production_number VARCHAR) | SELECT title FROM table_name_21 WHERE production_number = "627" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (title VARCHAR, production_number VARCHAR) Question: Which title has a production number of 627? [/INST] SELECT title FROM table_name_21 WHERE production_number = "627" </s> |
what is the film when the year is earlier than 2002 and the category is outstanding actress? | CREATE TABLE table_name_21 (film VARCHAR, year VARCHAR, category VARCHAR) | SELECT film FROM table_name_21 WHERE year < 2002 AND category = "outstanding actress" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (film VARCHAR, year VARCHAR, category VARCHAR) Question: what is the film when the year is earlier than 2002 and the category is outstanding actress? [/INST] SELECT film FROM table_name_21 WHERE ye... |
What is the total latitude of the greenland township with more than 34.846 sqmi of land, a geo id less than 3805529660, and an ANSI code greater than 1036405? | CREATE TABLE table_name_45 (latitude VARCHAR, ansi_code VARCHAR, township VARCHAR, land___sqmi__ VARCHAR, geo_id VARCHAR) | SELECT COUNT(latitude) FROM table_name_45 WHERE land___sqmi__ > 34.846 AND geo_id < 3805529660 AND township = "greenland" AND ansi_code > 1036405 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (latitude VARCHAR, ansi_code VARCHAR, township VARCHAR, land___sqmi__ VARCHAR, geo_id VARCHAR) Question: What is the total latitude of the greenland township with more than 34.846 sqmi of land, a g... |
What is the sum of the land in sq mi with an ansi code less than 1036538, a 2010 population less than 42, a longitude greater than -99.442872, and more than 0.882 sq mi of water? | CREATE TABLE table_name_36 (land___sqmi__ INTEGER, water__sqmi_ VARCHAR, longitude VARCHAR, ansi_code VARCHAR, pop__2010_ VARCHAR) | SELECT SUM(land___sqmi__) FROM table_name_36 WHERE ansi_code < 1036538 AND pop__2010_ < 42 AND longitude > -99.442872 AND water__sqmi_ > 0.882 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (land___sqmi__ INTEGER, water__sqmi_ VARCHAR, longitude VARCHAR, ansi_code VARCHAR, pop__2010_ VARCHAR) Question: What is the sum of the land in sq mi with an ansi code less than 1036538, a 2010 po... |
What is the highest water (sq mi) of the township glenila, which has more than 33.576 sq mi of land and a latitude greater than 48.832189? | CREATE TABLE table_name_91 (water__sqmi_ INTEGER, latitude VARCHAR, land___sqmi__ VARCHAR, township VARCHAR) | SELECT MAX(water__sqmi_) FROM table_name_91 WHERE land___sqmi__ > 33.576 AND township = "glenila" AND latitude > 48.832189 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (water__sqmi_ INTEGER, latitude VARCHAR, land___sqmi__ VARCHAR, township VARCHAR) Question: What is the highest water (sq mi) of the township glenila, which has more than 33.576 sq mi of land and a... |
What is the sum of the 2010 population with a latitude greater than 47.710905, a longitude of -101.79876, and less than 35.695 sq mi of land? | CREATE TABLE table_name_64 (pop__2010_ INTEGER, land___sqmi__ VARCHAR, latitude VARCHAR, longitude VARCHAR) | SELECT SUM(pop__2010_) FROM table_name_64 WHERE latitude > 47.710905 AND longitude = -101.79876 AND land___sqmi__ < 35.695 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (pop__2010_ INTEGER, land___sqmi__ VARCHAR, latitude VARCHAR, longitude VARCHAR) Question: What is the sum of the 2010 population with a latitude greater than 47.710905, a longitude of -101.79876, ... |
What is the lowest land in sq mi with a longitude of -99.172785 and less than 0.973 sq mi of water? | CREATE TABLE table_name_27 (land___sqmi__ INTEGER, longitude VARCHAR, water__sqmi_ VARCHAR) | SELECT MIN(land___sqmi__) FROM table_name_27 WHERE longitude = -99.172785 AND water__sqmi_ < 0.973 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (land___sqmi__ INTEGER, longitude VARCHAR, water__sqmi_ VARCHAR) Question: What is the lowest land in sq mi with a longitude of -99.172785 and less than 0.973 sq mi of water? [/INST] SELECT MIN(lan... |
Who was the head coach? | CREATE TABLE table_name_19 (name VARCHAR, position VARCHAR) | SELECT name FROM table_name_19 WHERE position = "head coach" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (name VARCHAR, position VARCHAR) Question: Who was the head coach? [/INST] SELECT name FROM table_name_19 WHERE position = "head coach" </s> |
Who has the alma mater of Dayton ('07), and was in their 1st year at CU? | CREATE TABLE table_name_49 (name VARCHAR, year_at_cu VARCHAR, alma_mater VARCHAR) | SELECT name FROM table_name_49 WHERE year_at_cu = "1st" AND alma_mater = "dayton ('07)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (name VARCHAR, year_at_cu VARCHAR, alma_mater VARCHAR) Question: Who has the alma mater of Dayton ('07), and was in their 1st year at CU? [/INST] SELECT name FROM table_name_49 WHERE year_at_cu = "... |
What year at CU is the person in video services with an experience less than 1? | CREATE TABLE table_name_8 (year_at_cu VARCHAR, experience VARCHAR, position VARCHAR) | SELECT year_at_cu FROM table_name_8 WHERE experience < 1 AND position = "video services" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (year_at_cu VARCHAR, experience VARCHAR, position VARCHAR) Question: What year at CU is the person in video services with an experience less than 1? [/INST] SELECT year_at_cu FROM table_name_8 WHERE... |
The graduate assistant who was in the 1st year at CU has what experience? | CREATE TABLE table_name_29 (experience VARCHAR, year_at_cu VARCHAR, position VARCHAR) | SELECT experience FROM table_name_29 WHERE year_at_cu = "1st" AND position = "graduate assistant" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (experience VARCHAR, year_at_cu VARCHAR, position VARCHAR) Question: The graduate assistant who was in the 1st year at CU has what experience? [/INST] SELECT experience FROM table_name_29 WHERE yea... |
What person has the alma mater of Eastern Nazarene ('74), and greater than 19 experience? | CREATE TABLE table_name_86 (name VARCHAR, experience VARCHAR, alma_mater VARCHAR) | SELECT name FROM table_name_86 WHERE experience > 19 AND alma_mater = "eastern nazarene ('74)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (name VARCHAR, experience VARCHAR, alma_mater VARCHAR) Question: What person has the alma mater of Eastern Nazarene ('74), and greater than 19 experience? [/INST] SELECT name FROM table_name_86 WHE... |
What is the total engine capacity of the a4 transmission, which has an urban mpg-US greater than 19, an mpg-us extra-urban greater than 38.6, and an aveo model? | CREATE TABLE table_name_50 (engine_capacity VARCHAR, model VARCHAR, mpg_us_extra_urban VARCHAR, transmission VARCHAR, mpg_us_urban VARCHAR) | SELECT COUNT(engine_capacity) FROM table_name_50 WHERE transmission = "a4" AND mpg_us_urban > 19 AND mpg_us_extra_urban > 38.6 AND model = "aveo" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (engine_capacity VARCHAR, model VARCHAR, mpg_us_extra_urban VARCHAR, transmission VARCHAR, mpg_us_urban VARCHAR) Question: What is the total engine capacity of the a4 transmission, which has an urb... |
What is the highest engine capacity with a bmw manufacturer, an mpg-UK extra-urban of 52.3, a 176 CO 2 g/km, and an mpg-us urban greater than 27.3? | CREATE TABLE table_name_25 (engine_capacity INTEGER, mpg_us_urban VARCHAR, co_2_g_km VARCHAR, manufacturer VARCHAR, mpg_uk_extra_urban VARCHAR) | SELECT MAX(engine_capacity) FROM table_name_25 WHERE manufacturer = "bmw" AND mpg_uk_extra_urban = 52.3 AND co_2_g_km = 176 AND mpg_us_urban > 27.3 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (engine_capacity INTEGER, mpg_us_urban VARCHAR, co_2_g_km VARCHAR, manufacturer VARCHAR, mpg_uk_extra_urban VARCHAR) Question: What is the highest engine capacity with a bmw manufacturer, an mpg-UK... |
What is the mpg-uk combined with an mpg-uk urban (cold) greater than 26.6, a m5 transmission, a diesel fuel type, and an engine capacity less than 1560? | CREATE TABLE table_name_89 (mpg_uk_combined VARCHAR, engine_capacity VARCHAR, fuel_type VARCHAR, mpg_uk_urban__cold_ VARCHAR, transmission VARCHAR) | SELECT mpg_uk_combined FROM table_name_89 WHERE mpg_uk_urban__cold_ > 26.6 AND transmission = "m5" AND fuel_type = "diesel" AND engine_capacity < 1560 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (mpg_uk_combined VARCHAR, engine_capacity VARCHAR, fuel_type VARCHAR, mpg_uk_urban__cold_ VARCHAR, transmission VARCHAR) Question: What is the mpg-uk combined with an mpg-uk urban (cold) greater th... |
What is the l/100km urban (cold) with a CO 2 g/km less than 222, an mpg-us urban greater than 17.8, an mpg-uk extra-urban of 55.4, and an engine capacity greater than 1560? | CREATE TABLE table_name_24 (l_100km_urban__cold_ VARCHAR, engine_capacity VARCHAR, mpg_uk_extra_urban VARCHAR, co_2_g_km VARCHAR, mpg_us_urban VARCHAR) | SELECT l_100km_urban__cold_ FROM table_name_24 WHERE co_2_g_km < 222 AND mpg_us_urban > 17.8 AND mpg_uk_extra_urban = 55.4 AND engine_capacity > 1560 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (l_100km_urban__cold_ VARCHAR, engine_capacity VARCHAR, mpg_uk_extra_urban VARCHAR, co_2_g_km VARCHAR, mpg_us_urban VARCHAR) Question: What is the l/100km urban (cold) with a CO 2 g/km less than 22... |
What model has a g green rating, has chrysler jeep as a manufacturer, has an l/100km urban (cold) less than 18, and has an mpg-uk combined of 27.7? | CREATE TABLE table_name_6 (model VARCHAR, mpg_uk_combined VARCHAR, l_100km_urban__cold_ VARCHAR, green_rating VARCHAR, manufacturer VARCHAR) | SELECT model FROM table_name_6 WHERE green_rating = "g" AND manufacturer = "chrysler jeep" AND l_100km_urban__cold_ < 18 AND mpg_uk_combined = 27.7 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (model VARCHAR, mpg_uk_combined VARCHAR, l_100km_urban__cold_ VARCHAR, green_rating VARCHAR, manufacturer VARCHAR) Question: What model has a g green rating, has chrysler jeep as a manufacturer, has... |
what is the league cup apps when the total goals is less than 2 and the total apps is 12? | CREATE TABLE table_name_54 (league_cup_apps VARCHAR, total_goals VARCHAR, total_apps VARCHAR) | SELECT league_cup_apps FROM table_name_54 WHERE total_goals < 2 AND total_apps = "12" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (league_cup_apps VARCHAR, total_goals VARCHAR, total_apps VARCHAR) Question: what is the league cup apps when the total goals is less than 2 and the total apps is 12? [/INST] SELECT league_cup_apps... |
what is the average ga cup goals when the league cup apps is 2, the fa cup apps is 3 and the league goals is 3? | CREATE TABLE table_name_96 (fa_cup_goals INTEGER, league_goals VARCHAR, league_cup_apps VARCHAR, fa_cup_apps VARCHAR) | SELECT AVG(fa_cup_goals) FROM table_name_96 WHERE league_cup_apps = "2" AND fa_cup_apps = "3" AND league_goals = 3 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (fa_cup_goals INTEGER, league_goals VARCHAR, league_cup_apps VARCHAR, fa_cup_apps VARCHAR) Question: what is the average ga cup goals when the league cup apps is 2, the fa cup apps is 3 and the lea... |
what is the highest fa cup goals when flt goals is more than 0? | CREATE TABLE table_name_96 (fa_cup_goals INTEGER, flt_goals INTEGER) | SELECT MAX(fa_cup_goals) FROM table_name_96 WHERE flt_goals > 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (fa_cup_goals INTEGER, flt_goals INTEGER) Question: what is the highest fa cup goals when flt goals is more than 0? [/INST] SELECT MAX(fa_cup_goals) FROM table_name_96 WHERE flt_goals > 0 </s> |
what is the total apps when the league apps is 4 (2)? | CREATE TABLE table_name_80 (total_apps VARCHAR, league_apps VARCHAR) | SELECT total_apps FROM table_name_80 WHERE league_apps = "4 (2)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (total_apps VARCHAR, league_apps VARCHAR) Question: what is the total apps when the league apps is 4 (2)? [/INST] SELECT total_apps FROM table_name_80 WHERE league_apps = "4 (2)" </s> |
How much Silver has a Total larger than 9, and a Gold of 14? | CREATE TABLE table_name_44 (silver VARCHAR, total VARCHAR, gold VARCHAR) | SELECT COUNT(silver) FROM table_name_44 WHERE total > 9 AND gold = 14 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (silver VARCHAR, total VARCHAR, gold VARCHAR) Question: How much Silver has a Total larger than 9, and a Gold of 14? [/INST] SELECT COUNT(silver) FROM table_name_44 WHERE total > 9 AND gold = 14 </... |
Which Rank has a Total larger than 9, and a Gold larger than 6? | CREATE TABLE table_name_24 (rank VARCHAR, total VARCHAR, gold VARCHAR) | SELECT rank FROM table_name_24 WHERE total > 9 AND gold > 6 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (rank VARCHAR, total VARCHAR, gold VARCHAR) Question: Which Rank has a Total larger than 9, and a Gold larger than 6? [/INST] SELECT rank FROM table_name_24 WHERE total > 9 AND gold > 6 </s> |
How much Silver has a Rank of 4, and a Bronze smaller than 12? | CREATE TABLE table_name_36 (silver VARCHAR, rank VARCHAR, bronze VARCHAR) | SELECT COUNT(silver) FROM table_name_36 WHERE rank = "4" AND bronze < 12 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (silver VARCHAR, rank VARCHAR, bronze VARCHAR) Question: How much Silver has a Rank of 4, and a Bronze smaller than 12? [/INST] SELECT COUNT(silver) FROM table_name_36 WHERE rank = "4" AND bronze <... |
How many bronzes have a Total of 9? | CREATE TABLE table_name_68 (bronze INTEGER, total VARCHAR) | SELECT SUM(bronze) FROM table_name_68 WHERE total = 9 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (bronze INTEGER, total VARCHAR) Question: How many bronzes have a Total of 9? [/INST] SELECT SUM(bronze) FROM table_name_68 WHERE total = 9 </s> |
How much Gold has a Nation of mongolia, and a Total larger than 18? | CREATE TABLE table_name_37 (gold INTEGER, nation VARCHAR, total VARCHAR) | SELECT SUM(gold) FROM table_name_37 WHERE nation = "mongolia" AND total > 18 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (gold INTEGER, nation VARCHAR, total VARCHAR) Question: How much Gold has a Nation of mongolia, and a Total larger than 18? [/INST] SELECT SUM(gold) FROM table_name_37 WHERE nation = "mongolia" AND... |
What is the Lok Sabha for Dravida Munnetra Kazhagam, in 1999-04? | CREATE TABLE table_name_13 (lok_sabha VARCHAR, party_affiliation VARCHAR, duration VARCHAR) | SELECT lok_sabha FROM table_name_13 WHERE party_affiliation = "dravida munnetra kazhagam" AND duration = "1999-04" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (lok_sabha VARCHAR, party_affiliation VARCHAR, duration VARCHAR) Question: What is the Lok Sabha for Dravida Munnetra Kazhagam, in 1999-04? [/INST] SELECT lok_sabha FROM table_name_13 WHERE party_a... |
What is the duration when Lok Sabha shows fifth? | CREATE TABLE table_name_86 (duration VARCHAR, lok_sabha VARCHAR) | SELECT duration FROM table_name_86 WHERE lok_sabha = "fifth" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (duration VARCHAR, lok_sabha VARCHAR) Question: What is the duration when Lok Sabha shows fifth? [/INST] SELECT duration FROM table_name_86 WHERE lok_sabha = "fifth" </s> |
What was the result for the game played on December 20, 1970? | CREATE TABLE table_name_50 (result VARCHAR, date VARCHAR) | SELECT result FROM table_name_50 WHERE date = "december 20, 1970" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (result VARCHAR, date VARCHAR) Question: What was the result for the game played on December 20, 1970? [/INST] SELECT result FROM table_name_50 WHERE date = "december 20, 1970" </s> |
What was the result for week 2? | CREATE TABLE table_name_50 (result VARCHAR, week VARCHAR) | SELECT result FROM table_name_50 WHERE week = 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (result VARCHAR, week VARCHAR) Question: What was the result for week 2? [/INST] SELECT result FROM table_name_50 WHERE week = 2 </s> |
What is the rank of the athletes that have Notes of fb, and a Time of 6:47.30? | CREATE TABLE table_name_36 (rank INTEGER, notes VARCHAR, time VARCHAR) | SELECT SUM(rank) FROM table_name_36 WHERE notes = "fb" AND time = "6:47.30" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (rank INTEGER, notes VARCHAR, time VARCHAR) Question: What is the rank of the athletes that have Notes of fb, and a Time of 6:47.30? [/INST] SELECT SUM(rank) FROM table_name_36 WHERE notes = "fb" A... |
What is the least rank for athletes with a time of 6:36.65? | CREATE TABLE table_name_80 (rank INTEGER, time VARCHAR) | SELECT MIN(rank) FROM table_name_80 WHERE time = "6:36.65" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (rank INTEGER, time VARCHAR) Question: What is the least rank for athletes with a time of 6:36.65? [/INST] SELECT MIN(rank) FROM table_name_80 WHERE time = "6:36.65" </s> |
What is the average react for a rank more than 8? | CREATE TABLE table_name_36 (react INTEGER, rank INTEGER) | SELECT AVG(react) FROM table_name_36 WHERE rank > 8 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (react INTEGER, rank INTEGER) Question: What is the average react for a rank more than 8? [/INST] SELECT AVG(react) FROM table_name_36 WHERE rank > 8 </s> |
What is the highest rank for the react of 0.198, and the time more than 20.42? | CREATE TABLE table_name_4 (rank INTEGER, react VARCHAR, time VARCHAR) | SELECT MAX(rank) FROM table_name_4 WHERE react = 0.198 AND time > 20.42 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (rank INTEGER, react VARCHAR, time VARCHAR) Question: What is the highest rank for the react of 0.198, and the time more than 20.42? [/INST] SELECT MAX(rank) FROM table_name_4 WHERE react = 0.198 AN... |
What is the sum of time with a lane larger than 6, a nationality of canada, and the react smaller than 0.151? | CREATE TABLE table_name_70 (time INTEGER, react VARCHAR, lane VARCHAR, nationality VARCHAR) | SELECT SUM(time) FROM table_name_70 WHERE lane > 6 AND nationality = "canada" AND react < 0.151 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (time INTEGER, react VARCHAR, lane VARCHAR, nationality VARCHAR) Question: What is the sum of time with a lane larger than 6, a nationality of canada, and the react smaller than 0.151? [/INST] SELE... |
What human gene has a yeast ortholog of RAD26? | CREATE TABLE table_name_41 (human_gene__protein_ VARCHAR, yeast_ortholog VARCHAR) | SELECT human_gene__protein_ FROM table_name_41 WHERE yeast_ortholog = "rad26" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (human_gene__protein_ VARCHAR, yeast_ortholog VARCHAR) Question: What human gene has a yeast ortholog of RAD26? [/INST] SELECT human_gene__protein_ FROM table_name_41 WHERE yeast_ortholog = "rad26"... |
What is the human gene that has a mouse ortholog of LIG1? | CREATE TABLE table_name_27 (human_gene__protein_ VARCHAR, mouse_ortholog VARCHAR) | SELECT human_gene__protein_ FROM table_name_27 WHERE mouse_ortholog = "lig1" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (human_gene__protein_ VARCHAR, mouse_ortholog VARCHAR) Question: What is the human gene that has a mouse ortholog of LIG1? [/INST] SELECT human_gene__protein_ FROM table_name_27 WHERE mouse_ortholo... |
What is the yeast ortholog that has a subpathway of GGR and GeneCards entry CETN2? | CREATE TABLE table_name_19 (yeast_ortholog VARCHAR, subpathway VARCHAR, genecards_entry VARCHAR) | SELECT yeast_ortholog FROM table_name_19 WHERE subpathway = "ggr" AND genecards_entry = "cetn2" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (yeast_ortholog VARCHAR, subpathway VARCHAR, genecards_entry VARCHAR) Question: What is the yeast ortholog that has a subpathway of GGR and GeneCards entry CETN2? [/INST] SELECT yeast_ortholog FROM... |
What is the yeast ortholog of mouse ortholog MMS19? | CREATE TABLE table_name_18 (yeast_ortholog VARCHAR, mouse_ortholog VARCHAR) | SELECT yeast_ortholog FROM table_name_18 WHERE mouse_ortholog = "mms19" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (yeast_ortholog VARCHAR, mouse_ortholog VARCHAR) Question: What is the yeast ortholog of mouse ortholog MMS19? [/INST] SELECT yeast_ortholog FROM table_name_18 WHERE mouse_ortholog = "mms19" </s> |
What is the Tournament against Vladimir Zednik? | CREATE TABLE table_name_67 (tournament VARCHAR, opponent VARCHAR) | SELECT tournament FROM table_name_67 WHERE opponent = "vladimir zednik" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (tournament VARCHAR, opponent VARCHAR) Question: What is the Tournament against Vladimir Zednik? [/INST] SELECT tournament FROM table_name_67 WHERE opponent = "vladimir zednik" </s> |
What Tournament had a Score of 4–6, 6–7, 3–6? | CREATE TABLE table_name_95 (tournament VARCHAR, score VARCHAR) | SELECT tournament FROM table_name_95 WHERE score = "4–6, 6–7, 3–6" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (tournament VARCHAR, score VARCHAR) Question: What Tournament had a Score of 4–6, 6–7, 3–6? [/INST] SELECT tournament FROM table_name_95 WHERE score = "4–6, 6–7, 3–6" </s> |
What is the Score of the of the Tournament against Tim Gullikson with Outcome of runner-up? | CREATE TABLE table_name_68 (score VARCHAR, outcome VARCHAR, opponent VARCHAR) | SELECT score FROM table_name_68 WHERE outcome = "runner-up" AND opponent = "tim gullikson" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (score VARCHAR, outcome VARCHAR, opponent VARCHAR) Question: What is the Score of the of the Tournament against Tim Gullikson with Outcome of runner-up? [/INST] SELECT score FROM table_name_68 WHER... |
What is the Doha, Qatar when the snatch is total? | CREATE TABLE table_name_17 (doha_ VARCHAR, _qatar VARCHAR, snatch VARCHAR) | SELECT doha_, _qatar FROM table_name_17 WHERE snatch = "total" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (doha_ VARCHAR, _qatar VARCHAR, snatch VARCHAR) Question: What is the Doha, Qatar when the snatch is total? [/INST] SELECT doha_, _qatar FROM table_name_17 WHERE snatch = "total" </s> |
What is the Doha, Qatar when the snatch is clean & jerk? | CREATE TABLE table_name_93 (doha_ VARCHAR, _qatar VARCHAR, snatch VARCHAR) | SELECT doha_, _qatar FROM table_name_93 WHERE snatch = "clean & jerk" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (doha_ VARCHAR, _qatar VARCHAR, snatch VARCHAR) Question: What is the Doha, Qatar when the snatch is clean & jerk? [/INST] SELECT doha_, _qatar FROM table_name_93 WHERE snatch = "clean & jerk" </s> |
How many Points have a Name of stephen myler, and Tries smaller than 0? | CREATE TABLE table_name_3 (points INTEGER, name VARCHAR, tries VARCHAR) | SELECT SUM(points) FROM table_name_3 WHERE name = "stephen myler" AND tries < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (points INTEGER, name VARCHAR, tries VARCHAR) Question: How many Points have a Name of stephen myler, and Tries smaller than 0? [/INST] SELECT SUM(points) FROM table_name_3 WHERE name = "stephen myl... |
What is the pick number for New Mexico? | CREATE TABLE table_name_34 (pick INTEGER, college VARCHAR) | SELECT AVG(pick) FROM table_name_34 WHERE college = "new mexico" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (pick INTEGER, college VARCHAR) Question: What is the pick number for New Mexico? [/INST] SELECT AVG(pick) FROM table_name_34 WHERE college = "new mexico" </s> |
What player is from the Denver Broncos? | CREATE TABLE table_name_43 (player VARCHAR, team VARCHAR) | SELECT player FROM table_name_43 WHERE team = "denver broncos" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (player VARCHAR, team VARCHAR) Question: What player is from the Denver Broncos? [/INST] SELECT player FROM table_name_43 WHERE team = "denver broncos" </s> |
Which college has their team as the New York Jets? | CREATE TABLE table_name_38 (college VARCHAR, team VARCHAR) | SELECT college FROM table_name_38 WHERE team = "new york jets" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (college VARCHAR, team VARCHAR) Question: Which college has their team as the New York Jets? [/INST] SELECT college FROM table_name_38 WHERE team = "new york jets" </s> |
What is the Constituency Number of Total:? | CREATE TABLE table_name_73 (constituency_number VARCHAR, name VARCHAR) | SELECT constituency_number FROM table_name_73 WHERE name = "total:" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (constituency_number VARCHAR, name VARCHAR) Question: What is the Constituency Number of Total:? [/INST] SELECT constituency_number FROM table_name_73 WHERE name = "total:" </s> |
Which District is Constituency number 22? | CREATE TABLE table_name_43 (district VARCHAR, constituency_number VARCHAR) | SELECT district FROM table_name_43 WHERE constituency_number = "22" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (district VARCHAR, constituency_number VARCHAR) Question: Which District is Constituency number 22? [/INST] SELECT district FROM table_name_43 WHERE constituency_number = "22" </s> |
What is the lowest number of Electorates (2003) in District bhind, Reserved for none, and Constituency Number 11? | CREATE TABLE table_name_85 (number_of_electorates__2003_ INTEGER, constituency_number VARCHAR, district VARCHAR, reserved_for___sc___st__none_ VARCHAR) | SELECT MIN(number_of_electorates__2003_) FROM table_name_85 WHERE district = "bhind" AND reserved_for___sc___st__none_ = "none" AND constituency_number = "11" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (number_of_electorates__2003_ INTEGER, constituency_number VARCHAR, district VARCHAR, reserved_for___sc___st__none_ VARCHAR) Question: What is the lowest number of Electorates (2003) in District bh... |
What school/club had pick 33? | CREATE TABLE table_name_31 (school_club_team VARCHAR, pick VARCHAR) | SELECT school_club_team FROM table_name_31 WHERE pick = 33 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (school_club_team VARCHAR, pick VARCHAR) Question: What school/club had pick 33? [/INST] SELECT school_club_team FROM table_name_31 WHERE pick = 33 </s> |
What attendance has October 16, 2005 as the date? | CREATE TABLE table_name_81 (attendance VARCHAR, date VARCHAR) | SELECT attendance FROM table_name_81 WHERE date = "october 16, 2005" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (attendance VARCHAR, date VARCHAR) Question: What attendance has October 16, 2005 as the date? [/INST] SELECT attendance FROM table_name_81 WHERE date = "october 16, 2005" </s> |
What result has a week less than 16, and October 31, 2005 as the date? | CREATE TABLE table_name_25 (result VARCHAR, week VARCHAR, date VARCHAR) | SELECT result FROM table_name_25 WHERE week < 16 AND date = "october 31, 2005" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (result VARCHAR, week VARCHAR, date VARCHAR) Question: What result has a week less than 16, and October 31, 2005 as the date? [/INST] SELECT result FROM table_name_25 WHERE week < 16 AND date = "oc... |
Which Year has a Manager of bobby dews, and Playoffs of lost in 1st round? | CREATE TABLE table_name_37 (year INTEGER, manager VARCHAR, playoffs VARCHAR) | SELECT MIN(year) FROM table_name_37 WHERE manager = "bobby dews" AND playoffs = "lost in 1st round" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (year INTEGER, manager VARCHAR, playoffs VARCHAR) Question: Which Year has a Manager of bobby dews, and Playoffs of lost in 1st round? [/INST] SELECT MIN(year) FROM table_name_37 WHERE manager = "b... |
How many years have a Record of 73-65? | CREATE TABLE table_name_74 (year VARCHAR, record VARCHAR) | SELECT COUNT(year) FROM table_name_74 WHERE record = "73-65" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (year VARCHAR, record VARCHAR) Question: How many years have a Record of 73-65? [/INST] SELECT COUNT(year) FROM table_name_74 WHERE record = "73-65" </s> |
Which Record has a Year larger than 1974, and a Finish of 3rd? | CREATE TABLE table_name_33 (record VARCHAR, year VARCHAR, finish VARCHAR) | SELECT record FROM table_name_33 WHERE year > 1974 AND finish = "3rd" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (record VARCHAR, year VARCHAR, finish VARCHAR) Question: Which Record has a Year larger than 1974, and a Finish of 3rd? [/INST] SELECT record FROM table_name_33 WHERE year > 1974 AND finish = "3rd"... |
Which Song of the Year was 42 on the UK charts prior to 1994? | CREATE TABLE table_name_14 (song VARCHAR, year VARCHAR, uk_chart VARCHAR) | SELECT song FROM table_name_14 WHERE year < 1994 AND uk_chart = "42" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (song VARCHAR, year VARCHAR, uk_chart VARCHAR) Question: Which Song of the Year was 42 on the UK charts prior to 1994? [/INST] SELECT song FROM table_name_14 WHERE year < 1994 AND uk_chart = "42" <... |
Where did Scott Fitzgerald rank on the UK charts? | CREATE TABLE table_name_84 (uk_chart VARCHAR, artist VARCHAR) | SELECT uk_chart FROM table_name_84 WHERE artist = "scott fitzgerald" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (uk_chart VARCHAR, artist VARCHAR) Question: Where did Scott Fitzgerald rank on the UK charts? [/INST] SELECT uk_chart FROM table_name_84 WHERE artist = "scott fitzgerald" </s> |
Where did the song by Michael Ball, which placed 2nd in Eurovision prior to 1961, place on the UK charts? | CREATE TABLE table_name_33 (uk_chart VARCHAR, artist VARCHAR, year VARCHAR, at_eurovision VARCHAR) | SELECT uk_chart FROM table_name_33 WHERE year > 1961 AND at_eurovision = "2nd" AND artist = "michael ball" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (uk_chart VARCHAR, artist VARCHAR, year VARCHAR, at_eurovision VARCHAR) Question: Where did the song by Michael Ball, which placed 2nd in Eurovision prior to 1961, place on the UK charts? [/INST] S... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.