context stringlengths 27 489 | answer stringlengths 18 557 | question stringlengths 12 243 | text stringlengths 103 1.05k |
|---|---|---|---|
CREATE TABLE table_name_20 (date VARCHAR, competition VARCHAR) | SELECT date FROM table_name_20 WHERE competition = "2002 african cup of nations" | The 2002 African Cup of Nations was held on what date? | <s>[INST]The 2002 African Cup of Nations was held on what date? Context: CREATE TABLE table_name_20 (date VARCHAR, competition VARCHAR)[/INST]SELECT date FROM table_name_20 WHERE competition = "2002 african cup of nations"</s> |
CREATE TABLE table_name_55 (away_team VARCHAR, crowd INTEGER) | SELECT away_team AS score FROM table_name_55 WHERE crowd > 6 OFFSET 872 | What did the away team score when the crowd was larger than 6,872? | <s>[INST]What did the away team score when the crowd was larger than 6,872? Context: CREATE TABLE table_name_55 (away_team VARCHAR, crowd INTEGER)[/INST]SELECT away_team AS score FROM table_name_55 WHERE crowd > 6 OFFSET 872</s> |
CREATE TABLE table_name_18 (points INTEGER, chassis VARCHAR, year VARCHAR) | SELECT AVG(points) FROM table_name_18 WHERE chassis = "ferrari 1512" AND year > 1965 | What is the average points of the Ferrari 1512 Chassis after 1965? | <s>[INST]What is the average points of the Ferrari 1512 Chassis after 1965? Context: CREATE TABLE table_name_18 (points INTEGER, chassis VARCHAR, year VARCHAR)[/INST]SELECT AVG(points) FROM table_name_18 WHERE chassis = "ferrari 1512" AND year > 1965</s> |
CREATE TABLE table_name_56 (tyres VARCHAR, points VARCHAR) | SELECT tyres FROM table_name_56 WHERE points = 8 | Which tyres received 8 points? | <s>[INST]Which tyres received 8 points? Context: CREATE TABLE table_name_56 (tyres VARCHAR, points VARCHAR)[/INST]SELECT tyres FROM table_name_56 WHERE points = 8</s> |
CREATE TABLE tryout (pPos VARCHAR) | SELECT COUNT(*) FROM tryout WHERE pPos = 'goalie' | How many students whose are playing the role of goalie? | <s>[INST]How many students whose are playing the role of goalie? Context: CREATE TABLE tryout (pPos VARCHAR)[/INST]SELECT COUNT(*) FROM tryout WHERE pPos = 'goalie'</s> |
CREATE TABLE table_1342393_10 (incumbent VARCHAR, district VARCHAR) | SELECT incumbent FROM table_1342393_10 WHERE district = "Georgia 5" | who won in the race in the section georgia 5 | <s>[INST]who won in the race in the section georgia 5 Context: CREATE TABLE table_1342393_10 (incumbent VARCHAR, district VARCHAR)[/INST]SELECT incumbent FROM table_1342393_10 WHERE district = "Georgia 5"</s> |
CREATE TABLE table_name_71 (melbourne VARCHAR, perth VARCHAR, sydney VARCHAR, gold_coast VARCHAR) | SELECT melbourne FROM table_name_71 WHERE sydney = "yes" AND gold_coast = "yes" AND perth = "yes" | Which Melbourne has Sydney yes, Gold Coast yes, and Perth yes? | <s>[INST]Which Melbourne has Sydney yes, Gold Coast yes, and Perth yes? Context: CREATE TABLE table_name_71 (melbourne VARCHAR, perth VARCHAR, sydney VARCHAR, gold_coast VARCHAR)[/INST]SELECT melbourne FROM table_name_71 WHERE sydney = "yes" AND gold_coast = "yes" AND perth = "yes"</s> |
CREATE TABLE table_name_88 (outcome VARCHAR, partner VARCHAR, year VARCHAR) | SELECT outcome FROM table_name_88 WHERE partner = "kang haeng-suk" AND year = "1982" | What was the outcome in 1982 with Kang Haeng-Suk as partner? | <s>[INST]What was the outcome in 1982 with Kang Haeng-Suk as partner? Context: CREATE TABLE table_name_88 (outcome VARCHAR, partner VARCHAR, year VARCHAR)[/INST]SELECT outcome FROM table_name_88 WHERE partner = "kang haeng-suk" AND year = "1982"</s> |
CREATE TABLE table_name_91 (grid VARCHAR, driver VARCHAR) | SELECT grid FROM table_name_91 WHERE driver = "buddy rice" | What was the grid of Buddy Rice? | <s>[INST]What was the grid of Buddy Rice? Context: CREATE TABLE table_name_91 (grid VARCHAR, driver VARCHAR)[/INST]SELECT grid FROM table_name_91 WHERE driver = "buddy rice"</s> |
CREATE TABLE table_name_31 (electorate VARCHAR, member VARCHAR, state VARCHAR, party VARCHAR) | SELECT electorate FROM table_name_31 WHERE state = "qld" AND party = "national" AND member = "hon evan adermann" | Which Electorate has a State of qld, a Party of national, and a Member of hon evan adermann? | <s>[INST]Which Electorate has a State of qld, a Party of national, and a Member of hon evan adermann? Context: CREATE TABLE table_name_31 (electorate VARCHAR, member VARCHAR, state VARCHAR, party VARCHAR)[/INST]SELECT electorate FROM table_name_31 WHERE state = "qld" AND party = "national" AND member = "hon evan aderma... |
CREATE TABLE table_name_99 (place INTEGER, artist VARCHAR, points VARCHAR) | SELECT AVG(place) FROM table_name_99 WHERE artist = "juliana pasha & luiz ejlli" AND points > 119 | what is the average place when the artist is juliana pasha & luiz ejlli and the points is more than 119? | <s>[INST]what is the average place when the artist is juliana pasha & luiz ejlli and the points is more than 119? Context: CREATE TABLE table_name_99 (place INTEGER, artist VARCHAR, points VARCHAR)[/INST]SELECT AVG(place) FROM table_name_99 WHERE artist = "juliana pasha & luiz ejlli" AND points > 119</s> |
CREATE TABLE table_1130632_1 (written_by VARCHAR, us_viewers__million_ VARCHAR) | SELECT written_by FROM table_1130632_1 WHERE us_viewers__million_ = "18.73" | Who wrote all the shows with 18.73 u.s. viewers? | <s>[INST]Who wrote all the shows with 18.73 u.s. viewers? Context: CREATE TABLE table_1130632_1 (written_by VARCHAR, us_viewers__million_ VARCHAR)[/INST]SELECT written_by FROM table_1130632_1 WHERE us_viewers__million_ = "18.73"</s> |
CREATE TABLE table_name_87 (competition VARCHAR, venue VARCHAR) | SELECT competition FROM table_name_87 WHERE venue = "arles, france" | Which competition was held in Arles, France? | <s>[INST]Which competition was held in Arles, France? Context: CREATE TABLE table_name_87 (competition VARCHAR, venue VARCHAR)[/INST]SELECT competition FROM table_name_87 WHERE venue = "arles, france"</s> |
CREATE TABLE table_name_35 (years VARCHAR, name VARCHAR) | SELECT years FROM table_name_35 WHERE name = "mount roskill grammar school" | What year was the name mount roskill grammar school? | <s>[INST]What year was the name mount roskill grammar school? Context: CREATE TABLE table_name_35 (years VARCHAR, name VARCHAR)[/INST]SELECT years FROM table_name_35 WHERE name = "mount roskill grammar school"</s> |
CREATE TABLE table_21058836_1 (result VARCHAR, opponents VARCHAR) | SELECT result FROM table_21058836_1 WHERE opponents = 26 | The game the Bruins scored 26 ,what was the result? | <s>[INST]The game the Bruins scored 26 ,what was the result? Context: CREATE TABLE table_21058836_1 (result VARCHAR, opponents VARCHAR)[/INST]SELECT result FROM table_21058836_1 WHERE opponents = 26</s> |
CREATE TABLE table_name_22 (date VARCHAR, opposing_teams VARCHAR, venue VARCHAR) | SELECT date FROM table_name_22 WHERE opposing_teams = "south africa" AND venue = "vodacom park , bloemfontein" | What is Date, when Opposing Teams is "South Africa", and when Venus is "Vodacom Park , Bloemfontein"? | <s>[INST]What is Date, when Opposing Teams is "South Africa", and when Venus is "Vodacom Park , Bloemfontein"? Context: CREATE TABLE table_name_22 (date VARCHAR, opposing_teams VARCHAR, venue VARCHAR)[/INST]SELECT date FROM table_name_22 WHERE opposing_teams = "south africa" AND venue = "vodacom park , bloemfontein"</s... |
CREATE TABLE table_name_25 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_25 WHERE date = "april 22" | What is the record for April 22? | <s>[INST]What is the record for April 22? Context: CREATE TABLE table_name_25 (record VARCHAR, date VARCHAR)[/INST]SELECT record FROM table_name_25 WHERE date = "april 22"</s> |
CREATE TABLE table_name_92 (winning_team VARCHAR, losing_team VARCHAR) | SELECT winning_team FROM table_name_92 WHERE losing_team = "san francisco giants" | Who won the series when the San Francisco Giants lost? | <s>[INST]Who won the series when the San Francisco Giants lost? Context: CREATE TABLE table_name_92 (winning_team VARCHAR, losing_team VARCHAR)[/INST]SELECT winning_team FROM table_name_92 WHERE losing_team = "san francisco giants"</s> |
CREATE TABLE table_16400024_1 (release_date VARCHAR, part_number_s_ VARCHAR) | SELECT release_date FROM table_16400024_1 WHERE part_number_s_ = "80525PY500512BX80525U500512BX80525U500512E" | What is the release date of part 80525py500512bx80525u500512bx80525u500512e? | <s>[INST]What is the release date of part 80525py500512bx80525u500512bx80525u500512e? Context: CREATE TABLE table_16400024_1 (release_date VARCHAR, part_number_s_ VARCHAR)[/INST]SELECT release_date FROM table_16400024_1 WHERE part_number_s_ = "80525PY500512BX80525U500512BX80525U500512E"</s> |
CREATE TABLE table_name_43 (winner_and_score VARCHAR, semifinalists VARCHAR) | SELECT winner_and_score FROM table_name_43 WHERE semifinalists = "goran prpić sergi bruguera" | Who is the winner and score of the tournament with semifinalists goran prpić sergi bruguera? | <s>[INST]Who is the winner and score of the tournament with semifinalists goran prpić sergi bruguera? Context: CREATE TABLE table_name_43 (winner_and_score VARCHAR, semifinalists VARCHAR)[/INST]SELECT winner_and_score FROM table_name_43 WHERE semifinalists = "goran prpić sergi bruguera"</s> |
CREATE TABLE table_27539535_5 (december VARCHAR, record VARCHAR) | SELECT COUNT(december) FROM table_27539535_5 WHERE record = "9-19-6" | How many games were played against a team with a 9-19-6 record against the Islanders? | <s>[INST]How many games were played against a team with a 9-19-6 record against the Islanders? Context: CREATE TABLE table_27539535_5 (december VARCHAR, record VARCHAR)[/INST]SELECT COUNT(december) FROM table_27539535_5 WHERE record = "9-19-6"</s> |
CREATE TABLE table_29475589_3 (director VARCHAR, writer_s_ VARCHAR) | SELECT director FROM table_29475589_3 WHERE writer_s_ = "Nicole Dubuc Duane Capizzi" | When nicole dubuc duane capizzi is the writer who is the director? | <s>[INST]When nicole dubuc duane capizzi is the writer who is the director? Context: CREATE TABLE table_29475589_3 (director VARCHAR, writer_s_ VARCHAR)[/INST]SELECT director FROM table_29475589_3 WHERE writer_s_ = "Nicole Dubuc Duane Capizzi"</s> |
CREATE TABLE Project_outcomes (project_id VARCHAR); CREATE TABLE Projects (organisation_id VARCHAR, project_id VARCHAR) | SELECT T1.organisation_id, COUNT(*) FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id GROUP BY T1.organisation_id ORDER BY COUNT(*) DESC LIMIT 1 | List the organisation id with the maximum outcome count, and the count. | <s>[INST]List the organisation id with the maximum outcome count, and the count. Context: CREATE TABLE Project_outcomes (project_id VARCHAR); CREATE TABLE Projects (organisation_id VARCHAR, project_id VARCHAR)[/INST]SELECT T1.organisation_id, COUNT(*) FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T... |
CREATE TABLE table_name_29 (laps VARCHAR, time_retired VARCHAR, grid VARCHAR) | SELECT laps FROM table_name_29 WHERE time_retired = "turbo" AND grid < 14 | what is the laps when the time/retired is turbo and the grid is less than 14? | <s>[INST]what is the laps when the time/retired is turbo and the grid is less than 14? Context: CREATE TABLE table_name_29 (laps VARCHAR, time_retired VARCHAR, grid VARCHAR)[/INST]SELECT laps FROM table_name_29 WHERE time_retired = "turbo" AND grid < 14</s> |
CREATE TABLE table_name_42 (average INTEGER, evening_gown VARCHAR, interview VARCHAR, country VARCHAR) | SELECT MIN(average) FROM table_name_42 WHERE interview > 9.57 AND country = "delaware" AND evening_gown > 9.77 | Name the lowest average for interview more than 9.57 and delaware and evening gown more than 9.77 | <s>[INST]Name the lowest average for interview more than 9.57 and delaware and evening gown more than 9.77 Context: CREATE TABLE table_name_42 (average INTEGER, evening_gown VARCHAR, interview VARCHAR, country VARCHAR)[/INST]SELECT MIN(average) FROM table_name_42 WHERE interview > 9.57 AND country = "delaware" AND even... |
CREATE TABLE table_26400438_1 (series VARCHAR, team VARCHAR) | SELECT series FROM table_26400438_1 WHERE team = "Lecor Sports" | In which series did Lecor Sports participate? | <s>[INST]In which series did Lecor Sports participate? Context: CREATE TABLE table_26400438_1 (series VARCHAR, team VARCHAR)[/INST]SELECT series FROM table_26400438_1 WHERE team = "Lecor Sports"</s> |
CREATE TABLE ship (name VARCHAR, TYPE VARCHAR, flag VARCHAR, built_year VARCHAR) | SELECT name, TYPE, flag FROM ship ORDER BY built_year DESC LIMIT 1 | Find the name, type, and flag of the ship that is built in the most recent year. | <s>[INST]Find the name, type, and flag of the ship that is built in the most recent year. Context: CREATE TABLE ship (name VARCHAR, TYPE VARCHAR, flag VARCHAR, built_year VARCHAR)[/INST]SELECT name, TYPE, flag FROM ship ORDER BY built_year DESC LIMIT 1</s> |
CREATE TABLE table_name_34 (pick__number VARCHAR, college VARCHAR) | SELECT COUNT(pick__number) FROM table_name_34 WHERE college = "lamar" | How many picks were from Lamar College? | <s>[INST]How many picks were from Lamar College? Context: CREATE TABLE table_name_34 (pick__number VARCHAR, college VARCHAR)[/INST]SELECT COUNT(pick__number) FROM table_name_34 WHERE college = "lamar"</s> |
CREATE TABLE table_name_14 (election VARCHAR, inhabitants INTEGER) | SELECT COUNT(election) FROM table_name_14 WHERE inhabitants < 16 OFFSET 170 | In what Election year were there less than 16,170 Inhabitants? | <s>[INST]In what Election year were there less than 16,170 Inhabitants? Context: CREATE TABLE table_name_14 (election VARCHAR, inhabitants INTEGER)[/INST]SELECT COUNT(election) FROM table_name_14 WHERE inhabitants < 16 OFFSET 170</s> |
CREATE TABLE table_name_3 (circuit VARCHAR, winning_driver VARCHAR) | SELECT circuit FROM table_name_3 WHERE winning_driver = "johnny wakefield" | Which Circuit did Johnny Wakefield win? | <s>[INST]Which Circuit did Johnny Wakefield win? Context: CREATE TABLE table_name_3 (circuit VARCHAR, winning_driver VARCHAR)[/INST]SELECT circuit FROM table_name_3 WHERE winning_driver = "johnny wakefield"</s> |
CREATE TABLE table_name_85 (pop__2010_ INTEGER, latitude VARCHAR, water__sqmi_ VARCHAR) | SELECT MAX(pop__2010_) FROM table_name_85 WHERE latitude = 48.853051 AND water__sqmi_ < 0.9590000000000001 | What was the population fo the township with a Latitude of 48.853051, and a Water (sqmi) smaller than 0.9590000000000001? | <s>[INST]What was the population fo the township with a Latitude of 48.853051, and a Water (sqmi) smaller than 0.9590000000000001? Context: CREATE TABLE table_name_85 (pop__2010_ INTEGER, latitude VARCHAR, water__sqmi_ VARCHAR)[/INST]SELECT MAX(pop__2010_) FROM table_name_85 WHERE latitude = 48.853051 AND water__sqmi_ ... |
CREATE TABLE table_name_37 (population INTEGER, density__inhabitants_km_2__ VARCHAR, altitude__mslm_ VARCHAR, city VARCHAR) | SELECT MIN(population) FROM table_name_37 WHERE altitude__mslm_ < 197 AND city = "alessandria" AND density__inhabitants_km_2__ < 461.8 | What is the lowest population of alessandria where the altitude is less than 197 and density is less than 461.8? | <s>[INST]What is the lowest population of alessandria where the altitude is less than 197 and density is less than 461.8? Context: CREATE TABLE table_name_37 (population INTEGER, density__inhabitants_km_2__ VARCHAR, altitude__mslm_ VARCHAR, city VARCHAR)[/INST]SELECT MIN(population) FROM table_name_37 WHERE altitude__m... |
CREATE TABLE table_name_61 (record VARCHAR, points VARCHAR, opponent VARCHAR) | SELECT record FROM table_name_61 WHERE points < 98 AND opponent = "canucks" | What is the record when they play the canucks and have under 98 points? | <s>[INST]What is the record when they play the canucks and have under 98 points? Context: CREATE TABLE table_name_61 (record VARCHAR, points VARCHAR, opponent VARCHAR)[/INST]SELECT record FROM table_name_61 WHERE points < 98 AND opponent = "canucks"</s> |
CREATE TABLE table_26860595_2 (config_core_1 VARCHAR, processing_power_gflops VARCHAR) | SELECT config_core_1 FROM table_26860595_2 WHERE processing_power_gflops = "432" | What is the config core 1 of the model with a processing power GFLOPs of 432? | <s>[INST]What is the config core 1 of the model with a processing power GFLOPs of 432? Context: CREATE TABLE table_26860595_2 (config_core_1 VARCHAR, processing_power_gflops VARCHAR)[/INST]SELECT config_core_1 FROM table_26860595_2 WHERE processing_power_gflops = "432"</s> |
CREATE TABLE table_name_92 (_jerk VARCHAR, clean_ INTEGER, total__kg_ VARCHAR, snatch VARCHAR) | SELECT MAX(clean_) & _jerk FROM table_name_92 WHERE total__kg_ = "200.0" AND snatch > 87.5 | what is the highest clean & jerk when total (kg) is 200.0 and snatch is more than 87.5? | <s>[INST]what is the highest clean & jerk when total (kg) is 200.0 and snatch is more than 87.5? Context: CREATE TABLE table_name_92 (_jerk VARCHAR, clean_ INTEGER, total__kg_ VARCHAR, snatch VARCHAR)[/INST]SELECT MAX(clean_) & _jerk FROM table_name_92 WHERE total__kg_ = "200.0" AND snatch > 87.5</s> |
CREATE TABLE table_name_40 (game INTEGER, opponent VARCHAR) | SELECT MAX(game) FROM table_name_40 WHERE opponent = "new york knickerbockers" | What is the maximum game that was played against the New York Knickerbockers? | <s>[INST]What is the maximum game that was played against the New York Knickerbockers? Context: CREATE TABLE table_name_40 (game INTEGER, opponent VARCHAR)[/INST]SELECT MAX(game) FROM table_name_40 WHERE opponent = "new york knickerbockers"</s> |
CREATE TABLE table_name_20 (opponent VARCHAR, result VARCHAR) | SELECT opponent FROM table_name_20 WHERE result = "w 26-20" | Who was the opponent at the game with a result of W 26-20? | <s>[INST]Who was the opponent at the game with a result of W 26-20? Context: CREATE TABLE table_name_20 (opponent VARCHAR, result VARCHAR)[/INST]SELECT opponent FROM table_name_20 WHERE result = "w 26-20"</s> |
CREATE TABLE table_name_94 (distance VARCHAR, race_leader VARCHAR) | SELECT distance FROM table_name_94 WHERE race_leader = "km (mi)" | What Distance had a Race Leader in Km (mi)? | <s>[INST]What Distance had a Race Leader in Km (mi)? Context: CREATE TABLE table_name_94 (distance VARCHAR, race_leader VARCHAR)[/INST]SELECT distance FROM table_name_94 WHERE race_leader = "km (mi)"</s> |
CREATE TABLE table_name_32 (team_1 VARCHAR) | SELECT 1 AS st_leg FROM table_name_32 WHERE team_1 = "aalborg bk" | When Aalborg BK is Team 1, what is the 1st leg? | <s>[INST]When Aalborg BK is Team 1, what is the 1st leg? Context: CREATE TABLE table_name_32 (team_1 VARCHAR)[/INST]SELECT 1 AS st_leg FROM table_name_32 WHERE team_1 = "aalborg bk"</s> |
CREATE TABLE table_name_50 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_50 WHERE date = "march 11" | What was the score on march 11? | <s>[INST]What was the score on march 11? Context: CREATE TABLE table_name_50 (score VARCHAR, date VARCHAR)[/INST]SELECT score FROM table_name_50 WHERE date = "march 11"</s> |
CREATE TABLE table_23346303_3 (record VARCHAR, location VARCHAR, opponent VARCHAR) | SELECT record FROM table_23346303_3 WHERE location = "Tampa, FL" AND opponent = "Louisville" | what is the record where the locaiton is tampa, fl and the opponent is louisville? | <s>[INST]what is the record where the locaiton is tampa, fl and the opponent is louisville? Context: CREATE TABLE table_23346303_3 (record VARCHAR, location VARCHAR, opponent VARCHAR)[/INST]SELECT record FROM table_23346303_3 WHERE location = "Tampa, FL" AND opponent = "Louisville"</s> |
CREATE TABLE table_16577990_1 (tree_species VARCHAR, total_plant_species VARCHAR) | SELECT tree_species FROM table_16577990_1 WHERE total_plant_species = 258 | How many tree species are listed when the total plant species is 258? | <s>[INST]How many tree species are listed when the total plant species is 258? Context: CREATE TABLE table_16577990_1 (tree_species VARCHAR, total_plant_species VARCHAR)[/INST]SELECT tree_species FROM table_16577990_1 WHERE total_plant_species = 258</s> |
CREATE TABLE table_name_74 (year INTEGER, location VARCHAR, result VARCHAR) | SELECT AVG(year) FROM table_name_74 WHERE location = "yankee stadium" AND result = "23-23" | what is the year when the location is yankee stadium and the result is 23-23 | <s>[INST]what is the year when the location is yankee stadium and the result is 23-23 Context: CREATE TABLE table_name_74 (year INTEGER, location VARCHAR, result VARCHAR)[/INST]SELECT AVG(year) FROM table_name_74 WHERE location = "yankee stadium" AND result = "23-23"</s> |
CREATE TABLE table_25386974_1 (podiums INTEGER, position VARCHAR) | SELECT MAX(podiums) FROM table_25386974_1 WHERE position = "17th" | What is the most podiums Pedro Nunes had when in 17th position? | <s>[INST]What is the most podiums Pedro Nunes had when in 17th position? Context: CREATE TABLE table_25386974_1 (podiums INTEGER, position VARCHAR)[/INST]SELECT MAX(podiums) FROM table_25386974_1 WHERE position = "17th"</s> |
CREATE TABLE table_name_9 (driver___passenger VARCHAR, bike_no VARCHAR, equipment VARCHAR) | SELECT driver___passenger FROM table_name_9 WHERE bike_no < 4 AND equipment = "zabel -vmc" | Which Driver and passenger have a bike number of less than 4 with zabel -vmc equipment? | <s>[INST]Which Driver and passenger have a bike number of less than 4 with zabel -vmc equipment? Context: CREATE TABLE table_name_9 (driver___passenger VARCHAR, bike_no VARCHAR, equipment VARCHAR)[/INST]SELECT driver___passenger FROM table_name_9 WHERE bike_no < 4 AND equipment = "zabel -vmc"</s> |
CREATE TABLE city (Status VARCHAR, City_ID VARCHAR); CREATE TABLE farm_competition (Host_city_ID VARCHAR) | SELECT T1.Status FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID GROUP BY T2.Host_city_ID ORDER BY COUNT(*) DESC LIMIT 1 | Show the status of the city that has hosted the greatest number of competitions. | <s>[INST]Show the status of the city that has hosted the greatest number of competitions. Context: CREATE TABLE city (Status VARCHAR, City_ID VARCHAR); CREATE TABLE farm_competition (Host_city_ID VARCHAR)[/INST]SELECT T1.Status FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID GROUP BY T2.Host... |
CREATE TABLE table_name_85 (score VARCHAR, surface VARCHAR, outcome VARCHAR) | SELECT score FROM table_name_85 WHERE surface = "hard" AND outcome = "runner-up" | what is the score when the surface is hard and outcome is runner-up? | <s>[INST]what is the score when the surface is hard and outcome is runner-up? Context: CREATE TABLE table_name_85 (score VARCHAR, surface VARCHAR, outcome VARCHAR)[/INST]SELECT score FROM table_name_85 WHERE surface = "hard" AND outcome = "runner-up"</s> |
CREATE TABLE table_name_99 (preliminaries VARCHAR, swimsuit VARCHAR, interview VARCHAR) | SELECT preliminaries FROM table_name_99 WHERE swimsuit < 8.948 AND interview = 8.997 | What is the preliminaries of the contestant with a swimsuit less than 8.948 and an interview of 8.997? | <s>[INST]What is the preliminaries of the contestant with a swimsuit less than 8.948 and an interview of 8.997? Context: CREATE TABLE table_name_99 (preliminaries VARCHAR, swimsuit VARCHAR, interview VARCHAR)[/INST]SELECT preliminaries FROM table_name_99 WHERE swimsuit < 8.948 AND interview = 8.997</s> |
CREATE TABLE table_name_32 (surface VARCHAR, tournament VARCHAR) | SELECT surface FROM table_name_32 WHERE tournament = "sunderland" | What kind of surface was the Tournament at Sunderland played on? | <s>[INST]What kind of surface was the Tournament at Sunderland played on? Context: CREATE TABLE table_name_32 (surface VARCHAR, tournament VARCHAR)[/INST]SELECT surface FROM table_name_32 WHERE tournament = "sunderland"</s> |
CREATE TABLE table_name_77 (gain VARCHAR, long VARCHAR, avg_g VARCHAR) | SELECT COUNT(gain) FROM table_name_77 WHERE long = 29 AND avg_g < 33.7 | How much Gain has a Long of 29, and an Avg/G smaller than 33.7? | <s>[INST]How much Gain has a Long of 29, and an Avg/G smaller than 33.7? Context: CREATE TABLE table_name_77 (gain VARCHAR, long VARCHAR, avg_g VARCHAR)[/INST]SELECT COUNT(gain) FROM table_name_77 WHERE long = 29 AND avg_g < 33.7</s> |
CREATE TABLE table_name_65 (worldwide_gross VARCHAR, director VARCHAR) | SELECT worldwide_gross FROM table_name_65 WHERE director = "joe pytka" | What was the worldwide gross for the film directed by joe pytka? | <s>[INST]What was the worldwide gross for the film directed by joe pytka? Context: CREATE TABLE table_name_65 (worldwide_gross VARCHAR, director VARCHAR)[/INST]SELECT worldwide_gross FROM table_name_65 WHERE director = "joe pytka"</s> |
CREATE TABLE table_name_40 (losses VARCHAR, matches VARCHAR) | SELECT losses FROM table_name_40 WHERE matches = "5" | What is the losses for the 5 matches? | <s>[INST]What is the losses for the 5 matches? Context: CREATE TABLE table_name_40 (losses VARCHAR, matches VARCHAR)[/INST]SELECT losses FROM table_name_40 WHERE matches = "5"</s> |
CREATE TABLE table_name_39 (winner VARCHAR, course VARCHAR) | SELECT winner FROM table_name_39 WHERE course = "genoa to livorno" | Name the winner for genoa to livorno | <s>[INST]Name the winner for genoa to livorno Context: CREATE TABLE table_name_39 (winner VARCHAR, course VARCHAR)[/INST]SELECT winner FROM table_name_39 WHERE course = "genoa to livorno"</s> |
CREATE TABLE table_28884858_2 (total_attendance INTEGER, team VARCHAR) | SELECT MIN(total_attendance) FROM table_28884858_2 WHERE team = "New York Giants" | What was the total attendance of the New York Giants? | <s>[INST]What was the total attendance of the New York Giants? Context: CREATE TABLE table_28884858_2 (total_attendance INTEGER, team VARCHAR)[/INST]SELECT MIN(total_attendance) FROM table_28884858_2 WHERE team = "New York Giants"</s> |
CREATE TABLE table_name_90 (against INTEGER, central_murray VARCHAR, wins VARCHAR) | SELECT MAX(against) FROM table_name_90 WHERE central_murray = "tooleybuc manangatang" AND wins < 13 | What is the number of against when Central Murray is Tooleybuc Manangatang and there are fewer than 13 wins? | <s>[INST]What is the number of against when Central Murray is Tooleybuc Manangatang and there are fewer than 13 wins? Context: CREATE TABLE table_name_90 (against INTEGER, central_murray VARCHAR, wins VARCHAR)[/INST]SELECT MAX(against) FROM table_name_90 WHERE central_murray = "tooleybuc manangatang" AND wins < 13</s> |
CREATE TABLE table_name_53 (away_team VARCHAR, venue VARCHAR) | SELECT away_team AS score FROM table_name_53 WHERE venue = "arden street oval" | What was the score of the away team while playing at the arden street oval? | <s>[INST]What was the score of the away team while playing at the arden street oval? Context: CREATE TABLE table_name_53 (away_team VARCHAR, venue VARCHAR)[/INST]SELECT away_team AS score FROM table_name_53 WHERE venue = "arden street oval"</s> |
CREATE TABLE table_name_25 (result VARCHAR, home_away VARCHAR, date VARCHAR) | SELECT result FROM table_name_25 WHERE home_away = "home" AND date = "august 14" | What is the result of the home game on August 14? | <s>[INST]What is the result of the home game on August 14? Context: CREATE TABLE table_name_25 (result VARCHAR, home_away VARCHAR, date VARCHAR)[/INST]SELECT result FROM table_name_25 WHERE home_away = "home" AND date = "august 14"</s> |
CREATE TABLE table_name_45 (team_2 VARCHAR, team_1 VARCHAR) | SELECT team_2 FROM table_name_45 WHERE team_1 = "ecac chaumont (d2)" | Which is team 2 when team 1 is ECAC Chaumont (d2)? | <s>[INST]Which is team 2 when team 1 is ECAC Chaumont (d2)? Context: CREATE TABLE table_name_45 (team_2 VARCHAR, team_1 VARCHAR)[/INST]SELECT team_2 FROM table_name_45 WHERE team_1 = "ecac chaumont (d2)"</s> |
CREATE TABLE table_name_89 (to_par VARCHAR, player VARCHAR) | SELECT to_par FROM table_name_89 WHERE player = "mike souchak" | What is Mike Souchak's to par? | <s>[INST]What is Mike Souchak's to par? Context: CREATE TABLE table_name_89 (to_par VARCHAR, player VARCHAR)[/INST]SELECT to_par FROM table_name_89 WHERE player = "mike souchak"</s> |
CREATE TABLE table_name_74 (iheartradio VARCHAR, show VARCHAR) | SELECT iheartradio FROM table_name_74 WHERE show = "bronson and christine" | What is the iHeartRadio of the Bronson and Christine Show? | <s>[INST]What is the iHeartRadio of the Bronson and Christine Show? Context: CREATE TABLE table_name_74 (iheartradio VARCHAR, show VARCHAR)[/INST]SELECT iheartradio FROM table_name_74 WHERE show = "bronson and christine"</s> |
CREATE TABLE table_name_67 (result VARCHAR, week INTEGER) | SELECT result FROM table_name_67 WHERE week < 2 | What was the outcome of the game that had a week number of less than 2? | <s>[INST]What was the outcome of the game that had a week number of less than 2? Context: CREATE TABLE table_name_67 (result VARCHAR, week INTEGER)[/INST]SELECT result FROM table_name_67 WHERE week < 2</s> |
CREATE TABLE table_name_54 (crowd INTEGER, home_team VARCHAR) | SELECT AVG(crowd) FROM table_name_54 WHERE home_team = "st kilda" | What was the attendance at the St Kilda home game? | <s>[INST]What was the attendance at the St Kilda home game? Context: CREATE TABLE table_name_54 (crowd INTEGER, home_team VARCHAR)[/INST]SELECT AVG(crowd) FROM table_name_54 WHERE home_team = "st kilda"</s> |
CREATE TABLE table_name_26 (inhabitants_per_mep INTEGER, population_millions VARCHAR, meps VARCHAR, member_state VARCHAR) | SELECT MAX(inhabitants_per_mep) FROM table_name_26 WHERE meps > 50 AND member_state = "germany" AND population_millions < 82.43 | What is the highest number of inhabitants per MEP that has MEPs larger than 50, a member of Germany, and a population less than 82.43 million? | <s>[INST]What is the highest number of inhabitants per MEP that has MEPs larger than 50, a member of Germany, and a population less than 82.43 million? Context: CREATE TABLE table_name_26 (inhabitants_per_mep INTEGER, population_millions VARCHAR, meps VARCHAR, member_state VARCHAR)[/INST]SELECT MAX(inhabitants_per_mep)... |
CREATE TABLE table_name_30 (method VARCHAR, result VARCHAR, date VARCHAR) | SELECT method FROM table_name_30 WHERE result = "loss" AND date = "january 19, 2008" | what is the method when the result is loss on january 19, 2008? | <s>[INST]what is the method when the result is loss on january 19, 2008? Context: CREATE TABLE table_name_30 (method VARCHAR, result VARCHAR, date VARCHAR)[/INST]SELECT method FROM table_name_30 WHERE result = "loss" AND date = "january 19, 2008"</s> |
CREATE TABLE table_name_12 (secretary VARCHAR, social_ao VARCHAR) | SELECT secretary FROM table_name_12 WHERE social_ao = "lieke de boer" | What Secretary has a Social AO of lieke de boer? | <s>[INST]What Secretary has a Social AO of lieke de boer? Context: CREATE TABLE table_name_12 (secretary VARCHAR, social_ao VARCHAR)[/INST]SELECT secretary FROM table_name_12 WHERE social_ao = "lieke de boer"</s> |
CREATE TABLE table_19534874_2 (indoor VARCHAR, region VARCHAR) | SELECT COUNT(indoor) FROM table_19534874_2 WHERE region = "NER" | What is the indoor number for the NER region? | <s>[INST]What is the indoor number for the NER region? Context: CREATE TABLE table_19534874_2 (indoor VARCHAR, region VARCHAR)[/INST]SELECT COUNT(indoor) FROM table_19534874_2 WHERE region = "NER"</s> |
CREATE TABLE table_23495048_2 (represent VARCHAR, height__mtr_ VARCHAR) | SELECT represent FROM table_23495048_2 WHERE height__mtr_ = "1.70" | What country had a contestant that was 1.70 meters tall? | <s>[INST]What country had a contestant that was 1.70 meters tall? Context: CREATE TABLE table_23495048_2 (represent VARCHAR, height__mtr_ VARCHAR)[/INST]SELECT represent FROM table_23495048_2 WHERE height__mtr_ = "1.70"</s> |
CREATE TABLE table_2679061_12 (college_junior_club_team VARCHAR, player VARCHAR) | SELECT college_junior_club_team FROM table_2679061_12 WHERE player = "Harold Duvall" | Which school did harold duvall attend? | <s>[INST]Which school did harold duvall attend? Context: CREATE TABLE table_2679061_12 (college_junior_club_team VARCHAR, player VARCHAR)[/INST]SELECT college_junior_club_team FROM table_2679061_12 WHERE player = "Harold Duvall"</s> |
CREATE TABLE table_1773908_3 (dsl_type VARCHAR, provider VARCHAR) | SELECT dsl_type FROM table_1773908_3 WHERE provider = "M-net" | What are all the dsl type offered by the M-Net telecom company? | <s>[INST]What are all the dsl type offered by the M-Net telecom company? Context: CREATE TABLE table_1773908_3 (dsl_type VARCHAR, provider VARCHAR)[/INST]SELECT dsl_type FROM table_1773908_3 WHERE provider = "M-net"</s> |
CREATE TABLE table_name_17 (week INTEGER, points_against VARCHAR, points_for VARCHAR, opponent VARCHAR) | SELECT MAX(week) FROM table_name_17 WHERE points_for > 19 AND opponent = "philadelphia eagles" AND points_against > 7 | Which Week has Points For larger than 19, and an Opponent of philadelphia eagles, and Points Against larger than 7? | <s>[INST]Which Week has Points For larger than 19, and an Opponent of philadelphia eagles, and Points Against larger than 7? Context: CREATE TABLE table_name_17 (week INTEGER, points_against VARCHAR, points_for VARCHAR, opponent VARCHAR)[/INST]SELECT MAX(week) FROM table_name_17 WHERE points_for > 19 AND opponent = "ph... |
CREATE TABLE table_20649850_1 (pick__number VARCHAR, position VARCHAR) | SELECT COUNT(pick__number) FROM table_20649850_1 WHERE position = "DB" | Name the number for db | <s>[INST]Name the number for db Context: CREATE TABLE table_20649850_1 (pick__number VARCHAR, position VARCHAR)[/INST]SELECT COUNT(pick__number) FROM table_20649850_1 WHERE position = "DB"</s> |
CREATE TABLE table_name_74 (agg VARCHAR) | SELECT 2 AS nd_leg FROM table_name_74 WHERE agg = "1-3" | For an aggregate of 1-3, what was the 2nd leg? | <s>[INST]For an aggregate of 1-3, what was the 2nd leg? Context: CREATE TABLE table_name_74 (agg VARCHAR)[/INST]SELECT 2 AS nd_leg FROM table_name_74 WHERE agg = "1-3"</s> |
CREATE TABLE battle (name VARCHAR, RESULT VARCHAR, bulgarian_commander VARCHAR) | SELECT name, RESULT FROM battle WHERE bulgarian_commander <> 'Boril' | What are the name and results of the battles when the bulgarian commander is not 'Boril' | <s>[INST]What are the name and results of the battles when the bulgarian commander is not 'Boril' Context: CREATE TABLE battle (name VARCHAR, RESULT VARCHAR, bulgarian_commander VARCHAR)[/INST]SELECT name, RESULT FROM battle WHERE bulgarian_commander <> 'Boril'</s> |
CREATE TABLE table_name_12 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_12 WHERE away_team = "bolton wanderers" | who is the home team when the away team is bolton wanderers? | <s>[INST]who is the home team when the away team is bolton wanderers? Context: CREATE TABLE table_name_12 (home_team VARCHAR, away_team VARCHAR)[/INST]SELECT home_team FROM table_name_12 WHERE away_team = "bolton wanderers"</s> |
CREATE TABLE table_name_87 (score VARCHAR, game VARCHAR, high_rebounds VARCHAR) | SELECT score FROM table_name_87 WHERE game < 21 AND high_rebounds = "antonio davis (12)" | What is the Score for the Game less than 21, and of antonio davis (12)had the High rebounds? | <s>[INST]What is the Score for the Game less than 21, and of antonio davis (12)had the High rebounds? Context: CREATE TABLE table_name_87 (score VARCHAR, game VARCHAR, high_rebounds VARCHAR)[/INST]SELECT score FROM table_name_87 WHERE game < 21 AND high_rebounds = "antonio davis (12)"</s> |
CREATE TABLE table_22355_20 (athlete VARCHAR, nation VARCHAR, rank VARCHAR) | SELECT athlete FROM table_22355_20 WHERE nation = "Ethiopia (ETH)" AND rank > 7.0 | Who is the athlete from the nation of Ethiopia (eth) who had a rank bigger than 7.0? | <s>[INST]Who is the athlete from the nation of Ethiopia (eth) who had a rank bigger than 7.0? Context: CREATE TABLE table_22355_20 (athlete VARCHAR, nation VARCHAR, rank VARCHAR)[/INST]SELECT athlete FROM table_22355_20 WHERE nation = "Ethiopia (ETH)" AND rank > 7.0</s> |
CREATE TABLE table_27781212_1 (driver VARCHAR, winnings VARCHAR) | SELECT driver FROM table_27781212_1 WHERE winnings = "$225,000" | who is the driver that had winnings of $225,000? | <s>[INST]who is the driver that had winnings of $225,000? Context: CREATE TABLE table_27781212_1 (driver VARCHAR, winnings VARCHAR)[/INST]SELECT driver FROM table_27781212_1 WHERE winnings = "$225,000"</s> |
CREATE TABLE table_name_65 (record VARCHAR, team VARCHAR) | SELECT record FROM table_name_65 WHERE team = "utah" | What was the record of Utah? | <s>[INST]What was the record of Utah? Context: CREATE TABLE table_name_65 (record VARCHAR, team VARCHAR)[/INST]SELECT record FROM table_name_65 WHERE team = "utah"</s> |
CREATE TABLE table_name_58 (erp_w INTEGER, frequency_mhz VARCHAR) | SELECT MIN(erp_w) FROM table_name_58 WHERE frequency_mhz = 91.3 | Which ERP W is the lowest one that has a Frequency MHz of 91.3? | <s>[INST]Which ERP W is the lowest one that has a Frequency MHz of 91.3? Context: CREATE TABLE table_name_58 (erp_w INTEGER, frequency_mhz VARCHAR)[/INST]SELECT MIN(erp_w) FROM table_name_58 WHERE frequency_mhz = 91.3</s> |
CREATE TABLE table_name_86 (status VARCHAR, date VARCHAR) | SELECT status FROM table_name_86 WHERE date = "24/11/1979" | What is the status for 24/11/1979? | <s>[INST]What is the status for 24/11/1979? Context: CREATE TABLE table_name_86 (status VARCHAR, date VARCHAR)[/INST]SELECT status FROM table_name_86 WHERE date = "24/11/1979"</s> |
CREATE TABLE table_name_73 (score VARCHAR, october VARCHAR, record VARCHAR) | SELECT score FROM table_name_73 WHERE october < 15 AND record = "2–0–0" | Which Score has an October smaller than 15, and a Record of 2–0–0? | <s>[INST]Which Score has an October smaller than 15, and a Record of 2–0–0? Context: CREATE TABLE table_name_73 (score VARCHAR, october VARCHAR, record VARCHAR)[/INST]SELECT score FROM table_name_73 WHERE october < 15 AND record = "2–0–0"</s> |
CREATE TABLE table_name_50 (elevator VARCHAR, elevated VARCHAR) | SELECT elevator FROM table_name_50 WHERE elevated = "september 21, 1179" | What is the Elevator of the Elected Elevated on September 21, 1179? | <s>[INST]What is the Elevator of the Elected Elevated on September 21, 1179? Context: CREATE TABLE table_name_50 (elevator VARCHAR, elevated VARCHAR)[/INST]SELECT elevator FROM table_name_50 WHERE elevated = "september 21, 1179"</s> |
CREATE TABLE table_name_74 (ground VARCHAR, away_team VARCHAR) | SELECT ground FROM table_name_74 WHERE away_team = "geelong" | What is the ground of the Geelong Away team? | <s>[INST]What is the ground of the Geelong Away team? Context: CREATE TABLE table_name_74 (ground VARCHAR, away_team VARCHAR)[/INST]SELECT ground FROM table_name_74 WHERE away_team = "geelong"</s> |
CREATE TABLE table_2182170_1 (crew_chief VARCHAR, listed_owner_s_ VARCHAR) | SELECT crew_chief FROM table_2182170_1 WHERE listed_owner_s_ = "Wayne Day" | Who is Wayne Day's crew chief? | <s>[INST]Who is Wayne Day's crew chief? Context: CREATE TABLE table_2182170_1 (crew_chief VARCHAR, listed_owner_s_ VARCHAR)[/INST]SELECT crew_chief FROM table_2182170_1 WHERE listed_owner_s_ = "Wayne Day"</s> |
CREATE TABLE table_name_19 (year INTEGER, copies_sold VARCHAR, oricon_position VARCHAR) | SELECT AVG(year) FROM table_name_19 WHERE copies_sold = "1,695,900+" AND oricon_position > 1 | What year sold 1,695,900+ copies with an Oricon position larger than 1? | <s>[INST]What year sold 1,695,900+ copies with an Oricon position larger than 1? Context: CREATE TABLE table_name_19 (year INTEGER, copies_sold VARCHAR, oricon_position VARCHAR)[/INST]SELECT AVG(year) FROM table_name_19 WHERE copies_sold = "1,695,900+" AND oricon_position > 1</s> |
CREATE TABLE Cartoon (Title VARCHAR, Directed_by VARCHAR) | SELECT Title FROM Cartoon WHERE Directed_by = "Ben Jones" OR Directed_by = "Brandon Vietti" | List the title of all cartoon directed by "Ben Jones" or "Brandon Vietti". | <s>[INST]List the title of all cartoon directed by "Ben Jones" or "Brandon Vietti". Context: CREATE TABLE Cartoon (Title VARCHAR, Directed_by VARCHAR)[/INST]SELECT Title FROM Cartoon WHERE Directed_by = "Ben Jones" OR Directed_by = "Brandon Vietti"</s> |
CREATE TABLE Documents (template_id VARCHAR) | SELECT COUNT(DISTINCT template_id) FROM Documents | How many different templates do all document use? | <s>[INST]How many different templates do all document use? Context: CREATE TABLE Documents (template_id VARCHAR)[/INST]SELECT COUNT(DISTINCT template_id) FROM Documents</s> |
CREATE TABLE table_name_32 (slalom VARCHAR, overall VARCHAR, season VARCHAR) | SELECT slalom FROM table_name_32 WHERE overall = "25" AND season = 2009 | Which Slalom has an overall of 25 in the 2009 season? | <s>[INST]Which Slalom has an overall of 25 in the 2009 season? Context: CREATE TABLE table_name_32 (slalom VARCHAR, overall VARCHAR, season VARCHAR)[/INST]SELECT slalom FROM table_name_32 WHERE overall = "25" AND season = 2009</s> |
CREATE TABLE table_2597876_1 (wins INTEGER, winnings VARCHAR) | SELECT MAX(wins) FROM table_2597876_1 WHERE winnings = "$90,700" | How many wins did Parsons have in the year where his winnings were $90,700? | <s>[INST]How many wins did Parsons have in the year where his winnings were $90,700? Context: CREATE TABLE table_2597876_1 (wins INTEGER, winnings VARCHAR)[/INST]SELECT MAX(wins) FROM table_2597876_1 WHERE winnings = "$90,700"</s> |
CREATE TABLE table_name_7 (venue VARCHAR, event VARCHAR, competition VARCHAR) | SELECT venue FROM table_name_7 WHERE event = "4x400 m relay" AND competition = "asian championships" | what is the venue when the event is 4x400 m relay and the competition is asian championships? | <s>[INST]what is the venue when the event is 4x400 m relay and the competition is asian championships? Context: CREATE TABLE table_name_7 (venue VARCHAR, event VARCHAR, competition VARCHAR)[/INST]SELECT venue FROM table_name_7 WHERE event = "4x400 m relay" AND competition = "asian championships"</s> |
CREATE TABLE building (name VARCHAR, street_address VARCHAR, floors VARCHAR) | SELECT name, street_address, floors FROM building ORDER BY floors | Show the name, street address, and number of floors for all buildings ordered by the number of floors. | <s>[INST]Show the name, street address, and number of floors for all buildings ordered by the number of floors. Context: CREATE TABLE building (name VARCHAR, street_address VARCHAR, floors VARCHAR)[/INST]SELECT name, street_address, floors FROM building ORDER BY floors</s> |
CREATE TABLE table_name_7 (date VARCHAR, opponent VARCHAR) | SELECT date FROM table_name_7 WHERE opponent = "varvara lepchenko" | When was varvara lepchenko the opponent? | <s>[INST]When was varvara lepchenko the opponent? Context: CREATE TABLE table_name_7 (date VARCHAR, opponent VARCHAR)[/INST]SELECT date FROM table_name_7 WHERE opponent = "varvara lepchenko"</s> |
CREATE TABLE table_name_56 (attendance INTEGER, home VARCHAR) | SELECT MAX(attendance) FROM table_name_56 WHERE home = "hispano" | What was the highest attendance for the Hispano team? | <s>[INST]What was the highest attendance for the Hispano team? Context: CREATE TABLE table_name_56 (attendance INTEGER, home VARCHAR)[/INST]SELECT MAX(attendance) FROM table_name_56 WHERE home = "hispano"</s> |
CREATE TABLE staff (last_name VARCHAR, staff_id VARCHAR); CREATE TABLE complaints (staff_id VARCHAR, date_complaint_raised VARCHAR) | SELECT t1.last_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id = t2.staff_id ORDER BY t2.date_complaint_raised LIMIT 1 | What is the last name of the staff who has handled the first ever complaint? | <s>[INST]What is the last name of the staff who has handled the first ever complaint? Context: CREATE TABLE staff (last_name VARCHAR, staff_id VARCHAR); CREATE TABLE complaints (staff_id VARCHAR, date_complaint_raised VARCHAR)[/INST]SELECT t1.last_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id = t2.staff_id... |
CREATE TABLE table_name_17 (colors VARCHAR, school VARCHAR) | SELECT colors FROM table_name_17 WHERE school = "zeigler high school" | What Colors has a School of zeigler high school? | <s>[INST]What Colors has a School of zeigler high school? Context: CREATE TABLE table_name_17 (colors VARCHAR, school VARCHAR)[/INST]SELECT colors FROM table_name_17 WHERE school = "zeigler high school"</s> |
CREATE TABLE job_history (job_id VARCHAR, end_date VARCHAR, start_date VARCHAR) | SELECT job_id FROM job_history WHERE end_date - start_date > 300 GROUP BY job_id HAVING COUNT(*) >= 2 | display job ID for those jobs that were done by two or more for more than 300 days. | <s>[INST]display job ID for those jobs that were done by two or more for more than 300 days. Context: CREATE TABLE job_history (job_id VARCHAR, end_date VARCHAR, start_date VARCHAR)[/INST]SELECT job_id FROM job_history WHERE end_date - start_date > 300 GROUP BY job_id HAVING COUNT(*) >= 2</s> |
CREATE TABLE table_name_33 (champion VARCHAR, year VARCHAR) | SELECT champion FROM table_name_33 WHERE year = "1981" | What champion has 1981 as the year? | <s>[INST]What champion has 1981 as the year? Context: CREATE TABLE table_name_33 (champion VARCHAR, year VARCHAR)[/INST]SELECT champion FROM table_name_33 WHERE year = "1981"</s> |
CREATE TABLE table_name_29 (period VARCHAR, chart VARCHAR) | SELECT period FROM table_name_29 WHERE chart = "g-music j-pop/k-pop chart" | Name the period for Chart of g-music j-pop/k-pop chart | <s>[INST]Name the period for Chart of g-music j-pop/k-pop chart Context: CREATE TABLE table_name_29 (period VARCHAR, chart VARCHAR)[/INST]SELECT period FROM table_name_29 WHERE chart = "g-music j-pop/k-pop chart"</s> |
CREATE TABLE table_name_31 (home_team VARCHAR) | SELECT home_team AS score FROM table_name_31 WHERE home_team = "essendon" | What was the score for the Essendon home team? | <s>[INST]What was the score for the Essendon home team? Context: CREATE TABLE table_name_31 (home_team VARCHAR)[/INST]SELECT home_team AS score FROM table_name_31 WHERE home_team = "essendon"</s> |
CREATE TABLE table_1638437_2 (english_name VARCHAR, simplified VARCHAR) | SELECT english_name FROM table_1638437_2 WHERE simplified = "崖城镇" | Name the english name for 崖城镇 | <s>[INST]Name the english name for 崖城镇 Context: CREATE TABLE table_1638437_2 (english_name VARCHAR, simplified VARCHAR)[/INST]SELECT english_name FROM table_1638437_2 WHERE simplified = "崖城镇"</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.