instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_31366 (
"Position" text,
"Singer" text,
"2nd Evening" text,
"3rd Evening" text,
"4th Evening" text,
"5th Evening" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who got 3rd place on the 4th evening?
### Response:
|
SELECT "Singer" FROM table_31366 WHERE "4th Evening" = '3rd place'
|
### Instruction:
CREATE TABLE table_name_28 (
weight INTEGER,
height VARCHAR,
date_of_birth VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Weight when the height is 196, and the date of birth is 24.07.1977?
### Response:
|
SELECT MIN(weight) FROM table_name_28 WHERE height = 196 AND date_of_birth = "24.07.1977"
|
### Instruction:
CREATE TABLE table_10225 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What did Richmond score as the home team?
### Response:
|
SELECT "Home team score" FROM table_10225 WHERE "Home team" = 'richmond'
|
### Instruction:
CREATE TABLE table_34622 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score of the game when the Indians ended up with a record of 55-51?
### Response:
|
SELECT "Score" FROM table_34622 WHERE "Record" = '55-51'
|
### Instruction:
CREATE TABLE table_71858 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent at the game that had a record of 93-54?
### Response:
|
SELECT "Opponent" FROM table_71858 WHERE "Record" = '93-54'
|
### Instruction:
CREATE TABLE table_204_169 (
id number,
"athlete" text,
"event" text,
"race 1\ntime" text,
"race 2\ntime" text,
"total\ntime" text,
"total\nrank" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many athletes are there total ?
### Response:
|
SELECT COUNT(DISTINCT "athlete") FROM table_204_169
|
### Instruction:
CREATE TABLE table_55692 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the time/retired when the grid is less than 3 and 45 laps?
### Response:
|
SELECT "Time/Retired" FROM table_55692 WHERE "Grid" < '3' AND "Laps" = '45'
|
### Instruction:
CREATE TABLE table_5945 (
"Week" text,
"Date" text,
"Opponent" text,
"Result" text,
"Kickoff" text,
"Game site" text,
"Record" text,
"Match Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Date has a Record of 0-2?
### Response:
|
SELECT "Date" FROM table_5945 WHERE "Record" = '0-2'
|
### Instruction:
CREATE TABLE table_38168 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game Site" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Date has a Result of l 21 34?
### Response:
|
SELECT "Date" FROM table_38168 WHERE "Result" = 'l 21β34'
|
### Instruction:
CREATE TABLE table_36498 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Rank" text,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many points did she have with team bultaco, ranked 6th?
### Response:
|
SELECT SUM("Points") FROM table_36498 WHERE "Team" = 'bultaco' AND "Rank" = '6th'
|
### Instruction:
CREATE TABLE table_35442 (
"Name" text,
"GP-GS" text,
"Effic" real,
"Att-Cmp-Int" text,
"Avg/G" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum avg/g with an effic of 858.4?
### Response:
|
SELECT SUM("Avg/G") FROM table_35442 WHERE "Effic" = '858.4'
|
### Instruction:
CREATE TABLE table_51896 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team played at VFL Park?
### Response:
|
SELECT "Home team" FROM table_51896 WHERE "Venue" = 'vfl park'
|
### Instruction:
CREATE TABLE table_8841 (
"Model Number" text,
"Frequency" text,
"L2-Cache" text,
"Front Side Bus" text,
"Multiplier" text,
"Voltage" text,
"Socket" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Frequency has a Multiplier of 6 ?
### Response:
|
SELECT "Frequency" FROM table_8841 WHERE "Multiplier" = '6Γ'
|
### Instruction:
CREATE TABLE table_77181 (
"Outcome" text,
"Date" text,
"Championship" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the surface on 21 june 1993?
### Response:
|
SELECT "Surface" FROM table_77181 WHERE "Date" = '21 june 1993'
|
### Instruction:
CREATE TABLE table_25772 (
"Date" text,
"Location" text,
"Opponent" text,
"Sun Devils Points" real,
"Opp. Points" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What opponent got 44 points in their game?
### Response:
|
SELECT "Opponent" FROM table_25772 WHERE "Opp. Points" = '44'
|
### Instruction:
CREATE TABLE table_62435 (
"Elector" text,
"Nationality" text,
"Order" text,
"Title" text,
"Elevated" text,
"Elevator" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What order has the title Deacon of SS. Cosma E Damiano?
### Response:
|
SELECT "Order" FROM table_62435 WHERE "Title" = 'deacon of ss. cosma e damiano'
|
### Instruction:
CREATE TABLE table_10777 (
"Player" text,
"Height" text,
"School" text,
"Hometown" text,
"College" text,
"NBA Draft" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What college did the player from Fort Lauderdale, FL attend?
### Response:
|
SELECT "College" FROM table_10777 WHERE "Hometown" = 'fort lauderdale, fl'
|
### Instruction:
CREATE TABLE table_17304621_14 (
upstream VARCHAR,
downstream VARCHAR,
bandwidth VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many upstream speeds are there for downstream of 20 mbit/s and bandwidth of 40 gb?
### Response:
|
SELECT COUNT(upstream) FROM table_17304621_14 WHERE downstream = "20 Mbit/s" AND bandwidth = "40 GB"
|
### Instruction:
CREATE TABLE table_204_340 (
id number,
"name" text,
"year inducted" number,
"position" text,
"apps" number,
"goals" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which two players had the least number of goals ?
### Response:
|
SELECT "name" FROM table_204_340 WHERE "goals" = (SELECT MIN("goals") FROM table_204_340)
|
### Instruction:
CREATE TABLE table_38371 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Stadium" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent on April 28?
### Response:
|
SELECT "Opponent" FROM table_38371 WHERE "Date" = 'april 28'
|
### Instruction:
CREATE TABLE table_16982 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who write 'a grand payne'?
### Response:
|
SELECT "Written by" FROM table_16982 WHERE "Title" = 'A Grand Payne'
|
### Instruction:
CREATE TABLE table_54612 (
"Stage" real,
"Date" text,
"Course" text,
"Distance" text,
"Winner" text,
"GC Leader" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What distance did giovanni lombardi win after stage 5?
### Response:
|
SELECT "Distance" FROM table_54612 WHERE "Stage" > '5' AND "Winner" = 'giovanni lombardi'
|
### Instruction:
CREATE TABLE table_20675 (
"State" text,
"Preliminary Average" text,
"Interview" text,
"Swimsuit" text,
"Evening Gown" text,
"Semifinal Average" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the preliminary average for Miss Mississippi?
### Response:
|
SELECT "Preliminary Average" FROM table_20675 WHERE "State" = 'Mississippi'
|
### Instruction:
CREATE TABLE people (
people_id number,
name text,
height number,
weight number,
date_of_birth text
)
CREATE TABLE entrepreneur (
entrepreneur_id number,
people_id number,
company text,
money_requested number,
investor text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the companies and investors that correspond to each entrepreneur?
### Response:
|
SELECT company, investor FROM entrepreneur
|
### Instruction:
CREATE TABLE table_1717 (
"COMPANY NAME" text,
"Holding Companies" real,
"Subsidiaries" real,
"Description of activities" text,
"Parent (holding) company" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many subsidiaries of company F M Media Limited?
### Response:
|
SELECT "Subsidiaries" FROM table_1717 WHERE "COMPANY NAME" = 'F M MEDIA LIMITED'
|
### Instruction:
CREATE TABLE table_71270 (
"Year" real,
"Venue" text,
"Winner" text,
"Country" text,
"Score" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the total number scores after 2005, when the winner was David Patrick?
### Response:
|
SELECT COUNT("Score") FROM table_71270 WHERE "Winner" = 'david patrick' AND "Year" > '2005'
|
### Instruction:
CREATE TABLE table_7219 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For the tournament played on 16 Jan 2011, what was the winning score?
### Response:
|
SELECT "Winning score" FROM table_7219 WHERE "Date" = '16 jan 2011'
|
### Instruction:
CREATE TABLE table_24324 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result of the Australian Championships?
### Response:
|
SELECT "Outcome" FROM table_24324 WHERE "Championship" = 'Australian Championships'
|
### Instruction:
CREATE TABLE table_31746 (
"Nomination" text,
"Actor's Name" text,
"Film Name" text,
"Director" text,
"Country" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the director for the movie with svetlana zelenkovskaya
### Response:
|
SELECT "Director" FROM table_31746 WHERE "Actor's Name" = 'svetlana zelenkovskaya'
|
### Instruction:
CREATE TABLE table_5034 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the opposing team when a Loss was listed with Lowe (1-4)?
### Response:
|
SELECT "Opponent" FROM table_5034 WHERE "Loss" = 'lowe (1-4)'
|
### Instruction:
CREATE TABLE table_203_42 (
id number,
"model" text,
"class" text,
"length" text,
"fuel" text,
"starting price" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which model is a diesel , the tour or the aspect ?
### Response:
|
SELECT "model" FROM table_203_42 WHERE "model" IN ('tour', 'aspect') AND "fuel" = 'diesel'
|
### Instruction:
CREATE TABLE table_42065 (
"Season" text,
"Conf." text,
"Conf. finish" text,
"Div." text,
"Div. Finish" text,
"Head coach" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the conference that K. C. Jones was a head coach in?
### Response:
|
SELECT "Conf." FROM table_42065 WHERE "Head coach" = 'k. c. jones'
|
### Instruction:
CREATE TABLE table_name_68 (
laps INTEGER,
time_retired VARCHAR,
grid VARCHAR,
constructor VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many laps with a grid larger than 7 did a Lotus - Ford do with a Time/Retired of + 2 laps?
### Response:
|
SELECT SUM(laps) FROM table_name_68 WHERE grid > 7 AND constructor = "lotus - ford" AND time_retired = "+ 2 laps"
|
### Instruction:
CREATE TABLE table_31254 (
"Rank by average" real,
"Place" real,
"Couple" text,
"Total points" text,
"Number of dances" real,
"Average" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times is the total points 128.0?
### Response:
|
SELECT COUNT("Couple") FROM table_31254 WHERE "Total points" = '128.0'
|
### Instruction:
CREATE TABLE table_51622 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which away team played at MCG?
### Response:
|
SELECT "Away team" FROM table_51622 WHERE "Venue" = 'mcg'
|
### Instruction:
CREATE TABLE table_47416 (
"Year" real,
"Team" text,
"Co-Drivers" text,
"Class" text,
"Laps" real,
"Pos." text,
"Class Pos." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Laps has a Year of 2007?
### Response:
|
SELECT AVG("Laps") FROM table_47416 WHERE "Year" = '2007'
|
### Instruction:
CREATE TABLE table_name_92 (
failures VARCHAR,
partial_failures VARCHAR,
successes VARCHAR,
type VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the total failures among rockets that had more than 3 successes, type ariane 5 and more than 0 partial failures?
### Response:
|
SELECT COUNT(failures) FROM table_name_92 WHERE successes > 3 AND type = "ariane 5" AND partial_failures > 0
|
### Instruction:
CREATE TABLE table_54419 (
"Track" real,
"Recorded" text,
"Release Date" text,
"Song Title" text,
"Writer(s)" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What song title was written by Kal Mann and Bernie Lowe?
### Response:
|
SELECT "Song Title" FROM table_54419 WHERE "Writer(s)" = 'kal mann and bernie lowe'
|
### Instruction:
CREATE TABLE table_203_694 (
id number,
"#" number,
"name" text,
"took office" text,
"left office" text,
"party" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times has dervi ş ero ğ lu been in office ?
### Response:
|
SELECT COUNT(*) FROM table_203_694 WHERE "name" = 'dervis eroglu'
|
### Instruction:
CREATE TABLE table_41337 (
"Week" real,
"Date" text,
"Time" text,
"Opponent" text,
"Result" text,
"Game site" text,
"NFL Recap" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Record for week 14?
### Response:
|
SELECT "Record" FROM table_41337 WHERE "Week" = '14'
|
### Instruction:
CREATE TABLE table_name_29 (
position VARCHAR,
pick__number VARCHAR,
nationality VARCHAR,
nhl_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position shows for canada, and an NHL team of new york islanders, and a Pick # of 113?
### Response:
|
SELECT position FROM table_name_29 WHERE nationality = "canada" AND nhl_team = "new york islanders" AND pick__number = "113"
|
### Instruction:
CREATE TABLE table_41679 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the pick number for Peter Moore of the Montreal Alouettes?
### Response:
|
SELECT "Pick #" FROM table_41679 WHERE "CFL Team" = 'montreal alouettes' AND "Player" = 'peter moore'
|
### Instruction:
CREATE TABLE table_38248 (
"Games" real,
"Drawn" real,
"Lost" real,
"Points difference" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Drawn is the lowest one that has a Lost of 5, and Points larger than 4?
### Response:
|
SELECT MIN("Drawn") FROM table_38248 WHERE "Lost" = '5' AND "Points" > '4'
|
### Instruction:
CREATE TABLE table_204_378 (
id number,
"no" number,
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the only person to drive a veritas ?
### Response:
|
SELECT "driver" FROM table_204_378 WHERE "constructor" = 'veritas'
|
### Instruction:
CREATE TABLE table_1028 (
"Player" text,
"Position" text,
"Games started" text,
"Hometown" text,
"Height" text,
"Weight" real,
"Class" text,
"Previous experience" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was George W. Gregory's class?
### Response:
|
SELECT "Class" FROM table_1028 WHERE "Player" = 'George W. Gregory'
|
### Instruction:
CREATE TABLE table_28514 (
"Institution" text,
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Nickname" text,
"Joined" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the institution located in north newton, kansas?
### Response:
|
SELECT "Institution" FROM table_28514 WHERE "Location" = 'North Newton, Kansas'
|
### Instruction:
CREATE TABLE table_30921 (
"Stage" real,
"Winner" text,
"General classification" text,
"Mountains Classification" text,
"Points classification" text,
"Sprints Classification" text,
"Team Classification" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the general classification for mauricio soler
### Response:
|
SELECT "General classification" FROM table_30921 WHERE "Winner" = 'Mauricio Soler'
|
### Instruction:
CREATE TABLE table_39325 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Outcome of the Doubles played on Carpet?
### Response:
|
SELECT "Outcome" FROM table_39325 WHERE "Surface" = 'carpet'
|
### Instruction:
CREATE TABLE table_21819 (
"SECR No." real,
"SR No." real,
"BR No." real,
"Builder" text,
"Date Delivered" text,
"Date Withdrawn" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the withdraw date for secr no. 771?
### Response:
|
SELECT "Date Withdrawn" FROM table_21819 WHERE "SECR No." = '771'
|
### Instruction:
CREATE TABLE table_56843 (
"Week" real,
"Date" text,
"Opponent" text,
"Time (ET)" text,
"Result" text,
"Game Site" text,
"Record" text,
"Match Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Date of Week 16?
### Response:
|
SELECT "Date" FROM table_56843 WHERE "Week" = '16'
|
### Instruction:
CREATE TABLE table_name_39 (
year INTEGER,
event VARCHAR,
location VARCHAR,
final_score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Location of saint paul, and a Final-Score larger than 14.35, and a Event of all around is what sum of year?
### Response:
|
SELECT SUM(year) FROM table_name_39 WHERE location = "saint paul" AND final_score > 14.35 AND event = "all around"
|
### Instruction:
CREATE TABLE table_13900 (
"Heat" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who has more than 4 heat for Germany and 7 lanes?
### Response:
|
SELECT "Name" FROM table_13900 WHERE "Heat" > '4' AND "Nationality" = 'germany' AND "Lane" = '7'
|
### Instruction:
CREATE TABLE table_38530 (
"Game" real,
"March" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- After March 19, what's the score of game 67?
### Response:
|
SELECT "Score" FROM table_38530 WHERE "March" > '19' AND "Game" = '67'
|
### Instruction:
CREATE TABLE table_58124 (
"Title" text,
"Pages" text,
"First edition" text,
"Second edition" text,
"ISBN" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which first edition has an ISBN of 978-0785166252?
### Response:
|
SELECT "First edition" FROM table_58124 WHERE "ISBN" = '978-0785166252'
|
### Instruction:
CREATE TABLE table_68849 (
"Year" text,
"Class" text,
"Games" real,
"Starts" real,
"Comp" real,
"Yards" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the average number of yards Michael Henig had in a year when he had more than 12 starts/
### Response:
|
SELECT AVG("Yards") FROM table_68849 WHERE "Starts" > '12'
|
### Instruction:
CREATE TABLE table_54628 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Of the games with a record of 80-81, what was the highest attendance?
### Response:
|
SELECT MAX("Attendance") FROM table_54628 WHERE "Record" = '80-81'
|
### Instruction:
CREATE TABLE table_78787 (
"Country" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog Nr." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which country has the catalog nr of thr-048 in 2004?
### Response:
|
SELECT "Country" FROM table_78787 WHERE "Date" = '2004' AND "Catalog Nr." = 'thr-048'
|
### Instruction:
CREATE TABLE table_name_51 (
tickets_sold___available VARCHAR,
gross_revenue__2011_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many tickets were sold / available for the venue that had a gross revenue of $333,100 in 2011?
### Response:
|
SELECT tickets_sold___available FROM table_name_51 WHERE gross_revenue__2011_ = "$333,100"
|
### Instruction:
CREATE TABLE table_4990 (
"Season" real,
"Overall" real,
"Slalom" text,
"Giant Slalom" text,
"Super G" text,
"Downhill" text,
"Combined" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Slalom has a Giant Slalom of 8?
### Response:
|
SELECT "Slalom" FROM table_4990 WHERE "Giant Slalom" = '8'
|
### Instruction:
CREATE TABLE table_32340 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What away team played Collingwood?
### Response:
|
SELECT "Away team" FROM table_32340 WHERE "Home team" = 'collingwood'
|
### Instruction:
CREATE TABLE table_19803 (
"#" real,
"Episode" text,
"Writer" text,
"Director" text,
"Original air date" text,
"Viewing figure" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What original air dates are associated with a viewing figure of 7.27 million?
### Response:
|
SELECT "Original air date" FROM table_19803 WHERE "Viewing figure" = '7.27 million'
|
### Instruction:
CREATE TABLE table_203_837 (
id number,
"rank" number,
"name" text,
"height\nft / m" text,
"floors" number,
"year" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many floors does the capitol square have ?
### Response:
|
SELECT "floors" FROM table_203_837 WHERE "name" = 'capitol square'
|
### Instruction:
CREATE TABLE table_19173 (
"Home (1st leg)" text,
"Home (2nd leg)" text,
"1st Leg" text,
"2nd leg" text,
"Aggregate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 0-1 is the aggregate what are the home (1st leg)?
### Response:
|
SELECT "Home (1st leg)" FROM table_19173 WHERE "Aggregate" = '0-1'
|
### Instruction:
CREATE TABLE table_dev_35 (
"id" int,
"white_blood_cell_count_wbc" int,
"platelets" int,
"neutrophil_count" int,
"serum_creatinine" float,
"albumin" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- albumin >= 3 g / dl
### Response:
|
SELECT * FROM table_dev_35 WHERE albumin >= 3
|
### Instruction:
CREATE TABLE table_204_789 (
id number,
"plant name" text,
"location" text,
"country" text,
"startup date" number,
"capacity (mmtpa)" text,
"corporation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many plants are in algeria ?
### Response:
|
SELECT COUNT("plant name") FROM table_204_789 WHERE "country" = 'algeria'
|
### Instruction:
CREATE TABLE table_38730 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What tournament has Samantha Stosur as the opponent in the final?
### Response:
|
SELECT "Tournament" FROM table_38730 WHERE "Opponent in the final" = 'samantha stosur'
|
### Instruction:
CREATE TABLE table_12726 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Date of Tie no 35 with a Score of 3 2?
### Response:
|
SELECT "Date" FROM table_12726 WHERE "Score" = '3β2' AND "Tie no" = '35'
|
### Instruction:
CREATE TABLE table_60485 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Score, when Country is 'United States', and when Player is 'Raymond Floyd'?
### Response:
|
SELECT "Score" FROM table_60485 WHERE "Country" = 'united states' AND "Player" = 'raymond floyd'
|
### Instruction:
CREATE TABLE table_24913 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team did Alireza mansourian leave?
### Response:
|
SELECT "Team" FROM table_24913 WHERE "Outgoing manager" = 'Alireza Mansourian'
|
### Instruction:
CREATE TABLE table_16203 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the original air date of the episode no in season 9?
### Response:
|
SELECT "Original air date" FROM table_16203 WHERE "No. in season" = '9'
|
### Instruction:
CREATE TABLE table_26699 (
"Episode" real,
"Airdate" text,
"Reward" text,
"Immunity" text,
"Eliminated" text,
"Vote" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the vote for thiago
### Response:
|
SELECT "Vote" FROM table_26699 WHERE "Eliminated" = 'Thiago'
|
### Instruction:
CREATE TABLE submission (
submission_id number,
scores number,
author text,
college text
)
CREATE TABLE workshop (
workshop_id number,
date text,
venue text,
name text
)
CREATE TABLE acceptance (
submission_id number,
workshop_id number,
result text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average score of submissions?
### Response:
|
SELECT AVG(scores) FROM submission
|
### Instruction:
CREATE TABLE table_51950 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who drove during the race with less than 19 laps and a time listed as ignition?
### Response:
|
SELECT "Driver" FROM table_51950 WHERE "Laps" < '19' AND "Time/Retired" = 'ignition'
|
### Instruction:
CREATE TABLE table_66288 (
"Proto-Germanic" text,
"West Germanic" text,
"Old English" text,
"German" text,
"Dutch" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the Proto Germanic when then German is /s/ or /ts/?
### Response:
|
SELECT "Proto-Germanic" FROM table_66288 WHERE "German" = '/s/ or /ts/'
|
### Instruction:
CREATE TABLE table_45904 (
"Rank" real,
"City" text,
"Airport" text,
"Passengers" real,
"Carriers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the least passengers from the Dallas/Fort Worth International (DFW) airport?
### Response:
|
SELECT MIN("Passengers") FROM table_45904 WHERE "Airport" = 'dallas/fort worth international (dfw)'
|
### Instruction:
CREATE TABLE table_name_38 (
no_in_series INTEGER,
director VARCHAR,
production_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total series numbers that is directed by Jefferson Kibbee and has a production code of 2398191?
### Response:
|
SELECT SUM(no_in_series) FROM table_name_38 WHERE director = "jefferson kibbee" AND production_code = "2398191"
|
### Instruction:
CREATE TABLE table_80173 (
"Election" text,
"1st Member" text,
"1st Party" text,
"2nd Member" text,
"2nd Party" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the 1st Member when the 1st Party had its representation reduced to one member?
### Response:
|
SELECT "1st Member" FROM table_80173 WHERE "1st Party" = 'representation reduced to one member'
|
### Instruction:
CREATE TABLE table_203_113 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which country was in the top of the 11 rank group ?
### Response:
|
SELECT "nation" FROM table_203_113 WHERE "rank" = 11 LIMIT 1
|
### Instruction:
CREATE TABLE table_62444 (
"Elected" text,
"Assembled" text,
"Dissolved" text,
"1st member" text,
"2nd member" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the 1st member elected in 1511/12?
### Response:
|
SELECT "1st member" FROM table_62444 WHERE "Elected" = '1511/12'
|
### Instruction:
CREATE TABLE table_66163 (
"Pick" real,
"Player" text,
"Team" text,
"Position" text,
"School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest pick of a player for the SS, P Position for the Minnesota Twins?
### Response:
|
SELECT MIN("Pick") FROM table_66163 WHERE "Position" = 'ss, p' AND "Team" = 'minnesota twins'
|
### Instruction:
CREATE TABLE table_48028 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is To Par, when Place is 'T1', and when Player is 'Joey Rassett'?
### Response:
|
SELECT "To par" FROM table_48028 WHERE "Place" = 't1' AND "Player" = 'joey rassett'
|
### Instruction:
CREATE TABLE table_74642 (
"Entrant" text,
"Constructor" text,
"Chassis" text,
"Engine" text,
"Driver" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who built Warren Booth's car with the Cosworth DFV V8 engine?
### Response:
|
SELECT "Constructor" FROM table_74642 WHERE "Engine" = 'cosworth dfv v8' AND "Driver" = 'warren booth'
|
### Instruction:
CREATE TABLE table_30093 (
"Series #" real,
"Season #" real,
"Title" text,
"Written by" text,
"Original air date" text,
"U.S. Viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date the episode entitled 'House' aired?
### Response:
|
SELECT "Original air date" FROM table_30093 WHERE "Title" = 'House'
|
### Instruction:
CREATE TABLE table_33482 (
"Season" real,
"Coach" text,
"Record as played" text,
"Actual adjusted record" text,
"Regular season Vacated" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many seasons have an Actual adjusted record of 0 19?
### Response:
|
SELECT COUNT("Season") FROM table_33482 WHERE "Actual adjusted record" = '0β19'
|
### Instruction:
CREATE TABLE table_2362486_1 (
championship VARCHAR,
score_in_the_final VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which championship had a final score of 6 4, 2 6, 6 4, 7 6(3)?
### Response:
|
SELECT championship FROM table_2362486_1 WHERE score_in_the_final = "6β4, 2β6, 6β4, 7β6(3)"
|
### Instruction:
CREATE TABLE budget (
budgeted INTEGER,
school_id VARCHAR
)
CREATE TABLE school (
school_id VARCHAR,
school_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total budget amount for school 'Glenn' in all years?
### Response:
|
SELECT SUM(T1.budgeted) FROM budget AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T2.school_name = 'Glenn'
|
### Instruction:
CREATE TABLE table_204_992 (
id number,
"team" text,
"manager" text,
"city" text,
"stadium" text,
"capacity" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what city is listed below heredia ?
### Response:
|
SELECT "city" FROM table_204_992 WHERE id = (SELECT id FROM table_204_992 WHERE "city" = 'heredia') + 1
|
### Instruction:
CREATE TABLE table_37984 (
"Game" real,
"November" real,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When in November were they 11-7-3 with over 21 games?
### Response:
|
SELECT MAX("November") FROM table_37984 WHERE "Record" = '11-7-3' AND "Game" > '21'
|
### Instruction:
CREATE TABLE table_name_79 (
apps INTEGER,
division VARCHAR,
team VARCHAR,
country VARCHAR,
goals VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest apps in Honduras with less than 2 goals for Club Deportivo Victoria in a division over 1?
### Response:
|
SELECT MIN(apps) FROM table_name_79 WHERE country = "honduras" AND goals < 2 AND team = "club deportivo victoria" AND division > 1
|
### Instruction:
CREATE TABLE table_32257 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What day was south melbourne the away squad?
### Response:
|
SELECT "Date" FROM table_32257 WHERE "Away team" = 'melbourne'
|
### Instruction:
CREATE TABLE table_55653 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average laps for ralph firman with a grid of over 19?
### Response:
|
SELECT AVG("Laps") FROM table_55653 WHERE "Driver" = 'ralph firman' AND "Grid" > '19'
|
### Instruction:
CREATE TABLE mission (
Ship_ID VARCHAR,
Launched_Year INTEGER
)
CREATE TABLE ship (
Name VARCHAR,
Ship_ID VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show names of ships involved in a mission launched after 1928.
### Response:
|
SELECT T2.Name FROM mission AS T1 JOIN ship AS T2 ON T1.Ship_ID = T2.Ship_ID WHERE T1.Launched_Year > 1928
|
### Instruction:
CREATE TABLE table_79212 (
"Actor" text,
"Character" text,
"Soap Opera" text,
"Years" text,
"Duration" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What character was portrayed by the same actor for 12 years on Neighbours?
### Response:
|
SELECT "Character" FROM table_79212 WHERE "Duration" = '12 years' AND "Soap Opera" = 'neighbours'
|
### Instruction:
CREATE TABLE table_63529 (
"Club" text,
"Wins" real,
"Losses" real,
"Draws" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the most losses when there are 5 wins and draws less than 0?
### Response:
|
SELECT MAX("Losses") FROM table_63529 WHERE "Wins" = '5' AND "Draws" < '0'
|
### Instruction:
CREATE TABLE table_204_133 (
id number,
"school year" text,
"class a" text,
"class aa" text,
"class aaa" text,
"class aaaa" text,
"class aaaaa" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times has garden city won in class a ?
### Response:
|
SELECT COUNT(*) FROM table_204_133 WHERE "class a" = 'garden city'
|
### Instruction:
CREATE TABLE table_74849 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which name had more than 5 rounds and was a defensive end?
### Response:
|
SELECT "Name" FROM table_74849 WHERE "Round" > '5' AND "Position" = 'defensive end'
|
### Instruction:
CREATE TABLE table_4816 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who played Fitzroy at their own home?
### Response:
|
SELECT "Home team score" FROM table_4816 WHERE "Away team" = 'fitzroy'
|
### Instruction:
CREATE TABLE table_21839 (
"Season" real,
"Winners" text,
"Total wins" real,
"Runners-up" text,
"Third-place" text,
"Number of clubs" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many total wins with Shanghai as runner-up?
### Response:
|
SELECT COUNT("Total wins") FROM table_21839 WHERE "Runners-up" = 'Shanghai'
|
### Instruction:
CREATE TABLE table_58986 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of a pick more than 5 at Washington College?
### Response:
|
SELECT "Name" FROM table_58986 WHERE "Pick #" > '5' AND "College" = 'washington'
|
### Instruction:
CREATE TABLE table_2059 (
"Teams With Division Titles" text,
"Division Championships" real,
"Playoff Berths" real,
"AFC Titles" real,
"Super Bowl Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many afc titles did the Cleveland Browns have?
### Response:
|
SELECT MAX("AFC Titles") FROM table_2059 WHERE "Teams With Division Titles" = 'Cleveland Browns'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.