instruction stringlengths 12 244 | input stringlengths 27 489 | output stringlengths 18 557 | text stringlengths 194 1.14k |
|---|---|---|---|
Who was the home team in the match that had an away team of Convoy Sun Hei Team B? | CREATE TABLE table_name_97 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_97 WHERE away_team = "convoy sun hei team b" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (home_team VARCHAR, away_team VARCHAR) Question: Who was the home team in the match that had an away team of Convoy Sun Hei Team B? [/INST] SELECT home_team FROM table_name_97 WHERE away_team = "co... |
What time did the match with an away team of Happy Valley Team B start? | CREATE TABLE table_name_30 (time VARCHAR, away_team VARCHAR) | SELECT time FROM table_name_30 WHERE away_team = "happy valley team b" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (time VARCHAR, away_team VARCHAR) Question: What time did the match with an away team of Happy Valley Team B start? [/INST] SELECT time FROM table_name_30 WHERE away_team = "happy valley team b" </... |
What is the 2nd leg when second team is Sumykhimprom? | CREATE TABLE table_name_98 (team__number2 VARCHAR) | SELECT 2 AS nd_leg FROM table_name_98 WHERE team__number2 = "sumykhimprom" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (team__number2 VARCHAR) Question: What is the 2nd leg when second team is Sumykhimprom? [/INST] SELECT 2 AS nd_leg FROM table_name_98 WHERE team__number2 = "sumykhimprom" </s> |
What is the 1st leg when team number 1 is CSU SIBIU? | CREATE TABLE table_name_53 (team__number1 VARCHAR) | SELECT 1 AS st_leg FROM table_name_53 WHERE team__number1 = "csu sibiu" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (team__number1 VARCHAR) Question: What is the 1st leg when team number 1 is CSU SIBIU? [/INST] SELECT 1 AS st_leg FROM table_name_53 WHERE team__number1 = "csu sibiu" </s> |
Which Time/Retired has Laps smaller than 100, and Points larger than 0? | CREATE TABLE table_name_99 (time_retired VARCHAR, laps VARCHAR, points VARCHAR) | SELECT time_retired FROM table_name_99 WHERE laps < 100 AND points > 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (time_retired VARCHAR, laps VARCHAR, points VARCHAR) Question: Which Time/Retired has Laps smaller than 100, and Points larger than 0? [/INST] SELECT time_retired FROM table_name_99 WHERE laps < 10... |
Which Laps have a Time/Retired of + 4 laps, and a Grid larger than 18? | CREATE TABLE table_name_72 (laps INTEGER, time_retired VARCHAR, grid VARCHAR) | SELECT AVG(laps) FROM table_name_72 WHERE time_retired = "+ 4 laps" AND grid > 18 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (laps INTEGER, time_retired VARCHAR, grid VARCHAR) Question: Which Laps have a Time/Retired of + 4 laps, and a Grid larger than 18? [/INST] SELECT AVG(laps) FROM table_name_72 WHERE time_retired = ... |
Which Team has Laps of 100, and a Time/Retired of +8.6 secs? | CREATE TABLE table_name_33 (team VARCHAR, laps VARCHAR, time_retired VARCHAR) | SELECT team FROM table_name_33 WHERE laps = 100 AND time_retired = "+8.6 secs" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (team VARCHAR, laps VARCHAR, time_retired VARCHAR) Question: Which Team has Laps of 100, and a Time/Retired of +8.6 secs? [/INST] SELECT team FROM table_name_33 WHERE laps = 100 AND time_retired = ... |
What strike rate is 9 the matches? | CREATE TABLE table_name_97 (strike_rate VARCHAR, matches VARCHAR) | SELECT strike_rate FROM table_name_97 WHERE matches = "9" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (strike_rate VARCHAR, matches VARCHAR) Question: What strike rate is 9 the matches? [/INST] SELECT strike_rate FROM table_name_97 WHERE matches = "9" </s> |
Which player has 79.62 as the strike rate? | CREATE TABLE table_name_89 (player VARCHAR, strike_rate VARCHAR) | SELECT player FROM table_name_89 WHERE strike_rate = "79.62" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (player VARCHAR, strike_rate VARCHAR) Question: Which player has 79.62 as the strike rate? [/INST] SELECT player FROM table_name_89 WHERE strike_rate = "79.62" </s> |
With 10 as matches, and 469 runs, what is the strike rate? | CREATE TABLE table_name_24 (strike_rate VARCHAR, matches VARCHAR, runs VARCHAR) | SELECT strike_rate FROM table_name_24 WHERE matches = "10" AND runs = "469" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (strike_rate VARCHAR, matches VARCHAR, runs VARCHAR) Question: With 10 as matches, and 469 runs, what is the strike rate? [/INST] SELECT strike_rate FROM table_name_24 WHERE matches = "10" AND runs... |
When the strike rate is 70.10, what is the balls? | CREATE TABLE table_name_36 (balls VARCHAR, strike_rate VARCHAR) | SELECT balls FROM table_name_36 WHERE strike_rate = "70.10" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (balls VARCHAR, strike_rate VARCHAR) Question: When the strike rate is 70.10, what is the balls? [/INST] SELECT balls FROM table_name_36 WHERE strike_rate = "70.10" </s> |
What nation has a time of 51.35 in the final heat? | CREATE TABLE table_name_89 (nation VARCHAR, time VARCHAR, heat_semifinal_final VARCHAR) | SELECT nation FROM table_name_89 WHERE time = "51.35" AND heat_semifinal_final = "final" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (nation VARCHAR, time VARCHAR, heat_semifinal_final VARCHAR) Question: What nation has a time of 51.35 in the final heat? [/INST] SELECT nation FROM table_name_89 WHERE time = "51.35" AND heat_semi... |
Which heat, semifinal or final has a time of 48.97? | CREATE TABLE table_name_41 (heat_semifinal_final VARCHAR, time VARCHAR) | SELECT heat_semifinal_final FROM table_name_41 WHERE time = "48.97" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (heat_semifinal_final VARCHAR, time VARCHAR) Question: Which heat, semifinal or final has a time of 48.97? [/INST] SELECT heat_semifinal_final FROM table_name_41 WHERE time = "48.97" </s> |
What heat, semifinal or final has a time of 25.00? | CREATE TABLE table_name_31 (heat_semifinal_final VARCHAR, time VARCHAR) | SELECT heat_semifinal_final FROM table_name_31 WHERE time = "25.00" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (heat_semifinal_final VARCHAR, time VARCHAR) Question: What heat, semifinal or final has a time of 25.00? [/INST] SELECT heat_semifinal_final FROM table_name_31 WHERE time = "25.00" </s> |
What date was the men's 100m breaststroke in heat 6? | CREATE TABLE table_name_74 (date VARCHAR, event VARCHAR, heat_semifinal_final VARCHAR) | SELECT date FROM table_name_74 WHERE event = "men's 100m breaststroke" AND heat_semifinal_final = "heat 6" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (date VARCHAR, event VARCHAR, heat_semifinal_final VARCHAR) Question: What date was the men's 100m breaststroke in heat 6? [/INST] SELECT date FROM table_name_74 WHERE event = "men's 100m breaststr... |
Marion Buisson with a 4.00 of o had what result? | CREATE TABLE table_name_89 (result VARCHAR, name VARCHAR) | SELECT result FROM table_name_89 WHERE 400 = "o" AND name = "marion buisson" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (result VARCHAR, name VARCHAR) Question: Marion Buisson with a 4.00 of o had what result? [/INST] SELECT result FROM table_name_89 WHERE 400 = "o" AND name = "marion buisson" </s> |
Anastasija Reiberger from Germany had what 4.00? | CREATE TABLE table_name_51 (nationality VARCHAR, name VARCHAR) | SELECT 400 FROM table_name_51 WHERE nationality = "germany" AND name = "anastasija reiberger" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (nationality VARCHAR, name VARCHAR) Question: Anastasija Reiberger from Germany had what 4.00? [/INST] SELECT 400 FROM table_name_51 WHERE nationality = "germany" AND name = "anastasija reiberger" ... |
Alana Boyd of group B with a 4.30 result has what nationality? | CREATE TABLE table_name_24 (nationality VARCHAR, name VARCHAR, group VARCHAR, result VARCHAR) | SELECT nationality FROM table_name_24 WHERE group = "b" AND result = "4.30" AND name = "alana boyd" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (nationality VARCHAR, name VARCHAR, group VARCHAR, result VARCHAR) Question: Alana Boyd of group B with a 4.30 result has what nationality? [/INST] SELECT nationality FROM table_name_24 WHERE group... |
Roslinda Samsu has what nationality? | CREATE TABLE table_name_87 (nationality VARCHAR, name VARCHAR) | SELECT nationality FROM table_name_87 WHERE name = "roslinda samsu" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (nationality VARCHAR, name VARCHAR) Question: Roslinda Samsu has what nationality? [/INST] SELECT nationality FROM table_name_87 WHERE name = "roslinda samsu" </s> |
What nation is Marion Buisson playing for? | CREATE TABLE table_name_49 (nationality VARCHAR, name VARCHAR) | SELECT nationality FROM table_name_49 WHERE name = "marion buisson" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (nationality VARCHAR, name VARCHAR) Question: What nation is Marion Buisson playing for? [/INST] SELECT nationality FROM table_name_49 WHERE name = "marion buisson" </s> |
Who is the rower from Canada? | CREATE TABLE table_name_80 (rowers VARCHAR, country VARCHAR) | SELECT rowers FROM table_name_80 WHERE country = "canada" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (rowers VARCHAR, country VARCHAR) Question: Who is the rower from Canada? [/INST] SELECT rowers FROM table_name_80 WHERE country = "canada" </s> |
What is the sum of the rank of the rower with an r note from Australia? | CREATE TABLE table_name_6 (rank INTEGER, notes VARCHAR, country VARCHAR) | SELECT SUM(rank) FROM table_name_6 WHERE notes = "r" AND country = "australia" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (rank INTEGER, notes VARCHAR, country VARCHAR) Question: What is the sum of the rank of the rower with an r note from Australia? [/INST] SELECT SUM(rank) FROM table_name_6 WHERE notes = "r" AND coun... |
What is the country with a rank less than 2? | CREATE TABLE table_name_98 (country VARCHAR, rank INTEGER) | SELECT country FROM table_name_98 WHERE rank < 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (country VARCHAR, rank INTEGER) Question: What is the country with a rank less than 2? [/INST] SELECT country FROM table_name_98 WHERE rank < 2 </s> |
What notes did Gabriella Bascelli receive? | CREATE TABLE table_name_41 (notes VARCHAR, athlete VARCHAR) | SELECT notes FROM table_name_41 WHERE athlete = "gabriella bascelli" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (notes VARCHAR, athlete VARCHAR) Question: What notes did Gabriella Bascelli receive? [/INST] SELECT notes FROM table_name_41 WHERE athlete = "gabriella bascelli" </s> |
What rank did the time of 7:31.90 receive? | CREATE TABLE table_name_62 (rank VARCHAR, time VARCHAR) | SELECT COUNT(rank) FROM table_name_62 WHERE time = "7:31.90" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (rank VARCHAR, time VARCHAR) Question: What rank did the time of 7:31.90 receive? [/INST] SELECT COUNT(rank) FROM table_name_62 WHERE time = "7:31.90" </s> |
Which Romaji Title has a Japanese Title of 女王の教室? | CREATE TABLE table_name_64 (romaji_title VARCHAR, japanese_title VARCHAR) | SELECT romaji_title FROM table_name_64 WHERE japanese_title = "女王の教室" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (romaji_title VARCHAR, japanese_title VARCHAR) Question: Which Romaji Title has a Japanese Title of 女王の教室? [/INST] SELECT romaji_title FROM table_name_64 WHERE japanese_title = "女王の教室" </s> |
How many Episodes have a Romaji Title of slow dance? | CREATE TABLE table_name_29 (episodes INTEGER, romaji_title VARCHAR) | SELECT SUM(episodes) FROM table_name_29 WHERE romaji_title = "slow dance" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (episodes INTEGER, romaji_title VARCHAR) Question: How many Episodes have a Romaji Title of slow dance? [/INST] SELECT SUM(episodes) FROM table_name_29 WHERE romaji_title = "slow dance" </s> |
How many Episodes have a Romaji Title of dragon zakura? | CREATE TABLE table_name_90 (episodes VARCHAR, romaji_title VARCHAR) | SELECT COUNT(episodes) FROM table_name_90 WHERE romaji_title = "dragon zakura" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (episodes VARCHAR, romaji_title VARCHAR) Question: How many Episodes have a Romaji Title of dragon zakura? [/INST] SELECT COUNT(episodes) FROM table_name_90 WHERE romaji_title = "dragon zakura" </s... |
Which Format has a Label of columbia, and a Catalog smaller than 88697411432, and a Date of october 24, 2008? | CREATE TABLE table_name_89 (format VARCHAR, date VARCHAR, label VARCHAR, catalog VARCHAR) | SELECT format FROM table_name_89 WHERE label = "columbia" AND catalog < 88697411432 AND date = "october 24, 2008" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (format VARCHAR, date VARCHAR, label VARCHAR, catalog VARCHAR) Question: Which Format has a Label of columbia, and a Catalog smaller than 88697411432, and a Date of october 24, 2008? [/INST] SELECT... |
Which Catalog has a Date of july 15, 2011? | CREATE TABLE table_name_73 (catalog INTEGER, date VARCHAR) | SELECT AVG(catalog) FROM table_name_73 WHERE date = "july 15, 2011" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (catalog INTEGER, date VARCHAR) Question: Which Catalog has a Date of july 15, 2011? [/INST] SELECT AVG(catalog) FROM table_name_73 WHERE date = "july 15, 2011" </s> |
Which opponent was on July 21, 2008? | CREATE TABLE table_name_57 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_57 WHERE date = "july 21, 2008" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (opponent VARCHAR, date VARCHAR) Question: Which opponent was on July 21, 2008? [/INST] SELECT opponent FROM table_name_57 WHERE date = "july 21, 2008" </s> |
What was the date of the tournament with a clay surface and an opponent of Irina Falconi? | CREATE TABLE table_name_43 (date VARCHAR, surface VARCHAR, opponent VARCHAR) | SELECT date FROM table_name_43 WHERE surface = "clay" AND opponent = "irina falconi" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (date VARCHAR, surface VARCHAR, opponent VARCHAR) Question: What was the date of the tournament with a clay surface and an opponent of Irina Falconi? [/INST] SELECT date FROM table_name_43 WHERE su... |
Who was the opponent on May 10, 2009? | CREATE TABLE table_name_5 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_5 WHERE date = "may 10, 2009" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (opponent VARCHAR, date VARCHAR) Question: Who was the opponent on May 10, 2009? [/INST] SELECT opponent FROM table_name_5 WHERE date = "may 10, 2009" </s> |
What is the score of the home team, bath city? | CREATE TABLE table_name_16 (score VARCHAR, home_team VARCHAR) | SELECT score FROM table_name_16 WHERE home_team = "bath city" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (score VARCHAR, home_team VARCHAR) Question: What is the score of the home team, bath city? [/INST] SELECT score FROM table_name_16 WHERE home_team = "bath city" </s> |
What was the score for the away team southport? | CREATE TABLE table_name_13 (score VARCHAR, away_team VARCHAR) | SELECT score FROM table_name_13 WHERE away_team = "southport" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (score VARCHAR, away_team VARCHAR) Question: What was the score for the away team southport? [/INST] SELECT score FROM table_name_13 WHERE away_team = "southport" </s> |
What is the home team that had an away team of lincoln city? | CREATE TABLE table_name_21 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_21 WHERE away_team = "lincoln city" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (home_team VARCHAR, away_team VARCHAR) Question: What is the home team that had an away team of lincoln city? [/INST] SELECT home_team FROM table_name_21 WHERE away_team = "lincoln city" </s> |
What date had a game with wycombe wanderers as the away team? | CREATE TABLE table_name_28 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_28 WHERE away_team = "wycombe wanderers" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (date VARCHAR, away_team VARCHAR) Question: What date had a game with wycombe wanderers as the away team? [/INST] SELECT date FROM table_name_28 WHERE away_team = "wycombe wanderers" </s> |
How many places have an Artist of augustė, and a Draw smaller than 6? | CREATE TABLE table_name_80 (place VARCHAR, artist VARCHAR, draw VARCHAR) | SELECT COUNT(place) FROM table_name_80 WHERE artist = "augustė" AND draw < 6 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (place VARCHAR, artist VARCHAR, draw VARCHAR) Question: How many places have an Artist of augustė, and a Draw smaller than 6? [/INST] SELECT COUNT(place) FROM table_name_80 WHERE artist = "augustė"... |
What is the latest year the world championships were held in Thun? | CREATE TABLE table_name_71 (year INTEGER, place VARCHAR) | SELECT MAX(year) FROM table_name_71 WHERE place = "thun" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (year INTEGER, place VARCHAR) Question: What is the latest year the world championships were held in Thun? [/INST] SELECT MAX(year) FROM table_name_71 WHERE place = "thun" </s> |
Who won gold when the world championships were held in Phoenix? | CREATE TABLE table_name_21 (gold VARCHAR, place VARCHAR) | SELECT gold FROM table_name_21 WHERE place = "phoenix" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (gold VARCHAR, place VARCHAR) Question: Who won gold when the world championships were held in Phoenix? [/INST] SELECT gold FROM table_name_21 WHERE place = "phoenix" </s> |
What is the smallest ANSI code for adler township when Longitude is more than -101.333926, GEO ID is less than 3806700900, and Land ( sqmi ) is more than 35.84? | CREATE TABLE table_name_18 (ansi_code INTEGER, land___sqmi__ VARCHAR, township VARCHAR, longitude VARCHAR, geo_id VARCHAR) | SELECT MIN(ansi_code) FROM table_name_18 WHERE longitude > -101.333926 AND geo_id < 3806700900 AND township = "adler" AND land___sqmi__ > 35.84 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (ansi_code INTEGER, land___sqmi__ VARCHAR, township VARCHAR, longitude VARCHAR, geo_id VARCHAR) Question: What is the smallest ANSI code for adler township when Longitude is more than -101.333926, ... |
Cass county has 0.008 Water (sqmi), less than 35.874 Land (sqmi), more than 35 Pop. (2010), and what average latitude? | CREATE TABLE table_name_72 (latitude INTEGER, water__sqmi_ VARCHAR, county VARCHAR, land___sqmi__ VARCHAR, pop__2010_ VARCHAR) | SELECT AVG(latitude) FROM table_name_72 WHERE land___sqmi__ < 35.874 AND pop__2010_ > 35 AND county = "cass" AND water__sqmi_ = 0.008 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (latitude INTEGER, water__sqmi_ VARCHAR, county VARCHAR, land___sqmi__ VARCHAR, pop__2010_ VARCHAR) Question: Cass county has 0.008 Water (sqmi), less than 35.874 Land (sqmi), more than 35 Pop. (20... |
In what county is the latitude less than 46.935364 and GEO ID is 3801700500? | CREATE TABLE table_name_4 (county VARCHAR, latitude VARCHAR, geo_id VARCHAR) | SELECT county FROM table_name_4 WHERE latitude < 46.935364 AND geo_id = 3801700500 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (county VARCHAR, latitude VARCHAR, geo_id VARCHAR) Question: In what county is the latitude less than 46.935364 and GEO ID is 3801700500? [/INST] SELECT county FROM table_name_4 WHERE latitude < 46.... |
Who was the opponent at the game with a score of 35-14? | CREATE TABLE table_name_33 (opponent VARCHAR, score VARCHAR) | SELECT opponent FROM table_name_33 WHERE score = "35-14" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (opponent VARCHAR, score VARCHAR) Question: Who was the opponent at the game with a score of 35-14? [/INST] SELECT opponent FROM table_name_33 WHERE score = "35-14" </s> |
What was the result of the game when the record was 5-1? | CREATE TABLE table_name_21 (result VARCHAR, record VARCHAR) | SELECT result FROM table_name_21 WHERE record = "5-1" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (result VARCHAR, record VARCHAR) Question: What was the result of the game when the record was 5-1? [/INST] SELECT result FROM table_name_21 WHERE record = "5-1" </s> |
What was the result of the game against the Los Angeles Dons? | CREATE TABLE table_name_49 (result VARCHAR, opponent VARCHAR) | SELECT result FROM table_name_49 WHERE opponent = "los angeles dons" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (result VARCHAR, opponent VARCHAR) Question: What was the result of the game against the Los Angeles Dons? [/INST] SELECT result FROM table_name_49 WHERE opponent = "los angeles dons" </s> |
Which Year has a Venue of bydgoszcz, poland, and an Event of junior team? | CREATE TABLE table_name_75 (year INTEGER, venue VARCHAR, event VARCHAR) | SELECT AVG(year) FROM table_name_75 WHERE venue = "bydgoszcz, poland" AND event = "junior team" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (year INTEGER, venue VARCHAR, event VARCHAR) Question: Which Year has a Venue of bydgoszcz, poland, and an Event of junior team? [/INST] SELECT AVG(year) FROM table_name_75 WHERE venue = "bydgoszcz... |
Which Venue has a Year smaller than 2009, and an Event of 3000 m, and a Competition of world youth championships? | CREATE TABLE table_name_72 (venue VARCHAR, competition VARCHAR, year VARCHAR, event VARCHAR) | SELECT venue FROM table_name_72 WHERE year < 2009 AND event = "3000 m" AND competition = "world youth championships" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (venue VARCHAR, competition VARCHAR, year VARCHAR, event VARCHAR) Question: Which Venue has a Year smaller than 2009, and an Event of 3000 m, and a Competition of world youth championships? [/INST]... |
Which Year has a Competition of commonwealth youth games? | CREATE TABLE table_name_94 (year INTEGER, competition VARCHAR) | SELECT AVG(year) FROM table_name_94 WHERE competition = "commonwealth youth games" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (year INTEGER, competition VARCHAR) Question: Which Year has a Competition of commonwealth youth games? [/INST] SELECT AVG(year) FROM table_name_94 WHERE competition = "commonwealth youth games" </... |
What is the total for 1986? | CREATE TABLE table_name_86 (rank VARCHAR, year VARCHAR) | SELECT COUNT(rank) FROM table_name_86 WHERE year = 1986 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (rank VARCHAR, year VARCHAR) Question: What is the total for 1986? [/INST] SELECT COUNT(rank) FROM table_name_86 WHERE year = 1986 </s> |
What is the name before 1954 with more than 15 floors? | CREATE TABLE table_name_61 (name VARCHAR, year VARCHAR, floors VARCHAR) | SELECT name FROM table_name_61 WHERE year < 1954 AND floors > 15 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_61 (name VARCHAR, year VARCHAR, floors VARCHAR) Question: What is the name before 1954 with more than 15 floors? [/INST] SELECT name FROM table_name_61 WHERE year < 1954 AND floors > 15 </s> |
What is the lowest rank for El Paso Natural Gas Company Building? | CREATE TABLE table_name_86 (rank INTEGER, name VARCHAR) | SELECT MIN(rank) FROM table_name_86 WHERE name = "el paso natural gas company building" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (rank INTEGER, name VARCHAR) Question: What is the lowest rank for El Paso Natural Gas Company Building? [/INST] SELECT MIN(rank) FROM table_name_86 WHERE name = "el paso natural gas company buildi... |
What is the rank of the gauteng province? | CREATE TABLE table_name_64 (rank VARCHAR, province VARCHAR) | SELECT rank FROM table_name_64 WHERE province = "gauteng" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (rank VARCHAR, province VARCHAR) Question: What is the rank of the gauteng province? [/INST] SELECT rank FROM table_name_64 WHERE province = "gauteng" </s> |
What is the lowest 2013 population estimate of the province with a 23.7 percentage? | CREATE TABLE table_name_57 (population_estimate__2013_ INTEGER, percentage VARCHAR) | SELECT MIN(population_estimate__2013_) FROM table_name_57 WHERE percentage = 23.7 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (population_estimate__2013_ INTEGER, percentage VARCHAR) Question: What is the lowest 2013 population estimate of the province with a 23.7 percentage? [/INST] SELECT MIN(population_estimate__2013_)... |
What year(s) was Duisburg runner-up? | CREATE TABLE table_name_81 (years_runner_up VARCHAR, team VARCHAR) | SELECT years_runner_up FROM table_name_81 WHERE team = "duisburg" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (years_runner_up VARCHAR, team VARCHAR) Question: What year(s) was Duisburg runner-up? [/INST] SELECT years_runner_up FROM table_name_81 WHERE team = "duisburg" </s> |
What was the earliest year with a note of 18.04 m wl? | CREATE TABLE table_name_48 (year INTEGER, notes VARCHAR) | SELECT MIN(year) FROM table_name_48 WHERE notes = "18.04 m wl" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (year INTEGER, notes VARCHAR) Question: What was the earliest year with a note of 18.04 m wl? [/INST] SELECT MIN(year) FROM table_name_48 WHERE notes = "18.04 m wl" </s> |
What venue had a competition of World Junior Championships before 2011? | CREATE TABLE table_name_29 (venue VARCHAR, year VARCHAR, competition VARCHAR) | SELECT venue FROM table_name_29 WHERE year < 2011 AND competition = "world junior championships" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (venue VARCHAR, year VARCHAR, competition VARCHAR) Question: What venue had a competition of World Junior Championships before 2011? [/INST] SELECT venue FROM table_name_29 WHERE year < 2011 AND co... |
Who was the developer of Call of Duty: Black Ops? | CREATE TABLE table_name_46 (developer_s_ VARCHAR, game VARCHAR) | SELECT developer_s_ FROM table_name_46 WHERE game = "call of duty: black ops" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (developer_s_ VARCHAR, game VARCHAR) Question: Who was the developer of Call of Duty: Black Ops? [/INST] SELECT developer_s_ FROM table_name_46 WHERE game = "call of duty: black ops" </s> |
What is the platform for the game of the third-person shooter genre? | CREATE TABLE table_name_65 (platform_s_ VARCHAR, genre VARCHAR) | SELECT platform_s_ FROM table_name_65 WHERE genre = "third-person shooter" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (platform_s_ VARCHAR, genre VARCHAR) Question: What is the platform for the game of the third-person shooter genre? [/INST] SELECT platform_s_ FROM table_name_65 WHERE genre = "third-person shooter... |
What is the platform of the game from 2007? | CREATE TABLE table_name_95 (platform_s_ VARCHAR, year VARCHAR) | SELECT platform_s_ FROM table_name_95 WHERE year = 2007 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (platform_s_ VARCHAR, year VARCHAR) Question: What is the platform of the game from 2007? [/INST] SELECT platform_s_ FROM table_name_95 WHERE year = 2007 </s> |
Who was the developer of Resident Evil 4? | CREATE TABLE table_name_4 (developer_s_ VARCHAR, game VARCHAR) | SELECT developer_s_ FROM table_name_4 WHERE game = "resident evil 4" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (developer_s_ VARCHAR, game VARCHAR) Question: Who was the developer of Resident Evil 4? [/INST] SELECT developer_s_ FROM table_name_4 WHERE game = "resident evil 4" </s> |
What was the rank of flori lang when his time was less than 22.27 | CREATE TABLE table_name_52 (rank INTEGER, name VARCHAR, time VARCHAR) | SELECT SUM(rank) FROM table_name_52 WHERE name = "flori lang" AND time < 22.27 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (rank INTEGER, name VARCHAR, time VARCHAR) Question: What was the rank of flori lang when his time was less than 22.27 [/INST] SELECT SUM(rank) FROM table_name_52 WHERE name = "flori lang" AND time... |
What lane had a heat after 12, a rank of 38 and a time larger than 22.67? | CREATE TABLE table_name_59 (lane INTEGER, time VARCHAR, heat VARCHAR, rank VARCHAR) | SELECT AVG(lane) FROM table_name_59 WHERE heat > 12 AND rank = 38 AND time > 22.67 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (lane INTEGER, time VARCHAR, heat VARCHAR, rank VARCHAR) Question: What lane had a heat after 12, a rank of 38 and a time larger than 22.67? [/INST] SELECT AVG(lane) FROM table_name_59 WHERE heat >... |
What game has 27-12 record? | CREATE TABLE table_name_14 (game VARCHAR, record VARCHAR) | SELECT game FROM table_name_14 WHERE record = "27-12" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (game VARCHAR, record VARCHAR) Question: What game has 27-12 record? [/INST] SELECT game FROM table_name_14 WHERE record = "27-12" </s> |
What date was the record 21-11? | CREATE TABLE table_name_43 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_43 WHERE record = "21-11" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (date VARCHAR, record VARCHAR) Question: What date was the record 21-11? [/INST] SELECT date FROM table_name_43 WHERE record = "21-11" </s> |
What is the location/attendance for the w 95-93 score? | CREATE TABLE table_name_33 (location_attendance VARCHAR, score VARCHAR) | SELECT location_attendance FROM table_name_33 WHERE score = "w 95-93" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (location_attendance VARCHAR, score VARCHAR) Question: What is the location/attendance for the w 95-93 score? [/INST] SELECT location_attendance FROM table_name_33 WHERE score = "w 95-93" </s> |
What is the location/attendance with a 26-11 record? | CREATE TABLE table_name_95 (location_attendance VARCHAR, record VARCHAR) | SELECT location_attendance FROM table_name_95 WHERE record = "26-11" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (location_attendance VARCHAR, record VARCHAR) Question: What is the location/attendance with a 26-11 record? [/INST] SELECT location_attendance FROM table_name_95 WHERE record = "26-11" </s> |
Which opponent has a 26-12 record? | CREATE TABLE table_name_44 (opponent VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_44 WHERE record = "26-12" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (opponent VARCHAR, record VARCHAR) Question: Which opponent has a 26-12 record? [/INST] SELECT opponent FROM table_name_44 WHERE record = "26-12" </s> |
What is Lee Ka Man's Time? | CREATE TABLE table_name_95 (time VARCHAR, rower VARCHAR) | SELECT time FROM table_name_95 WHERE rower = "lee ka man" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (time VARCHAR, rower VARCHAR) Question: What is Lee Ka Man's Time? [/INST] SELECT time FROM table_name_95 WHERE rower = "lee ka man" </s> |
What is the Rank of the rower with a Time of 8:23.02? | CREATE TABLE table_name_35 (rank VARCHAR, time VARCHAR) | SELECT COUNT(rank) FROM table_name_35 WHERE time = "8:23.02" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (rank VARCHAR, time VARCHAR) Question: What is the Rank of the rower with a Time of 8:23.02? [/INST] SELECT COUNT(rank) FROM table_name_35 WHERE time = "8:23.02" </s> |
What is the most gold when the rank is 7 and bronze is less than 0? | CREATE TABLE table_name_40 (gold INTEGER, rank VARCHAR, bronze VARCHAR) | SELECT MAX(gold) FROM table_name_40 WHERE rank = "7" AND bronze < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (gold INTEGER, rank VARCHAR, bronze VARCHAR) Question: What is the most gold when the rank is 7 and bronze is less than 0? [/INST] SELECT MAX(gold) FROM table_name_40 WHERE rank = "7" AND bronze < ... |
what is the most gold when the total is 7? | CREATE TABLE table_name_33 (gold INTEGER, total VARCHAR) | SELECT MAX(gold) FROM table_name_33 WHERE total = 7 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (gold INTEGER, total VARCHAR) Question: what is the most gold when the total is 7? [/INST] SELECT MAX(gold) FROM table_name_33 WHERE total = 7 </s> |
what is the least gold when the rank is 10 and silver is less than 0? | CREATE TABLE table_name_71 (gold INTEGER, rank VARCHAR, silver VARCHAR) | SELECT MIN(gold) FROM table_name_71 WHERE rank = "10" AND silver < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (gold INTEGER, rank VARCHAR, silver VARCHAR) Question: what is the least gold when the rank is 10 and silver is less than 0? [/INST] SELECT MIN(gold) FROM table_name_71 WHERE rank = "10" AND silver... |
what is the lowest total when the nation is sweden (swe) and silver is less than 0? | CREATE TABLE table_name_24 (total INTEGER, nation VARCHAR, silver VARCHAR) | SELECT MIN(total) FROM table_name_24 WHERE nation = "sweden (swe)" AND silver < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (total INTEGER, nation VARCHAR, silver VARCHAR) Question: what is the lowest total when the nation is sweden (swe) and silver is less than 0? [/INST] SELECT MIN(total) FROM table_name_24 WHERE nati... |
what is the average total when silver is more than 2, bronze is 12 and gold is less than 12? | CREATE TABLE table_name_64 (total INTEGER, gold VARCHAR, silver VARCHAR, bronze VARCHAR) | SELECT AVG(total) FROM table_name_64 WHERE silver > 2 AND bronze = 12 AND gold < 12 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (total INTEGER, gold VARCHAR, silver VARCHAR, bronze VARCHAR) Question: what is the average total when silver is more than 2, bronze is 12 and gold is less than 12? [/INST] SELECT AVG(total) FROM t... |
What is the longitude with a latitude of 48.930222 with a Geo ID smaller than 3806755660? | CREATE TABLE table_name_38 (longitude VARCHAR, latitude VARCHAR, geo_id VARCHAR) | SELECT COUNT(longitude) FROM table_name_38 WHERE latitude = 48.930222 AND geo_id < 3806755660 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (longitude VARCHAR, latitude VARCHAR, geo_id VARCHAR) Question: What is the longitude with a latitude of 48.930222 with a Geo ID smaller than 3806755660? [/INST] SELECT COUNT(longitude) FROM table_... |
What is the latitude that has a sqmi smaller than 34.401, a Geo ID smaller than 3807157722, and a Longitude of -98.475995? | CREATE TABLE table_name_18 (latitude VARCHAR, longitude VARCHAR, land___sqmi__ VARCHAR, geo_id VARCHAR) | SELECT latitude FROM table_name_18 WHERE land___sqmi__ < 34.401 AND geo_id < 3807157722 AND longitude = -98.475995 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (latitude VARCHAR, longitude VARCHAR, land___sqmi__ VARCHAR, geo_id VARCHAR) Question: What is the latitude that has a sqmi smaller than 34.401, a Geo ID smaller than 3807157722, and a Longitude of... |
What is the total longitude of Nogosek and a GEO ID larger than 3809357060? | CREATE TABLE table_name_68 (longitude VARCHAR, township VARCHAR, geo_id VARCHAR) | SELECT COUNT(longitude) FROM table_name_68 WHERE township = "nogosek" AND geo_id > 3809357060 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (longitude VARCHAR, township VARCHAR, geo_id VARCHAR) Question: What is the total longitude of Nogosek and a GEO ID larger than 3809357060? [/INST] SELECT COUNT(longitude) FROM table_name_68 WHERE ... |
What Band number has a Power (W) of 400 or less? | CREATE TABLE table_name_46 (band INTEGER, power__w_ INTEGER) | SELECT SUM(band) FROM table_name_46 WHERE power__w_ < 400 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (band INTEGER, power__w_ INTEGER) Question: What Band number has a Power (W) of 400 or less? [/INST] SELECT SUM(band) FROM table_name_46 WHERE power__w_ < 400 </s> |
What Band's Power (W) is 400 or less? | CREATE TABLE table_name_33 (band INTEGER, power__w_ INTEGER) | SELECT MAX(band) FROM table_name_33 WHERE power__w_ > 400 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (band INTEGER, power__w_ INTEGER) Question: What Band's Power (W) is 400 or less? [/INST] SELECT MAX(band) FROM table_name_33 WHERE power__w_ > 400 </s> |
What is the Wavelength of Frequency (MHz) 14.050–14.150? | CREATE TABLE table_name_53 (wavelength VARCHAR, frequency__mhz_ VARCHAR) | SELECT wavelength FROM table_name_53 WHERE frequency__mhz_ = "14.050–14.150" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (wavelength VARCHAR, frequency__mhz_ VARCHAR) Question: What is the Wavelength of Frequency (MHz) 14.050–14.150? [/INST] SELECT wavelength FROM table_name_53 WHERE frequency__mhz_ = "14.050–14.150"... |
Who are the recipients in 1994? | CREATE TABLE table_name_73 (recipients_and_nominees VARCHAR, year VARCHAR) | SELECT recipients_and_nominees FROM table_name_73 WHERE year = 1994 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (recipients_and_nominees VARCHAR, year VARCHAR) Question: Who are the recipients in 1994? [/INST] SELECT recipients_and_nominees FROM table_name_73 WHERE year = 1994 </s> |
Who are the recipients that won for David Duchovny role/episode? | CREATE TABLE table_name_30 (recipients_and_nominees VARCHAR, role_episode VARCHAR, result VARCHAR) | SELECT recipients_and_nominees FROM table_name_30 WHERE role_episode = "david duchovny" AND result = "won" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (recipients_and_nominees VARCHAR, role_episode VARCHAR, result VARCHAR) Question: Who are the recipients that won for David Duchovny role/episode? [/INST] SELECT recipients_and_nominees FROM table_... |
What's the category in 1998 with the role/episode of David Duchovny? | CREATE TABLE table_name_37 (category VARCHAR, year VARCHAR, role_episode VARCHAR) | SELECT category FROM table_name_37 WHERE year = 1998 AND role_episode = "david duchovny" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (category VARCHAR, year VARCHAR, role_episode VARCHAR) Question: What's the category in 1998 with the role/episode of David Duchovny? [/INST] SELECT category FROM table_name_37 WHERE year = 1998 AN... |
Which network has more than 31.4 channels with a 4:3 aspect? | CREATE TABLE table_name_69 (network VARCHAR, aspect VARCHAR, channel VARCHAR) | SELECT network FROM table_name_69 WHERE aspect = "4:3" AND channel > 31.4 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (network VARCHAR, aspect VARCHAR, channel VARCHAR) Question: Which network has more than 31.4 channels with a 4:3 aspect? [/INST] SELECT network FROM table_name_69 WHERE aspect = "4:3" AND channel ... |
Which video is on channel 31.2 with a 4:3 aspect? | CREATE TABLE table_name_97 (video VARCHAR, aspect VARCHAR, channel VARCHAR) | SELECT video FROM table_name_97 WHERE aspect = "4:3" AND channel = 31.2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (video VARCHAR, aspect VARCHAR, channel VARCHAR) Question: Which video is on channel 31.2 with a 4:3 aspect? [/INST] SELECT video FROM table_name_97 WHERE aspect = "4:3" AND channel = 31.2 </s> |
Which video has a 16:9 aspect? | CREATE TABLE table_name_77 (video VARCHAR, aspect VARCHAR) | SELECT video FROM table_name_77 WHERE aspect = "16:9" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (video VARCHAR, aspect VARCHAR) Question: Which video has a 16:9 aspect? [/INST] SELECT video FROM table_name_77 WHERE aspect = "16:9" </s> |
What's the constituency number of the Seoni district and has none reserved? | CREATE TABLE table_name_94 (constituency_number VARCHAR, reserved_for___sc___st__none_ VARCHAR, district VARCHAR) | SELECT constituency_number FROM table_name_94 WHERE reserved_for___sc___st__none_ = "none" AND district = "seoni" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (constituency_number VARCHAR, reserved_for___sc___st__none_ VARCHAR, district VARCHAR) Question: What's the constituency number of the Seoni district and has none reserved? [/INST] SELECT constitue... |
What is the district of Paraswada with none reserved? | CREATE TABLE table_name_64 (district VARCHAR, reserved_for___sc___st__none_ VARCHAR, name VARCHAR) | SELECT district FROM table_name_64 WHERE reserved_for___sc___st__none_ = "none" AND name = "paraswada" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (district VARCHAR, reserved_for___sc___st__none_ VARCHAR, name VARCHAR) Question: What is the district of Paraswada with none reserved? [/INST] SELECT district FROM table_name_64 WHERE reserved_for... |
What's the reserved number for constituency number 108? | CREATE TABLE table_name_43 (reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR) | SELECT reserved_for___sc___st__none_ FROM table_name_43 WHERE constituency_number = "108" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR) Question: What's the reserved number for constituency number 108? [/INST] SELECT reserved_for___sc___st__none_ FROM table_name_4... |
What's the name of Constituency number 108? | CREATE TABLE table_name_65 (name VARCHAR, constituency_number VARCHAR) | SELECT name FROM table_name_65 WHERE constituency_number = "108" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (name VARCHAR, constituency_number VARCHAR) Question: What's the name of Constituency number 108? [/INST] SELECT name FROM table_name_65 WHERE constituency_number = "108" </s> |
What is the lowest total medals when there were 0 gold medals, 0 silver medals, and more than 1 bronze medal? | CREATE TABLE table_name_77 (total INTEGER, gold VARCHAR, bronze VARCHAR, silver VARCHAR) | SELECT MIN(total) FROM table_name_77 WHERE bronze > 1 AND silver = 0 AND gold < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (total INTEGER, gold VARCHAR, bronze VARCHAR, silver VARCHAR) Question: What is the lowest total medals when there were 0 gold medals, 0 silver medals, and more than 1 bronze medal? [/INST] SELECT ... |
What is the sum of the bronze medals when there were less than 8 total medals, 0 silver medals and a rank of 9? | CREATE TABLE table_name_49 (bronze INTEGER, silver VARCHAR, total VARCHAR, rank VARCHAR) | SELECT SUM(bronze) FROM table_name_49 WHERE total < 8 AND rank = 9 AND silver < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (bronze INTEGER, silver VARCHAR, total VARCHAR, rank VARCHAR) Question: What is the sum of the bronze medals when there were less than 8 total medals, 0 silver medals and a rank of 9? [/INST] SELEC... |
What nation had a rank higher than 4, a total of 2 medals and more than 0 silver medals? | CREATE TABLE table_name_19 (nation VARCHAR, silver VARCHAR, rank VARCHAR, total VARCHAR) | SELECT nation FROM table_name_19 WHERE rank > 4 AND total = 2 AND silver > 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (nation VARCHAR, silver VARCHAR, rank VARCHAR, total VARCHAR) Question: What nation had a rank higher than 4, a total of 2 medals and more than 0 silver medals? [/INST] SELECT nation FROM table_nam... |
What was the average rank for the team that had more than 5 medals and more than 6 gold medals? | CREATE TABLE table_name_9 (rank INTEGER, total VARCHAR, gold VARCHAR) | SELECT AVG(rank) FROM table_name_9 WHERE total > 5 AND gold > 6 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (rank INTEGER, total VARCHAR, gold VARCHAR) Question: What was the average rank for the team that had more than 5 medals and more than 6 gold medals? [/INST] SELECT AVG(rank) FROM table_name_9 WHERE... |
Which artist has a draw higher than 4 and fewer than 5 points? | CREATE TABLE table_name_7 (artist VARCHAR, draw VARCHAR, points VARCHAR) | SELECT artist FROM table_name_7 WHERE draw > 4 AND points < 5 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (artist VARCHAR, draw VARCHAR, points VARCHAR) Question: Which artist has a draw higher than 4 and fewer than 5 points? [/INST] SELECT artist FROM table_name_7 WHERE draw > 4 AND points < 5 </s> |
Which artist has 13 points? | CREATE TABLE table_name_42 (artist VARCHAR, points VARCHAR) | SELECT artist FROM table_name_42 WHERE points = 13 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (artist VARCHAR, points VARCHAR) Question: Which artist has 13 points? [/INST] SELECT artist FROM table_name_42 WHERE points = 13 </s> |
What is the greatest B score when the A score was less than 6.5? | CREATE TABLE table_name_4 (b_score INTEGER, a_score INTEGER) | SELECT MAX(b_score) FROM table_name_4 WHERE a_score < 6.5 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (b_score INTEGER, a_score INTEGER) Question: What is the greatest B score when the A score was less than 6.5? [/INST] SELECT MAX(b_score) FROM table_name_4 WHERE a_score < 6.5 </s> |
What is the Time of the Great Britain players with Notes of SA/B? | CREATE TABLE table_name_66 (time VARCHAR, notes VARCHAR, country VARCHAR) | SELECT time FROM table_name_66 WHERE notes = "sa/b" AND country = "great britain" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (time VARCHAR, notes VARCHAR, country VARCHAR) Question: What is the Time of the Great Britain players with Notes of SA/B? [/INST] SELECT time FROM table_name_66 WHERE notes = "sa/b" AND country = ... |
What is the Rowers of the race with a Time of 7:41.97 and Notes of FC? | CREATE TABLE table_name_99 (rowers VARCHAR, notes VARCHAR, time VARCHAR) | SELECT rowers FROM table_name_99 WHERE notes = "fc" AND time = "7:41.97" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (rowers VARCHAR, notes VARCHAR, time VARCHAR) Question: What is the Rowers of the race with a Time of 7:41.97 and Notes of FC? [/INST] SELECT rowers FROM table_name_99 WHERE notes = "fc" AND time =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.