text
stringlengths
147
1.06k
source
dict
### INSTRUCTION Who was the 3rd place team at Pardubice? ### INPUT CREATE TABLE table_name_41 (venue VARCHAR) ### OUTPUT SELECT 3 AS rd_place FROM table_name_41 WHERE venue = "pardubice"
{ "input": "CREATE TABLE table_name_41 (venue VARCHAR)", "instruction": "Who was the 3rd place team at Pardubice?", "output": "SELECT 3 AS rd_place FROM table_name_41 WHERE venue = \"pardubice\"" }
### INSTRUCTION what is the weeks on chart for the single from france? ### INPUT CREATE TABLE table_name_92 (weeks_on_chart VARCHAR, country VARCHAR) ### OUTPUT SELECT weeks_on_chart FROM table_name_92 WHERE country = "france"
{ "input": "CREATE TABLE table_name_92 (weeks_on_chart VARCHAR, country VARCHAR)", "instruction": "what is the weeks on chart for the single from france?", "output": "SELECT weeks_on_chart FROM table_name_92 WHERE country = \"france\"" }
### INSTRUCTION What is Justin Leonard with a To par of –7's Score? ### INPUT CREATE TABLE table_name_32 (score VARCHAR, to_par VARCHAR, player VARCHAR) ### OUTPUT SELECT score FROM table_name_32 WHERE to_par = "–7" AND player = "justin leonard"
{ "input": "CREATE TABLE table_name_32 (score VARCHAR, to_par VARCHAR, player VARCHAR)", "instruction": "What is Justin Leonard with a To par of –7's Score?", "output": "SELECT score FROM table_name_32 WHERE to_par = \"–7\" AND player = \"justin leonard\"" }
### INSTRUCTION Which Score points has an Event of og beijing, and Rank points of olympic gold medalist? ### INPUT CREATE TABLE table_name_9 (score_points VARCHAR, event VARCHAR, rank_points VARCHAR) ### OUTPUT SELECT score_points FROM table_name_9 WHERE event = "og beijing" AND rank_points = "olympic gold medalist"
{ "input": "CREATE TABLE table_name_9 (score_points VARCHAR, event VARCHAR, rank_points VARCHAR)", "instruction": "Which Score points has an Event of og beijing, and Rank points of olympic gold medalist?", "output": "SELECT score_points FROM table_name_9 WHERE event = \"og beijing\" AND rank_points = \"olympic gold medalist\"" }
### INSTRUCTION Name the number of administrative county for area 1961 and 176694 ### INPUT CREATE TABLE table_14925084_1 (administrative_county VARCHAR, area_1961__statute_acres_ VARCHAR) ### OUTPUT SELECT COUNT(administrative_county) FROM table_14925084_1 WHERE area_1961__statute_acres_ = 176694
{ "input": "CREATE TABLE table_14925084_1 (administrative_county VARCHAR, area_1961__statute_acres_ VARCHAR)", "instruction": "Name the number of administrative county for area 1961 and 176694", "output": "SELECT COUNT(administrative_county) FROM table_14925084_1 WHERE area_1961__statute_acres_ = 176694" }
### INSTRUCTION Orbital period of 89 to 128 min has what specific orbital energy? ### INPUT CREATE TABLE table_name_73 (specific_orbital_energy VARCHAR, orbital_period VARCHAR) ### OUTPUT SELECT specific_orbital_energy FROM table_name_73 WHERE orbital_period = "89 to 128 min"
{ "input": "CREATE TABLE table_name_73 (specific_orbital_energy VARCHAR, orbital_period VARCHAR)", "instruction": "Orbital period of 89 to 128 min has what specific orbital energy?", "output": "SELECT specific_orbital_energy FROM table_name_73 WHERE orbital_period = \"89 to 128 min\"" }
### INSTRUCTION Who had the most points in game 4? ### INPUT CREATE TABLE table_17190012_12 (high_points VARCHAR, game VARCHAR) ### OUTPUT SELECT high_points FROM table_17190012_12 WHERE game = 4
{ "input": "CREATE TABLE table_17190012_12 (high_points VARCHAR, game VARCHAR)", "instruction": "Who had the most points in game 4?", "output": "SELECT high_points FROM table_17190012_12 WHERE game = 4" }
### INSTRUCTION How many orders does Lucas Mancini has? ### INPUT CREATE TABLE invoices (customer_id VARCHAR); CREATE TABLE customers (id VARCHAR, first_name VARCHAR, last_name VARCHAR) ### OUTPUT SELECT COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = "Lucas" AND T1.last_name = "Mancini"
{ "input": "CREATE TABLE invoices (customer_id VARCHAR); CREATE TABLE customers (id VARCHAR, first_name VARCHAR, last_name VARCHAR)", "instruction": "How many orders does Lucas Mancini has?", "output": "SELECT COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = \"Lucas\" AND T1.last_name = \"Mancini\"" }
### INSTRUCTION What is the casting temperature for the alloy with hardness 21? ### INPUT CREATE TABLE table_name_98 (casting_at__°c_ VARCHAR, hardness VARCHAR) ### OUTPUT SELECT casting_at__°c_ FROM table_name_98 WHERE hardness = "21"
{ "input": "CREATE TABLE table_name_98 (casting_at__°c_ VARCHAR, hardness VARCHAR)", "instruction": "What is the casting temperature for the alloy with hardness 21?", "output": "SELECT casting_at__°c_ FROM table_name_98 WHERE hardness = \"21\"" }
### INSTRUCTION Venue of klfa stadium, cheras, and a Score of 3-3 had what competition? ### INPUT CREATE TABLE table_name_71 (competition VARCHAR, venue VARCHAR, score VARCHAR) ### OUTPUT SELECT competition FROM table_name_71 WHERE venue = "klfa stadium, cheras" AND score = "3-3"
{ "input": "CREATE TABLE table_name_71 (competition VARCHAR, venue VARCHAR, score VARCHAR)", "instruction": "Venue of klfa stadium, cheras, and a Score of 3-3 had what competition?", "output": "SELECT competition FROM table_name_71 WHERE venue = \"klfa stadium, cheras\" AND score = \"3-3\"" }
### INSTRUCTION What is the maximum diameter of the Mid West Gas Pipeline (1999)? ### INPUT CREATE TABLE table_name_57 (maximum_diameter VARCHAR, name__year_commissioned_ VARCHAR) ### OUTPUT SELECT maximum_diameter FROM table_name_57 WHERE name__year_commissioned_ = "mid west gas pipeline (1999)"
{ "input": "CREATE TABLE table_name_57 (maximum_diameter VARCHAR, name__year_commissioned_ VARCHAR)", "instruction": "What is the maximum diameter of the Mid West Gas Pipeline (1999)?", "output": "SELECT maximum_diameter FROM table_name_57 WHERE name__year_commissioned_ = \"mid west gas pipeline (1999)\"" }
### INSTRUCTION What was the earliest week the team played the chicago cardinals in front of less than 25,312? ### INPUT CREATE TABLE table_name_12 (week INTEGER, opponent VARCHAR, attendance VARCHAR) ### OUTPUT SELECT MIN(week) FROM table_name_12 WHERE opponent = "chicago cardinals" AND attendance < 25 OFFSET 312
{ "input": "CREATE TABLE table_name_12 (week INTEGER, opponent VARCHAR, attendance VARCHAR)", "instruction": "What was the earliest week the team played the chicago cardinals in front of less than 25,312?", "output": "SELECT MIN(week) FROM table_name_12 WHERE opponent = \"chicago cardinals\" AND attendance < 25 OFFSET 312" }
### INSTRUCTION How many problems does the product with the most problems have? List the number of the problems and product name. ### INPUT CREATE TABLE problems (product_id VARCHAR); CREATE TABLE product (product_name VARCHAR, product_id VARCHAR) ### OUTPUT SELECT COUNT(*), T1.product_name FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_name ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE problems (product_id VARCHAR); CREATE TABLE product (product_name VARCHAR, product_id VARCHAR)", "instruction": "How many problems does the product with the most problems have? List the number of the problems and product name.", "output": "SELECT COUNT(*), T1.product_name FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_name ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION What is the name of the department that has the largest number of students enrolled? ### INPUT CREATE TABLE enroll (class_code VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE course (dept_code VARCHAR, crs_code VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR) ### OUTPUT SELECT T4.dept_name FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN department AS T4 ON T3.dept_code = T4.dept_code GROUP BY T3.dept_code ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE enroll (class_code VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE course (dept_code VARCHAR, crs_code VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR)", "instruction": "What is the name of the department that has the largest number of students enrolled?", "output": "SELECT T4.dept_name FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN department AS T4 ON T3.dept_code = T4.dept_code GROUP BY T3.dept_code ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION Which Class has a Number at Lincoln smaller than 1 and a Wheel Arrangement of 0-6-0? ### INPUT CREATE TABLE table_name_60 (class VARCHAR, number_at_lincoln VARCHAR, wheel_arrangement VARCHAR) ### OUTPUT SELECT class FROM table_name_60 WHERE number_at_lincoln < 1 AND wheel_arrangement = "0-6-0"
{ "input": "CREATE TABLE table_name_60 (class VARCHAR, number_at_lincoln VARCHAR, wheel_arrangement VARCHAR)", "instruction": "Which Class has a Number at Lincoln smaller than 1 and a Wheel Arrangement of 0-6-0?", "output": "SELECT class FROM table_name_60 WHERE number_at_lincoln < 1 AND wheel_arrangement = \"0-6-0\"" }
### INSTRUCTION Moving from Nancy after 2005, what is listed as the lowest rank? ### INPUT CREATE TABLE table_name_37 (rank INTEGER, year VARCHAR, moving_from VARCHAR) ### OUTPUT SELECT MIN(rank) FROM table_name_37 WHERE year > 2005 AND moving_from = "nancy"
{ "input": "CREATE TABLE table_name_37 (rank INTEGER, year VARCHAR, moving_from VARCHAR)", "instruction": "Moving from Nancy after 2005, what is listed as the lowest rank?", "output": "SELECT MIN(rank) FROM table_name_37 WHERE year > 2005 AND moving_from = \"nancy\"" }
### INSTRUCTION What was the score of the game at Great Western Forum? ### INPUT CREATE TABLE table_name_54 (score VARCHAR, location_attendance VARCHAR) ### OUTPUT SELECT score FROM table_name_54 WHERE location_attendance = "great western forum"
{ "input": "CREATE TABLE table_name_54 (score VARCHAR, location_attendance VARCHAR)", "instruction": "What was the score of the game at Great Western Forum?", "output": "SELECT score FROM table_name_54 WHERE location_attendance = \"great western forum\"" }
### INSTRUCTION Name the result with notes of quarter-finals and event of adcc 2001 absolute ### INPUT CREATE TABLE table_name_65 (result VARCHAR, notes VARCHAR, event VARCHAR) ### OUTPUT SELECT result FROM table_name_65 WHERE notes = "quarter-finals" AND event = "adcc 2001 absolute"
{ "input": "CREATE TABLE table_name_65 (result VARCHAR, notes VARCHAR, event VARCHAR)", "instruction": "Name the result with notes of quarter-finals and event of adcc 2001 absolute", "output": "SELECT result FROM table_name_65 WHERE notes = \"quarter-finals\" AND event = \"adcc 2001 absolute\"" }
### INSTRUCTION What is the ch# of dwlj-tv? ### INPUT CREATE TABLE table_12379297_1 (ch__number VARCHAR, callsign VARCHAR) ### OUTPUT SELECT ch__number FROM table_12379297_1 WHERE callsign = "DWLJ-TV"
{ "input": "CREATE TABLE table_12379297_1 (ch__number VARCHAR, callsign VARCHAR)", "instruction": "What is the ch# of dwlj-tv?", "output": "SELECT ch__number FROM table_12379297_1 WHERE callsign = \"DWLJ-TV\"" }
### INSTRUCTION What is the total number of unique official languages spoken in the countries that are founded before 1930? ### INPUT CREATE TABLE country (Code VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR, IsOfficial VARCHAR) ### OUTPUT SELECT COUNT(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE IndepYear < 1930 AND T2.IsOfficial = "T"
{ "input": "CREATE TABLE country (Code VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR, IsOfficial VARCHAR)", "instruction": "What is the total number of unique official languages spoken in the countries that are founded before 1930?", "output": "SELECT COUNT(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE IndepYear < 1930 AND T2.IsOfficial = \"T\"" }
### INSTRUCTION What manufacturer has a year made of 1923? ### INPUT CREATE TABLE table_name_73 (manufacturer VARCHAR, year_made VARCHAR) ### OUTPUT SELECT manufacturer FROM table_name_73 WHERE year_made = "1923"
{ "input": "CREATE TABLE table_name_73 (manufacturer VARCHAR, year_made VARCHAR)", "instruction": "What manufacturer has a year made of 1923?", "output": "SELECT manufacturer FROM table_name_73 WHERE year_made = \"1923\"" }
### INSTRUCTION What year did J. Jones, trearddur bay build a boat with a current status of tbsc? ### INPUT CREATE TABLE table_name_54 (year_built VARCHAR, current_status VARCHAR, boat_builder VARCHAR) ### OUTPUT SELECT year_built FROM table_name_54 WHERE current_status = "tbsc" AND boat_builder = "j. jones, trearddur bay"
{ "input": "CREATE TABLE table_name_54 (year_built VARCHAR, current_status VARCHAR, boat_builder VARCHAR)", "instruction": "What year did J. Jones, trearddur bay build a boat with a current status of tbsc?", "output": "SELECT year_built FROM table_name_54 WHERE current_status = \"tbsc\" AND boat_builder = \"j. jones, trearddur bay\"" }
### INSTRUCTION What league has a D position, a round smaller than 11 and is with Dennis Vial? ### INPUT CREATE TABLE table_name_84 (college_junior_club_team__league_ VARCHAR, player VARCHAR, position VARCHAR, round VARCHAR) ### OUTPUT SELECT college_junior_club_team__league_ FROM table_name_84 WHERE position = "d" AND round < 11 AND player = "dennis vial"
{ "input": "CREATE TABLE table_name_84 (college_junior_club_team__league_ VARCHAR, player VARCHAR, position VARCHAR, round VARCHAR)", "instruction": "What league has a D position, a round smaller than 11 and is with Dennis Vial?", "output": "SELECT college_junior_club_team__league_ FROM table_name_84 WHERE position = \"d\" AND round < 11 AND player = \"dennis vial\"" }
### INSTRUCTION How much Money is requested by BassToneSlap? ### INPUT CREATE TABLE table_name_10 (money_requested__£_ VARCHAR, company_or_product_name VARCHAR) ### OUTPUT SELECT money_requested__£_ FROM table_name_10 WHERE company_or_product_name = "basstoneslap"
{ "input": "CREATE TABLE table_name_10 (money_requested__£_ VARCHAR, company_or_product_name VARCHAR)", "instruction": "How much Money is requested by BassToneSlap?", "output": "SELECT money_requested__£_ FROM table_name_10 WHERE company_or_product_name = \"basstoneslap\"" }
### INSTRUCTION What is the total of Industrial and Commercial Panels that have a Labour Panel greater than 1, a Nominated by the Taoiseach lesss than 11 and a Cultural and Educational Panel smaller than 0 ### INPUT CREATE TABLE table_name_45 (industrial_and_commercial_panel VARCHAR, cultural_and_educational_panel VARCHAR, labour_panel VARCHAR, nominated_by_the_taoiseach VARCHAR) ### OUTPUT SELECT COUNT(industrial_and_commercial_panel) FROM table_name_45 WHERE labour_panel > 1 AND nominated_by_the_taoiseach < 11 AND cultural_and_educational_panel < 0
{ "input": "CREATE TABLE table_name_45 (industrial_and_commercial_panel VARCHAR, cultural_and_educational_panel VARCHAR, labour_panel VARCHAR, nominated_by_the_taoiseach VARCHAR)", "instruction": "What is the total of Industrial and Commercial Panels that have a Labour Panel greater than 1, a Nominated by the Taoiseach lesss than 11 and a Cultural and Educational Panel smaller than 0", "output": "SELECT COUNT(industrial_and_commercial_panel) FROM table_name_45 WHERE labour_panel > 1 AND nominated_by_the_taoiseach < 11 AND cultural_and_educational_panel < 0" }
### INSTRUCTION Show the names of employees that work for companies with sales bigger than 200. ### INPUT CREATE TABLE employment (People_ID VARCHAR, Company_ID VARCHAR); CREATE TABLE company (Company_ID VARCHAR, Sales_in_Billion INTEGER); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR) ### OUTPUT SELECT T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID WHERE T3.Sales_in_Billion > 200
{ "input": "CREATE TABLE employment (People_ID VARCHAR, Company_ID VARCHAR); CREATE TABLE company (Company_ID VARCHAR, Sales_in_Billion INTEGER); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR)", "instruction": "Show the names of employees that work for companies with sales bigger than 200.", "output": "SELECT T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID WHERE T3.Sales_in_Billion > 200" }
### INSTRUCTION Find the average weight for each pet type. ### INPUT CREATE TABLE pets (pettype VARCHAR, weight INTEGER) ### OUTPUT SELECT AVG(weight), pettype FROM pets GROUP BY pettype
{ "input": "CREATE TABLE pets (pettype VARCHAR, weight INTEGER)", "instruction": "Find the average weight for each pet type.", "output": "SELECT AVG(weight), pettype FROM pets GROUP BY pettype" }
### INSTRUCTION What is the total number of products that are in orders with status "Cancelled"? ### INPUT CREATE TABLE customer_orders (order_id VARCHAR, order_status VARCHAR); CREATE TABLE order_items (order_quantity INTEGER, order_id VARCHAR) ### OUTPUT SELECT SUM(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id = t2.order_id WHERE t1.order_status = "Cancelled"
{ "input": "CREATE TABLE customer_orders (order_id VARCHAR, order_status VARCHAR); CREATE TABLE order_items (order_quantity INTEGER, order_id VARCHAR)", "instruction": "What is the total number of products that are in orders with status \"Cancelled\"?", "output": "SELECT SUM(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id = t2.order_id WHERE t1.order_status = \"Cancelled\"" }
### INSTRUCTION What was the overall record in the season where average attendance was 16720? ### INPUT CREATE TABLE table_2771237_1 (overall_record VARCHAR, average_attendance VARCHAR) ### OUTPUT SELECT overall_record FROM table_2771237_1 WHERE average_attendance = 16720
{ "input": "CREATE TABLE table_2771237_1 (overall_record VARCHAR, average_attendance VARCHAR)", "instruction": "What was the overall record in the season where average attendance was 16720?", "output": "SELECT overall_record FROM table_2771237_1 WHERE average_attendance = 16720" }
### INSTRUCTION what are all the date withdrawn for service entered on 21 november 1945 ### INPUT CREATE TABLE table_11662133_3 (date_withdrawn VARCHAR, date_entered_service VARCHAR) ### OUTPUT SELECT date_withdrawn FROM table_11662133_3 WHERE date_entered_service = "21 November 1945"
{ "input": "CREATE TABLE table_11662133_3 (date_withdrawn VARCHAR, date_entered_service VARCHAR)", "instruction": "what are all the date withdrawn for service entered on 21 november 1945", "output": "SELECT date_withdrawn FROM table_11662133_3 WHERE date_entered_service = \"21 November 1945\"" }
### INSTRUCTION Please show the names of aircrafts associated with airport with name "London Gatwick". ### INPUT CREATE TABLE airport (Airport_ID VARCHAR, Airport_Name VARCHAR); CREATE TABLE aircraft (Aircraft VARCHAR, Aircraft_ID VARCHAR); CREATE TABLE airport_aircraft (Aircraft_ID VARCHAR, Airport_ID VARCHAR) ### OUTPUT SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Airport_Name = "London Gatwick"
{ "input": "CREATE TABLE airport (Airport_ID VARCHAR, Airport_Name VARCHAR); CREATE TABLE aircraft (Aircraft VARCHAR, Aircraft_ID VARCHAR); CREATE TABLE airport_aircraft (Aircraft_ID VARCHAR, Airport_ID VARCHAR)", "instruction": "Please show the names of aircrafts associated with airport with name \"London Gatwick\".", "output": "SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Airport_Name = \"London Gatwick\"" }
### INSTRUCTION What is Event, when Meet is "World Championships", and when Time is "20.51"? ### INPUT CREATE TABLE table_name_41 (event VARCHAR, meet VARCHAR, time VARCHAR) ### OUTPUT SELECT event FROM table_name_41 WHERE meet = "world championships" AND time = "20.51"
{ "input": "CREATE TABLE table_name_41 (event VARCHAR, meet VARCHAR, time VARCHAR)", "instruction": "What is Event, when Meet is \"World Championships\", and when Time is \"20.51\"?", "output": "SELECT event FROM table_name_41 WHERE meet = \"world championships\" AND time = \"20.51\"" }
### INSTRUCTION What country is new orleans in? ### INPUT CREATE TABLE table_28005160_2 (country VARCHAR, city VARCHAR) ### OUTPUT SELECT country FROM table_28005160_2 WHERE city = "New Orleans"
{ "input": "CREATE TABLE table_28005160_2 (country VARCHAR, city VARCHAR)", "instruction": "What country is new orleans in?", "output": "SELECT country FROM table_28005160_2 WHERE city = \"New Orleans\"" }
### INSTRUCTION What week #(s featured sara bareilles as the original artist? ### INPUT CREATE TABLE table_21501564_1 (week__number VARCHAR, original_artist VARCHAR) ### OUTPUT SELECT week__number FROM table_21501564_1 WHERE original_artist = "Sara Bareilles"
{ "input": "CREATE TABLE table_21501564_1 (week__number VARCHAR, original_artist VARCHAR)", "instruction": "What week #(s featured sara bareilles as the original artist?", "output": "SELECT week__number FROM table_21501564_1 WHERE original_artist = \"Sara Bareilles\"" }
### INSTRUCTION What date did the Chicago Bears beat the Green bay Packers 31-20? ### INPUT CREATE TABLE table_name_32 (date VARCHAR, loser VARCHAR, location VARCHAR) ### OUTPUT SELECT date FROM table_name_32 WHERE loser = "green bay packers" AND location = "green bay"
{ "input": "CREATE TABLE table_name_32 (date VARCHAR, loser VARCHAR, location VARCHAR)", "instruction": "What date did the Chicago Bears beat the Green bay Packers 31-20?", "output": "SELECT date FROM table_name_32 WHERE loser = \"green bay packers\" AND location = \"green bay\"" }
### INSTRUCTION What's the heigh of the player who went to lake howell high school? ### INPUT CREATE TABLE table_name_72 (height VARCHAR, school VARCHAR) ### OUTPUT SELECT height FROM table_name_72 WHERE school = "lake howell high school"
{ "input": "CREATE TABLE table_name_72 (height VARCHAR, school VARCHAR)", "instruction": "What's the heigh of the player who went to lake howell high school?", "output": "SELECT height FROM table_name_72 WHERE school = \"lake howell high school\"" }
### INSTRUCTION What is the free sotware with the latest stable date version of 1.1? ### INPUT CREATE TABLE table_name_78 (software VARCHAR, cost___usd__ VARCHAR, latest_stable_date__version_ VARCHAR) ### OUTPUT SELECT software FROM table_name_78 WHERE cost___usd__ = "free" AND latest_stable_date__version_ = "1.1"
{ "input": "CREATE TABLE table_name_78 (software VARCHAR, cost___usd__ VARCHAR, latest_stable_date__version_ VARCHAR)", "instruction": "What is the free sotware with the latest stable date version of 1.1?", "output": "SELECT software FROM table_name_78 WHERE cost___usd__ = \"free\" AND latest_stable_date__version_ = \"1.1\"" }
### INSTRUCTION What is the most recent year of disaffiliation of a CHCH-TV station that affiliated after 2001? ### INPUT CREATE TABLE table_name_31 (year_of_disaffiliation INTEGER, station VARCHAR, year_of_affiliation VARCHAR) ### OUTPUT SELECT MAX(year_of_disaffiliation) FROM table_name_31 WHERE station = "chch-tv" AND year_of_affiliation > 2001
{ "input": "CREATE TABLE table_name_31 (year_of_disaffiliation INTEGER, station VARCHAR, year_of_affiliation VARCHAR)", "instruction": "What is the most recent year of disaffiliation of a CHCH-TV station that affiliated after 2001?", "output": "SELECT MAX(year_of_disaffiliation) FROM table_name_31 WHERE station = \"chch-tv\" AND year_of_affiliation > 2001" }
### INSTRUCTION What party did the incumbent from the Virginia 5 district who was re-elected and was first elected in 1797 belong to? ### INPUT CREATE TABLE table_2668401_17 (party VARCHAR, district VARCHAR, result VARCHAR, first_elected VARCHAR) ### OUTPUT SELECT party FROM table_2668401_17 WHERE result = "Re-elected" AND first_elected = "1797" AND district = "Virginia 5"
{ "input": "CREATE TABLE table_2668401_17 (party VARCHAR, district VARCHAR, result VARCHAR, first_elected VARCHAR)", "instruction": "What party did the incumbent from the Virginia 5 district who was re-elected and was first elected in 1797 belong to?", "output": "SELECT party FROM table_2668401_17 WHERE result = \"Re-elected\" AND first_elected = \"1797\" AND district = \"Virginia 5\"" }
### INSTRUCTION For a vehicle below 25 feet, that was retired in 2005 and had a navistar t444e engine, what was the total width? ### INPUT CREATE TABLE table_name_11 (width__inches_ VARCHAR, length__feet_ VARCHAR, engine VARCHAR, retired VARCHAR) ### OUTPUT SELECT COUNT(width__inches_) FROM table_name_11 WHERE engine = "navistar t444e" AND retired = "2005" AND length__feet_ < 25
{ "input": "CREATE TABLE table_name_11 (width__inches_ VARCHAR, length__feet_ VARCHAR, engine VARCHAR, retired VARCHAR)", "instruction": "For a vehicle below 25 feet, that was retired in 2005 and had a navistar t444e engine, what was the total width?", "output": "SELECT COUNT(width__inches_) FROM table_name_11 WHERE engine = \"navistar t444e\" AND retired = \"2005\" AND length__feet_ < 25" }
### INSTRUCTION Find the average age of female (sex is F) students who have secretary votes in the spring election cycle. ### INPUT CREATE TABLE STUDENT (Age INTEGER, StuID VARCHAR, Sex VARCHAR); CREATE TABLE VOTING_RECORD (Election_Cycle VARCHAR) ### OUTPUT SELECT AVG(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.Sex = "F" AND T2.Election_Cycle = "Spring"
{ "input": "CREATE TABLE STUDENT (Age INTEGER, StuID VARCHAR, Sex VARCHAR); CREATE TABLE VOTING_RECORD (Election_Cycle VARCHAR)", "instruction": "Find the average age of female (sex is F) students who have secretary votes in the spring election cycle.", "output": "SELECT AVG(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.Sex = \"F\" AND T2.Election_Cycle = \"Spring\"" }
### INSTRUCTION What is the fleet number when the length (ft) is 30? ### INPUT CREATE TABLE table_19643196_1 (fleet__number VARCHAR, length__ft_ VARCHAR) ### OUTPUT SELECT fleet__number FROM table_19643196_1 WHERE length__ft_ = 30
{ "input": "CREATE TABLE table_19643196_1 (fleet__number VARCHAR, length__ft_ VARCHAR)", "instruction": "What is the fleet number when the length (ft) is 30?", "output": "SELECT fleet__number FROM table_19643196_1 WHERE length__ft_ = 30" }
### INSTRUCTION What is the lowest enrollment amount for a year left of 2012 and a current conference of Mid-South? ### INPUT CREATE TABLE table_name_17 (enrollment INTEGER, left VARCHAR, current_conference VARCHAR) ### OUTPUT SELECT MIN(enrollment) FROM table_name_17 WHERE left = 2012 AND current_conference = "mid-south"
{ "input": "CREATE TABLE table_name_17 (enrollment INTEGER, left VARCHAR, current_conference VARCHAR)", "instruction": "What is the lowest enrollment amount for a year left of 2012 and a current conference of Mid-South?", "output": "SELECT MIN(enrollment) FROM table_name_17 WHERE left = 2012 AND current_conference = \"mid-south\"" }
### INSTRUCTION What is the Result with an NFL Recap, played at bank of america stadium? ### INPUT CREATE TABLE table_name_41 (result VARCHAR, nfl_recap VARCHAR, game_site VARCHAR) ### OUTPUT SELECT result FROM table_name_41 WHERE nfl_recap = "recap" AND game_site = "bank of america stadium"
{ "input": "CREATE TABLE table_name_41 (result VARCHAR, nfl_recap VARCHAR, game_site VARCHAR)", "instruction": "What is the Result with an NFL Recap, played at bank of america stadium?", "output": "SELECT result FROM table_name_41 WHERE nfl_recap = \"recap\" AND game_site = \"bank of america stadium\"" }
### INSTRUCTION What is the earliest year that the building in sonnemannstraße/rückertstraße, ostend was built with a height larger than 185 meters? ### INPUT CREATE TABLE table_name_26 (year_built INTEGER, location VARCHAR, height__m_ VARCHAR) ### OUTPUT SELECT MIN(year_built) FROM table_name_26 WHERE location = "sonnemannstraße/rückertstraße, ostend" AND height__m_ > 185
{ "input": "CREATE TABLE table_name_26 (year_built INTEGER, location VARCHAR, height__m_ VARCHAR)", "instruction": "What is the earliest year that the building in sonnemannstraße/rückertstraße, ostend was built with a height larger than 185 meters?", "output": "SELECT MIN(year_built) FROM table_name_26 WHERE location = \"sonnemannstraße/rückertstraße, ostend\" AND height__m_ > 185" }
### INSTRUCTION Show the ids of all employees who have either destroyed a document or made an authorization to do this. ### INPUT CREATE TABLE Documents_to_be_destroyed (Destroyed_by_Employee_ID VARCHAR, Destruction_Authorised_by_Employee_ID VARCHAR) ### OUTPUT SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed UNION SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed
{ "input": "CREATE TABLE Documents_to_be_destroyed (Destroyed_by_Employee_ID VARCHAR, Destruction_Authorised_by_Employee_ID VARCHAR)", "instruction": "Show the ids of all employees who have either destroyed a document or made an authorization to do this.", "output": "SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed UNION SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed" }
### INSTRUCTION What is the average Year when there was a cosworth straight-4 engine, and the Entrant was ron harris / team lotus? ### INPUT CREATE TABLE table_name_17 (year INTEGER, engine VARCHAR, entrant VARCHAR) ### OUTPUT SELECT AVG(year) FROM table_name_17 WHERE engine = "cosworth straight-4" AND entrant = "ron harris / team lotus"
{ "input": "CREATE TABLE table_name_17 (year INTEGER, engine VARCHAR, entrant VARCHAR)", "instruction": "What is the average Year when there was a cosworth straight-4 engine, and the Entrant was ron harris / team lotus?", "output": "SELECT AVG(year) FROM table_name_17 WHERE engine = \"cosworth straight-4\" AND entrant = \"ron harris / team lotus\"" }
### INSTRUCTION Which Position has a Player of patrick macdonald? ### INPUT CREATE TABLE table_name_35 (position VARCHAR, player VARCHAR) ### OUTPUT SELECT position FROM table_name_35 WHERE player = "patrick macdonald"
{ "input": "CREATE TABLE table_name_35 (position VARCHAR, player VARCHAR)", "instruction": "Which Position has a Player of patrick macdonald?", "output": "SELECT position FROM table_name_35 WHERE player = \"patrick macdonald\"" }
### INSTRUCTION What date premiered (2009) has kareena kapoor as the contestant name? ### INPUT CREATE TABLE table_name_40 (date_premiered__2009_ VARCHAR, contestant_name VARCHAR) ### OUTPUT SELECT date_premiered__2009_ FROM table_name_40 WHERE contestant_name = "kareena kapoor"
{ "input": "CREATE TABLE table_name_40 (date_premiered__2009_ VARCHAR, contestant_name VARCHAR)", "instruction": "What date premiered (2009) has kareena kapoor as the contestant name?", "output": "SELECT date_premiered__2009_ FROM table_name_40 WHERE contestant_name = \"kareena kapoor\"" }
### INSTRUCTION When the area sq mi (km 2 ) (rank) is sqmi (km2) (5) what is the population (2010) (rank)? ### INPUT CREATE TABLE table_14253123_1 (population__2010___rank_ VARCHAR, area_sq_mi__km_2____rank_ VARCHAR) ### OUTPUT SELECT population__2010___rank_ FROM table_14253123_1 WHERE area_sq_mi__km_2____rank_ = "sqmi (km2) (5)"
{ "input": "CREATE TABLE table_14253123_1 (population__2010___rank_ VARCHAR, area_sq_mi__km_2____rank_ VARCHAR)", "instruction": "When the area sq mi (km 2 ) (rank) is sqmi (km2) (5) what is the population (2010) (rank)?", "output": "SELECT population__2010___rank_ FROM table_14253123_1 WHERE area_sq_mi__km_2____rank_ = \"sqmi (km2) (5)\"" }
### INSTRUCTION How many rounds did satrio hermanto go with an opc-challenge engine? ### INPUT CREATE TABLE table_name_84 (rounds VARCHAR, engine VARCHAR, driver VARCHAR) ### OUTPUT SELECT rounds FROM table_name_84 WHERE engine = "opc-challenge" AND driver = "satrio hermanto"
{ "input": "CREATE TABLE table_name_84 (rounds VARCHAR, engine VARCHAR, driver VARCHAR)", "instruction": "How many rounds did satrio hermanto go with an opc-challenge engine?", "output": "SELECT rounds FROM table_name_84 WHERE engine = \"opc-challenge\" AND driver = \"satrio hermanto\"" }
### INSTRUCTION How many places have bianka panova as the name, with clubs less than 10? ### INPUT CREATE TABLE table_name_84 (place VARCHAR, name VARCHAR, clubs VARCHAR) ### OUTPUT SELECT COUNT(place) FROM table_name_84 WHERE name = "bianka panova" AND clubs < 10
{ "input": "CREATE TABLE table_name_84 (place VARCHAR, name VARCHAR, clubs VARCHAR)", "instruction": "How many places have bianka panova as the name, with clubs less than 10?", "output": "SELECT COUNT(place) FROM table_name_84 WHERE name = \"bianka panova\" AND clubs < 10" }
### INSTRUCTION What is the sum of bronze when silver is greater than 3? ### INPUT CREATE TABLE table_name_45 (bronze INTEGER, silver INTEGER) ### OUTPUT SELECT SUM(bronze) FROM table_name_45 WHERE silver > 3
{ "input": "CREATE TABLE table_name_45 (bronze INTEGER, silver INTEGER)", "instruction": "What is the sum of bronze when silver is greater than 3?", "output": "SELECT SUM(bronze) FROM table_name_45 WHERE silver > 3" }
### INSTRUCTION Which publication happened in the UK? ### INPUT CREATE TABLE table_name_75 (publication VARCHAR, country VARCHAR) ### OUTPUT SELECT publication FROM table_name_75 WHERE country = "uk"
{ "input": "CREATE TABLE table_name_75 (publication VARCHAR, country VARCHAR)", "instruction": "Which publication happened in the UK?", "output": "SELECT publication FROM table_name_75 WHERE country = \"uk\"" }
### INSTRUCTION On what Date was Rafael Nadal the Opponent? ### INPUT CREATE TABLE table_name_37 (date VARCHAR, opponent VARCHAR) ### OUTPUT SELECT date FROM table_name_37 WHERE opponent = "rafael nadal"
{ "input": "CREATE TABLE table_name_37 (date VARCHAR, opponent VARCHAR)", "instruction": "On what Date was Rafael Nadal the Opponent?", "output": "SELECT date FROM table_name_37 WHERE opponent = \"rafael nadal\"" }
### INSTRUCTION How many points are there for a Mclaren m23 chassis later than 1972? ### INPUT CREATE TABLE table_name_20 (points VARCHAR, year VARCHAR, chassis VARCHAR) ### OUTPUT SELECT COUNT(points) FROM table_name_20 WHERE year > 1972 AND chassis = "mclaren m23"
{ "input": "CREATE TABLE table_name_20 (points VARCHAR, year VARCHAR, chassis VARCHAR)", "instruction": "How many points are there for a Mclaren m23 chassis later than 1972?", "output": "SELECT COUNT(points) FROM table_name_20 WHERE year > 1972 AND chassis = \"mclaren m23\"" }
### INSTRUCTION Name trofeo fast team with young rider classification of francesco casagrande and stage of 10 ### INPUT CREATE TABLE table_name_55 (trofeo_fast_team VARCHAR, young_rider_classification VARCHAR, stage VARCHAR) ### OUTPUT SELECT trofeo_fast_team FROM table_name_55 WHERE young_rider_classification = "francesco casagrande" AND stage = "10"
{ "input": "CREATE TABLE table_name_55 (trofeo_fast_team VARCHAR, young_rider_classification VARCHAR, stage VARCHAR)", "instruction": "Name trofeo fast team with young rider classification of francesco casagrande and stage of 10", "output": "SELECT trofeo_fast_team FROM table_name_55 WHERE young_rider_classification = \"francesco casagrande\" AND stage = \"10\"" }
### INSTRUCTION Can you tell me the highest Total votes that has the % of popular vote of 0.86%, and the # of seats won larger than 0? ### INPUT CREATE TABLE table_name_48 (total_votes INTEGER, _percentage_of_popular_vote VARCHAR, _number_of_seats_won VARCHAR) ### OUTPUT SELECT MAX(total_votes) FROM table_name_48 WHERE _percentage_of_popular_vote = "0.86%" AND _number_of_seats_won > 0
{ "input": "CREATE TABLE table_name_48 (total_votes INTEGER, _percentage_of_popular_vote VARCHAR, _number_of_seats_won VARCHAR)", "instruction": "Can you tell me the highest Total votes that has the % of popular vote of 0.86%, and the # of seats won larger than 0?", "output": "SELECT MAX(total_votes) FROM table_name_48 WHERE _percentage_of_popular_vote = \"0.86%\" AND _number_of_seats_won > 0" }
### INSTRUCTION Can you tell me Location Attendance that has the High points of andrew bogut (17)? ### INPUT CREATE TABLE table_name_98 (location_attendance VARCHAR, high_points VARCHAR) ### OUTPUT SELECT location_attendance FROM table_name_98 WHERE high_points = "andrew bogut (17)"
{ "input": "CREATE TABLE table_name_98 (location_attendance VARCHAR, high_points VARCHAR)", "instruction": "Can you tell me Location Attendance that has the High points of andrew bogut (17)?", "output": "SELECT location_attendance FROM table_name_98 WHERE high_points = \"andrew bogut (17)\"" }
### INSTRUCTION What is the local mission that has ambassador as the local position, and a mission of suriname? ### INPUT CREATE TABLE table_name_13 (Local VARCHAR, local_position VARCHAR, mission VARCHAR) ### OUTPUT SELECT Local AS mission FROM table_name_13 WHERE local_position = "ambassador" AND mission = "suriname"
{ "input": "CREATE TABLE table_name_13 (Local VARCHAR, local_position VARCHAR, mission VARCHAR)", "instruction": "What is the local mission that has ambassador as the local position, and a mission of suriname?", "output": "SELECT Local AS mission FROM table_name_13 WHERE local_position = \"ambassador\" AND mission = \"suriname\"" }
### INSTRUCTION Which Numbers (Quantity Ordered) have a Make/ Model of eldorado national passport? ### INPUT CREATE TABLE table_name_88 (numbers__quantity_ordered_ VARCHAR, make__model VARCHAR) ### OUTPUT SELECT numbers__quantity_ordered_ FROM table_name_88 WHERE make__model = "eldorado national passport"
{ "input": "CREATE TABLE table_name_88 (numbers__quantity_ordered_ VARCHAR, make__model VARCHAR)", "instruction": "Which Numbers (Quantity Ordered) have a Make/ Model of eldorado national passport?", "output": "SELECT numbers__quantity_ordered_ FROM table_name_88 WHERE make__model = \"eldorado national passport\"" }
### INSTRUCTION What are the average fastest lap speed in races held after 2004 grouped by race name and ordered by year? ### INPUT CREATE TABLE results (fastestlapspeed INTEGER, raceid VARCHAR); CREATE TABLE races (name VARCHAR, year INTEGER, raceid VARCHAR) ### OUTPUT SELECT AVG(T2.fastestlapspeed), T1.name, T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year
{ "input": "CREATE TABLE results (fastestlapspeed INTEGER, raceid VARCHAR); CREATE TABLE races (name VARCHAR, year INTEGER, raceid VARCHAR)", "instruction": "What are the average fastest lap speed in races held after 2004 grouped by race name and ordered by year?", "output": "SELECT AVG(T2.fastestlapspeed), T1.name, T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year" }
### INSTRUCTION What is the municipality percentage for San Antonio de Lomerio is San Javier municipality percentage is 31? ### INPUT CREATE TABLE table_19998428_3 (san_antonio_de_lomerío_municipality___percentage_ VARCHAR, san_javier_municipality___percentage_ VARCHAR) ### OUTPUT SELECT san_antonio_de_lomerío_municipality___percentage_ FROM table_19998428_3 WHERE san_javier_municipality___percentage_ = 31
{ "input": "CREATE TABLE table_19998428_3 (san_antonio_de_lomerío_municipality___percentage_ VARCHAR, san_javier_municipality___percentage_ VARCHAR)", "instruction": "What is the municipality percentage for San Antonio de Lomerio is San Javier municipality percentage is 31?", "output": "SELECT san_antonio_de_lomerío_municipality___percentage_ FROM table_19998428_3 WHERE san_javier_municipality___percentage_ = 31" }
### INSTRUCTION what's the tournament where winner is raymond floyd (1) ### INPUT CREATE TABLE table_11622255_1 (tournament VARCHAR, winner VARCHAR) ### OUTPUT SELECT tournament FROM table_11622255_1 WHERE winner = "Raymond Floyd (1)"
{ "input": "CREATE TABLE table_11622255_1 (tournament VARCHAR, winner VARCHAR)", "instruction": " what's the tournament where winner is raymond floyd (1)", "output": "SELECT tournament FROM table_11622255_1 WHERE winner = \"Raymond Floyd (1)\"" }
### INSTRUCTION What is Lenth Feet, when Mi From Kingston is greater than 84.5, when Length Meters is greater than 55.5, and when Name is Unnamed? ### INPUT CREATE TABLE table_name_28 (length_feet VARCHAR, name VARCHAR, mi_from_kingston VARCHAR, length_meters VARCHAR) ### OUTPUT SELECT length_feet FROM table_name_28 WHERE mi_from_kingston > 84.5 AND length_meters > 55.5 AND name = "unnamed"
{ "input": "CREATE TABLE table_name_28 (length_feet VARCHAR, name VARCHAR, mi_from_kingston VARCHAR, length_meters VARCHAR)", "instruction": "What is Lenth Feet, when Mi From Kingston is greater than 84.5, when Length Meters is greater than 55.5, and when Name is Unnamed?", "output": "SELECT length_feet FROM table_name_28 WHERE mi_from_kingston > 84.5 AND length_meters > 55.5 AND name = \"unnamed\"" }
### INSTRUCTION How many play-off legs were won when the prize money was £10,300? ### INPUT CREATE TABLE table_24334163_1 (Winners VARCHAR, total_money_won VARCHAR) ### OUTPUT SELECT COUNT(Winners) AS play_off_legs_won FROM table_24334163_1 WHERE total_money_won = "£10,300"
{ "input": "CREATE TABLE table_24334163_1 (Winners VARCHAR, total_money_won VARCHAR)", "instruction": "How many play-off legs were won when the prize money was £10,300?", "output": "SELECT COUNT(Winners) AS play_off_legs_won FROM table_24334163_1 WHERE total_money_won = \"£10,300\"" }
### INSTRUCTION What is the description of the color for most products? ### INPUT CREATE TABLE ref_colors (color_description VARCHAR, color_code VARCHAR); CREATE TABLE products (color_code VARCHAR) ### OUTPUT SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code GROUP BY t2.color_description ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE ref_colors (color_description VARCHAR, color_code VARCHAR); CREATE TABLE products (color_code VARCHAR)", "instruction": "What is the description of the color for most products?", "output": "SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code GROUP BY t2.color_description ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION Find the cell mobile number of the candidates whose assessment code is "Fail"? ### INPUT CREATE TABLE candidates (candidate_id VARCHAR); CREATE TABLE people (cell_mobile_number VARCHAR, person_id VARCHAR); CREATE TABLE candidate_assessments (candidate_id VARCHAR, asessment_outcome_code VARCHAR) ### OUTPUT SELECT T3.cell_mobile_number FROM candidates AS T1 JOIN candidate_assessments AS T2 ON T1.candidate_id = T2.candidate_id JOIN people AS T3 ON T1.candidate_id = T3.person_id WHERE T2.asessment_outcome_code = "Fail"
{ "input": "CREATE TABLE candidates (candidate_id VARCHAR); CREATE TABLE people (cell_mobile_number VARCHAR, person_id VARCHAR); CREATE TABLE candidate_assessments (candidate_id VARCHAR, asessment_outcome_code VARCHAR)", "instruction": "Find the cell mobile number of the candidates whose assessment code is \"Fail\"?", "output": "SELECT T3.cell_mobile_number FROM candidates AS T1 JOIN candidate_assessments AS T2 ON T1.candidate_id = T2.candidate_id JOIN people AS T3 ON T1.candidate_id = T3.person_id WHERE T2.asessment_outcome_code = \"Fail\"" }
### INSTRUCTION For which Category was Outstanding Main Title Design a Recipient and nominee? ### INPUT CREATE TABLE table_name_71 (category VARCHAR, recipients_and_nominees VARCHAR) ### OUTPUT SELECT category FROM table_name_71 WHERE recipients_and_nominees = "outstanding main title design"
{ "input": "CREATE TABLE table_name_71 (category VARCHAR, recipients_and_nominees VARCHAR)", "instruction": "For which Category was Outstanding Main Title Design a Recipient and nominee?", "output": "SELECT category FROM table_name_71 WHERE recipients_and_nominees = \"outstanding main title design\"" }
### INSTRUCTION What is the smallest decile with a Name of st mary's catholic school? ### INPUT CREATE TABLE table_name_70 (decile INTEGER, name VARCHAR) ### OUTPUT SELECT MIN(decile) FROM table_name_70 WHERE name = "st mary's catholic school"
{ "input": "CREATE TABLE table_name_70 (decile INTEGER, name VARCHAR)", "instruction": "What is the smallest decile with a Name of st mary's catholic school?", "output": "SELECT MIN(decile) FROM table_name_70 WHERE name = \"st mary's catholic school\"" }
### INSTRUCTION WHAT IS THE TYPE OF LAND WITH A 2010 POPULATION GREATER THAN 2539, A RURAL AREA, AND A 2007 POPULATION OF 2572? ### INPUT CREATE TABLE table_name_69 (geographic_character VARCHAR, population__2007_ VARCHAR, population__2010_ VARCHAR, urban_rural VARCHAR) ### OUTPUT SELECT geographic_character FROM table_name_69 WHERE population__2010_ > 2539 AND urban_rural = "rural" AND population__2007_ = 2572
{ "input": "CREATE TABLE table_name_69 (geographic_character VARCHAR, population__2007_ VARCHAR, population__2010_ VARCHAR, urban_rural VARCHAR)", "instruction": "WHAT IS THE TYPE OF LAND WITH A 2010 POPULATION GREATER THAN 2539, A RURAL AREA, AND A 2007 POPULATION OF 2572?", "output": "SELECT geographic_character FROM table_name_69 WHERE population__2010_ > 2539 AND urban_rural = \"rural\" AND population__2007_ = 2572" }
### INSTRUCTION What is the total number of events that Al Geiberger has played with earnings larger than 527,033? ### INPUT CREATE TABLE table_name_42 (events VARCHAR, player VARCHAR, earnings___$__ VARCHAR) ### OUTPUT SELECT COUNT(events) FROM table_name_42 WHERE player = "al geiberger" AND earnings___$__ > 527 OFFSET 033
{ "input": "CREATE TABLE table_name_42 (events VARCHAR, player VARCHAR, earnings___$__ VARCHAR)", "instruction": "What is the total number of events that Al Geiberger has played with earnings larger than 527,033?", "output": "SELECT COUNT(events) FROM table_name_42 WHERE player = \"al geiberger\" AND earnings___$__ > 527 OFFSET 033" }
### INSTRUCTION What is the Point of Chassis of Lancia d50 in 1954 ### INPUT CREATE TABLE table_name_91 (points VARCHAR, chassis VARCHAR, year VARCHAR) ### OUTPUT SELECT points FROM table_name_91 WHERE chassis = "lancia d50" AND year = 1954
{ "input": "CREATE TABLE table_name_91 (points VARCHAR, chassis VARCHAR, year VARCHAR)", "instruction": "What is the Point of Chassis of Lancia d50 in 1954", "output": "SELECT points FROM table_name_91 WHERE chassis = \"lancia d50\" AND year = 1954" }
### INSTRUCTION The episode with the original air date January 6, 1999, has what production code? ### INPUT CREATE TABLE table_2618152_1 (production_code VARCHAR, original_air_date VARCHAR) ### OUTPUT SELECT production_code FROM table_2618152_1 WHERE original_air_date = "January 6, 1999"
{ "input": "CREATE TABLE table_2618152_1 (production_code VARCHAR, original_air_date VARCHAR)", "instruction": "The episode with the original air date January 6, 1999, has what production code?", "output": "SELECT production_code FROM table_2618152_1 WHERE original_air_date = \"January 6, 1999\"" }
### INSTRUCTION what's the shigella with yersinia being yscp ### INPUT CREATE TABLE table_10321124_1 (shigella VARCHAR, yersinia VARCHAR) ### OUTPUT SELECT shigella FROM table_10321124_1 WHERE yersinia = "YscP"
{ "input": "CREATE TABLE table_10321124_1 (shigella VARCHAR, yersinia VARCHAR)", "instruction": "what's the shigella with yersinia being yscp", "output": "SELECT shigella FROM table_10321124_1 WHERE yersinia = \"YscP\"" }
### INSTRUCTION Tell me the constellation which has a right ascension of 18h17m41.1s ### INPUT CREATE TABLE table_name_54 (constellation VARCHAR, right_ascension___j2000__ VARCHAR) ### OUTPUT SELECT constellation FROM table_name_54 WHERE right_ascension___j2000__ = "18h17m41.1s"
{ "input": "CREATE TABLE table_name_54 (constellation VARCHAR, right_ascension___j2000__ VARCHAR)", "instruction": "Tell me the constellation which has a right ascension of 18h17m41.1s", "output": "SELECT constellation FROM table_name_54 WHERE right_ascension___j2000__ = \"18h17m41.1s\"" }
### INSTRUCTION How many games had fewer than 118 opponents and more than 109 net points with an opponent of Washington? ### INPUT CREATE TABLE table_name_37 (game VARCHAR, opponent VARCHAR, opponents VARCHAR, nets_points VARCHAR) ### OUTPUT SELECT COUNT(game) FROM table_name_37 WHERE opponents < 118 AND nets_points > 109 AND opponent = "washington"
{ "input": "CREATE TABLE table_name_37 (game VARCHAR, opponent VARCHAR, opponents VARCHAR, nets_points VARCHAR)", "instruction": "How many games had fewer than 118 opponents and more than 109 net points with an opponent of Washington?", "output": "SELECT COUNT(game) FROM table_name_37 WHERE opponents < 118 AND nets_points > 109 AND opponent = \"washington\"" }
### INSTRUCTION What is the largest value for SP+FS with more than 164.56 points for Mitsuru Matsumura in a Rank greater than 1? ### INPUT CREATE TABLE table_name_27 (fs VARCHAR, sp INTEGER, name VARCHAR, points VARCHAR, rank VARCHAR) ### OUTPUT SELECT MAX(sp) + fs FROM table_name_27 WHERE points > 164.56 AND rank > 1 AND name = "mitsuru matsumura"
{ "input": "CREATE TABLE table_name_27 (fs VARCHAR, sp INTEGER, name VARCHAR, points VARCHAR, rank VARCHAR)", "instruction": "What is the largest value for SP+FS with more than 164.56 points for Mitsuru Matsumura in a Rank greater than 1?", "output": "SELECT MAX(sp) + fs FROM table_name_27 WHERE points > 164.56 AND rank > 1 AND name = \"mitsuru matsumura\"" }
### INSTRUCTION Who has a Team classification of la vie claire, a stage of 20, a General classification of greg lemond? ### INPUT CREATE TABLE table_name_80 (winner VARCHAR, stage VARCHAR, team_classification VARCHAR, general_classification VARCHAR) ### OUTPUT SELECT winner FROM table_name_80 WHERE team_classification = "la vie claire" AND general_classification = "greg lemond" AND stage = "20"
{ "input": "CREATE TABLE table_name_80 (winner VARCHAR, stage VARCHAR, team_classification VARCHAR, general_classification VARCHAR)", "instruction": "Who has a Team classification of la vie claire, a stage of 20, a General classification of greg lemond?", "output": "SELECT winner FROM table_name_80 WHERE team_classification = \"la vie claire\" AND general_classification = \"greg lemond\" AND stage = \"20\"" }
### INSTRUCTION What is the Cook PVI for the location that has a representative of Mike Thompson? ### INPUT CREATE TABLE table_19283806_4 (cook_pvi VARCHAR, representative VARCHAR) ### OUTPUT SELECT cook_pvi FROM table_19283806_4 WHERE representative = "Mike Thompson"
{ "input": "CREATE TABLE table_19283806_4 (cook_pvi VARCHAR, representative VARCHAR)", "instruction": "What is the Cook PVI for the location that has a representative of Mike Thompson?", "output": "SELECT cook_pvi FROM table_19283806_4 WHERE representative = \"Mike Thompson\"" }
### INSTRUCTION How many career titles does roy emerson have? ### INPUT CREATE TABLE table_23408094_14 (total_career_titles VARCHAR, player VARCHAR) ### OUTPUT SELECT total_career_titles FROM table_23408094_14 WHERE player = "Roy Emerson"
{ "input": "CREATE TABLE table_23408094_14 (total_career_titles VARCHAR, player VARCHAR)", "instruction": "How many career titles does roy emerson have?", "output": "SELECT total_career_titles FROM table_23408094_14 WHERE player = \"Roy Emerson\"" }
### INSTRUCTION How many total events have cuts made over 12, more than 2 top-5s, and more than 11 top-10s? ### INPUT CREATE TABLE table_name_66 (events INTEGER, top_10 VARCHAR, cuts_made VARCHAR, top_5 VARCHAR) ### OUTPUT SELECT SUM(events) FROM table_name_66 WHERE cuts_made > 12 AND top_5 > 2 AND top_10 > 11
{ "input": "CREATE TABLE table_name_66 (events INTEGER, top_10 VARCHAR, cuts_made VARCHAR, top_5 VARCHAR)", "instruction": "How many total events have cuts made over 12, more than 2 top-5s, and more than 11 top-10s?", "output": "SELECT SUM(events) FROM table_name_66 WHERE cuts_made > 12 AND top_5 > 2 AND top_10 > 11" }
### INSTRUCTION For the year 1975, what is Propulsion, with a Number (quantity ordered) of 4756-4788 (33 buses)? ### INPUT CREATE TABLE table_name_41 (fuel_propulsion VARCHAR, year VARCHAR, numbers__quantity_ordered_ VARCHAR) ### OUTPUT SELECT fuel_propulsion FROM table_name_41 WHERE year = 1975 AND numbers__quantity_ordered_ = "4756-4788 (33 buses)"
{ "input": "CREATE TABLE table_name_41 (fuel_propulsion VARCHAR, year VARCHAR, numbers__quantity_ordered_ VARCHAR)", "instruction": "For the year 1975, what is Propulsion, with a Number (quantity ordered) of 4756-4788 (33 buses)?", "output": "SELECT fuel_propulsion FROM table_name_41 WHERE year = 1975 AND numbers__quantity_ordered_ = \"4756-4788 (33 buses)\"" }
### INSTRUCTION Score of postponed (rain) rescheduled for June 27 had what loss? ### INPUT CREATE TABLE table_name_32 (loss VARCHAR, score VARCHAR) ### OUTPUT SELECT loss FROM table_name_32 WHERE score = "postponed (rain) rescheduled for june 27"
{ "input": "CREATE TABLE table_name_32 (loss VARCHAR, score VARCHAR)", "instruction": "Score of postponed (rain) rescheduled for June 27 had what loss?", "output": "SELECT loss FROM table_name_32 WHERE score = \"postponed (rain) rescheduled for june 27\"" }
### INSTRUCTION what's the number of games with a Goals Against smaller than 14, and a Wins larger than 1, and a Draws smaller than 2, and a Goals For of 3? ### INPUT CREATE TABLE table_name_27 (games INTEGER, goals_for VARCHAR, draws VARCHAR, goals_against VARCHAR, wins VARCHAR) ### OUTPUT SELECT MAX(games) FROM table_name_27 WHERE goals_against < 14 AND wins > 1 AND draws < 2 AND goals_for = 3
{ "input": "CREATE TABLE table_name_27 (games INTEGER, goals_for VARCHAR, draws VARCHAR, goals_against VARCHAR, wins VARCHAR)", "instruction": "what's the number of games with a Goals Against smaller than 14, and a Wins larger than 1, and a Draws smaller than 2, and a Goals For of 3?", "output": "SELECT MAX(games) FROM table_name_27 WHERE goals_against < 14 AND wins > 1 AND draws < 2 AND goals_for = 3" }
### INSTRUCTION Who is the player from the Buffalo Braves with the previous team Los Angeles Lakers and a career with the franchase in 1970? ### INPUT CREATE TABLE table_name_89 (player VARCHAR, team VARCHAR, previous_team VARCHAR, career_with_the_franchise_ VARCHAR, b_ VARCHAR) ### OUTPUT SELECT player FROM table_name_89 WHERE team = "buffalo braves" AND previous_team = "los angeles lakers" AND career_with_the_franchise_[b_] = "1970"
{ "input": "CREATE TABLE table_name_89 (player VARCHAR, team VARCHAR, previous_team VARCHAR, career_with_the_franchise_ VARCHAR, b_ VARCHAR)", "instruction": "Who is the player from the Buffalo Braves with the previous team Los Angeles Lakers and a career with the franchase in 1970?", "output": "SELECT player FROM table_name_89 WHERE team = \"buffalo braves\" AND previous_team = \"los angeles lakers\" AND career_with_the_franchise_[b_] = \"1970\"" }
### INSTRUCTION For averages of 1.58 and matches under 38, what is the average number of goals? ### INPUT CREATE TABLE table_name_79 (goals INTEGER, average VARCHAR, matches VARCHAR) ### OUTPUT SELECT AVG(goals) FROM table_name_79 WHERE average = 1.58 AND matches < 38
{ "input": "CREATE TABLE table_name_79 (goals INTEGER, average VARCHAR, matches VARCHAR)", "instruction": "For averages of 1.58 and matches under 38, what is the average number of goals?", "output": "SELECT AVG(goals) FROM table_name_79 WHERE average = 1.58 AND matches < 38" }
### INSTRUCTION What is the difference with a loss smaller than 5 and points lower than 32? ### INPUT CREATE TABLE table_name_50 (diff VARCHAR, lost VARCHAR, points VARCHAR) ### OUTPUT SELECT COUNT(diff) FROM table_name_50 WHERE lost < 5 AND points < 32
{ "input": "CREATE TABLE table_name_50 (diff VARCHAR, lost VARCHAR, points VARCHAR)", "instruction": "What is the difference with a loss smaller than 5 and points lower than 32?", "output": "SELECT COUNT(diff) FROM table_name_50 WHERE lost < 5 AND points < 32" }
### INSTRUCTION Find the cities which were once a host city after 2010? ### INPUT CREATE TABLE city (city VARCHAR, city_id VARCHAR); CREATE TABLE hosting_city (host_city VARCHAR, year INTEGER) ### OUTPUT SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T2.year > 2010
{ "input": "CREATE TABLE city (city VARCHAR, city_id VARCHAR); CREATE TABLE hosting_city (host_city VARCHAR, year INTEGER)", "instruction": "Find the cities which were once a host city after 2010?", "output": "SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T2.year > 2010" }
### INSTRUCTION Which Result has an Award of virgin media tv awards? ### INPUT CREATE TABLE table_name_45 (result VARCHAR, award VARCHAR) ### OUTPUT SELECT result FROM table_name_45 WHERE award = "virgin media tv awards"
{ "input": "CREATE TABLE table_name_45 (result VARCHAR, award VARCHAR)", "instruction": "Which Result has an Award of virgin media tv awards?", "output": "SELECT result FROM table_name_45 WHERE award = \"virgin media tv awards\"" }
### INSTRUCTION Find names of all students who took some course and the course description. ### INPUT CREATE TABLE enroll (stu_num VARCHAR, class_code VARCHAR); CREATE TABLE course (crs_description VARCHAR, crs_code VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE student (stu_fname VARCHAR, stu_lname VARCHAR, stu_num VARCHAR) ### OUTPUT SELECT T1.stu_fname, T1.stu_lname, T4.crs_description FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code
{ "input": "CREATE TABLE enroll (stu_num VARCHAR, class_code VARCHAR); CREATE TABLE course (crs_description VARCHAR, crs_code VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE student (stu_fname VARCHAR, stu_lname VARCHAR, stu_num VARCHAR)", "instruction": "Find names of all students who took some course and the course description.", "output": "SELECT T1.stu_fname, T1.stu_lname, T4.crs_description FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code" }
### INSTRUCTION What are week 4 results? ### INPUT CREATE TABLE table_14608759_1 (result VARCHAR, week VARCHAR) ### OUTPUT SELECT result FROM table_14608759_1 WHERE week = 4
{ "input": "CREATE TABLE table_14608759_1 (result VARCHAR, week VARCHAR)", "instruction": "What are week 4 results? ", "output": "SELECT result FROM table_14608759_1 WHERE week = 4" }
### INSTRUCTION What is the lowest Silver in the Total Sport has less than 1 Gold and more than 1 Bronze? ### INPUT CREATE TABLE table_name_77 (silver INTEGER, gold VARCHAR, bronze VARCHAR, sport VARCHAR) ### OUTPUT SELECT MIN(silver) FROM table_name_77 WHERE bronze > 1 AND sport = "total" AND gold < 1
{ "input": "CREATE TABLE table_name_77 (silver INTEGER, gold VARCHAR, bronze VARCHAR, sport VARCHAR)", "instruction": "What is the lowest Silver in the Total Sport has less than 1 Gold and more than 1 Bronze?", "output": "SELECT MIN(silver) FROM table_name_77 WHERE bronze > 1 AND sport = \"total\" AND gold < 1" }
### INSTRUCTION Name the district for newtown square ### INPUT CREATE TABLE table_1979619_3 (district INTEGER, residence VARCHAR) ### OUTPUT SELECT MIN(district) FROM table_1979619_3 WHERE residence = "Newtown Square"
{ "input": "CREATE TABLE table_1979619_3 (district INTEGER, residence VARCHAR)", "instruction": "Name the district for newtown square", "output": "SELECT MIN(district) FROM table_1979619_3 WHERE residence = \"Newtown Square\"" }
### INSTRUCTION How many students are enrolled in the class taught by some professor from the accounting department? ### INPUT CREATE TABLE enroll (class_code VARCHAR); CREATE TABLE department (dept_code VARCHAR, dept_name VARCHAR); CREATE TABLE course (crs_code VARCHAR, dept_code VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR) ### OUTPUT SELECT COUNT(*) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN department AS T4 ON T3.dept_code = T4.dept_code WHERE T4.dept_name = 'Accounting'
{ "input": "CREATE TABLE enroll (class_code VARCHAR); CREATE TABLE department (dept_code VARCHAR, dept_name VARCHAR); CREATE TABLE course (crs_code VARCHAR, dept_code VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR)", "instruction": "How many students are enrolled in the class taught by some professor from the accounting department?", "output": "SELECT COUNT(*) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN department AS T4 ON T3.dept_code = T4.dept_code WHERE T4.dept_name = 'Accounting'" }
### INSTRUCTION what is the tournament when the court surface is clay and began in 1892? ### INPUT CREATE TABLE table_name_46 (tournament VARCHAR, court_surface VARCHAR, began VARCHAR) ### OUTPUT SELECT tournament FROM table_name_46 WHERE court_surface = "clay" AND began = 1892
{ "input": "CREATE TABLE table_name_46 (tournament VARCHAR, court_surface VARCHAR, began VARCHAR)", "instruction": "what is the tournament when the court surface is clay and began in 1892?", "output": "SELECT tournament FROM table_name_46 WHERE court_surface = \"clay\" AND began = 1892" }
### INSTRUCTION Find the name of the department that has the fewest members. ### INPUT CREATE TABLE MEMBER_OF (DNO VARCHAR); CREATE TABLE DEPARTMENT (DName VARCHAR, DNO VARCHAR) ### OUTPUT SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MEMBER_OF AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY COUNT(*) LIMIT 1
{ "input": "CREATE TABLE MEMBER_OF (DNO VARCHAR); CREATE TABLE DEPARTMENT (DName VARCHAR, DNO VARCHAR)", "instruction": "Find the name of the department that has the fewest members.", "output": "SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MEMBER_OF AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY COUNT(*) LIMIT 1" }
### INSTRUCTION What was the score when Nacional was the champion, River Plate was the runner-up, and the venue was Centenario? ### INPUT CREATE TABLE table_name_13 (score VARCHAR, runner_up VARCHAR, champion VARCHAR, venue VARCHAR) ### OUTPUT SELECT score FROM table_name_13 WHERE champion = "nacional" AND venue = "centenario" AND runner_up = "river plate"
{ "input": "CREATE TABLE table_name_13 (score VARCHAR, runner_up VARCHAR, champion VARCHAR, venue VARCHAR)", "instruction": "What was the score when Nacional was the champion, River Plate was the runner-up, and the venue was Centenario?", "output": "SELECT score FROM table_name_13 WHERE champion = \"nacional\" AND venue = \"centenario\" AND runner_up = \"river plate\"" }
### INSTRUCTION Name Event of wc milan and a Total of 23? ### INPUT CREATE TABLE table_name_27 (score_points VARCHAR, event VARCHAR, total VARCHAR) ### OUTPUT SELECT score_points FROM table_name_27 WHERE event = "wc milan" AND total = "23"
{ "input": "CREATE TABLE table_name_27 (score_points VARCHAR, event VARCHAR, total VARCHAR)", "instruction": "Name Event of wc milan and a Total of 23?", "output": "SELECT score_points FROM table_name_27 WHERE event = \"wc milan\" AND total = \"23\"" }
### INSTRUCTION How many events did not have any participants? ### INPUT CREATE TABLE EVENTS (event_id VARCHAR); CREATE TABLE Participants_in_Events (event_id VARCHAR) ### OUTPUT SELECT COUNT(*) FROM EVENTS WHERE NOT event_id IN (SELECT event_id FROM Participants_in_Events)
{ "input": "CREATE TABLE EVENTS (event_id VARCHAR); CREATE TABLE Participants_in_Events (event_id VARCHAR)", "instruction": "How many events did not have any participants?", "output": "SELECT COUNT(*) FROM EVENTS WHERE NOT event_id IN (SELECT event_id FROM Participants_in_Events)" }