text
stringlengths
147
1.06k
source
dict
### INSTRUCTION How many total goals have 0 (3) as total apps, with league goals less than 0? ### INPUT CREATE TABLE table_name_80 (total_goals VARCHAR, total_apps VARCHAR, league_goals VARCHAR) ### OUTPUT SELECT COUNT(total_goals) FROM table_name_80 WHERE total_apps = "0 (3)" AND league_goals < 0
{ "input": "CREATE TABLE table_name_80 (total_goals VARCHAR, total_apps VARCHAR, league_goals VARCHAR)", "instruction": "How many total goals have 0 (3) as total apps, with league goals less than 0?", "output": "SELECT COUNT(total_goals) FROM table_name_80 WHERE total_apps = \"0 (3)\" AND league_goals < 0" }
### INSTRUCTION Which mountains classification has a general classification of Tony Rominger and was won by Maurizio Fondriest? ### INPUT CREATE TABLE table_name_70 (mountains_classification VARCHAR, general_classification VARCHAR, winner VARCHAR) ### OUTPUT SELECT mountains_classification FROM table_name_70 WHERE general_classification = "tony rominger" AND winner = "maurizio fondriest"
{ "input": "CREATE TABLE table_name_70 (mountains_classification VARCHAR, general_classification VARCHAR, winner VARCHAR)", "instruction": "Which mountains classification has a general classification of Tony Rominger and was won by Maurizio Fondriest?", "output": "SELECT mountains_classification FROM table_name_70 WHERE general_classification = \"tony rominger\" AND winner = \"maurizio fondriest\"" }
### INSTRUCTION Which Competition has a Venue of estadio alfonso lastras, san luis potosí, mexico, and a Goal larger than 15? ### INPUT CREATE TABLE table_name_45 (competition VARCHAR, venue VARCHAR, goal VARCHAR) ### OUTPUT SELECT competition FROM table_name_45 WHERE venue = "estadio alfonso lastras, san luis potosí, mexico" AND goal > 15
{ "input": "CREATE TABLE table_name_45 (competition VARCHAR, venue VARCHAR, goal VARCHAR)", "instruction": "Which Competition has a Venue of estadio alfonso lastras, san luis potosí, mexico, and a Goal larger than 15?", "output": "SELECT competition FROM table_name_45 WHERE venue = \"estadio alfonso lastras, san luis potosí, mexico\" AND goal > 15" }
### INSTRUCTION For Once Municipal, what were the goals scored that had less than 27 points and greater than place 1? ### INPUT CREATE TABLE table_name_69 (goals_scored INTEGER, points VARCHAR, place VARCHAR, team VARCHAR) ### OUTPUT SELECT AVG(goals_scored) FROM table_name_69 WHERE place > 1 AND team = "once municipal" AND points < 27
{ "input": "CREATE TABLE table_name_69 (goals_scored INTEGER, points VARCHAR, place VARCHAR, team VARCHAR)", "instruction": "For Once Municipal, what were the goals scored that had less than 27 points and greater than place 1?", "output": "SELECT AVG(goals_scored) FROM table_name_69 WHERE place > 1 AND team = \"once municipal\" AND points < 27" }
### INSTRUCTION what are the details of the cmi masters that have the cross reference code 'Tax'? ### INPUT CREATE TABLE CMI_Cross_References (master_customer_id VARCHAR, source_system_code VARCHAR); CREATE TABLE Customer_Master_Index (cmi_details VARCHAR, master_customer_id VARCHAR) ### OUTPUT SELECT T1.cmi_details FROM Customer_Master_Index AS T1 JOIN CMI_Cross_References AS T2 ON T1.master_customer_id = T2.master_customer_id WHERE T2.source_system_code = 'Tax'
{ "input": "CREATE TABLE CMI_Cross_References (master_customer_id VARCHAR, source_system_code VARCHAR); CREATE TABLE Customer_Master_Index (cmi_details VARCHAR, master_customer_id VARCHAR)", "instruction": "what are the details of the cmi masters that have the cross reference code 'Tax'?", "output": "SELECT T1.cmi_details FROM Customer_Master_Index AS T1 JOIN CMI_Cross_References AS T2 ON T1.master_customer_id = T2.master_customer_id WHERE T2.source_system_code = 'Tax'" }
### INSTRUCTION What is the cardinal direction of Wednesday p.m. in English? ### INPUT CREATE TABLE table_name_90 (cardinal_direction VARCHAR, english VARCHAR) ### OUTPUT SELECT cardinal_direction FROM table_name_90 WHERE english = "wednesday p.m."
{ "input": "CREATE TABLE table_name_90 (cardinal_direction VARCHAR, english VARCHAR)", "instruction": "What is the cardinal direction of Wednesday p.m. in English?", "output": "SELECT cardinal_direction FROM table_name_90 WHERE english = \"wednesday p.m.\"" }
### INSTRUCTION What is the highest value for Byes, when Against is less than 1794, when Losses is "6", and when Draws is less than 0? ### INPUT CREATE TABLE table_name_61 (byes INTEGER, draws VARCHAR, against VARCHAR, losses VARCHAR) ### OUTPUT SELECT MAX(byes) FROM table_name_61 WHERE against < 1794 AND losses = 6 AND draws < 0
{ "input": "CREATE TABLE table_name_61 (byes INTEGER, draws VARCHAR, against VARCHAR, losses VARCHAR)", "instruction": "What is the highest value for Byes, when Against is less than 1794, when Losses is \"6\", and when Draws is less than 0?", "output": "SELECT MAX(byes) FROM table_name_61 WHERE against < 1794 AND losses = 6 AND draws < 0" }
### INSTRUCTION What is the Name with an overall of less than 123 for the Detroit Lions? ### INPUT CREATE TABLE table_name_3 (name VARCHAR, overall VARCHAR, team VARCHAR) ### OUTPUT SELECT name FROM table_name_3 WHERE overall < 123 AND team = "detroit lions"
{ "input": "CREATE TABLE table_name_3 (name VARCHAR, overall VARCHAR, team VARCHAR)", "instruction": "What is the Name with an overall of less than 123 for the Detroit Lions?", "output": "SELECT name FROM table_name_3 WHERE overall < 123 AND team = \"detroit lions\"" }
### INSTRUCTION How many architects haven't built a mill before year 1850? ### INPUT CREATE TABLE mill (id VARCHAR, architect_id VARCHAR, built_year INTEGER); CREATE TABLE architect (id VARCHAR, architect_id VARCHAR, built_year INTEGER) ### OUTPUT SELECT COUNT(*) FROM architect WHERE NOT id IN (SELECT architect_id FROM mill WHERE built_year < 1850)
{ "input": "CREATE TABLE mill (id VARCHAR, architect_id VARCHAR, built_year INTEGER); CREATE TABLE architect (id VARCHAR, architect_id VARCHAR, built_year INTEGER)", "instruction": "How many architects haven't built a mill before year 1850?", "output": "SELECT COUNT(*) FROM architect WHERE NOT id IN (SELECT architect_id FROM mill WHERE built_year < 1850)" }
### INSTRUCTION When conjunction junction is the episode title and the music is by bob dorough who is the performer? ### INPUT CREATE TABLE table_191105_2 (performed_by VARCHAR, music_by VARCHAR, episode_title VARCHAR) ### OUTPUT SELECT performed_by FROM table_191105_2 WHERE music_by = "Bob Dorough" AND episode_title = "Conjunction Junction"
{ "input": "CREATE TABLE table_191105_2 (performed_by VARCHAR, music_by VARCHAR, episode_title VARCHAR)", "instruction": "When conjunction junction is the episode title and the music is by bob dorough who is the performer?", "output": "SELECT performed_by FROM table_191105_2 WHERE music_by = \"Bob Dorough\" AND episode_title = \"Conjunction Junction\"" }
### INSTRUCTION What was the result in 2000? ### INPUT CREATE TABLE table_name_23 (results VARCHAR, year VARCHAR) ### OUTPUT SELECT results FROM table_name_23 WHERE year = 2000
{ "input": "CREATE TABLE table_name_23 (results VARCHAR, year VARCHAR)", "instruction": "What was the result in 2000?", "output": "SELECT results FROM table_name_23 WHERE year = 2000" }
### INSTRUCTION Which Rank has a Col (m) of 0, and a Peak of aoraki/mount cook, and a Prominence (m) larger than 3,755? ### INPUT CREATE TABLE table_name_32 (rank INTEGER, prominence__m_ VARCHAR, col__m_ VARCHAR, peak VARCHAR) ### OUTPUT SELECT SUM(rank) FROM table_name_32 WHERE col__m_ = 0 AND peak = "aoraki/mount cook" AND prominence__m_ > 3 OFFSET 755
{ "input": "CREATE TABLE table_name_32 (rank INTEGER, prominence__m_ VARCHAR, col__m_ VARCHAR, peak VARCHAR)", "instruction": "Which Rank has a Col (m) of 0, and a Peak of aoraki/mount cook, and a Prominence (m) larger than 3,755?", "output": "SELECT SUM(rank) FROM table_name_32 WHERE col__m_ = 0 AND peak = \"aoraki/mount cook\" AND prominence__m_ > 3 OFFSET 755" }
### INSTRUCTION for how many years did the player who graduated from stanford play for Grizzlies? ### INPUT CREATE TABLE table_name_11 (years_for_grizzlies VARCHAR, school_club_team VARCHAR) ### OUTPUT SELECT years_for_grizzlies FROM table_name_11 WHERE school_club_team = "stanford"
{ "input": "CREATE TABLE table_name_11 (years_for_grizzlies VARCHAR, school_club_team VARCHAR)", "instruction": "for how many years did the player who graduated from stanford play for Grizzlies?", "output": "SELECT years_for_grizzlies FROM table_name_11 WHERE school_club_team = \"stanford\"" }
### INSTRUCTION In the film Mrs. Miniver, what is the actresses name? ### INPUT CREATE TABLE table_18638067_1 (actor_actress VARCHAR, film_title_used_in_nomination VARCHAR) ### OUTPUT SELECT actor_actress FROM table_18638067_1 WHERE film_title_used_in_nomination = "Mrs. Miniver"
{ "input": "CREATE TABLE table_18638067_1 (actor_actress VARCHAR, film_title_used_in_nomination VARCHAR)", "instruction": "In the film Mrs. Miniver, what is the actresses name?", "output": "SELECT actor_actress FROM table_18638067_1 WHERE film_title_used_in_nomination = \"Mrs. Miniver\"" }
### INSTRUCTION How many Giro positions are associated with the year 1971 and Tour final positions over 50? ### INPUT CREATE TABLE table_name_45 (final_position___giro VARCHAR, year VARCHAR, final_position___tour VARCHAR) ### OUTPUT SELECT COUNT(final_position___giro) FROM table_name_45 WHERE year = 1971 AND final_position___tour > 50
{ "input": "CREATE TABLE table_name_45 (final_position___giro VARCHAR, year VARCHAR, final_position___tour VARCHAR)", "instruction": "How many Giro positions are associated with the year 1971 and Tour final positions over 50?", "output": "SELECT COUNT(final_position___giro) FROM table_name_45 WHERE year = 1971 AND final_position___tour > 50" }
### INSTRUCTION Who is the Skip when Alasdair Guthrie is the third? ### INPUT CREATE TABLE table_name_83 (skip VARCHAR, third VARCHAR) ### OUTPUT SELECT skip FROM table_name_83 WHERE third = "alasdair guthrie"
{ "input": "CREATE TABLE table_name_83 (skip VARCHAR, third VARCHAR)", "instruction": "Who is the Skip when Alasdair Guthrie is the third?", "output": "SELECT skip FROM table_name_83 WHERE third = \"alasdair guthrie\"" }
### INSTRUCTION Which champion was from the location of Morrisville, NC, and whose SemiFinalist #2 of Clemson? ### INPUT CREATE TABLE table_name_47 (champion VARCHAR, location VARCHAR, semi_finalist__number2 VARCHAR) ### OUTPUT SELECT champion FROM table_name_47 WHERE location = "morrisville, nc" AND semi_finalist__number2 = "clemson"
{ "input": "CREATE TABLE table_name_47 (champion VARCHAR, location VARCHAR, semi_finalist__number2 VARCHAR)", "instruction": "Which champion was from the location of Morrisville, NC, and whose SemiFinalist #2 of Clemson?", "output": "SELECT champion FROM table_name_47 WHERE location = \"morrisville, nc\" AND semi_finalist__number2 = \"clemson\"" }
### INSTRUCTION What is the Novelty of the dinosaur that was named by the Author, Zhiming, and whose Notes are, "carcharodontosaurid"? ### INPUT CREATE TABLE table_name_46 (novelty VARCHAR, authors VARCHAR, notes VARCHAR) ### OUTPUT SELECT novelty FROM table_name_46 WHERE authors = "zhiming" AND notes = "carcharodontosaurid"
{ "input": "CREATE TABLE table_name_46 (novelty VARCHAR, authors VARCHAR, notes VARCHAR)", "instruction": "What is the Novelty of the dinosaur that was named by the Author, Zhiming, and whose Notes are, \"carcharodontosaurid\"?", "output": "SELECT novelty FROM table_name_46 WHERE authors = \"zhiming\" AND notes = \"carcharodontosaurid\"" }
### INSTRUCTION Where is Emerson Fittipaldi starting in Pole position? ### INPUT CREATE TABLE table_name_60 (city_location VARCHAR, pole_position VARCHAR) ### OUTPUT SELECT city_location FROM table_name_60 WHERE pole_position = "emerson fittipaldi"
{ "input": "CREATE TABLE table_name_60 (city_location VARCHAR, pole_position VARCHAR)", "instruction": "Where is Emerson Fittipaldi starting in Pole position?", "output": "SELECT city_location FROM table_name_60 WHERE pole_position = \"emerson fittipaldi\"" }
### INSTRUCTION What is the color of the grape whose wine products has the highest average price? ### INPUT CREATE TABLE GRAPES (Color VARCHAR, Grape VARCHAR); CREATE TABLE WINE (Grape VARCHAR) ### OUTPUT SELECT T1.Color FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape GROUP BY T2.Grape ORDER BY AVG(Price) DESC LIMIT 1
{ "input": "CREATE TABLE GRAPES (Color VARCHAR, Grape VARCHAR); CREATE TABLE WINE (Grape VARCHAR)", "instruction": "What is the color of the grape whose wine products has the highest average price?", "output": "SELECT T1.Color FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape GROUP BY T2.Grape ORDER BY AVG(Price) DESC LIMIT 1" }
### INSTRUCTION What is the smallest cultural and educational panel with a nominated by the Taoiseach less than 5 and the total greater than 19? ### INPUT CREATE TABLE table_name_74 (cultural_and_educational_panel INTEGER, nominated_by_the_taoiseach VARCHAR, total VARCHAR) ### OUTPUT SELECT MIN(cultural_and_educational_panel) FROM table_name_74 WHERE nominated_by_the_taoiseach < 5 AND total > 19
{ "input": "CREATE TABLE table_name_74 (cultural_and_educational_panel INTEGER, nominated_by_the_taoiseach VARCHAR, total VARCHAR)", "instruction": "What is the smallest cultural and educational panel with a nominated by the Taoiseach less than 5 and the total greater than 19?", "output": "SELECT MIN(cultural_and_educational_panel) FROM table_name_74 WHERE nominated_by_the_taoiseach < 5 AND total > 19" }
### INSTRUCTION Which Record has a Date on december 18? ### INPUT CREATE TABLE table_name_55 (record VARCHAR, date VARCHAR) ### OUTPUT SELECT record FROM table_name_55 WHERE date = "december 18"
{ "input": "CREATE TABLE table_name_55 (record VARCHAR, date VARCHAR)", "instruction": "Which Record has a Date on december 18?", "output": "SELECT record FROM table_name_55 WHERE date = \"december 18\"" }
### INSTRUCTION List the hebrew word for the strongs words compounded of 'adown [# 113] & yahu ### INPUT CREATE TABLE table_1242447_2 (hebrew_word VARCHAR, strongs_words_compounded VARCHAR) ### OUTPUT SELECT hebrew_word FROM table_1242447_2 WHERE strongs_words_compounded = "'adown [# 113] & Yahu"
{ "input": "CREATE TABLE table_1242447_2 (hebrew_word VARCHAR, strongs_words_compounded VARCHAR)", "instruction": "List the hebrew word for the strongs words compounded of 'adown [# 113] & yahu", "output": "SELECT hebrew_word FROM table_1242447_2 WHERE strongs_words_compounded = \"'adown [# 113] & Yahu\"" }
### INSTRUCTION Which Sampling Memory/Upgrade-able has a rate of 16-bit 44.1khz? ### INPUT CREATE TABLE table_name_66 (sampling_memory_upgrade_able VARCHAR, sampling_rate VARCHAR) ### OUTPUT SELECT sampling_memory_upgrade_able FROM table_name_66 WHERE sampling_rate = "16-bit 44.1khz"
{ "input": "CREATE TABLE table_name_66 (sampling_memory_upgrade_able VARCHAR, sampling_rate VARCHAR)", "instruction": "Which Sampling Memory/Upgrade-able has a rate of 16-bit 44.1khz?", "output": "SELECT sampling_memory_upgrade_able FROM table_name_66 WHERE sampling_rate = \"16-bit 44.1khz\"" }
### INSTRUCTION Which Record has a Time of n/a? ### INPUT CREATE TABLE table_name_23 (record VARCHAR, time VARCHAR) ### OUTPUT SELECT record FROM table_name_23 WHERE time = "n/a"
{ "input": "CREATE TABLE table_name_23 (record VARCHAR, time VARCHAR)", "instruction": "Which Record has a Time of n/a?", "output": "SELECT record FROM table_name_23 WHERE time = \"n/a\"" }
### INSTRUCTION What are the most wins in 1971 in 250cc class? ### INPUT CREATE TABLE table_name_11 (wins INTEGER, class VARCHAR, year VARCHAR) ### OUTPUT SELECT MAX(wins) FROM table_name_11 WHERE class = "250cc" AND year = 1971
{ "input": "CREATE TABLE table_name_11 (wins INTEGER, class VARCHAR, year VARCHAR)", "instruction": "What are the most wins in 1971 in 250cc class?", "output": "SELECT MAX(wins) FROM table_name_11 WHERE class = \"250cc\" AND year = 1971" }
### INSTRUCTION Which episode had viewership of 0.296 million? ### INPUT CREATE TABLE table_27987623_3 (episode VARCHAR, viewers__millions_ VARCHAR) ### OUTPUT SELECT episode FROM table_27987623_3 WHERE viewers__millions_ = "0.296"
{ "input": "CREATE TABLE table_27987623_3 (episode VARCHAR, viewers__millions_ VARCHAR)", "instruction": "Which episode had viewership of 0.296 million?", "output": "SELECT episode FROM table_27987623_3 WHERE viewers__millions_ = \"0.296\"" }
### INSTRUCTION Find the distinct driver id and the stop number of all drivers that have a shorter pit stop duration than some drivers in the race with id 841. ### INPUT CREATE TABLE pitstops (driverid VARCHAR, STOP VARCHAR, duration INTEGER, raceid VARCHAR) ### OUTPUT SELECT DISTINCT driverid, STOP FROM pitstops WHERE duration < (SELECT MAX(duration) FROM pitstops WHERE raceid = 841)
{ "input": "CREATE TABLE pitstops (driverid VARCHAR, STOP VARCHAR, duration INTEGER, raceid VARCHAR)", "instruction": "Find the distinct driver id and the stop number of all drivers that have a shorter pit stop duration than some drivers in the race with id 841.", "output": "SELECT DISTINCT driverid, STOP FROM pitstops WHERE duration < (SELECT MAX(duration) FROM pitstops WHERE raceid = 841)" }
### INSTRUCTION What is the least first elected for jeff busby? ### INPUT CREATE TABLE table_1342393_23 (first_elected INTEGER, incumbent VARCHAR) ### OUTPUT SELECT MIN(first_elected) FROM table_1342393_23 WHERE incumbent = "Jeff Busby"
{ "input": "CREATE TABLE table_1342393_23 (first_elected INTEGER, incumbent VARCHAR)", "instruction": "What is the least first elected for jeff busby?", "output": "SELECT MIN(first_elected) FROM table_1342393_23 WHERE incumbent = \"Jeff Busby\"" }
### INSTRUCTION How many players received high points where location/attendance was UIC Pavilion 6,304 respectively? ### INPUT CREATE TABLE table_17118657_7 (high_points VARCHAR, location_attendance VARCHAR) ### OUTPUT SELECT COUNT(high_points) FROM table_17118657_7 WHERE location_attendance = "UIC Pavilion 6,304"
{ "input": "CREATE TABLE table_17118657_7 (high_points VARCHAR, location_attendance VARCHAR)", "instruction": "How many players received high points where location/attendance was UIC Pavilion 6,304 respectively?", "output": "SELECT COUNT(high_points) FROM table_17118657_7 WHERE location_attendance = \"UIC Pavilion 6,304\"" }
### INSTRUCTION what is the full name and id of the college with the largest number of baseball players? ### INPUT CREATE TABLE player_college (college_id VARCHAR); CREATE TABLE college (name_full VARCHAR, college_id VARCHAR) ### OUTPUT SELECT T1.name_full, T1.college_id FROM college AS T1 JOIN player_college AS T2 ON T1.college_id = T2.college_id GROUP BY T1.college_id ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE player_college (college_id VARCHAR); CREATE TABLE college (name_full VARCHAR, college_id VARCHAR)", "instruction": "what is the full name and id of the college with the largest number of baseball players?", "output": "SELECT T1.name_full, T1.college_id FROM college AS T1 JOIN player_college AS T2 ON T1.college_id = T2.college_id GROUP BY T1.college_id ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION What is the hometown of the contestant whose background is as a financial consultant? ### INPUT CREATE TABLE table_19810459_1 (hometown VARCHAR, background VARCHAR) ### OUTPUT SELECT hometown FROM table_19810459_1 WHERE background = "Financial consultant"
{ "input": "CREATE TABLE table_19810459_1 (hometown VARCHAR, background VARCHAR)", "instruction": "What is the hometown of the contestant whose background is as a financial consultant? ", "output": "SELECT hometown FROM table_19810459_1 WHERE background = \"Financial consultant\"" }
### INSTRUCTION What is the average attendance that has april 12 as the date? ### INPUT CREATE TABLE table_name_14 (attendance INTEGER, date VARCHAR) ### OUTPUT SELECT AVG(attendance) FROM table_name_14 WHERE date = "april 12"
{ "input": "CREATE TABLE table_name_14 (attendance INTEGER, date VARCHAR)", "instruction": "What is the average attendance that has april 12 as the date?", "output": "SELECT AVG(attendance) FROM table_name_14 WHERE date = \"april 12\"" }
### INSTRUCTION How many countries has more than 2 car makers ? ### INPUT CREATE TABLE car_makers (country VARCHAR); CREATE TABLE countries (countryid VARCHAR) ### OUTPUT SELECT COUNT(*) FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country GROUP BY t1.countryid HAVING COUNT(*) > 2
{ "input": "CREATE TABLE car_makers (country VARCHAR); CREATE TABLE countries (countryid VARCHAR)", "instruction": "How many countries has more than 2 car makers ?", "output": "SELECT COUNT(*) FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country GROUP BY t1.countryid HAVING COUNT(*) > 2" }
### INSTRUCTION What is the Partner of the match with a Score in Final of 5–7, 4–6? ### INPUT CREATE TABLE table_name_92 (partner VARCHAR, score_in_final VARCHAR) ### OUTPUT SELECT partner FROM table_name_92 WHERE score_in_final = "5–7, 4–6"
{ "input": "CREATE TABLE table_name_92 (partner VARCHAR, score_in_final VARCHAR)", "instruction": "What is the Partner of the match with a Score in Final of 5–7, 4–6?", "output": "SELECT partner FROM table_name_92 WHERE score_in_final = \"5–7, 4–6\"" }
### INSTRUCTION What was the margin of the Masters Tournament? ### INPUT CREATE TABLE table_13026799_1 (margin VARCHAR, championship VARCHAR) ### OUTPUT SELECT margin FROM table_13026799_1 WHERE championship = "Masters Tournament"
{ "input": "CREATE TABLE table_13026799_1 (margin VARCHAR, championship VARCHAR)", "instruction": "What was the margin of the Masters Tournament?", "output": "SELECT margin FROM table_13026799_1 WHERE championship = \"Masters Tournament\"" }
### INSTRUCTION What is Circuit, when Team is "R.J.MacArthur Onslow", and when City / State is "Sydney , New South Wales"? ### INPUT CREATE TABLE table_name_54 (circuit VARCHAR, team VARCHAR, city___state VARCHAR) ### OUTPUT SELECT circuit FROM table_name_54 WHERE team = "r.j.macarthur onslow" AND city___state = "sydney , new south wales"
{ "input": "CREATE TABLE table_name_54 (circuit VARCHAR, team VARCHAR, city___state VARCHAR)", "instruction": "What is Circuit, when Team is \"R.J.MacArthur Onslow\", and when City / State is \"Sydney , New South Wales\"?", "output": "SELECT circuit FROM table_name_54 WHERE team = \"r.j.macarthur onslow\" AND city___state = \"sydney , new south wales\"" }
### INSTRUCTION What is the association agreement for bosnia and herzegovina? ### INPUT CREATE TABLE table_name_69 (association_agreement VARCHAR, state VARCHAR) ### OUTPUT SELECT association_agreement FROM table_name_69 WHERE state = "bosnia and herzegovina"
{ "input": "CREATE TABLE table_name_69 (association_agreement VARCHAR, state VARCHAR)", "instruction": "What is the association agreement for bosnia and herzegovina?", "output": "SELECT association_agreement FROM table_name_69 WHERE state = \"bosnia and herzegovina\"" }
### INSTRUCTION What is the highest swimsuit a contestant from Kansas with an average larger than 8.48, an interview higher than 8.58, and an evening gown higher than 8.82 has? ### INPUT CREATE TABLE table_name_69 (swimsuit INTEGER, state VARCHAR, evening_gown VARCHAR, average VARCHAR, interview VARCHAR) ### OUTPUT SELECT MAX(swimsuit) FROM table_name_69 WHERE average > 8.48 AND interview > 8.58 AND evening_gown > 8.82 AND state = "kansas"
{ "input": "CREATE TABLE table_name_69 (swimsuit INTEGER, state VARCHAR, evening_gown VARCHAR, average VARCHAR, interview VARCHAR)", "instruction": "What is the highest swimsuit a contestant from Kansas with an average larger than 8.48, an interview higher than 8.58, and an evening gown higher than 8.82 has?", "output": "SELECT MAX(swimsuit) FROM table_name_69 WHERE average > 8.48 AND interview > 8.58 AND evening_gown > 8.82 AND state = \"kansas\"" }
### INSTRUCTION Which website includes a webcast of listen live, a frequency under 680, and was licensed in the city of San Antonio. ### INPUT CREATE TABLE table_name_53 (website VARCHAR, frequency VARCHAR, city_of_license VARCHAR, webcast VARCHAR) ### OUTPUT SELECT website FROM table_name_53 WHERE city_of_license = "san antonio" AND webcast = "listen live" AND frequency = 680
{ "input": "CREATE TABLE table_name_53 (website VARCHAR, frequency VARCHAR, city_of_license VARCHAR, webcast VARCHAR)", "instruction": "Which website includes a webcast of listen live, a frequency under 680, and was licensed in the city of San Antonio.", "output": "SELECT website FROM table_name_53 WHERE city_of_license = \"san antonio\" AND webcast = \"listen live\" AND frequency = 680" }
### INSTRUCTION What is the density of the common with an area of 20.4 km^2? ### INPUT CREATE TABLE table_1449176_1 (density__inhabitants_km_2__ VARCHAR, area__km_2__ VARCHAR) ### OUTPUT SELECT density__inhabitants_km_2__ FROM table_1449176_1 WHERE area__km_2__ = "20.4"
{ "input": "CREATE TABLE table_1449176_1 (density__inhabitants_km_2__ VARCHAR, area__km_2__ VARCHAR)", "instruction": "What is the density of the common with an area of 20.4 km^2?", "output": "SELECT density__inhabitants_km_2__ FROM table_1449176_1 WHERE area__km_2__ = \"20.4\"" }
### INSTRUCTION On which day and in which zip code was the min dew point lower than any day in zip code 94107? ### INPUT CREATE TABLE weather (date VARCHAR, zip_code VARCHAR, min_dew_point_f INTEGER) ### OUTPUT SELECT date, zip_code FROM weather WHERE min_dew_point_f < (SELECT MIN(min_dew_point_f) FROM weather WHERE zip_code = 94107)
{ "input": "CREATE TABLE weather (date VARCHAR, zip_code VARCHAR, min_dew_point_f INTEGER)", "instruction": "On which day and in which zip code was the min dew point lower than any day in zip code 94107?", "output": "SELECT date, zip_code FROM weather WHERE min_dew_point_f < (SELECT MIN(min_dew_point_f) FROM weather WHERE zip_code = 94107)" }
### INSTRUCTION What is the lowest crowd with home team richmond? ### INPUT CREATE TABLE table_name_79 (crowd INTEGER, home_team VARCHAR) ### OUTPUT SELECT MIN(crowd) FROM table_name_79 WHERE home_team = "richmond"
{ "input": "CREATE TABLE table_name_79 (crowd INTEGER, home_team VARCHAR)", "instruction": "What is the lowest crowd with home team richmond?", "output": "SELECT MIN(crowd) FROM table_name_79 WHERE home_team = \"richmond\"" }
### INSTRUCTION Please show the name of the conductor that has conducted orchestras founded after 2008. ### INPUT CREATE TABLE orchestra (Conductor_ID VARCHAR); CREATE TABLE conductor (Name VARCHAR, Conductor_ID VARCHAR) ### OUTPUT SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE Year_of_Founded > 2008
{ "input": "CREATE TABLE orchestra (Conductor_ID VARCHAR); CREATE TABLE conductor (Name VARCHAR, Conductor_ID VARCHAR)", "instruction": "Please show the name of the conductor that has conducted orchestras founded after 2008.", "output": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE Year_of_Founded > 2008" }
### INSTRUCTION List the order id, customer id for orders in Cancelled status, ordered by their order dates. ### INPUT CREATE TABLE customer_orders (order_id VARCHAR, customer_id VARCHAR, order_status_code VARCHAR, order_date VARCHAR) ### OUTPUT SELECT order_id, customer_id FROM customer_orders WHERE order_status_code = "Cancelled" ORDER BY order_date
{ "input": "CREATE TABLE customer_orders (order_id VARCHAR, customer_id VARCHAR, order_status_code VARCHAR, order_date VARCHAR)", "instruction": "List the order id, customer id for orders in Cancelled status, ordered by their order dates.", "output": "SELECT order_id, customer_id FROM customer_orders WHERE order_status_code = \"Cancelled\" ORDER BY order_date" }
### INSTRUCTION Who is the player in t8 place with a 75-71=146 score? ### INPUT CREATE TABLE table_name_68 (player VARCHAR, place VARCHAR, score VARCHAR) ### OUTPUT SELECT player FROM table_name_68 WHERE place = "t8" AND score = 75 - 71 = 146
{ "input": "CREATE TABLE table_name_68 (player VARCHAR, place VARCHAR, score VARCHAR)", "instruction": "Who is the player in t8 place with a 75-71=146 score?", "output": "SELECT player FROM table_name_68 WHERE place = \"t8\" AND score = 75 - 71 = 146" }
### INSTRUCTION What is Model Number, when Part Number(s) is AY80609003987AB? ### INPUT CREATE TABLE table_name_70 (model_number VARCHAR, part_number_s_ VARCHAR) ### OUTPUT SELECT model_number FROM table_name_70 WHERE part_number_s_ = "ay80609003987ab"
{ "input": "CREATE TABLE table_name_70 (model_number VARCHAR, part_number_s_ VARCHAR)", "instruction": "What is Model Number, when Part Number(s) is AY80609003987AB?", "output": "SELECT model_number FROM table_name_70 WHERE part_number_s_ = \"ay80609003987ab\"" }
### INSTRUCTION Find the first name of the professor who is teaching two courses with code CIS-220 and QM-261. ### INPUT CREATE TABLE CLASS (prof_num VARCHAR); CREATE TABLE employee (emp_fname VARCHAR, emp_num VARCHAR) ### OUTPUT SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num WHERE crs_code = 'CIS-220' INTERSECT SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num WHERE crs_code = 'QM-261'
{ "input": "CREATE TABLE CLASS (prof_num VARCHAR); CREATE TABLE employee (emp_fname VARCHAR, emp_num VARCHAR)", "instruction": "Find the first name of the professor who is teaching two courses with code CIS-220 and QM-261.", "output": "SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num WHERE crs_code = 'CIS-220' INTERSECT SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num WHERE crs_code = 'QM-261'" }
### INSTRUCTION where title is beginning callanetics , what is the total of format ? ### INPUT CREATE TABLE table_11222744_2 (format VARCHAR, title VARCHAR) ### OUTPUT SELECT COUNT(format) FROM table_11222744_2 WHERE title = "Beginning Callanetics"
{ "input": "CREATE TABLE table_11222744_2 (format VARCHAR, title VARCHAR)", "instruction": "where title is beginning callanetics , what is the total of format ?", "output": "SELECT COUNT(format) FROM table_11222744_2 WHERE title = \"Beginning Callanetics\"" }
### INSTRUCTION After week 2, how many people attended the game at Rich Stadium against the Miami Dolphins? ### INPUT CREATE TABLE table_name_61 (attendance VARCHAR, week VARCHAR, game_site VARCHAR, opponent VARCHAR) ### OUTPUT SELECT COUNT(attendance) FROM table_name_61 WHERE game_site = "rich stadium" AND opponent = "miami dolphins" AND week > 2
{ "input": "CREATE TABLE table_name_61 (attendance VARCHAR, week VARCHAR, game_site VARCHAR, opponent VARCHAR)", "instruction": "After week 2, how many people attended the game at Rich Stadium against the Miami Dolphins?", "output": "SELECT COUNT(attendance) FROM table_name_61 WHERE game_site = \"rich stadium\" AND opponent = \"miami dolphins\" AND week > 2" }
### INSTRUCTION What is the division in the season more recent than 2012 when the round of 16 was reached in the FA Cup? ### INPUT CREATE TABLE table_name_9 (division VARCHAR, fa_cup VARCHAR, season VARCHAR) ### OUTPUT SELECT COUNT(division) FROM table_name_9 WHERE fa_cup = "round of 16" AND season > 2012
{ "input": "CREATE TABLE table_name_9 (division VARCHAR, fa_cup VARCHAR, season VARCHAR)", "instruction": "What is the division in the season more recent than 2012 when the round of 16 was reached in the FA Cup?", "output": "SELECT COUNT(division) FROM table_name_9 WHERE fa_cup = \"round of 16\" AND season > 2012" }
### INSTRUCTION What is the maximum lost with points 1 more than 58 and 66 goals against? ### INPUT CREATE TABLE table_name_9 (lost INTEGER, points_1 VARCHAR, goals_against VARCHAR) ### OUTPUT SELECT MAX(lost) FROM table_name_9 WHERE points_1 > 58 AND goals_against = 66
{ "input": "CREATE TABLE table_name_9 (lost INTEGER, points_1 VARCHAR, goals_against VARCHAR)", "instruction": "What is the maximum lost with points 1 more than 58 and 66 goals against?", "output": "SELECT MAX(lost) FROM table_name_9 WHERE points_1 > 58 AND goals_against = 66" }
### INSTRUCTION Who had the high assists when the team was @ Minnesota? ### INPUT CREATE TABLE table_17323092_7 (high_assists VARCHAR, team VARCHAR) ### OUTPUT SELECT high_assists FROM table_17323092_7 WHERE team = "@ Minnesota"
{ "input": "CREATE TABLE table_17323092_7 (high_assists VARCHAR, team VARCHAR)", "instruction": "Who had the high assists when the team was @ Minnesota?", "output": "SELECT high_assists FROM table_17323092_7 WHERE team = \"@ Minnesota\"" }
### INSTRUCTION How many draft picks were for Winnipeg blue bombers? ### INPUT CREATE TABLE table_25085059_3 (pick__number VARCHAR, cfl_team VARCHAR) ### OUTPUT SELECT COUNT(pick__number) FROM table_25085059_3 WHERE cfl_team = "Winnipeg Blue Bombers"
{ "input": "CREATE TABLE table_25085059_3 (pick__number VARCHAR, cfl_team VARCHAR)", "instruction": "How many draft picks were for Winnipeg blue bombers?", "output": "SELECT COUNT(pick__number) FROM table_25085059_3 WHERE cfl_team = \"Winnipeg Blue Bombers\"" }
### INSTRUCTION Who is listed under the general classifcation where Ben Swift won and Cameron Meyer was listed under the young rider? ### INPUT CREATE TABLE table_29332810_14 (general_classification VARCHAR, winner VARCHAR, young_rider_classification VARCHAR) ### OUTPUT SELECT general_classification FROM table_29332810_14 WHERE winner = "Ben Swift" AND young_rider_classification = "Cameron Meyer"
{ "input": "CREATE TABLE table_29332810_14 (general_classification VARCHAR, winner VARCHAR, young_rider_classification VARCHAR)", "instruction": "Who is listed under the general classifcation where Ben Swift won and Cameron Meyer was listed under the young rider?", "output": "SELECT general_classification FROM table_29332810_14 WHERE winner = \"Ben Swift\" AND young_rider_classification = \"Cameron Meyer\"" }
### INSTRUCTION Name the sscore for world cup qualifying october 15, 2008 ### INPUT CREATE TABLE table_name_49 (score VARCHAR, competition VARCHAR, date VARCHAR) ### OUTPUT SELECT score FROM table_name_49 WHERE competition = "world cup qualifying" AND date = "october 15, 2008"
{ "input": "CREATE TABLE table_name_49 (score VARCHAR, competition VARCHAR, date VARCHAR)", "instruction": "Name the sscore for world cup qualifying october 15, 2008", "output": "SELECT score FROM table_name_49 WHERE competition = \"world cup qualifying\" AND date = \"october 15, 2008\"" }
### INSTRUCTION Which Nationality has a Previous team of new york knicks, and more than 3 Years of NBA experience? ### INPUT CREATE TABLE table_name_30 (nationality VARCHAR, previous_team VARCHAR, years_of_nba_experience_ VARCHAR, a_ VARCHAR) ### OUTPUT SELECT nationality FROM table_name_30 WHERE previous_team = "new york knicks" AND years_of_nba_experience_[a_] > 3
{ "input": "CREATE TABLE table_name_30 (nationality VARCHAR, previous_team VARCHAR, years_of_nba_experience_ VARCHAR, a_ VARCHAR)", "instruction": "Which Nationality has a Previous team of new york knicks, and more than 3 Years of NBA experience?", "output": "SELECT nationality FROM table_name_30 WHERE previous_team = \"new york knicks\" AND years_of_nba_experience_[a_] > 3" }
### INSTRUCTION During which stage was the Intergiro classification held by Miguel Indurain, the Points classification held by Mario Cipollini, and the Young rider classification held by Leonardo Sierra? ### INPUT CREATE TABLE table_name_76 (stage VARCHAR, young_rider_classification VARCHAR, intergiro_classification VARCHAR, points_classification VARCHAR) ### OUTPUT SELECT stage FROM table_name_76 WHERE intergiro_classification = "miguel indurain" AND points_classification = "mario cipollini" AND young_rider_classification = "leonardo sierra"
{ "input": "CREATE TABLE table_name_76 (stage VARCHAR, young_rider_classification VARCHAR, intergiro_classification VARCHAR, points_classification VARCHAR)", "instruction": "During which stage was the Intergiro classification held by Miguel Indurain, the Points classification held by Mario Cipollini, and the Young rider classification held by Leonardo Sierra?", "output": "SELECT stage FROM table_name_76 WHERE intergiro_classification = \"miguel indurain\" AND points_classification = \"mario cipollini\" AND young_rider_classification = \"leonardo sierra\"" }
### INSTRUCTION What is the highest Pick that is wide receiver with overall of 29? ### INPUT CREATE TABLE table_name_60 (pick__number INTEGER, position VARCHAR, overall VARCHAR) ### OUTPUT SELECT MAX(pick__number) FROM table_name_60 WHERE position = "wide receiver" AND overall = 29
{ "input": "CREATE TABLE table_name_60 (pick__number INTEGER, position VARCHAR, overall VARCHAR)", "instruction": "What is the highest Pick that is wide receiver with overall of 29?", "output": "SELECT MAX(pick__number) FROM table_name_60 WHERE position = \"wide receiver\" AND overall = 29" }
### INSTRUCTION What is the average age of the members of the club "Bootup Baltimore"? ### INPUT CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (age INTEGER, stuid VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR) ### OUTPUT SELECT AVG(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Bootup Baltimore"
{ "input": "CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (age INTEGER, stuid VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR)", "instruction": "What is the average age of the members of the club \"Bootup Baltimore\"?", "output": "SELECT AVG(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\"" }
### INSTRUCTION Which country had a release of 1 VCD titled Martial Law: Substitutes? ### INPUT CREATE TABLE table_name_93 (country VARCHAR, notes VARCHAR, release_title VARCHAR) ### OUTPUT SELECT country FROM table_name_93 WHERE notes = "1 vcd" AND release_title = "martial law: substitutes"
{ "input": "CREATE TABLE table_name_93 (country VARCHAR, notes VARCHAR, release_title VARCHAR)", "instruction": "Which country had a release of 1 VCD titled Martial Law: Substitutes?", "output": "SELECT country FROM table_name_93 WHERE notes = \"1 vcd\" AND release_title = \"martial law: substitutes\"" }
### INSTRUCTION Who was the Winner in the AMC Round 4 at Lakeside International Raceway? ### INPUT CREATE TABLE table_name_96 (winner VARCHAR, circuit VARCHAR, series VARCHAR) ### OUTPUT SELECT winner FROM table_name_96 WHERE circuit = "lakeside international raceway" AND series = "amc round 4"
{ "input": "CREATE TABLE table_name_96 (winner VARCHAR, circuit VARCHAR, series VARCHAR)", "instruction": "Who was the Winner in the AMC Round 4 at Lakeside International Raceway?", "output": "SELECT winner FROM table_name_96 WHERE circuit = \"lakeside international raceway\" AND series = \"amc round 4\"" }
### INSTRUCTION Which week was the first game played that had a time of 2:06 and less than 27,374 attendees? ### INPUT CREATE TABLE table_name_47 (game INTEGER, time VARCHAR, attendance VARCHAR) ### OUTPUT SELECT MIN(game) FROM table_name_47 WHERE time = "2:06" AND attendance < 27 OFFSET 374
{ "input": "CREATE TABLE table_name_47 (game INTEGER, time VARCHAR, attendance VARCHAR)", "instruction": "Which week was the first game played that had a time of 2:06 and less than 27,374 attendees?", "output": "SELECT MIN(game) FROM table_name_47 WHERE time = \"2:06\" AND attendance < 27 OFFSET 374" }
### INSTRUCTION What was the result when they played at Michigan State? ### INPUT CREATE TABLE table_name_14 (result VARCHAR, opponent_number VARCHAR) ### OUTPUT SELECT result FROM table_name_14 WHERE opponent_number = "at michigan state"
{ "input": "CREATE TABLE table_name_14 (result VARCHAR, opponent_number VARCHAR)", "instruction": "What was the result when they played at Michigan State?", "output": "SELECT result FROM table_name_14 WHERE opponent_number = \"at michigan state\"" }
### INSTRUCTION How many totals had more than 4 bronze? ### INPUT CREATE TABLE table_name_93 (total INTEGER, bronze INTEGER) ### OUTPUT SELECT SUM(total) FROM table_name_93 WHERE bronze > 4
{ "input": "CREATE TABLE table_name_93 (total INTEGER, bronze INTEGER)", "instruction": "How many totals had more than 4 bronze?", "output": "SELECT SUM(total) FROM table_name_93 WHERE bronze > 4" }
### INSTRUCTION Name the least decile for state authority and area of eketahuna with roll more than 44 ### INPUT CREATE TABLE table_name_78 (decile INTEGER, roll VARCHAR, authority VARCHAR, area VARCHAR) ### OUTPUT SELECT MIN(decile) FROM table_name_78 WHERE authority = "state" AND area = "eketahuna" AND roll > 44
{ "input": "CREATE TABLE table_name_78 (decile INTEGER, roll VARCHAR, authority VARCHAR, area VARCHAR)", "instruction": "Name the least decile for state authority and area of eketahuna with roll more than 44", "output": "SELECT MIN(decile) FROM table_name_78 WHERE authority = \"state\" AND area = \"eketahuna\" AND roll > 44" }
### INSTRUCTION What is the rank of the cinema when the headquarters are in toronto, ON and the screens is less than 1,438? ### INPUT CREATE TABLE table_name_19 (rank INTEGER, headquarters VARCHAR, screens VARCHAR) ### OUTPUT SELECT AVG(rank) FROM table_name_19 WHERE headquarters = "toronto, on" AND screens < 1 OFFSET 438
{ "input": "CREATE TABLE table_name_19 (rank INTEGER, headquarters VARCHAR, screens VARCHAR)", "instruction": "What is the rank of the cinema when the headquarters are in toronto, ON and the screens is less than 1,438?", "output": "SELECT AVG(rank) FROM table_name_19 WHERE headquarters = \"toronto, on\" AND screens < 1 OFFSET 438" }
### INSTRUCTION Show the residences that have both a player of gender "M" and a player of gender "F". ### INPUT CREATE TABLE player (Residence VARCHAR, gender VARCHAR) ### OUTPUT SELECT Residence FROM player WHERE gender = "M" INTERSECT SELECT Residence FROM player WHERE gender = "F"
{ "input": "CREATE TABLE player (Residence VARCHAR, gender VARCHAR)", "instruction": "Show the residences that have both a player of gender \"M\" and a player of gender \"F\".", "output": "SELECT Residence FROM player WHERE gender = \"M\" INTERSECT SELECT Residence FROM player WHERE gender = \"F\"" }
### INSTRUCTION Which Attendance has a Game score less than 3, and a Score of 2 – 5? ### INPUT CREATE TABLE table_name_58 (attendance INTEGER, game VARCHAR, score VARCHAR) ### OUTPUT SELECT AVG(attendance) FROM table_name_58 WHERE game < 3 AND score = "2 – 5"
{ "input": "CREATE TABLE table_name_58 (attendance INTEGER, game VARCHAR, score VARCHAR)", "instruction": "Which Attendance has a Game score less than 3, and a Score of 2 – 5?", "output": "SELECT AVG(attendance) FROM table_name_58 WHERE game < 3 AND score = \"2 – 5\"" }
### INSTRUCTION What is the date of the item with a label of Sony BMG, Epic and a Catalog number 5187482? ### INPUT CREATE TABLE table_name_82 (date VARCHAR, label VARCHAR, catalog VARCHAR) ### OUTPUT SELECT date FROM table_name_82 WHERE label = "sony bmg, epic" AND catalog = "5187482"
{ "input": "CREATE TABLE table_name_82 (date VARCHAR, label VARCHAR, catalog VARCHAR)", "instruction": "What is the date of the item with a label of Sony BMG, Epic and a Catalog number 5187482?", "output": "SELECT date FROM table_name_82 WHERE label = \"sony bmg, epic\" AND catalog = \"5187482\"" }
### INSTRUCTION Who's the Republican ticket with a Socialist ticket of frank r. crosswaith? ### INPUT CREATE TABLE table_name_61 (republican_ticket VARCHAR, socialist_ticket VARCHAR) ### OUTPUT SELECT republican_ticket FROM table_name_61 WHERE socialist_ticket = "frank r. crosswaith"
{ "input": "CREATE TABLE table_name_61 (republican_ticket VARCHAR, socialist_ticket VARCHAR)", "instruction": "Who's the Republican ticket with a Socialist ticket of frank r. crosswaith?", "output": "SELECT republican_ticket FROM table_name_61 WHERE socialist_ticket = \"frank r. crosswaith\"" }
### INSTRUCTION What is Score, when Country is "United States", when Place is "T9", and when Player is "Jay Hebert"? ### INPUT CREATE TABLE table_name_28 (score VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR) ### OUTPUT SELECT score FROM table_name_28 WHERE country = "united states" AND place = "t9" AND player = "jay hebert"
{ "input": "CREATE TABLE table_name_28 (score VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR)", "instruction": "What is Score, when Country is \"United States\", when Place is \"T9\", and when Player is \"Jay Hebert\"?", "output": "SELECT score FROM table_name_28 WHERE country = \"united states\" AND place = \"t9\" AND player = \"jay hebert\"" }
### INSTRUCTION What is the highest average points per race of the driver with less than 969 points and an average pre-2010 less than 0? ### INPUT CREATE TABLE table_name_75 (average_points_per_race_entered INTEGER, points VARCHAR, average_pre_2010 VARCHAR) ### OUTPUT SELECT MAX(average_points_per_race_entered) FROM table_name_75 WHERE points < 969 AND average_pre_2010 < 0
{ "input": "CREATE TABLE table_name_75 (average_points_per_race_entered INTEGER, points VARCHAR, average_pre_2010 VARCHAR)", "instruction": "What is the highest average points per race of the driver with less than 969 points and an average pre-2010 less than 0?", "output": "SELECT MAX(average_points_per_race_entered) FROM table_name_75 WHERE points < 969 AND average_pre_2010 < 0" }
### INSTRUCTION What is the total number of ends after 2006 with a nationality of ita and 0 goals? ### INPUT CREATE TABLE table_name_39 (ends VARCHAR, goals VARCHAR, since VARCHAR, nat VARCHAR) ### OUTPUT SELECT COUNT(ends) FROM table_name_39 WHERE since > 2006 AND nat = "ita" AND goals < 0
{ "input": "CREATE TABLE table_name_39 (ends VARCHAR, goals VARCHAR, since VARCHAR, nat VARCHAR)", "instruction": "What is the total number of ends after 2006 with a nationality of ita and 0 goals?", "output": "SELECT COUNT(ends) FROM table_name_39 WHERE since > 2006 AND nat = \"ita\" AND goals < 0" }
### INSTRUCTION Name the total number of laps for 23rd position ### INPUT CREATE TABLE table_name_17 (laps VARCHAR, pos VARCHAR) ### OUTPUT SELECT COUNT(laps) FROM table_name_17 WHERE pos = "23rd"
{ "input": "CREATE TABLE table_name_17 (laps VARCHAR, pos VARCHAR)", "instruction": "Name the total number of laps for 23rd position", "output": "SELECT COUNT(laps) FROM table_name_17 WHERE pos = \"23rd\"" }
### INSTRUCTION Show the pilot positions that have both pilots joining after year 2005 and pilots joining before 2000. ### INPUT CREATE TABLE pilot (POSITION VARCHAR, Join_Year INTEGER) ### OUTPUT SELECT POSITION FROM pilot WHERE Join_Year < 2000 INTERSECT SELECT POSITION FROM pilot WHERE Join_Year > 2005
{ "input": "CREATE TABLE pilot (POSITION VARCHAR, Join_Year INTEGER)", "instruction": "Show the pilot positions that have both pilots joining after year 2005 and pilots joining before 2000.", "output": "SELECT POSITION FROM pilot WHERE Join_Year < 2000 INTERSECT SELECT POSITION FROM pilot WHERE Join_Year > 2005" }
### INSTRUCTION What shows for 2000 at the Fort Peck Indian Reservation, Montana, when the 1979 is less than 26.8? ### INPUT CREATE TABLE table_name_97 (location VARCHAR, reservation VARCHAR) ### OUTPUT SELECT AVG(2000) FROM table_name_97 WHERE location = "montana" AND reservation = "fort peck indian reservation" AND 1979 < 26.8
{ "input": "CREATE TABLE table_name_97 (location VARCHAR, reservation VARCHAR)", "instruction": "What shows for 2000 at the Fort Peck Indian Reservation, Montana, when the 1979 is less than 26.8?", "output": "SELECT AVG(2000) FROM table_name_97 WHERE location = \"montana\" AND reservation = \"fort peck indian reservation\" AND 1979 < 26.8" }
### INSTRUCTION What is the FY2008 $mil value associated with a FY2007 $mil value of exactly $120? ### INPUT CREATE TABLE table_25438110_5 (fy08_$millions VARCHAR, fy07_$millions VARCHAR) ### OUTPUT SELECT fy08_$millions FROM table_25438110_5 WHERE fy07_$millions = "$120"
{ "input": "CREATE TABLE table_25438110_5 (fy08_$millions VARCHAR, fy07_$millions VARCHAR)", "instruction": "What is the FY2008 $mil value associated with a FY2007 $mil value of exactly $120?", "output": "SELECT fy08_$millions FROM table_25438110_5 WHERE fy07_$millions = \"$120\"" }
### INSTRUCTION List all of the player ids with a height of at least 180cm and an overall rating higher than 85. ### INPUT CREATE TABLE Player_Attributes (player_api_id VARCHAR, height VARCHAR, overall_rating INTEGER); CREATE TABLE Player (player_api_id VARCHAR, height VARCHAR, overall_rating INTEGER) ### OUTPUT SELECT player_api_id FROM Player WHERE height >= 180 INTERSECT SELECT player_api_id FROM Player_Attributes WHERE overall_rating > 85
{ "input": "CREATE TABLE Player_Attributes (player_api_id VARCHAR, height VARCHAR, overall_rating INTEGER); CREATE TABLE Player (player_api_id VARCHAR, height VARCHAR, overall_rating INTEGER)", "instruction": "List all of the player ids with a height of at least 180cm and an overall rating higher than 85.", "output": "SELECT player_api_id FROM Player WHERE height >= 180 INTERSECT SELECT player_api_id FROM Player_Attributes WHERE overall_rating > 85" }
### INSTRUCTION What is the highest Population, when State is Puerto Rico, and when Total Congregations is greater than 41? ### INPUT CREATE TABLE table_name_16 (population INTEGER, state VARCHAR, total_congregations VARCHAR) ### OUTPUT SELECT MAX(population) FROM table_name_16 WHERE state = "puerto rico" AND total_congregations > 41
{ "input": "CREATE TABLE table_name_16 (population INTEGER, state VARCHAR, total_congregations VARCHAR)", "instruction": "What is the highest Population, when State is Puerto Rico, and when Total Congregations is greater than 41?", "output": "SELECT MAX(population) FROM table_name_16 WHERE state = \"puerto rico\" AND total_congregations > 41" }
### INSTRUCTION What is the penalty for Jonathan Toews? ### INPUT CREATE TABLE table_name_19 (penalty VARCHAR, player VARCHAR) ### OUTPUT SELECT penalty FROM table_name_19 WHERE player = "jonathan toews"
{ "input": "CREATE TABLE table_name_19 (penalty VARCHAR, player VARCHAR)", "instruction": "What is the penalty for Jonathan Toews?", "output": "SELECT penalty FROM table_name_19 WHERE player = \"jonathan toews\"" }
### INSTRUCTION Who was the outgoing manager when the incoming manager was joão pereira? ### INPUT CREATE TABLE table_17933600_2 (outgoing_manage VARCHAR, incoming_manager VARCHAR) ### OUTPUT SELECT outgoing_manage FROM table_17933600_2 WHERE incoming_manager = "João Pereira"
{ "input": "CREATE TABLE table_17933600_2 (outgoing_manage VARCHAR, incoming_manager VARCHAR)", "instruction": "Who was the outgoing manager when the incoming manager was joão pereira?", "output": "SELECT outgoing_manage FROM table_17933600_2 WHERE incoming_manager = \"João Pereira\"" }
### INSTRUCTION What is the name of the host nations if the winner was Hong Kong 207/6 (47.1 overs)? ### INPUT CREATE TABLE table_22577693_1 (host_nation_s_ VARCHAR, winner VARCHAR) ### OUTPUT SELECT host_nation_s_ FROM table_22577693_1 WHERE winner = "Hong Kong 207/6 (47.1 overs)"
{ "input": "CREATE TABLE table_22577693_1 (host_nation_s_ VARCHAR, winner VARCHAR)", "instruction": "What is the name of the host nations if the winner was Hong Kong 207/6 (47.1 overs)?", "output": "SELECT host_nation_s_ FROM table_22577693_1 WHERE winner = \"Hong Kong 207/6 (47.1 overs)\"" }
### INSTRUCTION What engines have the year 1992? ### INPUT CREATE TABLE table_name_7 (engine_s_ VARCHAR, year VARCHAR) ### OUTPUT SELECT engine_s_ FROM table_name_7 WHERE year = 1992
{ "input": "CREATE TABLE table_name_7 (engine_s_ VARCHAR, year VARCHAR)", "instruction": "What engines have the year 1992?", "output": "SELECT engine_s_ FROM table_name_7 WHERE year = 1992" }
### INSTRUCTION What is the time for when cornelio velasquez was the jockey? ### INPUT CREATE TABLE table_name_12 (time VARCHAR, jockey VARCHAR) ### OUTPUT SELECT time FROM table_name_12 WHERE jockey = "cornelio velasquez"
{ "input": "CREATE TABLE table_name_12 (time VARCHAR, jockey VARCHAR)", "instruction": "What is the time for when cornelio velasquez was the jockey?", "output": "SELECT time FROM table_name_12 WHERE jockey = \"cornelio velasquez\"" }
### INSTRUCTION What is the average of the Series #s that were directed by Matthew Penn? ### INPUT CREATE TABLE table_name_42 (series__number INTEGER, directed_by VARCHAR) ### OUTPUT SELECT AVG(series__number) FROM table_name_42 WHERE directed_by = "matthew penn"
{ "input": "CREATE TABLE table_name_42 (series__number INTEGER, directed_by VARCHAR)", "instruction": "What is the average of the Series #s that were directed by Matthew Penn?", "output": "SELECT AVG(series__number) FROM table_name_42 WHERE directed_by = \"matthew penn\"" }
### INSTRUCTION What player is 2.01 m tall? ### INPUT CREATE TABLE table_12962773_2 (player VARCHAR, height VARCHAR) ### OUTPUT SELECT player FROM table_12962773_2 WHERE height = "2.01"
{ "input": "CREATE TABLE table_12962773_2 (player VARCHAR, height VARCHAR)", "instruction": "What player is 2.01 m tall?", "output": "SELECT player FROM table_12962773_2 WHERE height = \"2.01\"" }
### INSTRUCTION How many tries for did the club with a 3 losing bonus and 45 points have? ### INPUT CREATE TABLE table_name_12 (tries_for VARCHAR, losing_bonus VARCHAR, points VARCHAR) ### OUTPUT SELECT tries_for FROM table_name_12 WHERE losing_bonus = "3" AND points = "45"
{ "input": "CREATE TABLE table_name_12 (tries_for VARCHAR, losing_bonus VARCHAR, points VARCHAR)", "instruction": "How many tries for did the club with a 3 losing bonus and 45 points have?", "output": "SELECT tries_for FROM table_name_12 WHERE losing_bonus = \"3\" AND points = \"45\"" }
### INSTRUCTION How many patients' prescriptions are made by physician John Dorian? ### INPUT CREATE TABLE patient (SSN VARCHAR); CREATE TABLE prescribes (patient VARCHAR, physician VARCHAR); CREATE TABLE physician (employeeid VARCHAR, name VARCHAR) ### OUTPUT SELECT COUNT(T1.SSN) FROM patient AS T1 JOIN prescribes AS T2 ON T1.SSN = T2.patient JOIN physician AS T3 ON T2.physician = T3.employeeid WHERE T3.name = "John Dorian"
{ "input": "CREATE TABLE patient (SSN VARCHAR); CREATE TABLE prescribes (patient VARCHAR, physician VARCHAR); CREATE TABLE physician (employeeid VARCHAR, name VARCHAR)", "instruction": "How many patients' prescriptions are made by physician John Dorian?", "output": "SELECT COUNT(T1.SSN) FROM patient AS T1 JOIN prescribes AS T2 ON T1.SSN = T2.patient JOIN physician AS T3 ON T2.physician = T3.employeeid WHERE T3.name = \"John Dorian\"" }
### INSTRUCTION What is the average Extras for Muttiah Muralitharan, with less than 353 Runs Conceded? ### INPUT CREATE TABLE table_name_38 (extras INTEGER, name VARCHAR, runs_conceded VARCHAR) ### OUTPUT SELECT AVG(extras) FROM table_name_38 WHERE name = "muttiah muralitharan" AND runs_conceded < 353
{ "input": "CREATE TABLE table_name_38 (extras INTEGER, name VARCHAR, runs_conceded VARCHAR)", "instruction": "What is the average Extras for Muttiah Muralitharan, with less than 353 Runs Conceded?", "output": "SELECT AVG(extras) FROM table_name_38 WHERE name = \"muttiah muralitharan\" AND runs_conceded < 353" }
### INSTRUCTION What is the total prominence number in m of ethiopia, which has a col in m of 1728 and an elevation less than 3,358? ### INPUT CREATE TABLE table_name_27 (prominence__m_ VARCHAR, elevation__m_ VARCHAR, country VARCHAR, col__m_ VARCHAR) ### OUTPUT SELECT COUNT(prominence__m_) FROM table_name_27 WHERE country = "ethiopia" AND col__m_ = 1728 AND elevation__m_ < 3 OFFSET 358
{ "input": "CREATE TABLE table_name_27 (prominence__m_ VARCHAR, elevation__m_ VARCHAR, country VARCHAR, col__m_ VARCHAR)", "instruction": "What is the total prominence number in m of ethiopia, which has a col in m of 1728 and an elevation less than 3,358?", "output": "SELECT COUNT(prominence__m_) FROM table_name_27 WHERE country = \"ethiopia\" AND col__m_ = 1728 AND elevation__m_ < 3 OFFSET 358" }
### INSTRUCTION how many representatives from hanover twp were first elected in 2008 ### INPUT CREATE TABLE table_29486189_4 (representative VARCHAR, first_elected VARCHAR, residence VARCHAR) ### OUTPUT SELECT COUNT(representative) FROM table_29486189_4 WHERE first_elected = "2008" AND residence = "Hanover Twp"
{ "input": "CREATE TABLE table_29486189_4 (representative VARCHAR, first_elected VARCHAR, residence VARCHAR)", "instruction": "how many representatives from hanover twp were first elected in 2008", "output": "SELECT COUNT(representative) FROM table_29486189_4 WHERE first_elected = \"2008\" AND residence = \"Hanover Twp\"" }
### INSTRUCTION Who is the player when the economy is 6.14? ### INPUT CREATE TABLE table_28846752_9 (player VARCHAR, economy VARCHAR) ### OUTPUT SELECT player FROM table_28846752_9 WHERE economy = "6.14"
{ "input": "CREATE TABLE table_28846752_9 (player VARCHAR, economy VARCHAR)", "instruction": "Who is the player when the economy is 6.14?", "output": "SELECT player FROM table_28846752_9 WHERE economy = \"6.14\"" }
### INSTRUCTION What is the fastest lap of the Oschersleben circuit with Audi Sport Team ABT as the winning team? ### INPUT CREATE TABLE table_name_76 (fastest_lap VARCHAR, winning_team VARCHAR, circuit VARCHAR) ### OUTPUT SELECT fastest_lap FROM table_name_76 WHERE winning_team = "audi sport team abt" AND circuit = "oschersleben"
{ "input": "CREATE TABLE table_name_76 (fastest_lap VARCHAR, winning_team VARCHAR, circuit VARCHAR)", "instruction": "What is the fastest lap of the Oschersleben circuit with Audi Sport Team ABT as the winning team?", "output": "SELECT fastest_lap FROM table_name_76 WHERE winning_team = \"audi sport team abt\" AND circuit = \"oschersleben\"" }
### INSTRUCTION Show the themes of parties and the names of the party hosts. ### INPUT CREATE TABLE HOST (Name VARCHAR, Host_ID VARCHAR); CREATE TABLE party_host (Host_ID VARCHAR, Party_ID VARCHAR); CREATE TABLE party (Party_Theme VARCHAR, Party_ID VARCHAR) ### OUTPUT SELECT T3.Party_Theme, T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID
{ "input": "CREATE TABLE HOST (Name VARCHAR, Host_ID VARCHAR); CREATE TABLE party_host (Host_ID VARCHAR, Party_ID VARCHAR); CREATE TABLE party (Party_Theme VARCHAR, Party_ID VARCHAR)", "instruction": "Show the themes of parties and the names of the party hosts.", "output": "SELECT T3.Party_Theme, T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID" }
### INSTRUCTION Name the Report of tourist trophy? ### INPUT CREATE TABLE table_name_77 (report VARCHAR, name VARCHAR) ### OUTPUT SELECT report FROM table_name_77 WHERE name = "tourist trophy"
{ "input": "CREATE TABLE table_name_77 (report VARCHAR, name VARCHAR)", "instruction": "Name the Report of tourist trophy?", "output": "SELECT report FROM table_name_77 WHERE name = \"tourist trophy\"" }
### INSTRUCTION What is the listed Location with a # found of 4? ### INPUT CREATE TABLE table_name_47 (location VARCHAR, _number_found VARCHAR) ### OUTPUT SELECT location FROM table_name_47 WHERE _number_found = "4"
{ "input": "CREATE TABLE table_name_47 (location VARCHAR, _number_found VARCHAR)", "instruction": "What is the listed Location with a # found of 4?", "output": "SELECT location FROM table_name_47 WHERE _number_found = \"4\"" }
### INSTRUCTION Which City of license has a Call sign of w220ba? ### INPUT CREATE TABLE table_name_64 (city_of_license VARCHAR, call_sign VARCHAR) ### OUTPUT SELECT city_of_license FROM table_name_64 WHERE call_sign = "w220ba"
{ "input": "CREATE TABLE table_name_64 (city_of_license VARCHAR, call_sign VARCHAR)", "instruction": "Which City of license has a Call sign of w220ba?", "output": "SELECT city_of_license FROM table_name_64 WHERE call_sign = \"w220ba\"" }
### INSTRUCTION What is surfside beach, SC frequency? ### INPUT CREATE TABLE table_name_79 (frequency_mhz VARCHAR, city_of_license VARCHAR) ### OUTPUT SELECT frequency_mhz FROM table_name_79 WHERE city_of_license = "surfside beach, sc"
{ "input": "CREATE TABLE table_name_79 (frequency_mhz VARCHAR, city_of_license VARCHAR)", "instruction": "What is surfside beach, SC frequency?", "output": "SELECT frequency_mhz FROM table_name_79 WHERE city_of_license = \"surfside beach, sc\"" }
### INSTRUCTION What did the away team score at VFL Park? ### INPUT CREATE TABLE table_name_76 (away_team VARCHAR, venue VARCHAR) ### OUTPUT SELECT away_team AS score FROM table_name_76 WHERE venue = "vfl park"
{ "input": "CREATE TABLE table_name_76 (away_team VARCHAR, venue VARCHAR)", "instruction": "What did the away team score at VFL Park?", "output": "SELECT away_team AS score FROM table_name_76 WHERE venue = \"vfl park\"" }