text
stringlengths
400
694
__index_level_0__
int64
6
25k
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the make of the car that drove 54 laps? ### Input: CREATE TABLE table_32043 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real ) ### Response: SELECT "Constructor" FROM table_32043 WHERE "Laps" = '54'
924
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the altitude of the yield of 1.4 megatons? ### Input: CREATE TABLE table_19622 ( "Explosion" text, "Location" text, "Date" text, "Yield (approximate)" text, "Altitude (km)" text, "Nation of Origin" text ) ### Response: SELECT "Altitude (km)" FROM table_19622 WHERE "Yield (approximate)" = '1.4 megatons'
7,564
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: The score in the final is 2 6, 6 2, 6 0, on what surface? ### Input: CREATE TABLE table_26202847_6 ( surface VARCHAR, score_in_the_final VARCHAR ) ### Response: SELECT surface FROM table_26202847_6 WHERE score_in_the_final = "2–6, 6–2, 6–0"
20,626
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many points were scored when the record was 6-8-6? ### Input: CREATE TABLE table_21648 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "Location" text, "Attendance" real, "Record" text, "Points" real ) ### Response: SELECT COUNT("Points") FROM table_21648 WHERE "Record" = '6-8-6'
15,565
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: When the Apps were smaller than 22, what's the lowest amount of goals scored in a game? ### Input: CREATE TABLE table_53005 ( "Season" text, "Club" text, "Apps" real, "Goals" real, "Division" real ) ### Response: SELECT MIN("Goals") FROM table_53005 WHERE "Apps" < '22'
14,862
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what is the only opponent in 1984 ? ### Input: CREATE TABLE table_204_790 ( id number, "year" number, "nw rank" number, "venue" text, "opp rank" number, "opponent" text, "score" text, "w/l" text, "round" text, "notes" text ) ### Response: SELECT "opponent" FROM table_204_790 WHERE "year" = 1984
24,116
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many people vacated to successor Dave E. Satterfield, Jr. (d)? ### Input: CREATE TABLE table_24502 ( "District" text, "Vacator" text, "Reason for change" text, "Successor" text, "Date successor seated" text ) ### Response: SELECT COUNT("Vacator") FROM table_24502 WHERE "Successor" = 'Dave E. Satterfield, Jr. (D)'
9,286
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the genitive for the ergative shen? ### Input: CREATE TABLE table_46629 ( "Nominative" text, "Ergative" text, "Dative" text, "Genitive" text, "Instrumental" text, "Adverbial" text ) ### Response: SELECT "Genitive" FROM table_46629 WHERE "Ergative" = 'shen'
4,526
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the total Crowd with a Home team of collingwood? ### Input: CREATE TABLE table_58076 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) ### Response: SELECT SUM("Crowd") FROM table_58076 WHERE "Home team" = 'collingwood'
9,170
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What country is the film directed by Michael Haneke from? ### Input: CREATE TABLE table_68198 ( "Year" real, "English title" text, "Original title" text, "Country" text, "Director'" text ) ### Response: SELECT "Country" FROM table_68198 WHERE "Director'" = 'michael haneke'
22,595
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: During what years did the Guard from Oklahoma with a height of 6-6 play for the Rockets? ### Input: CREATE TABLE table_name_41 ( years_for_rockets VARCHAR, school_club_team_country VARCHAR, height_in_ft VARCHAR, position VARCHAR ) ### Response: SELECT years_for_rockets FROM table_name_41 WHERE height_in_ft = "6-6" AND position = "guard" AND school_club_team_country = "oklahoma"
5,169
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What's the singer part number of the buttonholer whose storage case is a green plastic box? ### Input: CREATE TABLE table_74300 ( "For shank type" text, "Singer part number" text, "Uses templates?" text, "Description" text, "Storage case" text ) ### Response: SELECT "Singer part number" FROM table_74300 WHERE "Storage case" = 'green plastic box'
17,108
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What city in Svalbard has a longitude of 15 39 e? ### Input: CREATE TABLE table_33942 ( "Latitude" text, "Longitude" text, "City" text, "State" text, "Country" text ) ### Response: SELECT "City" FROM table_33942 WHERE "State" = 'svalbard' AND "Longitude" = '15°39′e'
7,679
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What year was the 4th Place Team of the Wyoming Angus, Johnstown, Co? ### Input: CREATE TABLE table_64334 ( "Year" real, "1st Place Team" text, "2nd Place Team" text, "3rd Place Team" text, "4th Place Team" text, "Host Location" text ) ### Response: SELECT COUNT("Year") FROM table_64334 WHERE "4th Place Team" = 'wyoming angus, johnstown, co'
1,627
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Find the number of routes and airport name for each source airport, order the results by decreasing number of routes. ### Input: CREATE TABLE airports ( name VARCHAR, apid VARCHAR ) CREATE TABLE routes ( src_apid VARCHAR ) ### Response: SELECT COUNT(*), T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T1.name ORDER BY COUNT(*) DESC
4,130
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: which was the only television show gauri starred in , in which she played herself ? ### Input: CREATE TABLE table_203_485 ( id number, "year" text, "show" text, "role" text, "notes" text ) ### Response: SELECT "show" FROM table_203_485 WHERE "role" = 'herself'
1,954
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the S Registered User, when Userpics Free is 6 [free] or 15 [plus]? ### Input: CREATE TABLE table_name_98 ( s_registered_user VARCHAR, userpics_free VARCHAR ) ### Response: SELECT s_registered_user FROM table_name_98 WHERE userpics_free = "6 [free] or 15 [plus]"
7,703
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What tournament was Laura Davies the runner-up? ### Input: CREATE TABLE table_9533 ( "Date" text, "Tournament" text, "Winning score" text, "Margin of victory" text, "Runner(s)-up" text ) ### Response: SELECT "Tournament" FROM table_9533 WHERE "Runner(s)-up" = 'laura davies'
16,265
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many titles are there for the original air date April 3, 2012? ### Input: CREATE TABLE table_26150013_1 ( title VARCHAR, original_air_date VARCHAR ) ### Response: SELECT COUNT(title) FROM table_26150013_1 WHERE original_air_date = "April 3, 2012"
643
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the attendance for the game that has a tie number of 13? ### Input: CREATE TABLE table_54966 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Attendance" real ) ### Response: SELECT SUM("Attendance") FROM table_54966 WHERE "Tie no" = '13'
4,554
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: During which years was the Model 318td (diesel) with the Engine code of m47d20 manufactured? ### Input: CREATE TABLE table_56298 ( "Model" text, "Years" text, "Engine code" text, "Power" text, "Torque" text ) ### Response: SELECT "Years" FROM table_56298 WHERE "Engine code" = 'm47d20' AND "Model" = '318td (diesel)'
21,330
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many episodes directed by david carson? ### Input: CREATE TABLE table_27836 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text ) ### Response: SELECT COUNT("No. in season") FROM table_27836 WHERE "Directed by" = 'David Carson'
5,815
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who has a Rank larger than 3 with a speed of 119.838mph? ### Input: CREATE TABLE table_5891 ( "Rank" real, "Rider" text, "Team" text, "Speed" text, "Time" text ) ### Response: SELECT "Rider" FROM table_5891 WHERE "Rank" > '3' AND "Speed" = '119.838mph'
24,503
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many teams had a point margin of 48? ### Input: CREATE TABLE table_3967 ( "Proceed to Quarter-final" text, "Match points" text, "Aggregate score" text, "Points margin" real, "Eliminated from competition" text ) ### Response: SELECT COUNT("Eliminated from competition") FROM table_3967 WHERE "Points margin" = '48'
14,032
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the regions for usf45 ### Input: CREATE TABLE table_24450 ( "Chassis code" text, "Model no." text, "Production years" text, "Drivetrain" text, "Transmission" text, "Engine type" text, "Engine code" text, "Region(s)" text ) ### Response: SELECT "Region(s)" FROM table_24450 WHERE "Chassis code" = 'USF45'
11,178
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who was the opponents in the final that was played on April 16, 2006 and the outcome was runner-up? ### Input: CREATE TABLE table_name_9 ( opponents_in_final VARCHAR, outcome VARCHAR, date VARCHAR ) ### Response: SELECT opponents_in_final FROM table_name_9 WHERE outcome = "runner-up" AND date = "april 16, 2006"
10,034
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the aggregate score that had Union Douala as Team 1? ### Input: CREATE TABLE table_70498 ( "Team 1" text, "Agg." text, "Team 2" text, "1st leg" text, "2nd leg" text ) ### Response: SELECT "Agg." FROM table_70498 WHERE "Team 1" = 'union douala'
15,646
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: the team to finish first after denso sc ### Input: CREATE TABLE table_203_561 ( id number, "pos" number, "team" text, "total" number, "high" number, "low" number, "average" number, "change" text ) ### Response: SELECT "team" FROM table_203_561 WHERE "pos" = (SELECT "pos" FROM table_203_561 WHERE "team" = 'denso sc') + 1
8,691
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the score for the game with an attendance greater than 33,658 and a record of 73-66? ### Input: CREATE TABLE table_70486 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text ) ### Response: SELECT "Score" FROM table_70486 WHERE "Attendance" > '33,658' AND "Record" = '73-66'
5,392
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the highest lane for Brazil, ranked less than 8? ### Input: CREATE TABLE table_65015 ( "Rank" real, "Lane" real, "Athlete" text, "Country" text, "Time" text ) ### Response: SELECT MAX("Lane") FROM table_65015 WHERE "Country" = 'brazil' AND "Rank" < '8'
23,139
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many had a length of 455? ### Input: CREATE TABLE table_20937 ( "Number" real, "Name" text, "Kilometer" real, "Pavement" text, "Length (m)" real, "Average climb (%)" real ) ### Response: SELECT COUNT("Name") FROM table_20937 WHERE "Length (m)" = '455'
6,192
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which department has more than 1 head at a time? List the id, name and the number of heads. ### Input: CREATE TABLE management ( department_id VARCHAR ) CREATE TABLE department ( department_id VARCHAR, name VARCHAR ) ### Response: SELECT T1.department_id, T1.name, COUNT(*) FROM management AS T2 JOIN department AS T1 ON T1.department_id = T2.department_id GROUP BY T1.department_id HAVING COUNT(*) > 1
12,009
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What Genre has Hindi as the Language and Star Gold as the Network? ### Input: CREATE TABLE table_4727 ( "Network" text, "Origin of Programming" text, "Language" text, "Genre" text, "Service" text ) ### Response: SELECT "Genre" FROM table_4727 WHERE "Language" = 'hindi' AND "Network" = 'star gold'
3,109
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which country has the banglavision Network? ### Input: CREATE TABLE table_33075 ( "Network" text, "Origin of Programming" text, "Language" text, "Genre" text, "Service" text ) ### Response: SELECT "Origin of Programming" FROM table_33075 WHERE "Network" = 'banglavision'
4,442
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: which team scored the most points ? ### Input: CREATE TABLE table_203_67 ( id number, "place" number, "team" text, "played" number, "won" number, "draw" number, "lost" number, "goals\nscored" number, "goals\nconceded" number, "+/-" number, "points" number ) ### Response: SELECT "team" FROM table_203_67 ORDER BY "points" DESC LIMIT 1
4,393
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What date was the award of 6,600 was given? ### Input: CREATE TABLE table_70907 ( "Director(s)" text, "Writer(s)" text, "Recipient" text, "Date" text, "Award" text ) ### Response: SELECT "Date" FROM table_70907 WHERE "Award" = '£6,600'
8,231
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the highest Loss, when Long is greater than 0, when Gain is greater than 484, and when Avg/g is greater than 126.4? ### Input: CREATE TABLE table_name_75 ( loss INTEGER, avg_g VARCHAR, long VARCHAR, gain VARCHAR ) ### Response: SELECT MAX(loss) FROM table_name_75 WHERE long > 0 AND gain > 484 AND avg_g > 126.4
20,067
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the box core for the Melbourne Tigers? ### Input: CREATE TABLE table_49868 ( "Date" text, "Home team" text, "Score" text, "Away team" text, "Venue" text, "Box Score" text, "Report" text ) ### Response: SELECT "Box Score" FROM table_49868 WHERE "Home team" = 'melbourne tigers'
10,501
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How tall is the basket ball player lior eliyahu in meters? ### Input: CREATE TABLE table_26235 ( "No" real, "Player" text, "Height (m)" text, "Height (f)" text, "Position" text, "Year born" real, "Current Club" text ) ### Response: SELECT "Height (m)" FROM table_26235 WHERE "Player" = 'Lior Eliyahu'
12,238
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who won the season when Pete Thomas was the At-Home winner? ### Input: CREATE TABLE table_11869 ( "Name" text, "Premiere" text, "Finale" text, "Original teams" text, "The Biggest Loser" text, "At-Home Winner" text ) ### Response: SELECT "The Biggest Loser" FROM table_11869 WHERE "At-Home Winner" = 'pete thomas'
15,804
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the total number of round for wide receiver for kent state ### Input: CREATE TABLE table_74833 ( "Round" real, "Pick #" real, "Overall" real, "Name" text, "Position" text, "College" text ) ### Response: SELECT COUNT("Round") FROM table_74833 WHERE "Position" = 'wide receiver' AND "College" = 'kent state'
7,831
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the highest laps with a 30 finish? ### Input: CREATE TABLE table_71112 ( "Year" text, "Start" text, "Qual" text, "Rank" text, "Finish" text, "Laps" real ) ### Response: SELECT MAX("Laps") FROM table_71112 WHERE "Finish" = '30'
19,696
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What's the bus width (in bit) of the model whose core is 650 MHz? ### Input: CREATE TABLE table_19161046_1 ( bus_width___bit__ VARCHAR, core___mhz__ VARCHAR ) ### Response: SELECT COUNT(bus_width___bit__) FROM table_19161046_1 WHERE core___mhz__ = 650
2,208
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: how many players transferred after 2010 ? ### Input: CREATE TABLE table_203_440 ( id number, "rank" number, "player" text, "from" text, "to" text, "transfer fee\n(\u20ac million)" number, "year" number ) ### Response: SELECT COUNT("player") FROM table_203_440 WHERE "year" > 2010
15,120
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many different values of clubs involved were there when the league entering at this round was allsvenskan? ### Input: CREATE TABLE table_29566686_1 ( clubs_involved VARCHAR, leagues_entering_at_this_round VARCHAR ) ### Response: SELECT COUNT(clubs_involved) FROM table_29566686_1 WHERE leagues_entering_at_this_round = "Allsvenskan"
2,432
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the Role/Episode after 2006 with Ellen Burstyn as a recipient and nominee? ### Input: CREATE TABLE table_63971 ( "Year" real, "Category" text, "Recipients and nominees" text, "Role/Episode" text, "Result" text ) ### Response: SELECT "Role/Episode" FROM table_63971 WHERE "Year" > '2006' AND "Recipients and nominees" = 'ellen burstyn'
5,443
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the total number of date for l 63-77 ### Input: CREATE TABLE table_73149 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location" text, "Record" text ) ### Response: SELECT COUNT("Date") FROM table_73149 WHERE "Score" = 'L 63-77'
11,930
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What Hometown/School had a pick above 30, position of OF and team of Cleveland Indians? ### Input: CREATE TABLE table_name_79 ( hometown_school VARCHAR, team VARCHAR, pick VARCHAR, position VARCHAR ) ### Response: SELECT hometown_school FROM table_name_79 WHERE pick > 30 AND position = "of" AND team = "cleveland indians"
20,419
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the Location Attendance when the Date was February 27? ### Input: CREATE TABLE table_35312 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text ) ### Response: SELECT "Location Attendance" FROM table_35312 WHERE "Date" = 'february 27'
5,252
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many floors did the tallest building in Aston have? ### Input: CREATE TABLE table_7881 ( "Name" text, "Location" text, "Years as tallest" text, "Height metres / ft" text, "Floors" text ) ### Response: SELECT "Floors" FROM table_7881 WHERE "Location" = 'aston'
4,261
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Count the number of candidates. ### Input: CREATE TABLE candidate ( candidate_id number, people_id number, poll_source text, date text, support_rate number, consider_rate number, oppose_rate number, unsure_rate number ) CREATE TABLE people ( people_id number, sex text, name text, date_of_birth text, height number, weight number ) ### Response: SELECT COUNT(*) FROM candidate
3,599
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which season was there a game with the score of 1:3 played at the venue of national stadium, maldives? ### Input: CREATE TABLE table_name_40 ( season INTEGER, score VARCHAR, venue VARCHAR ) ### Response: SELECT SUM(season) FROM table_name_40 WHERE score = "1:3" AND venue = "national stadium, maldives"
6,079
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: at the 2006 gran premio telmex , who scored the highest number of points ? ### Input: CREATE TABLE table_204_496 ( id number, "pos" number, "no" number, "driver" text, "team" text, "laps" number, "time/retired" text, "grid" number, "points" number ) ### Response: SELECT "driver" FROM table_204_496 ORDER BY "points" DESC LIMIT 1
17,604
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What finish qualified at 141.071? ### Input: CREATE TABLE table_80181 ( "Year" text, "Start" text, "Qual" text, "Rank" text, "Finish" text, "Laps" text ) ### Response: SELECT "Finish" FROM table_80181 WHERE "Qual" = '141.071'
3,565
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who has ties of 5? ### Input: CREATE TABLE table_52812 ( "Name" text, "TKM career" text, "Ties" real, "Dou W/L" text, "Sin W/L" text ) ### Response: SELECT "Name" FROM table_52812 WHERE "Ties" = '5'
12,597
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many different Leagues are associated with Billy Meredith Category:Articles with hCards? ### Input: CREATE TABLE table_19733 ( "Name" text, "Years" text, "League" real, "FA Cup" real, "League Cup" real, "Europe" real, "Other a" real, "Total" text ) ### Response: SELECT COUNT("League") FROM table_19733 WHERE "Name" = 'Billy Meredith Category:Articles with hCards'
4,210
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: At a Saginaw fare of $470.47, what is the fare to Lansing? ### Input: CREATE TABLE table_1637981_7 ( lansing__lan_ VARCHAR, saginaw__mbs_ VARCHAR ) ### Response: SELECT lansing__lan_ FROM table_1637981_7 WHERE saginaw__mbs_ = "$470.47"
10,441
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is friday day six when monday day two is isnin? ### Input: CREATE TABLE table_1277350_7 ( friday_day_six VARCHAR, monday_day_two VARCHAR ) ### Response: SELECT friday_day_six FROM table_1277350_7 WHERE monday_day_two = "Isnin"
1,391
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the round when the opponent is Andre Roberts? ### Input: CREATE TABLE table_8728 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" text ) ### Response: SELECT "Round" FROM table_8728 WHERE "Opponent" = 'andre roberts'
5,308
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which Prohibition ticket has a Socialist Labor ticket of joseph smith? ### Input: CREATE TABLE table_40138 ( "Office" text, "Republican ticket" text, "Democratic ticket" text, "Socialist Labor ticket" text, "Prohibition ticket" text, "Independent Citizens' ticket" text ) ### Response: SELECT "Prohibition ticket" FROM table_40138 WHERE "Socialist Labor ticket" = 'joseph smith'
5,090
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which opponent has a Score of 15.4.94? ### Input: CREATE TABLE table_67051 ( "Quarter" text, "Score" text, "Club" text, "Opponent" text, "Year" text, "Round" text, "Venue" text ) ### Response: SELECT "Opponent" FROM table_67051 WHERE "Score" = '15.4.94'
24,312
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which Event has a Competition of chicago marathon, and a Year larger than 2004? ### Input: CREATE TABLE table_8717 ( "Year" real, "Competition" text, "Venue" text, "Position" text, "Event" text ) ### Response: SELECT "Event" FROM table_8717 WHERE "Competition" = 'chicago marathon' AND "Year" > '2004'
4,391
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the area in km2 for the district whose original name was Kecamatan Bogor Timur? ### Input: CREATE TABLE table_1104312_5 ( area_in_km² VARCHAR, original_name VARCHAR ) ### Response: SELECT area_in_km² FROM table_1104312_5 WHERE original_name = "Kecamatan Bogor Timur"
20,955
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what is the year when then organisation is star awards, the result is won and the nominated work title is n/a? ### Input: CREATE TABLE table_name_98 ( year VARCHAR, nominated_work_title VARCHAR, organisation VARCHAR, result VARCHAR ) ### Response: SELECT year FROM table_name_98 WHERE organisation = "star awards" AND result = "won" AND nominated_work_title = "n/a"
13,057
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: On what date does Watford have a Tie no of 2? ### Input: CREATE TABLE table_59166 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Date" text ) ### Response: SELECT "Date" FROM table_59166 WHERE "Home team" = 'watford' AND "Tie no" = '2'
20,524
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who was the loser of the heavyweight division fight that lasted a time of 2:24? ### Input: CREATE TABLE table_name_10 ( loser VARCHAR, weight_division VARCHAR, time VARCHAR ) ### Response: SELECT loser FROM table_name_10 WHERE weight_division = "heavyweight" AND time = "2:24"
15,594
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which Year is the highest that has a Team of walker racing, and Wins larger than 1? ### Input: CREATE TABLE table_33934 ( "Year" real, "Team" text, "Wins" real, "Points" real, "Championship Finish" text ) ### Response: SELECT MAX("Year") FROM table_33934 WHERE "Team" = 'walker racing' AND "Wins" > '1'
9,042
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what is the score when the competition is 1995 southeast asian games? ### Input: CREATE TABLE table_63980 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text ) ### Response: SELECT "Score" FROM table_63980 WHERE "Competition" = '1995 southeast asian games'
12,083
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the report with cuban race ### Input: CREATE TABLE table_53312 ( "Name" text, "Circuit" text, "Date" text, "Winning driver" text, "Winning constructor" text, "Report" text ) ### Response: SELECT "Report" FROM table_53312 WHERE "Name" = 'cuban race'
11,535
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the ladder position when the score was 15.9 (99) 14.6 (90)? ### Input: CREATE TABLE table_24919137_2 ( ladder_position VARCHAR, score VARCHAR ) ### Response: SELECT ladder_position FROM table_24919137_2 WHERE score = "15.9 (99)–14.6 (90)"
8,702
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who was the runner-up in 1887 competition for 'Articles with HCards'? ### Input: CREATE TABLE table_4472 ( "Year" real, "Leader" text, "Team" text, "League" text, "Runner-up" text ) ### Response: SELECT "Runner-up" FROM table_4472 WHERE "Year" = '1887'
12,891
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: In what week was the game on August 24, 1956 played in front of 40,175 fans? ### Input: CREATE TABLE table_name_10 ( week INTEGER, date VARCHAR, attendance VARCHAR ) ### Response: SELECT MAX(week) FROM table_name_10 WHERE date = "august 24, 1956" AND attendance > 40 OFFSET 175
9,866
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: List the 1st air date for the episode titled 'baby talk'. ### Input: CREATE TABLE table_3194 ( "Episode #" real, "Production Count" real, "Original Airdate" text, "Prod. Code" text, "Title" text, "Viewing Figures millions" text ) ### Response: SELECT "Original Airdate" FROM table_3194 WHERE "Title" = 'Baby Talk'
2,135
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was deputies with the lowest number of unknown received votes, in an election year after 1986? ### Input: CREATE TABLE table_6218 ( "Election date" real, "Party leader" text, "Number of votes received" text, "Percentage of votes" text, "Number of deputies" real ) ### Response: SELECT MIN("Number of deputies") FROM table_6218 WHERE "Number of votes received" = 'unknown' AND "Election date" > '1986'
4,168
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who is number 4 when Harper is number 10 and Abigail is number 5? ### Input: CREATE TABLE table_name_24 ( no_4 VARCHAR, no_10 VARCHAR, no_5 VARCHAR ) ### Response: SELECT no_4 FROM table_name_24 WHERE no_10 = "harper" AND no_5 = "abigail"
7,121
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the total attendance of the New York Giants? ### Input: CREATE TABLE table_74338 ( "Team" text, "Stadium" text, "Home Games" real, "Average Attendance" real, "Total Attendance" real, "Capacity Percentage" text ) ### Response: SELECT MIN("Total Attendance") FROM table_74338 WHERE "Team" = 'New York Giants'
11,004
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What type of surface did they play on 21 July 1997 ### Input: CREATE TABLE table_62116 ( "Outcome" text, "Date" text, "Championship" text, "Surface" text, "Opponent in the final" text, "Score in the final" text ) ### Response: SELECT "Surface" FROM table_62116 WHERE "Date" = '21 july 1997'
1,280
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the number of contestants who are 5'7' and exactly 26 years of age? ### Input: CREATE TABLE table_27692 ( "Country" text, "Contestant" text, "Age" real, "Height (cm)" real, "Height (ft)" text, "Hometown" text ) ### Response: SELECT COUNT("Contestant") FROM table_27692 WHERE "Height (ft)" = '5''7' AND "Age" = '26'
236
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is Detective Donald William Schneider's Cause of death? ### Input: CREATE TABLE table_9578 ( "Name" text, "Rank" text, "Tenure" text, "Date of death" text, "Cause of death" text ) ### Response: SELECT "Cause of death" FROM table_9578 WHERE "Rank" = 'detective' AND "Name" = 'donald william schneider'
14,113
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Round 1 is in what circuit? ### Input: CREATE TABLE table_28545 ( "Round" text, "Circuit" text, "Date" text, "Pole Position" text, "Fastest Lap" text, "Winning Driver" text, "Winning Team" text ) ### Response: SELECT "Circuit" FROM table_28545 WHERE "Round" = '1'
7,602
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: According to the August 2007 poll by the Corporate Research Associates that reported 32% Prog. Cons., what percentage aligned with the Liberal party? ### Input: CREATE TABLE table_name_36 ( liberal VARCHAR, dates VARCHAR, polling_firm VARCHAR, prog_cons VARCHAR ) ### Response: SELECT liberal FROM table_name_36 WHERE polling_firm = "corporate research associates" AND prog_cons = "32%" AND dates = "august 2007"
5,375
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what title came directly after this morning ? ### Input: CREATE TABLE table_204_208 ( id number, "year" text, "title" text, "role" text, "episodes" text ) ### Response: SELECT "title" FROM table_204_208 WHERE id = (SELECT id FROM table_204_208 WHERE "title" = 'this morning') + 1
3,812
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: When was the premiere on the TVB Jade Channel? ### Input: CREATE TABLE table_7051 ( "Country" text, "Host" text, "Channel" text, "Premiere" text, "Jackpot" text ) ### Response: SELECT "Premiere" FROM table_7051 WHERE "Channel" = 'tvb jade'
7,742
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is Apparatus, when Rank-Final is greater than 6, and when Competition Description is 'U.S. Championships'? ### Input: CREATE TABLE table_12738 ( "Year" real, "Competition Description" text, "Location" text, "Apparatus" text, "Rank-Final" real ) ### Response: SELECT "Apparatus" FROM table_12738 WHERE "Rank-Final" > '6' AND "Competition Description" = 'u.s. championships'
19,127
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what manufacturer is listed for max biaggi and marcellino lucchi ? ### Input: CREATE TABLE table_203_35 ( id number, "pos" text, "rider" text, "manufacturer" text, "time/retired" text, "points" number ) ### Response: SELECT "manufacturer" FROM table_203_35 WHERE "rider" = 'max biaggi'
14,616
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which Snatch has a Clean & Jerk of 180, and a Bodyweight smaller than 69.83? ### Input: CREATE TABLE table_name_25 ( snatch INTEGER, bodyweight VARCHAR, clean_ VARCHAR, _jerk VARCHAR ) ### Response: SELECT MIN(snatch) FROM table_name_25 WHERE clean_ & _jerk = 180 AND bodyweight < 69.83
19,456
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the road record for Vanderbilt? ### Input: CREATE TABLE table_25697 ( "Team" text, "SEC Wins" real, "SEC Losses" real, "Percentage" text, "Home Record" text, "Road Record" text, "Overall Record" text ) ### Response: SELECT COUNT("Road Record") FROM table_25697 WHERE "Team" = 'Vanderbilt'
12,847
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which college/junior/club team did the player play on that played for the Buffalo Sabres in NHL? ### Input: CREATE TABLE table_19545 ( "Pick #" real, "Player" text, "Position" text, "Nationality" text, "NHL team" text, "College/junior/club team" text ) ### Response: SELECT "College/junior/club team" FROM table_19545 WHERE "NHL team" = 'Buffalo Sabres'
1,478
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the Visitor with a Home with chicago, and a Score of 3 2? ### Input: CREATE TABLE table_57750 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Series" text ) ### Response: SELECT "Visitor" FROM table_57750 WHERE "Home" = 'chicago' AND "Score" = '3 – 2'
6,572
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the score on may 21? ### Input: CREATE TABLE table_8003 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Series" text ) ### Response: SELECT "Score" FROM table_8003 WHERE "Date" = 'may 21'
20,112
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the average number of seasons for Prva HNL of 17 ### Input: CREATE TABLE table_name_65 ( number_of_seasons_in_top_division INTEGER, number_of_seasons_in_prva_hnl VARCHAR ) ### Response: SELECT AVG(number_of_seasons_in_top_division) FROM table_name_65 WHERE number_of_seasons_in_prva_hnl = 17
9,284
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Display a bar chart for how old is the average person for each job? ### Input: CREATE TABLE Person ( name varchar(20), age INTEGER, city TEXT, gender TEXT, job TEXT ) CREATE TABLE PersonFriend ( name varchar(20), friend varchar(20), year INTEGER ) ### Response: SELECT job, AVG(age) FROM Person GROUP BY job
2,281
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the highest 1995 with a 1990 less than 36, a 1987 less than 1987, and a 2007 value greater than 107? ### Input: CREATE TABLE table_name_4 ( Id VARCHAR ) ### Response: SELECT MAX(1995) FROM table_name_4 WHERE 1990 > 36 AND 1987 < 1987 AND 2007 > 107
3,233
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which Attendance is the highest one that has a Record of 37-38? ### Input: CREATE TABLE table_38339 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text ) ### Response: SELECT MAX("Attendance") FROM table_38339 WHERE "Record" = '37-38'
11,382
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the average weight of the player with a height of 180 cm and plays the d position? ### Input: CREATE TABLE table_name_53 ( weight__kg_ INTEGER, height__cm_ VARCHAR, position VARCHAR ) ### Response: SELECT AVG(weight__kg_) FROM table_name_53 WHERE height__cm_ = 180 AND position = "d"
700
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who directed the episode titled 'Playing the Cancer Car'? ### Input: CREATE TABLE table_30681 ( "No. in series" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "U.S. viewers (million)" text ) ### Response: SELECT "Directed by" FROM table_30681 WHERE "Title" = 'Playing the Cancer Car'
11,270
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What's the total number of floors built after 2006, and have a rank of 12? ### Input: CREATE TABLE table_name_73 ( floors INTEGER, built VARCHAR, rank VARCHAR ) ### Response: SELECT SUM(floors) FROM table_name_73 WHERE built > 2006 AND rank = 12
15,563
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which Pre-Season has a A-League of 0 1, and a Finals larger than 0? ### Input: CREATE TABLE table_8657 ( "Name" text, "Pre-Season" real, "A-League" text, "Finals" real, "Total" text ) ### Response: SELECT MIN("Pre-Season") FROM table_8657 WHERE "A-League" = '0 1' AND "Finals" > '0'
295
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Where there is a tenth position of gozo, what is the first position? ### Input: CREATE TABLE table_33626 ( "Year" text, "1st Position" text, "2nd Position" text, "9th Position" text, "10th Position" text ) ### Response: SELECT "1st Position" FROM table_33626 WHERE "10th Position" = 'gozo'
13,375
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What Round has the Method of Submission (Single Wing Choke)? ### Input: CREATE TABLE table_38567 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Time" text, "Location" text ) ### Response: SELECT "Round" FROM table_38567 WHERE "Method" = 'submission (single wing choke)'
14,983