text
stringlengths
147
1.06k
source
dict
### INSTRUCTION What is the School/Junior/Club Group (Association) that has a Round bigger than 6, and a Place of winger, and a Player of evgeny afanasiev? ### INPUT CREATE TABLE table_name_49 (college_junior_club_team__league_ VARCHAR, player VARCHAR, round VARCHAR, position VARCHAR) ### OUTPUT SELECT college_junior_club_team__league_ FROM table_name_49 WHERE round > 6 AND position = "winger" AND player = "evgeny afanasiev"
{ "input": "CREATE TABLE table_name_49 (college_junior_club_team__league_ VARCHAR, player VARCHAR, round VARCHAR, position VARCHAR)", "instruction": "What is the School/Junior/Club Group (Association) that has a Round bigger than 6, and a Place of winger, and a Player of evgeny afanasiev?", "output": "SELECT college_junior_club_team__league_ FROM table_name_49 WHERE round > 6 AND position = \"winger\" AND player = \"evgeny afanasiev\"" }
### INSTRUCTION I want the sum of NGC number for spiral galaxy and right acension of 08h14m40.4s ### INPUT CREATE TABLE table_name_31 (ngc_number INTEGER, object_type VARCHAR, right_ascension___j2000__ VARCHAR) ### OUTPUT SELECT SUM(ngc_number) FROM table_name_31 WHERE object_type = "spiral galaxy" AND right_ascension___j2000__ = "08h14m40.4s"
{ "input": "CREATE TABLE table_name_31 (ngc_number INTEGER, object_type VARCHAR, right_ascension___j2000__ VARCHAR)", "instruction": "I want the sum of NGC number for spiral galaxy and right acension of 08h14m40.4s", "output": "SELECT SUM(ngc_number) FROM table_name_31 WHERE object_type = \"spiral galaxy\" AND right_ascension___j2000__ = \"08h14m40.4s\"" }
### INSTRUCTION What is every institution with the nickname of Quakers? ### INPUT CREATE TABLE table_261954_1 (institution VARCHAR, nickname VARCHAR) ### OUTPUT SELECT institution FROM table_261954_1 WHERE nickname = "Quakers"
{ "input": "CREATE TABLE table_261954_1 (institution VARCHAR, nickname VARCHAR)", "instruction": "What is every institution with the nickname of Quakers?", "output": "SELECT institution FROM table_261954_1 WHERE nickname = \"Quakers\"" }
### INSTRUCTION Name the least pick number for steven turner ### INPUT CREATE TABLE table_25017530_5 (pick__number INTEGER, player VARCHAR) ### OUTPUT SELECT MIN(pick__number) FROM table_25017530_5 WHERE player = "Steven Turner"
{ "input": "CREATE TABLE table_25017530_5 (pick__number INTEGER, player VARCHAR)", "instruction": "Name the least pick number for steven turner", "output": "SELECT MIN(pick__number) FROM table_25017530_5 WHERE player = \"Steven Turner\"" }
### INSTRUCTION What is Score, when Outcome is "winner", when Partnering is "Nicole Sewell", and when Opponent in Final is "Victoria Davies / Kate Warne-Holland"? ### INPUT CREATE TABLE table_name_50 (score VARCHAR, opponent_in_final VARCHAR, outcome VARCHAR, partnering VARCHAR) ### OUTPUT SELECT score FROM table_name_50 WHERE outcome = "winner" AND partnering = "nicole sewell" AND opponent_in_final = "victoria davies / kate warne-holland"
{ "input": "CREATE TABLE table_name_50 (score VARCHAR, opponent_in_final VARCHAR, outcome VARCHAR, partnering VARCHAR)", "instruction": "What is Score, when Outcome is \"winner\", when Partnering is \"Nicole Sewell\", and when Opponent in Final is \"Victoria Davies / Kate Warne-Holland\"?", "output": "SELECT score FROM table_name_50 WHERE outcome = \"winner\" AND partnering = \"nicole sewell\" AND opponent_in_final = \"victoria davies / kate warne-holland\"" }
### INSTRUCTION What was the date that construction was finished when the unit was greifswald - 4 (kgr 4)? ### INPUT CREATE TABLE table_name_28 (finish_construction VARCHAR, unit VARCHAR) ### OUTPUT SELECT finish_construction FROM table_name_28 WHERE unit = "greifswald - 4 (kgr 4)"
{ "input": "CREATE TABLE table_name_28 (finish_construction VARCHAR, unit VARCHAR)", "instruction": "What was the date that construction was finished when the unit was greifswald - 4 (kgr 4)?", "output": "SELECT finish_construction FROM table_name_28 WHERE unit = \"greifswald - 4 (kgr 4)\"" }
### INSTRUCTION Which Yards is the highest one that has a Rec smaller than 54, and a Long smaller than 5, and a Player of todd herremans, and an Avg larger than 1? ### INPUT CREATE TABLE table_name_51 (yards INTEGER, avg VARCHAR, player VARCHAR, rec VARCHAR, long VARCHAR) ### OUTPUT SELECT MAX(yards) FROM table_name_51 WHERE rec < 54 AND long < 5 AND player = "todd herremans" AND avg > 1
{ "input": "CREATE TABLE table_name_51 (yards INTEGER, avg VARCHAR, player VARCHAR, rec VARCHAR, long VARCHAR)", "instruction": "Which Yards is the highest one that has a Rec smaller than 54, and a Long smaller than 5, and a Player of todd herremans, and an Avg larger than 1?", "output": "SELECT MAX(yards) FROM table_name_51 WHERE rec < 54 AND long < 5 AND player = \"todd herremans\" AND avg > 1" }
### INSTRUCTION Which nationality's distance was 500m before 2012, when the record was 1:37.071s? ### INPUT CREATE TABLE table_name_26 (nationality VARCHAR, record VARCHAR, distance VARCHAR, year VARCHAR) ### OUTPUT SELECT nationality FROM table_name_26 WHERE distance = "500m" AND year < 2012 AND record = "1:37.071s"
{ "input": "CREATE TABLE table_name_26 (nationality VARCHAR, record VARCHAR, distance VARCHAR, year VARCHAR)", "instruction": "Which nationality's distance was 500m before 2012, when the record was 1:37.071s?", "output": "SELECT nationality FROM table_name_26 WHERE distance = \"500m\" AND year < 2012 AND record = \"1:37.071s\"" }
### INSTRUCTION What was the vote tally on the episode aired May 5, 2005? ### INPUT CREATE TABLE table_1272844_2 (vote VARCHAR, air_date VARCHAR) ### OUTPUT SELECT vote FROM table_1272844_2 WHERE air_date = "May 5, 2005"
{ "input": "CREATE TABLE table_1272844_2 (vote VARCHAR, air_date VARCHAR)", "instruction": "What was the vote tally on the episode aired May 5, 2005?", "output": "SELECT vote FROM table_1272844_2 WHERE air_date = \"May 5, 2005\"" }
### INSTRUCTION What is the total of lane(s) for swimmers from Sweden with a 50m split of faster than 26.25? ### INPUT CREATE TABLE table_name_24 (lane INTEGER, nationality VARCHAR, split__50m_ VARCHAR) ### OUTPUT SELECT SUM(lane) FROM table_name_24 WHERE nationality = "sweden" AND split__50m_ < 26.25
{ "input": "CREATE TABLE table_name_24 (lane INTEGER, nationality VARCHAR, split__50m_ VARCHAR)", "instruction": "What is the total of lane(s) for swimmers from Sweden with a 50m split of faster than 26.25?", "output": "SELECT SUM(lane) FROM table_name_24 WHERE nationality = \"sweden\" AND split__50m_ < 26.25" }
### INSTRUCTION What is the conserved in mus musculus listing for sequence aagtact? ### INPUT CREATE TABLE table_26708105_2 (conserved_in_mus_musculus VARCHAR, sequence VARCHAR) ### OUTPUT SELECT conserved_in_mus_musculus FROM table_26708105_2 WHERE sequence = "aAGTAct"
{ "input": "CREATE TABLE table_26708105_2 (conserved_in_mus_musculus VARCHAR, sequence VARCHAR)", "instruction": "What is the conserved in mus musculus listing for sequence aagtact?", "output": "SELECT conserved_in_mus_musculus FROM table_26708105_2 WHERE sequence = \"aAGTAct\"" }
### INSTRUCTION How many new entries are there for a second phase that has 4 winners from previous rounds? ### INPUT CREATE TABLE table_name_71 (new_entries_this_round VARCHAR, phase VARCHAR, winners_from_previous_round VARCHAR) ### OUTPUT SELECT new_entries_this_round FROM table_name_71 WHERE phase = "second phase" AND winners_from_previous_round = "4"
{ "input": "CREATE TABLE table_name_71 (new_entries_this_round VARCHAR, phase VARCHAR, winners_from_previous_round VARCHAR)", "instruction": "How many new entries are there for a second phase that has 4 winners from previous rounds?", "output": "SELECT new_entries_this_round FROM table_name_71 WHERE phase = \"second phase\" AND winners_from_previous_round = \"4\"" }
### INSTRUCTION What is the total number of silver medals for karate athletes with over 2 golds? ### INPUT CREATE TABLE table_name_33 (silver VARCHAR, sport VARCHAR, gold VARCHAR) ### OUTPUT SELECT COUNT(silver) FROM table_name_33 WHERE sport = "karate" AND gold > 2
{ "input": "CREATE TABLE table_name_33 (silver VARCHAR, sport VARCHAR, gold VARCHAR)", "instruction": "What is the total number of silver medals for karate athletes with over 2 golds?", "output": "SELECT COUNT(silver) FROM table_name_33 WHERE sport = \"karate\" AND gold > 2" }
### INSTRUCTION Before 1981, how many Points did Team Suzuki have with less than 0 Wins? ### INPUT CREATE TABLE table_name_96 (points INTEGER, wins VARCHAR, team VARCHAR, year VARCHAR) ### OUTPUT SELECT SUM(points) FROM table_name_96 WHERE team = "suzuki" AND year < 1981 AND wins < 0
{ "input": "CREATE TABLE table_name_96 (points INTEGER, wins VARCHAR, team VARCHAR, year VARCHAR)", "instruction": "Before 1981, how many Points did Team Suzuki have with less than 0 Wins?", "output": "SELECT SUM(points) FROM table_name_96 WHERE team = \"suzuki\" AND year < 1981 AND wins < 0" }
### INSTRUCTION Which Attendance has a Date of december 22, 1985, and a Week smaller than 16? ### INPUT CREATE TABLE table_name_65 (attendance INTEGER, date VARCHAR, week VARCHAR) ### OUTPUT SELECT SUM(attendance) FROM table_name_65 WHERE date = "december 22, 1985" AND week < 16
{ "input": "CREATE TABLE table_name_65 (attendance INTEGER, date VARCHAR, week VARCHAR)", "instruction": "Which Attendance has a Date of december 22, 1985, and a Week smaller than 16?", "output": "SELECT SUM(attendance) FROM table_name_65 WHERE date = \"december 22, 1985\" AND week < 16" }
### INSTRUCTION When Bunky Henry of the United States scored higher than 67 and his To par was e, what was his place? ### INPUT CREATE TABLE table_name_18 (place VARCHAR, player VARCHAR, to_par VARCHAR, score VARCHAR, country VARCHAR) ### OUTPUT SELECT place FROM table_name_18 WHERE score > 67 AND country = "united states" AND to_par = "e" AND player = "bunky henry"
{ "input": "CREATE TABLE table_name_18 (place VARCHAR, player VARCHAR, to_par VARCHAR, score VARCHAR, country VARCHAR)", "instruction": "When Bunky Henry of the United States scored higher than 67 and his To par was e, what was his place?", "output": "SELECT place FROM table_name_18 WHERE score > 67 AND country = \"united states\" AND to_par = \"e\" AND player = \"bunky henry\"" }
### INSTRUCTION What venue has a score of 4-0 with the 2002 Tiger Cup listed as the competition? ### INPUT CREATE TABLE table_name_26 (venue VARCHAR, score VARCHAR, competition VARCHAR) ### OUTPUT SELECT venue FROM table_name_26 WHERE score = "4-0" AND competition = "2002 tiger cup"
{ "input": "CREATE TABLE table_name_26 (venue VARCHAR, score VARCHAR, competition VARCHAR)", "instruction": "What venue has a score of 4-0 with the 2002 Tiger Cup listed as the competition?", "output": "SELECT venue FROM table_name_26 WHERE score = \"4-0\" AND competition = \"2002 tiger cup\"" }
### INSTRUCTION When has a cause of gas explosion, a Death toll smaller than 63, and a Location of penygraig? ### INPUT CREATE TABLE table_name_60 (date VARCHAR, location VARCHAR, cause VARCHAR, death_toll VARCHAR) ### OUTPUT SELECT date FROM table_name_60 WHERE cause = "gas explosion" AND death_toll < 63 AND location = "penygraig"
{ "input": "CREATE TABLE table_name_60 (date VARCHAR, location VARCHAR, cause VARCHAR, death_toll VARCHAR)", "instruction": "When has a cause of gas explosion, a Death toll smaller than 63, and a Location of penygraig?", "output": "SELECT date FROM table_name_60 WHERE cause = \"gas explosion\" AND death_toll < 63 AND location = \"penygraig\"" }
### INSTRUCTION What was the world rank by QS in 2013 for the University of Otago? ### INPUT CREATE TABLE table_27484208_1 (world_rank_by_qs_ VARCHAR, _2013 VARCHAR, members VARCHAR) ### OUTPUT SELECT world_rank_by_qs_, _2013 FROM table_27484208_1 WHERE members = "University of Otago"
{ "input": "CREATE TABLE table_27484208_1 (world_rank_by_qs_ VARCHAR, _2013 VARCHAR, members VARCHAR)", "instruction": "What was the world rank by QS in 2013 for the University of Otago?", "output": "SELECT world_rank_by_qs_, _2013 FROM table_27484208_1 WHERE members = \"University of Otago\"" }
### INSTRUCTION Which television service has programmi per adulti 24h/24 content and no HDTV? ### INPUT CREATE TABLE table_name_41 (television_service VARCHAR, content VARCHAR, hdtv VARCHAR) ### OUTPUT SELECT television_service FROM table_name_41 WHERE content = "programmi per adulti 24h/24" AND hdtv = "no"
{ "input": "CREATE TABLE table_name_41 (television_service VARCHAR, content VARCHAR, hdtv VARCHAR)", "instruction": "Which television service has programmi per adulti 24h/24 content and no HDTV?", "output": "SELECT television_service FROM table_name_41 WHERE content = \"programmi per adulti 24h/24\" AND hdtv = \"no\"" }
### INSTRUCTION What is the name of the country that has a transfer window of winter with an end after 2009 and moving from Bolton Wanderers? ### INPUT CREATE TABLE table_name_45 (country VARCHAR, moving_from VARCHAR, transfer_window VARCHAR, ends VARCHAR) ### OUTPUT SELECT country FROM table_name_45 WHERE transfer_window = "winter" AND ends > 2009 AND moving_from = "bolton wanderers"
{ "input": "CREATE TABLE table_name_45 (country VARCHAR, moving_from VARCHAR, transfer_window VARCHAR, ends VARCHAR)", "instruction": "What is the name of the country that has a transfer window of winter with an end after 2009 and moving from Bolton Wanderers?", "output": "SELECT country FROM table_name_45 WHERE transfer_window = \"winter\" AND ends > 2009 AND moving_from = \"bolton wanderers\"" }
### INSTRUCTION What was the percentage in Manitoba in 2011? ### INPUT CREATE TABLE table_1717824_1 (_percentage_2011 VARCHAR, province VARCHAR) ### OUTPUT SELECT _percentage_2011 FROM table_1717824_1 WHERE province = "Manitoba"
{ "input": "CREATE TABLE table_1717824_1 (_percentage_2011 VARCHAR, province VARCHAR)", "instruction": "What was the percentage in Manitoba in 2011?", "output": "SELECT _percentage_2011 FROM table_1717824_1 WHERE province = \"Manitoba\"" }
### INSTRUCTION Which film has the most number of actors or actresses? List the film name, film id and description. ### INPUT CREATE TABLE film_actor (film_id VARCHAR); CREATE TABLE film (title VARCHAR, film_id VARCHAR, description VARCHAR) ### OUTPUT SELECT T2.title, T2.film_id, T2.description FROM film_actor AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T2.film_id ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE film_actor (film_id VARCHAR); CREATE TABLE film (title VARCHAR, film_id VARCHAR, description VARCHAR)", "instruction": "Which film has the most number of actors or actresses? List the film name, film id and description.", "output": "SELECT T2.title, T2.film_id, T2.description FROM film_actor AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T2.film_id ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION What are the market city/market(s) for Rapid City Alternative format? ### INPUT CREATE TABLE table_134987_3 (target_city__market VARCHAR, city_of_license VARCHAR, format VARCHAR) ### OUTPUT SELECT target_city__market FROM table_134987_3 WHERE city_of_license = "Rapid City" AND format = "Alternative"
{ "input": "CREATE TABLE table_134987_3 (target_city__market VARCHAR, city_of_license VARCHAR, format VARCHAR)", "instruction": "What are the market city/market(s) for Rapid City Alternative format?", "output": "SELECT target_city__market FROM table_134987_3 WHERE city_of_license = \"Rapid City\" AND format = \"Alternative\"" }
### INSTRUCTION what is the record when the opponent is jeff williams? ### INPUT CREATE TABLE table_name_37 (record VARCHAR, opponent VARCHAR) ### OUTPUT SELECT record FROM table_name_37 WHERE opponent = "jeff williams"
{ "input": "CREATE TABLE table_name_37 (record VARCHAR, opponent VARCHAR)", "instruction": "what is the record when the opponent is jeff williams?", "output": "SELECT record FROM table_name_37 WHERE opponent = \"jeff williams\"" }
### INSTRUCTION Find the average age of the students who have allergies with food and animal types. ### INPUT CREATE TABLE Student (age INTEGER, StuID VARCHAR); CREATE TABLE Allergy_Type (Allergy VARCHAR, allergytype VARCHAR); CREATE TABLE Has_allergy (StuID VARCHAR, Allergy VARCHAR) ### OUTPUT SELECT AVG(age) FROM Student WHERE StuID IN (SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "food" INTERSECT SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "animal")
{ "input": "CREATE TABLE Student (age INTEGER, StuID VARCHAR); CREATE TABLE Allergy_Type (Allergy VARCHAR, allergytype VARCHAR); CREATE TABLE Has_allergy (StuID VARCHAR, Allergy VARCHAR)", "instruction": "Find the average age of the students who have allergies with food and animal types.", "output": "SELECT AVG(age) FROM Student WHERE StuID IN (SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\" INTERSECT SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"animal\")" }
### INSTRUCTION What is the withdrawal rate for the school district with a graduation rate of 89.3%? ### INPUT CREATE TABLE table_21514460_1 (withdrawal_rate__2010_11_ VARCHAR, graduation_rate__2011_12_ VARCHAR) ### OUTPUT SELECT withdrawal_rate__2010_11_ FROM table_21514460_1 WHERE graduation_rate__2011_12_ = "89.3%"
{ "input": "CREATE TABLE table_21514460_1 (withdrawal_rate__2010_11_ VARCHAR, graduation_rate__2011_12_ VARCHAR)", "instruction": "What is the withdrawal rate for the school district with a graduation rate of 89.3%?", "output": "SELECT withdrawal_rate__2010_11_ FROM table_21514460_1 WHERE graduation_rate__2011_12_ = \"89.3%\"" }
### INSTRUCTION Find the texts of assessment notes for teachers with last name "Schuster". ### INPUT CREATE TABLE Assessment_Notes (text_of_notes VARCHAR, teacher_id VARCHAR); CREATE TABLE Teachers (teacher_id VARCHAR, last_name VARCHAR) ### OUTPUT SELECT T1.text_of_notes FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.last_name = "Schuster"
{ "input": "CREATE TABLE Assessment_Notes (text_of_notes VARCHAR, teacher_id VARCHAR); CREATE TABLE Teachers (teacher_id VARCHAR, last_name VARCHAR)", "instruction": "Find the texts of assessment notes for teachers with last name \"Schuster\".", "output": "SELECT T1.text_of_notes FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.last_name = \"Schuster\"" }
### INSTRUCTION are in tobago species liophis cobellus cobellus? ### INPUT CREATE TABLE table_1850282_5 (tobago VARCHAR, species VARCHAR) ### OUTPUT SELECT tobago FROM table_1850282_5 WHERE species = "Liophis cobellus cobellus"
{ "input": "CREATE TABLE table_1850282_5 (tobago VARCHAR, species VARCHAR)", "instruction": "are in tobago species liophis cobellus cobellus?", "output": "SELECT tobago FROM table_1850282_5 WHERE species = \"Liophis cobellus cobellus\"" }
### INSTRUCTION Which team had 1 race, 1 F/lap and in the series 24 hours of Nurburgring? ### INPUT CREATE TABLE table_name_44 (team VARCHAR, series VARCHAR, races VARCHAR, f_laps VARCHAR) ### OUTPUT SELECT team FROM table_name_44 WHERE races = "1" AND f_laps = "1" AND series = "24 hours of nurburgring"
{ "input": "CREATE TABLE table_name_44 (team VARCHAR, series VARCHAR, races VARCHAR, f_laps VARCHAR)", "instruction": "Which team had 1 race, 1 F/lap and in the series 24 hours of Nurburgring?", "output": "SELECT team FROM table_name_44 WHERE races = \"1\" AND f_laps = \"1\" AND series = \"24 hours of nurburgring\"" }
### INSTRUCTION What is the lowest quantity for GWR Nos. 696, 779, 93 5 from the manufacturer Peckett and Sons? ### INPUT CREATE TABLE table_name_72 (quantity INTEGER, manufacturer VARCHAR, gwr_nos VARCHAR) ### OUTPUT SELECT MIN(quantity) FROM table_name_72 WHERE manufacturer = "peckett and sons" AND gwr_nos = "696, 779, 93 5"
{ "input": "CREATE TABLE table_name_72 (quantity INTEGER, manufacturer VARCHAR, gwr_nos VARCHAR)", "instruction": "What is the lowest quantity for GWR Nos. 696, 779, 93 5 from the manufacturer Peckett and Sons?", "output": "SELECT MIN(quantity) FROM table_name_72 WHERE manufacturer = \"peckett and sons\" AND gwr_nos = \"696, 779, 93 5\"" }
### INSTRUCTION What year did maggs magnificent mild bear win overall at the camra reading branch beer festival? ### INPUT CREATE TABLE table_name_62 (year INTEGER, category VARCHAR, beer_name VARCHAR, competition VARCHAR) ### OUTPUT SELECT MAX(year) FROM table_name_62 WHERE beer_name = "maggs magnificent mild" AND competition = "camra reading branch beer festival" AND category = "overall"
{ "input": "CREATE TABLE table_name_62 (year INTEGER, category VARCHAR, beer_name VARCHAR, competition VARCHAR)", "instruction": "What year did maggs magnificent mild bear win overall at the camra reading branch beer festival?", "output": "SELECT MAX(year) FROM table_name_62 WHERE beer_name = \"maggs magnificent mild\" AND competition = \"camra reading branch beer festival\" AND category = \"overall\"" }
### INSTRUCTION What is California State University, Hayward's new conference for Western Collegiate Lacrosse? ### INPUT CREATE TABLE table_14976504_2 (new_conference VARCHAR, institution VARCHAR) ### OUTPUT SELECT new_conference FROM table_14976504_2 WHERE institution = "California State University, Hayward"
{ "input": "CREATE TABLE table_14976504_2 (new_conference VARCHAR, institution VARCHAR)", "instruction": "What is California State University, Hayward's new conference for Western Collegiate Lacrosse?", "output": "SELECT new_conference FROM table_14976504_2 WHERE institution = \"California State University, Hayward\"" }
### INSTRUCTION In what poll is John Oxendine at 32%? ### INPUT CREATE TABLE table_name_67 (poll_source VARCHAR, john_oxendine VARCHAR) ### OUTPUT SELECT poll_source FROM table_name_67 WHERE john_oxendine = "32%"
{ "input": "CREATE TABLE table_name_67 (poll_source VARCHAR, john_oxendine VARCHAR)", "instruction": "In what poll is John Oxendine at 32%?", "output": "SELECT poll_source FROM table_name_67 WHERE john_oxendine = \"32%\"" }
### INSTRUCTION What is the score for the away team when they played Hawthorn? ### INPUT CREATE TABLE table_name_46 (away_team VARCHAR, home_team VARCHAR) ### OUTPUT SELECT away_team AS score FROM table_name_46 WHERE home_team = "hawthorn"
{ "input": "CREATE TABLE table_name_46 (away_team VARCHAR, home_team VARCHAR)", "instruction": "What is the score for the away team when they played Hawthorn?", "output": "SELECT away_team AS score FROM table_name_46 WHERE home_team = \"hawthorn\"" }
### INSTRUCTION How many trains call at Castor, Overton, Peterborough East and are operated by LNWR? ### INPUT CREATE TABLE table_12221135_3 (arrival VARCHAR, operator VARCHAR, calling_at VARCHAR) ### OUTPUT SELECT COUNT(arrival) FROM table_12221135_3 WHERE operator = "LNWR" AND calling_at = "Castor, Overton, Peterborough East"
{ "input": "CREATE TABLE table_12221135_3 (arrival VARCHAR, operator VARCHAR, calling_at VARCHAR)", "instruction": "How many trains call at Castor, Overton, Peterborough East and are operated by LNWR?", "output": "SELECT COUNT(arrival) FROM table_12221135_3 WHERE operator = \"LNWR\" AND calling_at = \"Castor, Overton, Peterborough East\"" }
### INSTRUCTION How many Ties have Years of 1919–1925, and a Pct larger than 0.734? ### INPUT CREATE TABLE table_name_75 (ties INTEGER, years VARCHAR, pct VARCHAR) ### OUTPUT SELECT SUM(ties) FROM table_name_75 WHERE years = "1919–1925" AND pct > 0.734
{ "input": "CREATE TABLE table_name_75 (ties INTEGER, years VARCHAR, pct VARCHAR)", "instruction": "How many Ties have Years of 1919–1925, and a Pct larger than 0.734?", "output": "SELECT SUM(ties) FROM table_name_75 WHERE years = \"1919–1925\" AND pct > 0.734" }
### INSTRUCTION What is the original air date the was written by mark st. germain and direct by jay sandrich? ### INPUT CREATE TABLE table_2818164_7 (original_air_date VARCHAR, written_by VARCHAR, directed_by VARCHAR) ### OUTPUT SELECT original_air_date FROM table_2818164_7 WHERE written_by = "Mark St. Germain" AND directed_by = "Jay Sandrich"
{ "input": "CREATE TABLE table_2818164_7 (original_air_date VARCHAR, written_by VARCHAR, directed_by VARCHAR)", "instruction": "What is the original air date the was written by mark st. germain and direct by jay sandrich?", "output": "SELECT original_air_date FROM table_2818164_7 WHERE written_by = \"Mark St. Germain\" AND directed_by = \"Jay Sandrich\"" }
### INSTRUCTION What is the number of Bronze medals of the Nation with 64 total and silver greater than 16? ### INPUT CREATE TABLE table_name_88 (bronze VARCHAR, total VARCHAR, silver VARCHAR) ### OUTPUT SELECT COUNT(bronze) FROM table_name_88 WHERE total = 64 AND silver > 16
{ "input": "CREATE TABLE table_name_88 (bronze VARCHAR, total VARCHAR, silver VARCHAR)", "instruction": "What is the number of Bronze medals of the Nation with 64 total and silver greater than 16?", "output": "SELECT COUNT(bronze) FROM table_name_88 WHERE total = 64 AND silver > 16" }
### INSTRUCTION Find the names of schools that have more than one donator with donation amount above 8.5. ### INPUT CREATE TABLE school (School_name VARCHAR, school_id VARCHAR); CREATE TABLE endowment (school_id VARCHAR, amount INTEGER) ### OUTPUT SELECT T2.School_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T1.amount > 8.5 GROUP BY T1.school_id HAVING COUNT(*) > 1
{ "input": "CREATE TABLE school (School_name VARCHAR, school_id VARCHAR); CREATE TABLE endowment (school_id VARCHAR, amount INTEGER)", "instruction": "Find the names of schools that have more than one donator with donation amount above 8.5.", "output": "SELECT T2.School_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T1.amount > 8.5 GROUP BY T1.school_id HAVING COUNT(*) > 1" }
### INSTRUCTION Find the name of instructors who are advising more than one student. ### INPUT CREATE TABLE advisor (i_id VARCHAR); CREATE TABLE instructor (name VARCHAR, id VARCHAR) ### OUTPUT SELECT T1.name FROM instructor AS T1 JOIN advisor AS T2 ON T1.id = T2.i_id GROUP BY T2.i_id HAVING COUNT(*) > 1
{ "input": "CREATE TABLE advisor (i_id VARCHAR); CREATE TABLE instructor (name VARCHAR, id VARCHAR)", "instruction": "Find the name of instructors who are advising more than one student.", "output": "SELECT T1.name FROM instructor AS T1 JOIN advisor AS T2 ON T1.id = T2.i_id GROUP BY T2.i_id HAVING COUNT(*) > 1" }
### INSTRUCTION What is the highest GA when GF is 39? ### INPUT CREATE TABLE table_1888157_1 (ga INTEGER, gf VARCHAR) ### OUTPUT SELECT MAX(ga) FROM table_1888157_1 WHERE gf = 39
{ "input": "CREATE TABLE table_1888157_1 (ga INTEGER, gf VARCHAR)", "instruction": "What is the highest GA when GF is 39?", "output": "SELECT MAX(ga) FROM table_1888157_1 WHERE gf = 39" }
### INSTRUCTION What was the air date of the episod that had 456.58 thousand viewers? ### INPUT CREATE TABLE table_23114705_7 (original_air_date VARCHAR, nz_viewers__thousand_ VARCHAR) ### OUTPUT SELECT original_air_date FROM table_23114705_7 WHERE nz_viewers__thousand_ = "456.58"
{ "input": "CREATE TABLE table_23114705_7 (original_air_date VARCHAR, nz_viewers__thousand_ VARCHAR)", "instruction": "What was the air date of the episod that had 456.58 thousand viewers?", "output": "SELECT original_air_date FROM table_23114705_7 WHERE nz_viewers__thousand_ = \"456.58\"" }
### INSTRUCTION What was the box score for the game that had the Townsville Crocodiles as home team? ### INPUT CREATE TABLE table_name_95 (Box VARCHAR, home_team VARCHAR) ### OUTPUT SELECT Box AS score FROM table_name_95 WHERE home_team = "townsville crocodiles"
{ "input": "CREATE TABLE table_name_95 (Box VARCHAR, home_team VARCHAR)", "instruction": "What was the box score for the game that had the Townsville Crocodiles as home team?", "output": "SELECT Box AS score FROM table_name_95 WHERE home_team = \"townsville crocodiles\"" }
### INSTRUCTION Wat is the tax source system code and master customer id of the taxes related to each parking fine id? ### INPUT CREATE TABLE CMI_Cross_References (source_system_code VARCHAR, master_customer_id VARCHAR, cmi_cross_ref_id VARCHAR); CREATE TABLE Parking_Fines (council_tax_id VARCHAR, cmi_cross_ref_id VARCHAR) ### OUTPUT SELECT T1.source_system_code, T1.master_customer_id, T2.council_tax_id FROM CMI_Cross_References AS T1 JOIN Parking_Fines AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id
{ "input": "CREATE TABLE CMI_Cross_References (source_system_code VARCHAR, master_customer_id VARCHAR, cmi_cross_ref_id VARCHAR); CREATE TABLE Parking_Fines (council_tax_id VARCHAR, cmi_cross_ref_id VARCHAR)", "instruction": "Wat is the tax source system code and master customer id of the taxes related to each parking fine id?", "output": "SELECT T1.source_system_code, T1.master_customer_id, T2.council_tax_id FROM CMI_Cross_References AS T1 JOIN Parking_Fines AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id" }
### INSTRUCTION What is the most elevated TF1 # that has an Official # larger than 47, and an Air date (France) of 13 july 2010? ### INPUT CREATE TABLE table_name_95 (tf1__number INTEGER, official__number VARCHAR, air_date__france_ VARCHAR) ### OUTPUT SELECT MAX(tf1__number) FROM table_name_95 WHERE official__number > 47 AND air_date__france_ = "13 july 2010"
{ "input": "CREATE TABLE table_name_95 (tf1__number INTEGER, official__number VARCHAR, air_date__france_ VARCHAR)", "instruction": "What is the most elevated TF1 # that has an Official # larger than 47, and an Air date (France) of 13 july 2010?", "output": "SELECT MAX(tf1__number) FROM table_name_95 WHERE official__number > 47 AND air_date__france_ = \"13 july 2010\"" }
### INSTRUCTION What was the categorie in 2002 at the Berlin international Film Festival that Danielle Darrieux was in? ### INPUT CREATE TABLE table_name_39 (categorie VARCHAR, year VARCHAR, awards VARCHAR) ### OUTPUT SELECT categorie FROM table_name_39 WHERE year = 2002 AND awards = "berlin international film festival"
{ "input": "CREATE TABLE table_name_39 (categorie VARCHAR, year VARCHAR, awards VARCHAR)", "instruction": "What was the categorie in 2002 at the Berlin international Film Festival that Danielle Darrieux was in?", "output": "SELECT categorie FROM table_name_39 WHERE year = 2002 AND awards = \"berlin international film festival\"" }
### INSTRUCTION What stadium has a final score of 26–21? ### INPUT CREATE TABLE table_name_8 (stadium VARCHAR, final_score VARCHAR) ### OUTPUT SELECT stadium FROM table_name_8 WHERE final_score = "26–21"
{ "input": "CREATE TABLE table_name_8 (stadium VARCHAR, final_score VARCHAR)", "instruction": "What stadium has a final score of 26–21?", "output": "SELECT stadium FROM table_name_8 WHERE final_score = \"26–21\"" }
### INSTRUCTION Show all storm names except for those with at least two affected regions. ### INPUT CREATE TABLE storm (name VARCHAR); CREATE TABLE affected_region (storm_id VARCHAR); CREATE TABLE storm (name VARCHAR, storm_id VARCHAR) ### OUTPUT SELECT name FROM storm EXCEPT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING COUNT(*) >= 2
{ "input": "CREATE TABLE storm (name VARCHAR); CREATE TABLE affected_region (storm_id VARCHAR); CREATE TABLE storm (name VARCHAR, storm_id VARCHAR)", "instruction": "Show all storm names except for those with at least two affected regions.", "output": "SELECT name FROM storm EXCEPT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING COUNT(*) >= 2" }
### INSTRUCTION Of the games with a record of 80-81, what was the highest attendance? ### INPUT CREATE TABLE table_name_89 (attendance INTEGER, record VARCHAR) ### OUTPUT SELECT MAX(attendance) FROM table_name_89 WHERE record = "80-81"
{ "input": "CREATE TABLE table_name_89 (attendance INTEGER, record VARCHAR)", "instruction": "Of the games with a record of 80-81, what was the highest attendance?", "output": "SELECT MAX(attendance) FROM table_name_89 WHERE record = \"80-81\"" }
### INSTRUCTION Which average Played has a Drawn smaller than 1, and Points larger than 4? ### INPUT CREATE TABLE table_name_83 (played INTEGER, drawn VARCHAR, points VARCHAR) ### OUTPUT SELECT AVG(played) FROM table_name_83 WHERE drawn < 1 AND points > 4
{ "input": "CREATE TABLE table_name_83 (played INTEGER, drawn VARCHAR, points VARCHAR)", "instruction": "Which average Played has a Drawn smaller than 1, and Points larger than 4?", "output": "SELECT AVG(played) FROM table_name_83 WHERE drawn < 1 AND points > 4" }
### INSTRUCTION Who won Miss Air (1st Runner-up) when Catherine Untalan was Miss Water (2nd Runner-up) earlier than 2007? ### INPUT CREATE TABLE table_name_35 (miss_air__1st_runner_up_ VARCHAR, year VARCHAR, miss_water__2nd_runner_up_ VARCHAR) ### OUTPUT SELECT miss_air__1st_runner_up_ FROM table_name_35 WHERE year < 2007 AND miss_water__2nd_runner_up_ = "catherine untalan"
{ "input": "CREATE TABLE table_name_35 (miss_air__1st_runner_up_ VARCHAR, year VARCHAR, miss_water__2nd_runner_up_ VARCHAR)", "instruction": "Who won Miss Air (1st Runner-up) when Catherine Untalan was Miss Water (2nd Runner-up) earlier than 2007?", "output": "SELECT miss_air__1st_runner_up_ FROM table_name_35 WHERE year < 2007 AND miss_water__2nd_runner_up_ = \"catherine untalan\"" }
### INSTRUCTION All players are position mark polak. ### INPUT CREATE TABLE table_1013129_10 (position VARCHAR, player VARCHAR) ### OUTPUT SELECT position FROM table_1013129_10 WHERE player = "Mark Polak"
{ "input": "CREATE TABLE table_1013129_10 (position VARCHAR, player VARCHAR)", "instruction": "All players are position mark polak.", "output": "SELECT position FROM table_1013129_10 WHERE player = \"Mark Polak\"" }
### INSTRUCTION How much Long has a Loss larger than 2, and a Gain of 157, and an Avg/G smaller than 129? ### INPUT CREATE TABLE table_name_58 (long INTEGER, avg_g VARCHAR, loss VARCHAR, gain VARCHAR) ### OUTPUT SELECT SUM(long) FROM table_name_58 WHERE loss > 2 AND gain = 157 AND avg_g < 129
{ "input": "CREATE TABLE table_name_58 (long INTEGER, avg_g VARCHAR, loss VARCHAR, gain VARCHAR)", "instruction": "How much Long has a Loss larger than 2, and a Gain of 157, and an Avg/G smaller than 129?", "output": "SELECT SUM(long) FROM table_name_58 WHERE loss > 2 AND gain = 157 AND avg_g < 129" }
### INSTRUCTION In episode 7 what was the highest amount of money requested by Jerry Mantalvanos & Paul Merker ? ### INPUT CREATE TABLE table_name_24 (money_requested__ INTEGER, episode VARCHAR, entrepreneur_s_ VARCHAR) ### OUTPUT SELECT MAX(money_requested__) AS £_ FROM table_name_24 WHERE episode = "episode 7" AND entrepreneur_s_ = "jerry mantalvanos & paul merker"
{ "input": "CREATE TABLE table_name_24 (money_requested__ INTEGER, episode VARCHAR, entrepreneur_s_ VARCHAR)", "instruction": "In episode 7 what was the highest amount of money requested by Jerry Mantalvanos & Paul Merker ?", "output": "SELECT MAX(money_requested__) AS £_ FROM table_name_24 WHERE episode = \"episode 7\" AND entrepreneur_s_ = \"jerry mantalvanos & paul merker\"" }
### INSTRUCTION How much Attendance has an Opponent of rockies, and a Record of 32-30? ### INPUT CREATE TABLE table_name_34 (attendance INTEGER, opponent VARCHAR, record VARCHAR) ### OUTPUT SELECT SUM(attendance) FROM table_name_34 WHERE opponent = "rockies" AND record = "32-30"
{ "input": "CREATE TABLE table_name_34 (attendance INTEGER, opponent VARCHAR, record VARCHAR)", "instruction": "How much Attendance has an Opponent of rockies, and a Record of 32-30?", "output": "SELECT SUM(attendance) FROM table_name_34 WHERE opponent = \"rockies\" AND record = \"32-30\"" }
### INSTRUCTION Name the score for september 25 ### INPUT CREATE TABLE table_name_93 (score VARCHAR, date VARCHAR) ### OUTPUT SELECT score FROM table_name_93 WHERE date = "september 25"
{ "input": "CREATE TABLE table_name_93 (score VARCHAR, date VARCHAR)", "instruction": "Name the score for september 25", "output": "SELECT score FROM table_name_93 WHERE date = \"september 25\"" }
### INSTRUCTION What were the total games in the Big Ten conference when Nebraska lost fewer than 488 games and had a Pct less than 0.7014? ### INPUT CREATE TABLE table_name_68 (total_games INTEGER, pct VARCHAR, team VARCHAR, conference VARCHAR, lost VARCHAR) ### OUTPUT SELECT SUM(total_games) FROM table_name_68 WHERE conference = "big ten" AND lost < 488 AND team = "nebraska" AND pct < 0.7014
{ "input": "CREATE TABLE table_name_68 (total_games INTEGER, pct VARCHAR, team VARCHAR, conference VARCHAR, lost VARCHAR)", "instruction": "What were the total games in the Big Ten conference when Nebraska lost fewer than 488 games and had a Pct less than 0.7014?", "output": "SELECT SUM(total_games) FROM table_name_68 WHERE conference = \"big ten\" AND lost < 488 AND team = \"nebraska\" AND pct < 0.7014" }
### INSTRUCTION What is the location of the match with Aron Lofton as the opponent? ### INPUT CREATE TABLE table_name_29 (location VARCHAR, opponent VARCHAR) ### OUTPUT SELECT location FROM table_name_29 WHERE opponent = "aron lofton"
{ "input": "CREATE TABLE table_name_29 (location VARCHAR, opponent VARCHAR)", "instruction": "What is the location of the match with Aron Lofton as the opponent?", "output": "SELECT location FROM table_name_29 WHERE opponent = \"aron lofton\"" }
### INSTRUCTION What was the surface later than 1979, for the Melbourne Indoor, Australia, and the score was 2–6, 6–2, 6–2? ### INPUT CREATE TABLE table_name_75 (surface VARCHAR, score VARCHAR, date VARCHAR, championship VARCHAR) ### OUTPUT SELECT surface FROM table_name_75 WHERE date > 1979 AND championship = "melbourne indoor, australia" AND score = "2–6, 6–2, 6–2"
{ "input": "CREATE TABLE table_name_75 (surface VARCHAR, score VARCHAR, date VARCHAR, championship VARCHAR)", "instruction": "What was the surface later than 1979, for the Melbourne Indoor, Australia, and the score was 2–6, 6–2, 6–2?", "output": "SELECT surface FROM table_name_75 WHERE date > 1979 AND championship = \"melbourne indoor, australia\" AND score = \"2–6, 6–2, 6–2\"" }
### INSTRUCTION Which IHSAA Football Class has a Location of wabash, and a School of wabash? ### INPUT CREATE TABLE table_name_50 (ihsaa_football_class VARCHAR, location VARCHAR, school VARCHAR) ### OUTPUT SELECT ihsaa_football_class FROM table_name_50 WHERE location = "wabash" AND school = "wabash"
{ "input": "CREATE TABLE table_name_50 (ihsaa_football_class VARCHAR, location VARCHAR, school VARCHAR)", "instruction": "Which IHSAA Football Class has a Location of wabash, and a School of wabash?", "output": "SELECT ihsaa_football_class FROM table_name_50 WHERE location = \"wabash\" AND school = \"wabash\"" }
### INSTRUCTION What day did Glentoran play at Windsor Park, Belfast? ### INPUT CREATE TABLE table_name_34 (date VARCHAR, team VARCHAR, venue VARCHAR) ### OUTPUT SELECT date FROM table_name_34 WHERE team = "glentoran" AND venue = "windsor park, belfast"
{ "input": "CREATE TABLE table_name_34 (date VARCHAR, team VARCHAR, venue VARCHAR)", "instruction": "What day did Glentoran play at Windsor Park, Belfast?", "output": "SELECT date FROM table_name_34 WHERE team = \"glentoran\" AND venue = \"windsor park, belfast\"" }
### INSTRUCTION which Film has a Category of best actress – musical or comedy, and a Lost to of nicole kidman ( moulin rouge! )? ### INPUT CREATE TABLE table_name_23 (film VARCHAR, category VARCHAR, lost_to VARCHAR) ### OUTPUT SELECT film FROM table_name_23 WHERE category = "best actress – musical or comedy" AND lost_to = "nicole kidman ( moulin rouge! )"
{ "input": "CREATE TABLE table_name_23 (film VARCHAR, category VARCHAR, lost_to VARCHAR)", "instruction": "which Film has a Category of best actress – musical or comedy, and a Lost to of nicole kidman ( moulin rouge! )?", "output": "SELECT film FROM table_name_23 WHERE category = \"best actress – musical or comedy\" AND lost_to = \"nicole kidman ( moulin rouge! )\"" }
### INSTRUCTION What player in the United States had a total of 286 and won in 2003? ### INPUT CREATE TABLE table_name_78 (player VARCHAR, year_s__won VARCHAR, country VARCHAR, total VARCHAR) ### OUTPUT SELECT player FROM table_name_78 WHERE country = "united states" AND total = 286 AND year_s__won = "2003"
{ "input": "CREATE TABLE table_name_78 (player VARCHAR, year_s__won VARCHAR, country VARCHAR, total VARCHAR)", "instruction": "What player in the United States had a total of 286 and won in 2003?", "output": "SELECT player FROM table_name_78 WHERE country = \"united states\" AND total = 286 AND year_s__won = \"2003\"" }
### INSTRUCTION What integrated school had a decile of 2 and a roll larger than 55? ### INPUT CREATE TABLE table_name_69 (name VARCHAR, roll VARCHAR, decile VARCHAR, authority VARCHAR) ### OUTPUT SELECT name FROM table_name_69 WHERE decile = 2 AND authority = "integrated" AND roll > 55
{ "input": "CREATE TABLE table_name_69 (name VARCHAR, roll VARCHAR, decile VARCHAR, authority VARCHAR)", "instruction": "What integrated school had a decile of 2 and a roll larger than 55?", "output": "SELECT name FROM table_name_69 WHERE decile = 2 AND authority = \"integrated\" AND roll > 55" }
### INSTRUCTION What is the average year they finished 5th in santiago, chile? ### INPUT CREATE TABLE table_name_57 (year INTEGER, position VARCHAR, venue VARCHAR) ### OUTPUT SELECT AVG(year) FROM table_name_57 WHERE position = "5th" AND venue = "santiago, chile"
{ "input": "CREATE TABLE table_name_57 (year INTEGER, position VARCHAR, venue VARCHAR)", "instruction": "What is the average year they finished 5th in santiago, chile?", "output": "SELECT AVG(year) FROM table_name_57 WHERE position = \"5th\" AND venue = \"santiago, chile\"" }
### INSTRUCTION who won with a score of 199 (-14) on oct 31? ### INPUT CREATE TABLE table_name_21 (winner VARCHAR, score VARCHAR, date VARCHAR) ### OUTPUT SELECT winner FROM table_name_21 WHERE score = "199 (-14)" AND date = "oct 31"
{ "input": "CREATE TABLE table_name_21 (winner VARCHAR, score VARCHAR, date VARCHAR)", "instruction": "who won with a score of 199 (-14) on oct 31?", "output": "SELECT winner FROM table_name_21 WHERE score = \"199 (-14)\" AND date = \"oct 31\"" }
### INSTRUCTION Which class to 1928 value had years of manufacture of 1921/23 and class from 1928 of BCi-21? ### INPUT CREATE TABLE table_name_21 (class_to_1928 VARCHAR, year_s__of_manufacture VARCHAR, class_from_1928 VARCHAR) ### OUTPUT SELECT class_to_1928 FROM table_name_21 WHERE year_s__of_manufacture = "1921/23" AND class_from_1928 = "bci-21"
{ "input": "CREATE TABLE table_name_21 (class_to_1928 VARCHAR, year_s__of_manufacture VARCHAR, class_from_1928 VARCHAR)", "instruction": "Which class to 1928 value had years of manufacture of 1921/23 and class from 1928 of BCi-21?", "output": "SELECT class_to_1928 FROM table_name_21 WHERE year_s__of_manufacture = \"1921/23\" AND class_from_1928 = \"bci-21\"" }
### INSTRUCTION What is the average unit price of tracks that belong to Jazz genre? ### INPUT CREATE TABLE TRACK (GenreId VARCHAR); CREATE TABLE GENRE (GenreId VARCHAR, Name VARCHAR) ### OUTPUT SELECT AVG(UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = "Jazz"
{ "input": "CREATE TABLE TRACK (GenreId VARCHAR); CREATE TABLE GENRE (GenreId VARCHAR, Name VARCHAR)", "instruction": "What is the average unit price of tracks that belong to Jazz genre?", "output": "SELECT AVG(UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = \"Jazz\"" }
### INSTRUCTION Name the three for william prewett for four and five being richard ellis with seven being nicholas king on 5 november 1693 ### INPUT CREATE TABLE table_name_83 (three VARCHAR, date VARCHAR, seven VARCHAR, four VARCHAR, five VARCHAR) ### OUTPUT SELECT three FROM table_name_83 WHERE four = "william prewett" AND five = "richard ellis" AND seven = "nicholas king" AND date = "5 november 1693"
{ "input": "CREATE TABLE table_name_83 (three VARCHAR, date VARCHAR, seven VARCHAR, four VARCHAR, five VARCHAR)", "instruction": "Name the three for william prewett for four and five being richard ellis with seven being nicholas king on 5 november 1693", "output": "SELECT three FROM table_name_83 WHERE four = \"william prewett\" AND five = \"richard ellis\" AND seven = \"nicholas king\" AND date = \"5 november 1693\"" }
### INSTRUCTION In which Place was the Silver won by valeri postoianov ( urs ) later than 1969 and the Bronze won by alexander gazov ( urs )? ### INPUT CREATE TABLE table_name_50 (place VARCHAR, bronze VARCHAR, silver VARCHAR, year VARCHAR) ### OUTPUT SELECT place FROM table_name_50 WHERE silver = "valeri postoianov ( urs )" AND year > 1969 AND bronze = "alexander gazov ( urs )"
{ "input": "CREATE TABLE table_name_50 (place VARCHAR, bronze VARCHAR, silver VARCHAR, year VARCHAR)", "instruction": "In which Place was the Silver won by valeri postoianov ( urs ) later than 1969 and the Bronze won by alexander gazov ( urs )?", "output": "SELECT place FROM table_name_50 WHERE silver = \"valeri postoianov ( urs )\" AND year > 1969 AND bronze = \"alexander gazov ( urs )\"" }
### INSTRUCTION Which attendance has a Channel of espn, and a Date of september 5, 2002? ### INPUT CREATE TABLE table_name_57 (attendance VARCHAR, channel VARCHAR, date VARCHAR) ### OUTPUT SELECT attendance FROM table_name_57 WHERE channel = "espn" AND date = "september 5, 2002"
{ "input": "CREATE TABLE table_name_57 (attendance VARCHAR, channel VARCHAR, date VARCHAR)", "instruction": "Which attendance has a Channel of espn, and a Date of september 5, 2002?", "output": "SELECT attendance FROM table_name_57 WHERE channel = \"espn\" AND date = \"september 5, 2002\"" }
### INSTRUCTION Which team won against the New England Patriots 40-21? ### INPUT CREATE TABLE table_name_14 (winner VARCHAR, loser VARCHAR, result VARCHAR) ### OUTPUT SELECT winner FROM table_name_14 WHERE loser = "new england patriots" AND result = "40-21"
{ "input": "CREATE TABLE table_name_14 (winner VARCHAR, loser VARCHAR, result VARCHAR)", "instruction": "Which team won against the New England Patriots 40-21?", "output": "SELECT winner FROM table_name_14 WHERE loser = \"new england patriots\" AND result = \"40-21\"" }
### INSTRUCTION How many people per km2 are there in the municipality whose mayor is Boy Quiat? ### INPUT CREATE TABLE table_216776_2 (pop_density__per_km²_ VARCHAR, municipal_mayor VARCHAR) ### OUTPUT SELECT pop_density__per_km²_ FROM table_216776_2 WHERE municipal_mayor = "Boy Quiat"
{ "input": "CREATE TABLE table_216776_2 (pop_density__per_km²_ VARCHAR, municipal_mayor VARCHAR)", "instruction": "How many people per km2 are there in the municipality whose mayor is Boy Quiat?", "output": "SELECT pop_density__per_km²_ FROM table_216776_2 WHERE municipal_mayor = \"Boy Quiat\"" }
### INSTRUCTION How many insurgents have 602 as the total per period? ### INPUT CREATE TABLE table_21636599_1 (insurgents INTEGER, total_per_period VARCHAR) ### OUTPUT SELECT MAX(insurgents) FROM table_21636599_1 WHERE total_per_period = 602
{ "input": "CREATE TABLE table_21636599_1 (insurgents INTEGER, total_per_period VARCHAR)", "instruction": "How many insurgents have 602 as the total per period?", "output": "SELECT MAX(insurgents) FROM table_21636599_1 WHERE total_per_period = 602" }
### INSTRUCTION Which Assist/pass has a Score of 1-0,a Competition of 2010 concacaf world cup qualifying – group stage? ### INPUT CREATE TABLE table_name_14 (assist_pass VARCHAR, score VARCHAR, competition VARCHAR) ### OUTPUT SELECT assist_pass FROM table_name_14 WHERE score = "1-0" AND competition = "2010 concacaf world cup qualifying – group stage"
{ "input": "CREATE TABLE table_name_14 (assist_pass VARCHAR, score VARCHAR, competition VARCHAR)", "instruction": "Which Assist/pass has a Score of 1-0,a Competition of 2010 concacaf world cup qualifying – group stage?", "output": "SELECT assist_pass FROM table_name_14 WHERE score = \"1-0\" AND competition = \"2010 concacaf world cup qualifying – group stage\"" }
### INSTRUCTION Who is the h.s. principal with Dave Lovering as w.r. principal and Marty Pizur as m.s. principal? ### INPUT CREATE TABLE table_name_99 (hs_principal VARCHAR, wr_principal VARCHAR, ms_principal VARCHAR) ### OUTPUT SELECT hs_principal FROM table_name_99 WHERE wr_principal = "dave lovering" AND ms_principal = "marty pizur"
{ "input": "CREATE TABLE table_name_99 (hs_principal VARCHAR, wr_principal VARCHAR, ms_principal VARCHAR)", "instruction": "Who is the h.s. principal with Dave Lovering as w.r. principal and Marty Pizur as m.s. principal?", "output": "SELECT hs_principal FROM table_name_99 WHERE wr_principal = \"dave lovering\" AND ms_principal = \"marty pizur\"" }
### INSTRUCTION Which League championship is the lowest one that has a Venue of penn state ice pavilion, and a Club of penn state nittany lions men's ice hockey? ### INPUT CREATE TABLE table_name_78 (league INTEGER, venue VARCHAR, club VARCHAR) ### OUTPUT SELECT MIN(league) AS championships FROM table_name_78 WHERE venue = "penn state ice pavilion" AND club = "penn state nittany lions men's ice hockey"
{ "input": "CREATE TABLE table_name_78 (league INTEGER, venue VARCHAR, club VARCHAR)", "instruction": "Which League championship is the lowest one that has a Venue of penn state ice pavilion, and a Club of penn state nittany lions men's ice hockey?", "output": "SELECT MIN(league) AS championships FROM table_name_78 WHERE venue = \"penn state ice pavilion\" AND club = \"penn state nittany lions men's ice hockey\"" }
### INSTRUCTION who is the the winning driver with pole position being paul tracy and race name being miller genuine draft 200 ### INPUT CREATE TABLE table_14638077_2 (winning_driver VARCHAR, pole_position VARCHAR, race_name VARCHAR) ### OUTPUT SELECT winning_driver FROM table_14638077_2 WHERE pole_position = "Paul Tracy" AND race_name = "Miller Genuine Draft 200"
{ "input": "CREATE TABLE table_14638077_2 (winning_driver VARCHAR, pole_position VARCHAR, race_name VARCHAR)", "instruction": "who is the the winning driver with pole position being paul tracy and race name being miller genuine draft 200", "output": "SELECT winning_driver FROM table_14638077_2 WHERE pole_position = \"Paul Tracy\" AND race_name = \"Miller Genuine Draft 200\"" }
### INSTRUCTION What's the location for the country of platte? ### INPUT CREATE TABLE table_name_64 (location VARCHAR, county VARCHAR) ### OUTPUT SELECT location FROM table_name_64 WHERE county = "platte"
{ "input": "CREATE TABLE table_name_64 (location VARCHAR, county VARCHAR)", "instruction": "What's the location for the country of platte?", "output": "SELECT location FROM table_name_64 WHERE county = \"platte\"" }
### INSTRUCTION What college did Louis LeBlanc attend? ### INPUT CREATE TABLE table_name_66 (college_junior_club_team__league_ VARCHAR, player VARCHAR) ### OUTPUT SELECT college_junior_club_team__league_ FROM table_name_66 WHERE player = "louis leblanc"
{ "input": "CREATE TABLE table_name_66 (college_junior_club_team__league_ VARCHAR, player VARCHAR)", "instruction": "What college did Louis LeBlanc attend?", "output": "SELECT college_junior_club_team__league_ FROM table_name_66 WHERE player = \"louis leblanc\"" }
### INSTRUCTION What's the least mpg-UK combined when the mpg-UK urban is 25.4, the L/100km extra urban is less than 6.9 and the L/100km urban is more than 11.1? ### INPUT CREATE TABLE table_name_42 (mpg_uk_combined INTEGER, l_100km_urban__cold_ VARCHAR, mpg_uk_urban__cold_ VARCHAR, l_100km_extra_urban VARCHAR) ### OUTPUT SELECT MIN(mpg_uk_combined) FROM table_name_42 WHERE mpg_uk_urban__cold_ = 25.4 AND l_100km_extra_urban < 6.9 AND l_100km_urban__cold_ > 11.1
{ "input": "CREATE TABLE table_name_42 (mpg_uk_combined INTEGER, l_100km_urban__cold_ VARCHAR, mpg_uk_urban__cold_ VARCHAR, l_100km_extra_urban VARCHAR)", "instruction": "What's the least mpg-UK combined when the mpg-UK urban is 25.4, the L/100km extra urban is less than 6.9 and the L/100km urban is more than 11.1?", "output": "SELECT MIN(mpg_uk_combined) FROM table_name_42 WHERE mpg_uk_urban__cold_ = 25.4 AND l_100km_extra_urban < 6.9 AND l_100km_urban__cold_ > 11.1" }
### INSTRUCTION Which candidate lost the election that 770,046 people voted in? ### INPUT CREATE TABLE table_name_99 (candidate VARCHAR, outcome_of_election VARCHAR, number_of_votes VARCHAR) ### OUTPUT SELECT candidate FROM table_name_99 WHERE outcome_of_election = "lost" AND number_of_votes = "770,046"
{ "input": "CREATE TABLE table_name_99 (candidate VARCHAR, outcome_of_election VARCHAR, number_of_votes VARCHAR)", "instruction": "Which candidate lost the election that 770,046 people voted in?", "output": "SELECT candidate FROM table_name_99 WHERE outcome_of_election = \"lost\" AND number_of_votes = \"770,046\"" }
### INSTRUCTION what is the place when the event is 4000 m individual pursuit? ### INPUT CREATE TABLE table_name_2 (place VARCHAR, event VARCHAR) ### OUTPUT SELECT place FROM table_name_2 WHERE event = "4000 m individual pursuit"
{ "input": "CREATE TABLE table_name_2 (place VARCHAR, event VARCHAR)", "instruction": "what is the place when the event is 4000 m individual pursuit?", "output": "SELECT place FROM table_name_2 WHERE event = \"4000 m individual pursuit\"" }
### INSTRUCTION Find the list of attribute data types possessed by more than 3 attribute definitions. ### INPUT CREATE TABLE Attribute_Definitions (attribute_data_type VARCHAR) ### OUTPUT SELECT attribute_data_type FROM Attribute_Definitions GROUP BY attribute_data_type HAVING COUNT(*) > 3
{ "input": "CREATE TABLE Attribute_Definitions (attribute_data_type VARCHAR)", "instruction": "Find the list of attribute data types possessed by more than 3 attribute definitions.", "output": "SELECT attribute_data_type FROM Attribute_Definitions GROUP BY attribute_data_type HAVING COUNT(*) > 3" }
### INSTRUCTION What is the highest ff when solo is 56? ### INPUT CREATE TABLE table_26176081_29 (ff INTEGER, solo VARCHAR) ### OUTPUT SELECT MAX(ff) FROM table_26176081_29 WHERE solo = 56
{ "input": "CREATE TABLE table_26176081_29 (ff INTEGER, solo VARCHAR)", "instruction": "What is the highest ff when solo is 56?", "output": "SELECT MAX(ff) FROM table_26176081_29 WHERE solo = 56" }
### INSTRUCTION What is the description for the budget type with code ORG? ### INPUT CREATE TABLE Ref_budget_codes (budget_type_description VARCHAR, budget_type_code VARCHAR) ### OUTPUT SELECT budget_type_description FROM Ref_budget_codes WHERE budget_type_code = "ORG"
{ "input": "CREATE TABLE Ref_budget_codes (budget_type_description VARCHAR, budget_type_code VARCHAR)", "instruction": "What is the description for the budget type with code ORG?", "output": "SELECT budget_type_description FROM Ref_budget_codes WHERE budget_type_code = \"ORG\"" }
### INSTRUCTION Name the high points for pepsi center 18,611 ### INPUT CREATE TABLE table_17355408_5 (high_points VARCHAR, location_attendance VARCHAR) ### OUTPUT SELECT high_points FROM table_17355408_5 WHERE location_attendance = "Pepsi Center 18,611"
{ "input": "CREATE TABLE table_17355408_5 (high_points VARCHAR, location_attendance VARCHAR)", "instruction": "Name the high points for pepsi center 18,611", "output": "SELECT high_points FROM table_17355408_5 WHERE location_attendance = \"Pepsi Center 18,611\"" }
### INSTRUCTION What's the sum of swing to gain with a winning party 2007 of Conservative with a rank smaller than 5? ### INPUT CREATE TABLE table_name_70 (swing_to_gain INTEGER, winning_party_2007 VARCHAR, rank VARCHAR) ### OUTPUT SELECT SUM(swing_to_gain) FROM table_name_70 WHERE winning_party_2007 = "conservative" AND rank < 5
{ "input": "CREATE TABLE table_name_70 (swing_to_gain INTEGER, winning_party_2007 VARCHAR, rank VARCHAR)", "instruction": "What's the sum of swing to gain with a winning party 2007 of Conservative with a rank smaller than 5?", "output": "SELECT SUM(swing_to_gain) FROM table_name_70 WHERE winning_party_2007 = \"conservative\" AND rank < 5" }
### INSTRUCTION Which Schwaben has a Oberbayern of fc bayern munich ii and a Mittelfranken of 1. fc nuremberg ii? ### INPUT CREATE TABLE table_name_15 (schwaben VARCHAR, oberbayern VARCHAR, mittelfranken VARCHAR) ### OUTPUT SELECT schwaben FROM table_name_15 WHERE oberbayern = "fc bayern munich ii" AND mittelfranken = "1. fc nuremberg ii"
{ "input": "CREATE TABLE table_name_15 (schwaben VARCHAR, oberbayern VARCHAR, mittelfranken VARCHAR)", "instruction": "Which Schwaben has a Oberbayern of fc bayern munich ii and a Mittelfranken of 1. fc nuremberg ii?", "output": "SELECT schwaben FROM table_name_15 WHERE oberbayern = \"fc bayern munich ii\" AND mittelfranken = \"1. fc nuremberg ii\"" }
### INSTRUCTION what is the highest gold when the rank is 12 for the nation vietnam? ### INPUT CREATE TABLE table_name_18 (gold INTEGER, rank VARCHAR, nation VARCHAR) ### OUTPUT SELECT MAX(gold) FROM table_name_18 WHERE rank = "12" AND nation = "vietnam"
{ "input": "CREATE TABLE table_name_18 (gold INTEGER, rank VARCHAR, nation VARCHAR)", "instruction": "what is the highest gold when the rank is 12 for the nation vietnam?", "output": "SELECT MAX(gold) FROM table_name_18 WHERE rank = \"12\" AND nation = \"vietnam\"" }
### INSTRUCTION What start has a ford cosworth dfx as the engine, a year later than 1981, and kraco enterprises as the entrant? ### INPUT CREATE TABLE table_name_22 (start VARCHAR, entrant VARCHAR, engine VARCHAR, year VARCHAR) ### OUTPUT SELECT start FROM table_name_22 WHERE engine = "ford cosworth dfx" AND year > 1981 AND entrant = "kraco enterprises"
{ "input": "CREATE TABLE table_name_22 (start VARCHAR, entrant VARCHAR, engine VARCHAR, year VARCHAR)", "instruction": "What start has a ford cosworth dfx as the engine, a year later than 1981, and kraco enterprises as the entrant?", "output": "SELECT start FROM table_name_22 WHERE engine = \"ford cosworth dfx\" AND year > 1981 AND entrant = \"kraco enterprises\"" }
### INSTRUCTION What is the Date, when the Sport is luge - men's doubles, and when the Record is, "start"? ### INPUT CREATE TABLE table_name_90 (date VARCHAR, sport VARCHAR, record VARCHAR) ### OUTPUT SELECT date FROM table_name_90 WHERE sport = "luge - men's doubles" AND record = "start"
{ "input": "CREATE TABLE table_name_90 (date VARCHAR, sport VARCHAR, record VARCHAR)", "instruction": "What is the Date, when the Sport is luge - men's doubles, and when the Record is, \"start\"?", "output": "SELECT date FROM table_name_90 WHERE sport = \"luge - men's doubles\" AND record = \"start\"" }
### INSTRUCTION Show the name of cities in the county that has the largest number of police officers. ### INPUT CREATE TABLE city (name VARCHAR, county_ID VARCHAR, Police_officers VARCHAR); CREATE TABLE county_public_safety (name VARCHAR, county_ID VARCHAR, Police_officers VARCHAR) ### OUTPUT SELECT name FROM city WHERE county_ID = (SELECT county_ID FROM county_public_safety ORDER BY Police_officers DESC LIMIT 1)
{ "input": "CREATE TABLE city (name VARCHAR, county_ID VARCHAR, Police_officers VARCHAR); CREATE TABLE county_public_safety (name VARCHAR, county_ID VARCHAR, Police_officers VARCHAR)", "instruction": "Show the name of cities in the county that has the largest number of police officers.", "output": "SELECT name FROM city WHERE county_ID = (SELECT county_ID FROM county_public_safety ORDER BY Police_officers DESC LIMIT 1)" }
### INSTRUCTION How many earnings have Wins larger than 3? ### INPUT CREATE TABLE table_name_70 (earnings___ INTEGER, wins INTEGER) ### OUTPUT SELECT SUM(earnings___) AS $__ FROM table_name_70 WHERE wins > 3
{ "input": "CREATE TABLE table_name_70 (earnings___ INTEGER, wins INTEGER)", "instruction": "How many earnings have Wins larger than 3?", "output": "SELECT SUM(earnings___) AS $__ FROM table_name_70 WHERE wins > 3" }
### INSTRUCTION How many rounds were there in Karlskoga Motorstadion with Roger Eriksson at the pole position? ### INPUT CREATE TABLE table_20079931_4 (round VARCHAR, circuit_location VARCHAR, pole_position VARCHAR) ### OUTPUT SELECT COUNT(round) FROM table_20079931_4 WHERE circuit_location = "Karlskoga Motorstadion" AND pole_position = "Roger Eriksson"
{ "input": "CREATE TABLE table_20079931_4 (round VARCHAR, circuit_location VARCHAR, pole_position VARCHAR)", "instruction": "How many rounds were there in Karlskoga Motorstadion with Roger Eriksson at the pole position?", "output": "SELECT COUNT(round) FROM table_20079931_4 WHERE circuit_location = \"Karlskoga Motorstadion\" AND pole_position = \"Roger Eriksson\"" }
### INSTRUCTION On how many different dates did the episode directed by Marcos Siega and written by Scott Buck air for the first time? ### INPUT CREATE TABLE table_24132083_1 (original_air_date VARCHAR, directed_by VARCHAR, written_by VARCHAR) ### OUTPUT SELECT COUNT(original_air_date) FROM table_24132083_1 WHERE directed_by = "Marcos Siega" AND written_by = "Scott Buck"
{ "input": "CREATE TABLE table_24132083_1 (original_air_date VARCHAR, directed_by VARCHAR, written_by VARCHAR)", "instruction": "On how many different dates did the episode directed by Marcos Siega and written by Scott Buck air for the first time?", "output": "SELECT COUNT(original_air_date) FROM table_24132083_1 WHERE directed_by = \"Marcos Siega\" AND written_by = \"Scott Buck\"" }
### INSTRUCTION What is the first and last name of the professor in biology department? ### INPUT CREATE TABLE professor (dept_code VARCHAR, EMP_NUM VARCHAR); CREATE TABLE department (dept_code VARCHAR); CREATE TABLE employee (EMP_FNAME VARCHAR, EMP_LNAME VARCHAR, EMP_NUM VARCHAR) ### OUTPUT SELECT T3.EMP_FNAME, T3.EMP_LNAME FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code JOIN employee AS T3 ON T1.EMP_NUM = T3.EMP_NUM WHERE DEPT_NAME = "Biology"
{ "input": "CREATE TABLE professor (dept_code VARCHAR, EMP_NUM VARCHAR); CREATE TABLE department (dept_code VARCHAR); CREATE TABLE employee (EMP_FNAME VARCHAR, EMP_LNAME VARCHAR, EMP_NUM VARCHAR)", "instruction": "What is the first and last name of the professor in biology department?", "output": "SELECT T3.EMP_FNAME, T3.EMP_LNAME FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code JOIN employee AS T3 ON T1.EMP_NUM = T3.EMP_NUM WHERE DEPT_NAME = \"Biology\"" }
### INSTRUCTION Which stadium has a payout of $3 million? ### INPUT CREATE TABLE table_16046689_29 (stadium VARCHAR, payout___us$__ VARCHAR) ### OUTPUT SELECT stadium FROM table_16046689_29 WHERE payout___us$__ = "$3 Million"
{ "input": "CREATE TABLE table_16046689_29 (stadium VARCHAR, payout___us$__ VARCHAR)", "instruction": "Which stadium has a payout of $3 million?", "output": "SELECT stadium FROM table_16046689_29 WHERE payout___us$__ = \"$3 Million\"" }
### INSTRUCTION Name the mens singles when womens singles is wang lin and mixed doubles is joachim fischer nielsen christinna pedersen ### INPUT CREATE TABLE table_14496232_2 (mens_singles VARCHAR, womens_singles VARCHAR, mixed_doubles VARCHAR) ### OUTPUT SELECT mens_singles FROM table_14496232_2 WHERE womens_singles = "Wang Lin" AND mixed_doubles = "Joachim Fischer Nielsen Christinna Pedersen"
{ "input": "CREATE TABLE table_14496232_2 (mens_singles VARCHAR, womens_singles VARCHAR, mixed_doubles VARCHAR)", "instruction": "Name the mens singles when womens singles is wang lin and mixed doubles is joachim fischer nielsen christinna pedersen", "output": "SELECT mens_singles FROM table_14496232_2 WHERE womens_singles = \"Wang Lin\" AND mixed_doubles = \"Joachim Fischer Nielsen Christinna Pedersen\"" }