instruction stringlengths 12 244 | input stringlengths 27 489 | output stringlengths 18 557 | text stringlengths 194 1.14k |
|---|---|---|---|
What is the 2nd leg in match with team 2 of Teram? | CREATE TABLE table_name_92 (team_2 VARCHAR) | SELECT 2 AS nd_leg FROM table_name_92 WHERE team_2 = "teram" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (team_2 VARCHAR) Question: What is the 2nd leg in match with team 2 of Teram? [/INST] SELECT 2 AS nd_leg FROM table_name_92 WHERE team_2 = "teram" </s> |
What was the result of the December 15, 2002 game? | CREATE TABLE table_name_66 (result VARCHAR, date VARCHAR) | SELECT result FROM table_name_66 WHERE date = "december 15, 2002" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (result VARCHAR, date VARCHAR) Question: What was the result of the December 15, 2002 game? [/INST] SELECT result FROM table_name_66 WHERE date = "december 15, 2002" </s> |
What date was the game that was attended by 69,024? | CREATE TABLE table_name_52 (date VARCHAR, attendance VARCHAR) | SELECT date FROM table_name_52 WHERE attendance = "69,024" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (date VARCHAR, attendance VARCHAR) Question: What date was the game that was attended by 69,024? [/INST] SELECT date FROM table_name_52 WHERE attendance = "69,024" </s> |
On what date was the week 17 game? | CREATE TABLE table_name_37 (date VARCHAR, week VARCHAR) | SELECT date FROM table_name_37 WHERE week = 17 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (date VARCHAR, week VARCHAR) Question: On what date was the week 17 game? [/INST] SELECT date FROM table_name_37 WHERE week = 17 </s> |
What is the Model of the Engine with 29 Seats Built in 1941–1942? | CREATE TABLE table_name_85 (model VARCHAR, seats VARCHAR, built VARCHAR) | SELECT model FROM table_name_85 WHERE seats = 29 AND built = "1941–1942" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (model VARCHAR, seats VARCHAR, built VARCHAR) Question: What is the Model of the Engine with 29 Seats Built in 1941–1942? [/INST] SELECT model FROM table_name_85 WHERE seats = 29 AND built = "1941–... |
What is the Quantity of the engine Model PG-2901? | CREATE TABLE table_name_65 (quantity VARCHAR, model VARCHAR) | SELECT quantity FROM table_name_65 WHERE model = "pg-2901" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (quantity VARCHAR, model VARCHAR) Question: What is the Quantity of the engine Model PG-2901? [/INST] SELECT quantity FROM table_name_65 WHERE model = "pg-2901" </s> |
Why did the manager who departed on August 1, 2008 leave? | CREATE TABLE table_name_69 (reason_of_departure VARCHAR, date_outgoing VARCHAR) | SELECT reason_of_departure FROM table_name_69 WHERE date_outgoing = "august 1, 2008" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (reason_of_departure VARCHAR, date_outgoing VARCHAR) Question: Why did the manager who departed on August 1, 2008 leave? [/INST] SELECT reason_of_departure FROM table_name_69 WHERE date_outgoing = ... |
On what date did the manager for PSIS Semarang take over for the manager that was sacked? | CREATE TABLE table_name_54 (date_of_replacement VARCHAR, reason_of_departure VARCHAR, team VARCHAR) | SELECT date_of_replacement FROM table_name_54 WHERE reason_of_departure = "sacked" AND team = "psis semarang" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (date_of_replacement VARCHAR, reason_of_departure VARCHAR, team VARCHAR) Question: On what date did the manager for PSIS Semarang take over for the manager that was sacked? [/INST] SELECT date_of_r... |
Why did the manager who departed on August 1, 2008 leave? | CREATE TABLE table_name_84 (reason_of_departure VARCHAR, date_outgoing VARCHAR) | SELECT reason_of_departure FROM table_name_84 WHERE date_outgoing = "august 1, 2008" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (reason_of_departure VARCHAR, date_outgoing VARCHAR) Question: Why did the manager who departed on August 1, 2008 leave? [/INST] SELECT reason_of_departure FROM table_name_84 WHERE date_outgoing = ... |
When did Peter Butler leave his team? | CREATE TABLE table_name_12 (date_outgoing VARCHAR, outgoing_manager VARCHAR) | SELECT date_outgoing FROM table_name_12 WHERE outgoing_manager = "peter butler" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (date_outgoing VARCHAR, outgoing_manager VARCHAR) Question: When did Peter Butler leave his team? [/INST] SELECT date_outgoing FROM table_name_12 WHERE outgoing_manager = "peter butler" </s> |
When did the manager take over for the manager that left on August 20, 2008? | CREATE TABLE table_name_98 (date_of_replacement VARCHAR, date_outgoing VARCHAR) | SELECT date_of_replacement FROM table_name_98 WHERE date_outgoing = "august 20, 2008" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (date_of_replacement VARCHAR, date_outgoing VARCHAR) Question: When did the manager take over for the manager that left on August 20, 2008? [/INST] SELECT date_of_replacement FROM table_name_98 WHE... |
In which competition(s) did Iljuštšenko jump 1.90 m? | CREATE TABLE table_name_99 (competition VARCHAR, notes VARCHAR) | SELECT competition FROM table_name_99 WHERE notes = "1.90 m" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (competition VARCHAR, notes VARCHAR) Question: In which competition(s) did Iljuštšenko jump 1.90 m? [/INST] SELECT competition FROM table_name_99 WHERE notes = "1.90 m" </s> |
In which position did Iljuštšenko finish in the European Championships held prior to 2008? | CREATE TABLE table_name_48 (position VARCHAR, year VARCHAR, competition VARCHAR) | SELECT position FROM table_name_48 WHERE year < 2008 AND competition = "european championships" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (position VARCHAR, year VARCHAR, competition VARCHAR) Question: In which position did Iljuštšenko finish in the European Championships held prior to 2008? [/INST] SELECT position FROM table_name_48... |
In what year did Iljuštšenko compete in Barcelona, Spain? | CREATE TABLE table_name_70 (year VARCHAR, venue VARCHAR) | SELECT year FROM table_name_70 WHERE venue = "barcelona, spain" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (year VARCHAR, venue VARCHAR) Question: In what year did Iljuštšenko compete in Barcelona, Spain? [/INST] SELECT year FROM table_name_70 WHERE venue = "barcelona, spain" </s> |
What's the number of electorates for constituency number 56? | CREATE TABLE table_name_56 (number_of_electorates__2009_ INTEGER, constituency_number VARCHAR) | SELECT SUM(number_of_electorates__2009_) FROM table_name_56 WHERE constituency_number = "56" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (number_of_electorates__2009_ INTEGER, constituency_number VARCHAR) Question: What's the number of electorates for constituency number 56? [/INST] SELECT SUM(number_of_electorates__2009_) FROM tabl... |
What is the tour Apps when the career caps show 15? | CREATE TABLE table_name_57 (tour_apps VARCHAR, career_caps VARCHAR) | SELECT tour_apps FROM table_name_57 WHERE career_caps = 15 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (tour_apps VARCHAR, career_caps VARCHAR) Question: What is the tour Apps when the career caps show 15? [/INST] SELECT tour_apps FROM table_name_57 WHERE career_caps = 15 </s> |
What is the number of career caps for a full back, when tour Apps is smaller than 29? | CREATE TABLE table_name_78 (career_caps VARCHAR, position VARCHAR, tour_apps VARCHAR) | SELECT COUNT(career_caps) FROM table_name_78 WHERE position = "full back" AND tour_apps < 29 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (career_caps VARCHAR, position VARCHAR, tour_apps VARCHAR) Question: What is the number of career caps for a full back, when tour Apps is smaller than 29? [/INST] SELECT COUNT(career_caps) FROM tab... |
What is the career caps for half-back, when tests is more than 3? | CREATE TABLE table_name_73 (career_caps VARCHAR, position VARCHAR, tests VARCHAR) | SELECT career_caps FROM table_name_73 WHERE position = "half-back" AND tests > 3 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (career_caps VARCHAR, position VARCHAR, tests VARCHAR) Question: What is the career caps for half-back, when tests is more than 3? [/INST] SELECT career_caps FROM table_name_73 WHERE position = "ha... |
What name has tour Apps larger than 7, tests larger than 4, and a Career caps of 20? | CREATE TABLE table_name_22 (name VARCHAR, career_caps VARCHAR, tour_apps VARCHAR, tests VARCHAR) | SELECT name FROM table_name_22 WHERE tour_apps > 7 AND tests > 4 AND career_caps = 20 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (name VARCHAR, career_caps VARCHAR, tour_apps VARCHAR, tests VARCHAR) Question: What name has tour Apps larger than 7, tests larger than 4, and a Career caps of 20? [/INST] SELECT name FROM table_n... |
What constructor has a grid less than 21, and time/retired of engine? | CREATE TABLE table_name_64 (constructor VARCHAR, grid VARCHAR, time_retired VARCHAR) | SELECT constructor FROM table_name_64 WHERE grid < 21 AND time_retired = "engine" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (constructor VARCHAR, grid VARCHAR, time_retired VARCHAR) Question: What constructor has a grid less than 21, and time/retired of engine? [/INST] SELECT constructor FROM table_name_64 WHERE grid < ... |
When the entrant is fred saunders what is the driver? | CREATE TABLE table_name_11 (driver VARCHAR, entrant VARCHAR) | SELECT driver FROM table_name_11 WHERE entrant = "fred saunders" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (driver VARCHAR, entrant VARCHAR) Question: When the entrant is fred saunders what is the driver? [/INST] SELECT driver FROM table_name_11 WHERE entrant = "fred saunders" </s> |
What's the lowest grid with and entrant of fred saunders? | CREATE TABLE table_name_47 (grid INTEGER, entrant VARCHAR) | SELECT MIN(grid) FROM table_name_47 WHERE entrant = "fred saunders" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (grid INTEGER, entrant VARCHAR) Question: What's the lowest grid with and entrant of fred saunders? [/INST] SELECT MIN(grid) FROM table_name_47 WHERE entrant = "fred saunders" </s> |
What is the time/retired for the driver emerson fittipaldi? | CREATE TABLE table_name_55 (time_retired VARCHAR, driver VARCHAR) | SELECT time_retired FROM table_name_55 WHERE driver = "emerson fittipaldi" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (time_retired VARCHAR, driver VARCHAR) Question: What is the time/retired for the driver emerson fittipaldi? [/INST] SELECT time_retired FROM table_name_55 WHERE driver = "emerson fittipaldi" </s> |
Which Artist has the Label of Columbia and the Standard number of COCC-72073? | CREATE TABLE table_name_86 (artist VARCHAR, label VARCHAR, standard_number VARCHAR) | SELECT artist FROM table_name_86 WHERE label = "columbia" AND standard_number = "cocc-72073" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (artist VARCHAR, label VARCHAR, standard_number VARCHAR) Question: Which Artist has the Label of Columbia and the Standard number of COCC-72073? [/INST] SELECT artist FROM table_name_86 WHERE label... |
What Type has the Artist of Hiroyuki Takami? | CREATE TABLE table_name_42 (type VARCHAR, artist VARCHAR) | SELECT type FROM table_name_42 WHERE artist = "hiroyuki takami" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (type VARCHAR, artist VARCHAR) Question: What Type has the Artist of Hiroyuki Takami? [/INST] SELECT type FROM table_name_42 WHERE artist = "hiroyuki takami" </s> |
What Title has the Label of Columbia and Standard number of CODC-8760? | CREATE TABLE table_name_27 (title VARCHAR, label VARCHAR, standard_number VARCHAR) | SELECT title FROM table_name_27 WHERE label = "columbia" AND standard_number = "codc-8760" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (title VARCHAR, label VARCHAR, standard_number VARCHAR) Question: What Title has the Label of Columbia and Standard number of CODC-8760? [/INST] SELECT title FROM table_name_27 WHERE label = "colum... |
What is the type of Kuang-Hsing? | CREATE TABLE table_name_71 (type VARCHAR, name__wade_giles_ VARCHAR) | SELECT type FROM table_name_71 WHERE name__wade_giles_ = "kuang-hsing" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (type VARCHAR, name__wade_giles_ VARCHAR) Question: What is the type of Kuang-Hsing? [/INST] SELECT type FROM table_name_71 WHERE name__wade_giles_ = "kuang-hsing" </s> |
What type has the characters 廣丙? | CREATE TABLE table_name_25 (type VARCHAR, characters VARCHAR) | SELECT type FROM table_name_25 WHERE characters = "廣丙" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (type VARCHAR, characters VARCHAR) Question: What type has the characters 廣丙? [/INST] SELECT type FROM table_name_25 WHERE characters = "廣丙" </s> |
What's the name that has the characters 廣亨? | CREATE TABLE table_name_87 (name__wade_giles_ VARCHAR, characters VARCHAR) | SELECT name__wade_giles_ FROM table_name_87 WHERE characters = "廣亨" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (name__wade_giles_ VARCHAR, characters VARCHAR) Question: What's the name that has the characters 廣亨? [/INST] SELECT name__wade_giles_ FROM table_name_87 WHERE characters = "廣亨" </s> |
What type has the characters 廣利? | CREATE TABLE table_name_48 (type VARCHAR, characters VARCHAR) | SELECT type FROM table_name_48 WHERE characters = "廣利" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (type VARCHAR, characters VARCHAR) Question: What type has the characters 廣利? [/INST] SELECT type FROM table_name_48 WHERE characters = "廣利" </s> |
What is the type of Guangjia? | CREATE TABLE table_name_50 (type VARCHAR, name__pinyin_ VARCHAR) | SELECT type FROM table_name_50 WHERE name__pinyin_ = "guangjia" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (type VARCHAR, name__pinyin_ VARCHAR) Question: What is the type of Guangjia? [/INST] SELECT type FROM table_name_50 WHERE name__pinyin_ = "guangjia" </s> |
What soap opera has a rank larger than 1, and a Character named Emily Bishop? | CREATE TABLE table_name_81 (soap_opera VARCHAR, rank VARCHAR, character VARCHAR) | SELECT soap_opera FROM table_name_81 WHERE rank > 1 AND character = "emily bishop" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (soap_opera VARCHAR, rank VARCHAR, character VARCHAR) Question: What soap opera has a rank larger than 1, and a Character named Emily Bishop? [/INST] SELECT soap_opera FROM table_name_81 WHERE rank... |
What is the highest Rank 1960—? | CREATE TABLE table_name_81 (rank INTEGER, years VARCHAR) | SELECT MAX(rank) FROM table_name_81 WHERE years = "1960—" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (rank INTEGER, years VARCHAR) Question: What is the highest Rank 1960—? [/INST] SELECT MAX(rank) FROM table_name_81 WHERE years = "1960—" </s> |
What is the name of the actor with a duration of 61 years? | CREATE TABLE table_name_84 (actor VARCHAR, duration VARCHAR) | SELECT actor FROM table_name_84 WHERE duration = "61 years" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (actor VARCHAR, duration VARCHAR) Question: What is the name of the actor with a duration of 61 years? [/INST] SELECT actor FROM table_name_84 WHERE duration = "61 years" </s> |
What are the years for Eileen Derbyshire with a duration of 52 years? | CREATE TABLE table_name_4 (years VARCHAR, duration VARCHAR, actor VARCHAR) | SELECT years FROM table_name_4 WHERE duration = "52 years" AND actor = "eileen derbyshire" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (years VARCHAR, duration VARCHAR, actor VARCHAR) Question: What are the years for Eileen Derbyshire with a duration of 52 years? [/INST] SELECT years FROM table_name_4 WHERE duration = "52 years" AN... |
What soap opera was on 1960–1965, 1965–1983, 1984–2010? | CREATE TABLE table_name_33 (soap_opera VARCHAR, years VARCHAR) | SELECT soap_opera FROM table_name_33 WHERE years = "1960–1965, 1965–1983, 1984–2010" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (soap_opera VARCHAR, years VARCHAR) Question: What soap opera was on 1960–1965, 1965–1983, 1984–2010? [/INST] SELECT soap_opera FROM table_name_33 WHERE years = "1960–1965, 1965–1983, 1984–2010" </... |
Who are the rowers for Australia? | CREATE TABLE table_name_54 (rowers VARCHAR, country VARCHAR) | SELECT rowers FROM table_name_54 WHERE country = "australia" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (rowers VARCHAR, country VARCHAR) Question: Who are the rowers for Australia? [/INST] SELECT rowers FROM table_name_54 WHERE country = "australia" </s> |
What's Italy's rank? | CREATE TABLE table_name_36 (rank INTEGER, country VARCHAR) | SELECT SUM(rank) FROM table_name_36 WHERE country = "italy" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (rank INTEGER, country VARCHAR) Question: What's Italy's rank? [/INST] SELECT SUM(rank) FROM table_name_36 WHERE country = "italy" </s> |
Who is the visitor team on Saturday, November 22 when linköpings hc was the home team and there were more than 20 rounds? | CREATE TABLE table_name_89 (visitor VARCHAR, date VARCHAR, home VARCHAR, round VARCHAR) | SELECT visitor FROM table_name_89 WHERE home = "linköpings hc" AND round > 20 AND date = "saturday, november 22" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (visitor VARCHAR, date VARCHAR, home VARCHAR, round VARCHAR) Question: Who is the visitor team on Saturday, November 22 when linköpings hc was the home team and there were more than 20 rounds? [/IN... |
What is the lowest attendance on Monday, November 10 when linköpings hc was the home team and there were more than 18 rounds? | CREATE TABLE table_name_30 (attendance INTEGER, round VARCHAR, home VARCHAR, date VARCHAR) | SELECT MIN(attendance) FROM table_name_30 WHERE home = "linköpings hc" AND date = "monday, november 10" AND round > 18 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (attendance INTEGER, round VARCHAR, home VARCHAR, date VARCHAR) Question: What is the lowest attendance on Monday, November 10 when linköpings hc was the home team and there were more than 18 round... |
Who is the visitor at the axa sports center in round 20? | CREATE TABLE table_name_6 (visitor VARCHAR, venue VARCHAR, round VARCHAR) | SELECT visitor FROM table_name_6 WHERE venue = "axa sports center" AND round = 20 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (visitor VARCHAR, venue VARCHAR, round VARCHAR) Question: Who is the visitor at the axa sports center in round 20? [/INST] SELECT visitor FROM table_name_6 WHERE venue = "axa sports center" AND roun... |
What is the Attendance of the game on November 6, 1966? | CREATE TABLE table_name_7 (attendance VARCHAR, date VARCHAR) | SELECT attendance FROM table_name_7 WHERE date = "november 6, 1966" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (attendance VARCHAR, date VARCHAR) Question: What is the Attendance of the game on November 6, 1966? [/INST] SELECT attendance FROM table_name_7 WHERE date = "november 6, 1966" </s> |
What is the Result of the game on November 6, 1966? | CREATE TABLE table_name_78 (result VARCHAR, date VARCHAR) | SELECT result FROM table_name_78 WHERE date = "november 6, 1966" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (result VARCHAR, date VARCHAR) Question: What is the Result of the game on November 6, 1966? [/INST] SELECT result FROM table_name_78 WHERE date = "november 6, 1966" </s> |
Who is the club with a 4:03.63 time? | CREATE TABLE table_name_91 (club VARCHAR, time VARCHAR) | SELECT club FROM table_name_91 WHERE time = "4:03.63" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (club VARCHAR, time VARCHAR) Question: Who is the club with a 4:03.63 time? [/INST] SELECT club FROM table_name_91 WHERE time = "4:03.63" </s> |
What was the Green-Communist percentage in the poll in which the Socialist Party earned 41.0%? | CREATE TABLE table_name_59 (green_communist VARCHAR, socialist VARCHAR) | SELECT green_communist FROM table_name_59 WHERE socialist = "41.0%" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (green_communist VARCHAR, socialist VARCHAR) Question: What was the Green-Communist percentage in the poll in which the Socialist Party earned 41.0%? [/INST] SELECT green_communist FROM table_name_... |
What is the Green-Communist percentage in the poll showing a 9.7% lead? | CREATE TABLE table_name_1 (green_communist VARCHAR, lead VARCHAR) | SELECT green_communist FROM table_name_1 WHERE lead = "9.7%" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (green_communist VARCHAR, lead VARCHAR) Question: What is the Green-Communist percentage in the poll showing a 9.7% lead? [/INST] SELECT green_communist FROM table_name_1 WHERE lead = "9.7%" </s> |
what is the result on 9 october 2012? | CREATE TABLE table_name_87 (result VARCHAR, date VARCHAR) | SELECT result FROM table_name_87 WHERE date = "9 october 2012" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (result VARCHAR, date VARCHAR) Question: what is the result on 9 october 2012? [/INST] SELECT result FROM table_name_87 WHERE date = "9 october 2012" </s> |
what is the score when the venue is stade général seyni kountché, niamey, the competition is friendly and the date is 9 october 2012? | CREATE TABLE table_name_32 (score VARCHAR, date VARCHAR, venue VARCHAR, competition VARCHAR) | SELECT score FROM table_name_32 WHERE venue = "stade général seyni kountché, niamey" AND competition = "friendly" AND date = "9 october 2012" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (score VARCHAR, date VARCHAR, venue VARCHAR, competition VARCHAR) Question: what is the score when the venue is stade général seyni kountché, niamey, the competition is friendly and the date is 9 o... |
what is the result when the venue is stade général seyni kountché, niamey, the competition is friendly and the date is 9 october 2012? | CREATE TABLE table_name_54 (result VARCHAR, date VARCHAR, venue VARCHAR, competition VARCHAR) | SELECT result FROM table_name_54 WHERE venue = "stade général seyni kountché, niamey" AND competition = "friendly" AND date = "9 october 2012" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (result VARCHAR, date VARCHAR, venue VARCHAR, competition VARCHAR) Question: what is the result when the venue is stade général seyni kountché, niamey, the competition is friendly and the date is 9... |
what is the competition on 10 august 2011? | CREATE TABLE table_name_75 (competition VARCHAR, date VARCHAR) | SELECT competition FROM table_name_75 WHERE date = "10 august 2011" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (competition VARCHAR, date VARCHAR) Question: what is the competition on 10 august 2011? [/INST] SELECT competition FROM table_name_75 WHERE date = "10 august 2011" </s> |
what is the date when the venue is stade général seyni kountché , niamey? | CREATE TABLE table_name_10 (date VARCHAR, venue VARCHAR) | SELECT date FROM table_name_10 WHERE venue = "stade général seyni kountché , niamey" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (date VARCHAR, venue VARCHAR) Question: what is the date when the venue is stade général seyni kountché , niamey? [/INST] SELECT date FROM table_name_10 WHERE venue = "stade général seyni kountché ... |
What place has manfred kokot as the athlete? | CREATE TABLE table_name_7 (place VARCHAR, athlete VARCHAR) | SELECT place FROM table_name_7 WHERE athlete = "manfred kokot" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (place VARCHAR, athlete VARCHAR) Question: What place has manfred kokot as the athlete? [/INST] SELECT place FROM table_name_7 WHERE athlete = "manfred kokot" </s> |
What athlete has reno as the place? | CREATE TABLE table_name_73 (athlete VARCHAR, place VARCHAR) | SELECT athlete FROM table_name_73 WHERE place = "reno" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (athlete VARCHAR, place VARCHAR) Question: What athlete has reno as the place? [/INST] SELECT athlete FROM table_name_73 WHERE place = "reno" </s> |
What campus opened in 1970? | CREATE TABLE table_name_12 (campus VARCHAR, year_opened VARCHAR) | SELECT campus FROM table_name_12 WHERE year_opened = "1970" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (campus VARCHAR, year_opened VARCHAR) Question: What campus opened in 1970? [/INST] SELECT campus FROM table_name_12 WHERE year_opened = "1970" </s> |
What year was the school opened that has a size of 10 acres and students of na? | CREATE TABLE table_name_76 (year_opened VARCHAR, students VARCHAR, size VARCHAR) | SELECT year_opened FROM table_name_76 WHERE students = "na" AND size = "10 acres" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (year_opened VARCHAR, students VARCHAR, size VARCHAR) Question: What year was the school opened that has a size of 10 acres and students of na? [/INST] SELECT year_opened FROM table_name_76 WHERE s... |
What location was the campus that has a size of 245 acres? | CREATE TABLE table_name_86 (location VARCHAR, size VARCHAR) | SELECT location FROM table_name_86 WHERE size = "245 acres" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (location VARCHAR, size VARCHAR) Question: What location was the campus that has a size of 245 acres? [/INST] SELECT location FROM table_name_86 WHERE size = "245 acres" </s> |
What campus was opened in 1977? | CREATE TABLE table_name_79 (campus VARCHAR, year_opened VARCHAR) | SELECT campus FROM table_name_79 WHERE year_opened = "1977" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (campus VARCHAR, year_opened VARCHAR) Question: What campus was opened in 1977? [/INST] SELECT campus FROM table_name_79 WHERE year_opened = "1977" </s> |
What location was the campus opened in 2005 with students listed as na? | CREATE TABLE table_name_57 (location VARCHAR, students VARCHAR, year_opened VARCHAR) | SELECT location FROM table_name_57 WHERE students = "na" AND year_opened = "2005" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (location VARCHAR, students VARCHAR, year_opened VARCHAR) Question: What location was the campus opened in 2005 with students listed as na? [/INST] SELECT location FROM table_name_57 WHERE students... |
what is the type when the rank is smaller than 70, the province is british columbia and the capacity (mw) is more than 2,480? | CREATE TABLE table_name_14 (type VARCHAR, capacity___mw__ VARCHAR, rank VARCHAR, province VARCHAR) | SELECT type FROM table_name_14 WHERE rank < 70 AND province = "british columbia" AND capacity___mw__ > 2 OFFSET 480 ROWS | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (type VARCHAR, capacity___mw__ VARCHAR, rank VARCHAR, province VARCHAR) Question: what is the type when the rank is smaller than 70, the province is british columbia and the capacity (mw) is more t... |
what is the least capacity (mw) when the rank is less than 46 and the province is newfoundland and labrador? | CREATE TABLE table_name_99 (capacity___mw__ INTEGER, rank VARCHAR, province VARCHAR) | SELECT MIN(capacity___mw__) FROM table_name_99 WHERE rank < 46 AND province = "newfoundland and labrador" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (capacity___mw__ INTEGER, rank VARCHAR, province VARCHAR) Question: what is the least capacity (mw) when the rank is less than 46 and the province is newfoundland and labrador? [/INST] SELECT MIN(c... |
what is the lowest rank when the type is hydro, the name is grand rapids generating station and the capacity (mw) is more than 479? | CREATE TABLE table_name_67 (rank INTEGER, capacity___mw__ VARCHAR, type VARCHAR, name VARCHAR) | SELECT MIN(rank) FROM table_name_67 WHERE type = "hydro" AND name = "grand rapids generating station" AND capacity___mw__ > 479 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (rank INTEGER, capacity___mw__ VARCHAR, type VARCHAR, name VARCHAR) Question: what is the lowest rank when the type is hydro, the name is grand rapids generating station and the capacity (mw) is mo... |
what is the province when the rank is higher than 24 and the name is laforge-2? | CREATE TABLE table_name_42 (province VARCHAR, rank VARCHAR, name VARCHAR) | SELECT province FROM table_name_42 WHERE rank > 24 AND name = "laforge-2" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (province VARCHAR, rank VARCHAR, name VARCHAR) Question: what is the province when the rank is higher than 24 and the name is laforge-2? [/INST] SELECT province FROM table_name_42 WHERE rank > 24 A... |
what is the name when the type is hydro, the capacity (mw) is less than 478, the rank is more than 85 and the province is quebec? | CREATE TABLE table_name_15 (name VARCHAR, province VARCHAR, rank VARCHAR, type VARCHAR, capacity___mw__ VARCHAR) | SELECT name FROM table_name_15 WHERE type = "hydro" AND capacity___mw__ < 478 AND rank > 85 AND province = "quebec" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (name VARCHAR, province VARCHAR, rank VARCHAR, type VARCHAR, capacity___mw__ VARCHAR) Question: what is the name when the type is hydro, the capacity (mw) is less than 478, the rank is more than 85... |
How many years have toyota team tom's as the team, with Laps greater than 64? | CREATE TABLE table_name_60 (year VARCHAR, team VARCHAR, laps VARCHAR) | SELECT COUNT(year) FROM table_name_60 WHERE team = "toyota team tom's" AND laps > 64 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (year VARCHAR, team VARCHAR, laps VARCHAR) Question: How many years have toyota team tom's as the team, with Laps greater than 64? [/INST] SELECT COUNT(year) FROM table_name_60 WHERE team = "toyota... |
What round was on 11/11/1992? | CREATE TABLE table_name_91 (round VARCHAR, date VARCHAR) | SELECT round FROM table_name_91 WHERE date = "11/11/1992" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (round VARCHAR, date VARCHAR) Question: What round was on 11/11/1992? [/INST] SELECT round FROM table_name_91 WHERE date = "11/11/1992" </s> |
What is the total against on 08/12/1992? | CREATE TABLE table_name_82 (against INTEGER, date VARCHAR) | SELECT SUM(against) FROM table_name_82 WHERE date = "08/12/1992" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (against INTEGER, date VARCHAR) Question: What is the total against on 08/12/1992? [/INST] SELECT SUM(against) FROM table_name_82 WHERE date = "08/12/1992" </s> |
What is the venue of 24/11/1992? | CREATE TABLE table_name_6 (venue VARCHAR, date VARCHAR) | SELECT venue FROM table_name_6 WHERE date = "24/11/1992" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (venue VARCHAR, date VARCHAR) Question: What is the venue of 24/11/1992? [/INST] SELECT venue FROM table_name_6 WHERE date = "24/11/1992" </s> |
What round has less than 1 against? | CREATE TABLE table_name_37 (round VARCHAR, against INTEGER) | SELECT round FROM table_name_37 WHERE against < 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (round VARCHAR, against INTEGER) Question: What round has less than 1 against? [/INST] SELECT round FROM table_name_37 WHERE against < 1 </s> |
How many gold medals for germany (GER) having a rank less than 15? | CREATE TABLE table_name_64 (gold VARCHAR, nation VARCHAR, rank VARCHAR) | SELECT COUNT(gold) FROM table_name_64 WHERE nation = "germany (ger)" AND rank < 15 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (gold VARCHAR, nation VARCHAR, rank VARCHAR) Question: How many gold medals for germany (GER) having a rank less than 15? [/INST] SELECT COUNT(gold) FROM table_name_64 WHERE nation = "germany (ger)... |
How many silver medals when the bronze is more than 2 and having a rank more than 5? | CREATE TABLE table_name_89 (silver INTEGER, rank VARCHAR, bronze VARCHAR) | SELECT MAX(silver) FROM table_name_89 WHERE rank > 5 AND bronze > 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (silver INTEGER, rank VARCHAR, bronze VARCHAR) Question: How many silver medals when the bronze is more than 2 and having a rank more than 5? [/INST] SELECT MAX(silver) FROM table_name_89 WHERE ran... |
What's the average number of silver medals when bronze is less than 0? | CREATE TABLE table_name_86 (silver INTEGER, bronze INTEGER) | SELECT AVG(silver) FROM table_name_86 WHERE bronze < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (silver INTEGER, bronze INTEGER) Question: What's the average number of silver medals when bronze is less than 0? [/INST] SELECT AVG(silver) FROM table_name_86 WHERE bronze < 0 </s> |
What's the average number of silver medals for germany (GER) having more than 3 bronze? | CREATE TABLE table_name_44 (silver INTEGER, nation VARCHAR, bronze VARCHAR) | SELECT AVG(silver) FROM table_name_44 WHERE nation = "germany (ger)" AND bronze > 3 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (silver INTEGER, nation VARCHAR, bronze VARCHAR) Question: What's the average number of silver medals for germany (GER) having more than 3 bronze? [/INST] SELECT AVG(silver) FROM table_name_44 WHER... |
What are the notes for 6:31.16? | CREATE TABLE table_name_85 (notes VARCHAR, time VARCHAR) | SELECT notes FROM table_name_85 WHERE time = "6:31.16" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (notes VARCHAR, time VARCHAR) Question: What are the notes for 6:31.16? [/INST] SELECT notes FROM table_name_85 WHERE time = "6:31.16" </s> |
What rowers have a 6:29.56 time? | CREATE TABLE table_name_64 (rowers VARCHAR, time VARCHAR) | SELECT rowers FROM table_name_64 WHERE time = "6:29.56" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (rowers VARCHAR, time VARCHAR) Question: What rowers have a 6:29.56 time? [/INST] SELECT rowers FROM table_name_64 WHERE time = "6:29.56" </s> |
What is the time with FB notes for Canada? | CREATE TABLE table_name_43 (time VARCHAR, notes VARCHAR, country VARCHAR) | SELECT time FROM table_name_43 WHERE notes = "fb" AND country = "canada" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (time VARCHAR, notes VARCHAR, country VARCHAR) Question: What is the time with FB notes for Canada? [/INST] SELECT time FROM table_name_43 WHERE notes = "fb" AND country = "canada" </s> |
What country has a time of 6:49.28? | CREATE TABLE table_name_38 (country VARCHAR, time VARCHAR) | SELECT country FROM table_name_38 WHERE time = "6:49.28" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (country VARCHAR, time VARCHAR) Question: What country has a time of 6:49.28? [/INST] SELECT country FROM table_name_38 WHERE time = "6:49.28" </s> |
Which Tries for has Points against larger than 87, and Tries against smaller than 28, and Points diff of +63? | CREATE TABLE table_name_69 (tries_for INTEGER, points_diff VARCHAR, points_against VARCHAR, tries_against VARCHAR) | SELECT AVG(tries_for) FROM table_name_69 WHERE points_against > 87 AND tries_against < 28 AND points_diff = "+63" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (tries_for INTEGER, points_diff VARCHAR, points_against VARCHAR, tries_against VARCHAR) Question: Which Tries for has Points against larger than 87, and Tries against smaller than 28, and Points di... |
Which Points for has Points against smaller than 93, and Tries for larger than 25? | CREATE TABLE table_name_38 (points_for INTEGER, points_against VARCHAR, tries_for VARCHAR) | SELECT MIN(points_for) FROM table_name_38 WHERE points_against < 93 AND tries_for > 25 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (points_for INTEGER, points_against VARCHAR, tries_for VARCHAR) Question: Which Points for has Points against smaller than 93, and Tries for larger than 25? [/INST] SELECT MIN(points_for) FROM tabl... |
Which Tries for has Points against smaller than 124, and Points for smaller than 241, and Tries against smaller than 11? | CREATE TABLE table_name_12 (tries_for INTEGER, tries_against VARCHAR, points_against VARCHAR, points_for VARCHAR) | SELECT MAX(tries_for) FROM table_name_12 WHERE points_against < 124 AND points_for < 241 AND tries_against < 11 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (tries_for INTEGER, tries_against VARCHAR, points_against VARCHAR, points_for VARCHAR) Question: Which Tries for has Points against smaller than 124, and Points for smaller than 241, and Tries agai... |
How many Tries against have a Team of dinamo bucureşti, and Tries for smaller than 19? | CREATE TABLE table_name_48 (tries_against VARCHAR, team VARCHAR, tries_for VARCHAR) | SELECT COUNT(tries_against) FROM table_name_48 WHERE team = "dinamo bucureşti" AND tries_for < 19 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (tries_against VARCHAR, team VARCHAR, tries_for VARCHAR) Question: How many Tries against have a Team of dinamo bucureşti, and Tries for smaller than 19? [/INST] SELECT COUNT(tries_against) FROM ta... |
What week had attendance of 48,667? | CREATE TABLE table_name_59 (week VARCHAR, attendance VARCHAR) | SELECT COUNT(week) FROM table_name_59 WHERE attendance = 48 OFFSET 667 ROWS | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (week VARCHAR, attendance VARCHAR) Question: What week had attendance of 48,667? [/INST] SELECT COUNT(week) FROM table_name_59 WHERE attendance = 48 OFFSET 667 ROWS </s> |
What Song has a Draw of less than 4 with a Percentage of 32.22%? | CREATE TABLE table_name_72 (song VARCHAR, draw VARCHAR, percentage VARCHAR) | SELECT song FROM table_name_72 WHERE draw < 4 AND percentage = "32.22%" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (song VARCHAR, draw VARCHAR, percentage VARCHAR) Question: What Song has a Draw of less than 4 with a Percentage of 32.22%? [/INST] SELECT song FROM table_name_72 WHERE draw < 4 AND percentage = "3... |
What Artist has a Place of 3 or less with a Percentage of 38.60%? | CREATE TABLE table_name_50 (artist VARCHAR, place VARCHAR, percentage VARCHAR) | SELECT artist FROM table_name_50 WHERE place < 3 AND percentage = "38.60%" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (artist VARCHAR, place VARCHAR, percentage VARCHAR) Question: What Artist has a Place of 3 or less with a Percentage of 38.60%? [/INST] SELECT artist FROM table_name_50 WHERE place < 3 AND percenta... |
What is the Place of Draw 1 by Artist Monika Kirovska? | CREATE TABLE table_name_54 (place INTEGER, artist VARCHAR, draw VARCHAR) | SELECT AVG(place) FROM table_name_54 WHERE artist = "monika kirovska" AND draw < 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (place INTEGER, artist VARCHAR, draw VARCHAR) Question: What is the Place of Draw 1 by Artist Monika Kirovska? [/INST] SELECT AVG(place) FROM table_name_54 WHERE artist = "monika kirovska" AND draw... |
What were the most byes of Terang-Mortlake when they had more than 11 wins and more than 1118 against? | CREATE TABLE table_name_55 (byes INTEGER, hampden_fl VARCHAR, wins VARCHAR, against VARCHAR) | SELECT MAX(byes) FROM table_name_55 WHERE wins > 11 AND against > 1118 AND hampden_fl = "terang-mortlake" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (byes INTEGER, hampden_fl VARCHAR, wins VARCHAR, against VARCHAR) Question: What were the most byes of Terang-Mortlake when they had more than 11 wins and more than 1118 against? [/INST] SELECT MAX... |
How many wins did South Warrambool have? | CREATE TABLE table_name_91 (wins INTEGER, hampden_fl VARCHAR) | SELECT AVG(wins) FROM table_name_91 WHERE hampden_fl = "south warrambool" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (wins INTEGER, hampden_fl VARCHAR) Question: How many wins did South Warrambool have? [/INST] SELECT AVG(wins) FROM table_name_91 WHERE hampden_fl = "south warrambool" </s> |
How many byes when there are more than 16 wins? | CREATE TABLE table_name_50 (byes INTEGER, wins INTEGER) | SELECT AVG(byes) FROM table_name_50 WHERE wins > 16 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (byes INTEGER, wins INTEGER) Question: How many byes when there are more than 16 wins? [/INST] SELECT AVG(byes) FROM table_name_50 WHERE wins > 16 </s> |
What is the least amount of Byes when there are more than 2 wins and 1946 against? | CREATE TABLE table_name_3 (byes INTEGER, against VARCHAR, wins VARCHAR) | SELECT MIN(byes) FROM table_name_3 WHERE against = 1946 AND wins > 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (byes INTEGER, against VARCHAR, wins VARCHAR) Question: What is the least amount of Byes when there are more than 2 wins and 1946 against? [/INST] SELECT MIN(byes) FROM table_name_3 WHERE against = ... |
How many wins when the draws are less than 1 and more than 4 losses? | CREATE TABLE table_name_59 (wins INTEGER, draws VARCHAR, losses VARCHAR) | SELECT AVG(wins) FROM table_name_59 WHERE draws < 1 AND losses > 4 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (wins INTEGER, draws VARCHAR, losses VARCHAR) Question: How many wins when the draws are less than 1 and more than 4 losses? [/INST] SELECT AVG(wins) FROM table_name_59 WHERE draws < 1 AND losses >... |
What was the lowest population of the GEO ID 3805373380 and the water square mileage smaller than 5.729? | CREATE TABLE table_name_25 (pop__2010_ INTEGER, geo_id VARCHAR, water__sqmi_ VARCHAR) | SELECT MIN(pop__2010_) FROM table_name_25 WHERE geo_id = 3805373380 AND water__sqmi_ < 5.729 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (pop__2010_ INTEGER, geo_id VARCHAR, water__sqmi_ VARCHAR) Question: What was the lowest population of the GEO ID 3805373380 and the water square mileage smaller than 5.729? [/INST] SELECT MIN(pop_... |
What is the lowest GEO ID for the longitude of -102.158045 and the water in square miles larger than 0.979? | CREATE TABLE table_name_29 (geo_id INTEGER, longitude VARCHAR, water__sqmi_ VARCHAR) | SELECT MIN(geo_id) FROM table_name_29 WHERE longitude = -102.158045 AND water__sqmi_ > 0.979 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (geo_id INTEGER, longitude VARCHAR, water__sqmi_ VARCHAR) Question: What is the lowest GEO ID for the longitude of -102.158045 and the water in square miles larger than 0.979? [/INST] SELECT MIN(ge... |
What is the average ANSI code for the town of Sherman and the smaller of the water area in square miles than 0.005? | CREATE TABLE table_name_39 (ansi_code INTEGER, township VARCHAR, water__sqmi_ VARCHAR) | SELECT AVG(ansi_code) FROM table_name_39 WHERE township = "sherman" AND water__sqmi_ < 0.005 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (ansi_code INTEGER, township VARCHAR, water__sqmi_ VARCHAR) Question: What is the average ANSI code for the town of Sherman and the smaller of the water area in square miles than 0.005? [/INST] SEL... |
What is the average longitude for the water area of 0.093 and has a GEO ID tag larger than 3808174460? | CREATE TABLE table_name_46 (longitude INTEGER, water__sqmi_ VARCHAR, geo_id VARCHAR) | SELECT AVG(longitude) FROM table_name_46 WHERE water__sqmi_ = 0.093 AND geo_id > 3808174460 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (longitude INTEGER, water__sqmi_ VARCHAR, geo_id VARCHAR) Question: What is the average longitude for the water area of 0.093 and has a GEO ID tag larger than 3808174460? [/INST] SELECT AVG(longitu... |
Which Country's Author is based on Sophocles and Euripides? | CREATE TABLE table_name_86 (country VARCHAR, author VARCHAR) | SELECT country FROM table_name_86 WHERE author = "based on sophocles and euripides" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (country VARCHAR, author VARCHAR) Question: Which Country's Author is based on Sophocles and Euripides? [/INST] SELECT country FROM table_name_86 WHERE author = "based on sophocles and euripides" <... |
Which Author's Company is Ruth Kanner Theatre Group? | CREATE TABLE table_name_93 (author VARCHAR, company VARCHAR) | SELECT author FROM table_name_93 WHERE company = "ruth kanner theatre group" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (author VARCHAR, company VARCHAR) Question: Which Author's Company is Ruth Kanner Theatre Group? [/INST] SELECT author FROM table_name_93 WHERE company = "ruth kanner theatre group" </s> |
Which Play is from Cyprus, from the Company Magdalena Zira Theatre? | CREATE TABLE table_name_98 (play VARCHAR, country VARCHAR, company VARCHAR) | SELECT play FROM table_name_98 WHERE country = "cyprus" AND company = "magdalena zira theatre" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (play VARCHAR, country VARCHAR, company VARCHAR) Question: Which Play is from Cyprus, from the Company Magdalena Zira Theatre? [/INST] SELECT play FROM table_name_98 WHERE country = "cyprus" AND co... |
Which Country is the Play Electra and Orestes, The Trial from? | CREATE TABLE table_name_82 (country VARCHAR, play VARCHAR) | SELECT country FROM table_name_82 WHERE play = "electra and orestes, the trial" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (country VARCHAR, play VARCHAR) Question: Which Country is the Play Electra and Orestes, The Trial from? [/INST] SELECT country FROM table_name_82 WHERE play = "electra and orestes, the trial" </s> |
How much total time was in lane 4? | CREATE TABLE table_name_66 (time VARCHAR, lane VARCHAR) | SELECT COUNT(time) FROM table_name_66 WHERE lane = 4 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (time VARCHAR, lane VARCHAR) Question: How much total time was in lane 4? [/INST] SELECT COUNT(time) FROM table_name_66 WHERE lane = 4 </s> |
Which Rank has a Reaction time larger than 0.20400000000000001, and a Time larger than 45.56? | CREATE TABLE table_name_98 (rank INTEGER, react VARCHAR, time VARCHAR) | SELECT MAX(rank) FROM table_name_98 WHERE react > 0.20400000000000001 AND time > 45.56 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (rank INTEGER, react VARCHAR, time VARCHAR) Question: Which Rank has a Reaction time larger than 0.20400000000000001, and a Time larger than 45.56? [/INST] SELECT MAX(rank) FROM table_name_98 WHERE... |
How many ranks have more than 7 lanes, and an Athlete of michael mathieu, and a Reaction time larger than 0.203? | CREATE TABLE table_name_3 (rank INTEGER, react VARCHAR, lane VARCHAR, athlete VARCHAR) | SELECT SUM(rank) FROM table_name_3 WHERE lane > 7 AND athlete = "michael mathieu" AND react > 0.203 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (rank INTEGER, react VARCHAR, lane VARCHAR, athlete VARCHAR) Question: How many ranks have more than 7 lanes, and an Athlete of michael mathieu, and a Reaction time larger than 0.203? [/INST] SELECT... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.