instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_66050 (
"Game" text,
"Date" text,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the location and attendance at the game when the re... | SELECT "Location/Attendance" FROM table_66050 WHERE "Record" = '9-6' |
### Instruction:
CREATE TABLE table_27157 (
"Year" real,
"Mens singles" text,
"Womens singles" text,
"Mens doubles" text,
"Womens doubles" text,
"Mixed doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who played Mixed Doubles in 1991?
#... | SELECT "Mixed doubles" FROM table_27157 WHERE "Year" = '1991' |
### Instruction:
CREATE TABLE table_34810 (
"Year of Issue" real,
"Description" text,
"Weight" text,
"Diameter" text,
"Thickness" text,
"Edge" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Thickness has a Weight of 3.50grams?
### Respon... | SELECT "Thickness" FROM table_34810 WHERE "Weight" = '3.50grams' |
### Instruction:
CREATE TABLE table_31947 (
"Outcome" text,
"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.
-- Tell me the date for johanna konta
### Response:
| SELECT "Date" FROM table_31947 WHERE "Opponent in the final" = 'johanna konta' |
### Instruction:
CREATE TABLE table_41416 (
"Rank" real,
"Name" text,
"Team" text,
"Games" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many points did Antwain Barbour score in the year he played 39 games?
### Response:
| SELECT SUM("Points") FROM table_41416 WHERE "Name" = 'antwain barbour' AND "Games" < '39' |
### Instruction:
CREATE TABLE table_31418 (
"Official name" text,
"INE code" real,
"Name in Spanish" text,
"Name in Basque" text,
"Population (2007)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the official name of the municipality whose ... | SELECT "Official name" FROM table_31418 WHERE "Name in Spanish" = 'Cripán' |
### Instruction:
CREATE TABLE table_39475 (
"Week" real,
"Date" text,
"Opponent" text,
"Location" text,
"Time ( ET )" text,
"Result" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of the game at Arrowhead Stad... | SELECT "Date" FROM table_39475 WHERE "Location" = 'arrowhead stadium' |
### Instruction:
CREATE TABLE table_11658 (
"Sport" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When volleyball has 2 bronze, what is the total number of silver?
### Response:
| SELECT COUNT("Silver") FROM table_11658 WHERE "Bronze" = '2' AND "Sport" = 'volleyball' |
### Instruction:
CREATE TABLE table_54061 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the laps of aprilia with a grid of 10?
### Response:
| SELECT "Laps" FROM table_54061 WHERE "Manufacturer" = 'aprilia' AND "Grid" = '10' |
### Instruction:
CREATE TABLE table_name_2 (
games INTEGER,
lost VARCHAR,
standing VARCHAR,
goals_against VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most games for standing of 5th, lebel and goals against larger than 220 with lost more t... | SELECT MAX(games) FROM table_name_2 WHERE standing = "5th, lebel" AND goals_against > 220 AND lost > 52 |
### Instruction:
CREATE TABLE table_name_51 (
english_translation VARCHAR,
artist VARCHAR,
language VARCHAR,
draw VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the english translation when the Language is english, Draw is smaller than 16, an... | SELECT english_translation FROM table_name_51 WHERE language = "english" AND draw < 16 AND artist = "aysel and arash" |
### Instruction:
CREATE TABLE table_19797 (
"#" 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 is the # for the episode with viewing figures of... | SELECT MAX("#") FROM table_19797 WHERE "Viewing figure" = '7.02 million' |
### Instruction:
CREATE TABLE table_48341 (
"Year" real,
"MLB Club" text,
"Record" text,
"Finish" text,
"Manager" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the manager when the year is before 1994 and finish is 5th?
### Response:
| SELECT "Manager" FROM table_48341 WHERE "Year" < '1994' AND "Finish" = '5th' |
### Instruction:
CREATE TABLE table_71010 (
"From" text,
"Until" text,
"Name" text,
"Party" text,
"Function" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which party is associated with a leader who began his tenure on June 13, 2007?
### Response... | SELECT "Party" FROM table_71010 WHERE "From" = 'june 13, 2007' |
### Instruction:
CREATE TABLE table_38462 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team (League)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who has a round less than 9 and a position of G?
### R... | SELECT "Player" FROM table_38462 WHERE "Position" = 'g' AND "Round" < '9' |
### Instruction:
CREATE TABLE table_79291 (
"Generic Name" text,
"Trade Name" text,
"FDA approved" text,
"TGA approved" text,
"EMA approved" text,
"MHRA approved" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Is Blonanserin MHRA approved?
###... | SELECT "MHRA approved" FROM table_79291 WHERE "Generic Name" = 'blonanserin' |
### Instruction:
CREATE TABLE table_23771 (
"Result" text,
"Date" text,
"Race" text,
"Venue" text,
"Group" text,
"Distance" text,
"Weight (kg)" real,
"Jockey" text,
"Winner/2nd" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the... | SELECT MAX("Weight (kg)") FROM table_23771 |
### Instruction:
CREATE TABLE table_28565 (
"Finished" text,
"Performance Order" real,
"Percentage of votes" text,
"Artist" text,
"Act" text,
"Semi Finals Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the performance order for 2.15... | SELECT "Performance Order" FROM table_28565 WHERE "Percentage of votes" = '2.15%' |
### Instruction:
CREATE TABLE table_29017 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player was drafted by the Minnesota N... | SELECT "Player" FROM table_29017 WHERE "NHL team" = 'Minnesota North Stars' |
### Instruction:
CREATE TABLE table_name_43 (
administration_of_oaths VARCHAR,
rights_of_audience VARCHAR,
reserved_instruments VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Administration of Oaths, when Rights of Audience is Yes, and when Reser... | SELECT administration_of_oaths FROM table_name_43 WHERE rights_of_audience = "yes" AND reserved_instruments = "yes" |
### Instruction:
CREATE TABLE club (
clubid VARCHAR,
clubname VARCHAR
)
CREATE TABLE member_of_club (
position VARCHAR,
clubid VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many different roles are there in the club 'Bootup Baltimore'?
### Re... | SELECT COUNT(DISTINCT t2.position) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid WHERE t1.clubname = "Bootup Baltimore" |
### Instruction:
CREATE TABLE table_33828 (
"Season" text,
"Episodes" real,
"First airdate" text,
"Last airdate" text,
"Nielsen ranking" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which season last aired on May 6, 1987?
### Response:
| SELECT "Season" FROM table_33828 WHERE "Last airdate" = 'may 6, 1987' |
### Instruction:
CREATE TABLE table_203_614 (
id number,
"#" number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what venue was the latest match pl... | SELECT "venue" FROM table_203_614 ORDER BY "date" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_name_37 (
year VARCHAR,
title VARCHAR,
result VARCHAR,
genre VARCHAR,
label VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which year's genre was jazz under the columbia label when it was nominated for the titl... | SELECT year FROM table_name_37 WHERE genre = "jazz" AND label = "columbia" AND result = "nominated" AND title = "trio jeepy" |
### Instruction:
CREATE TABLE torrents (
groupname text,
totalsnatched number,
artist text,
groupyear number,
releasetype text,
groupid number,
id number
)
CREATE TABLE tags (
index number,
id number,
tag text
)
-- Using valid SQLite, answer the following questions for the tab... | SELECT artist FROM torrents GROUP BY artist ORDER BY COUNT(groupname) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_38428 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the Loss is Johnson (4-12), what is the date?
### Response:
| SELECT "Date" FROM table_38428 WHERE "Loss" = 'johnson (4-12)' |
### Instruction:
CREATE TABLE table_204_593 (
id number,
"year" text,
"chairperson" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who served after maturi ramaro ?
### Response:
| SELECT "chairperson" FROM table_204_593 WHERE "year" > (SELECT "year" FROM table_204_593 WHERE "chairperson" = 'maturiramarao') ORDER BY "year" LIMIT 1 |
### Instruction:
CREATE TABLE table_22029 (
"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.
-- For home of River Plate, what is the first leg listed?
### Respons... | SELECT "1st Leg" FROM table_22029 WHERE "Home (2nd leg)" = 'River Plate' |
### Instruction:
CREATE TABLE table_79032 (
"Shooter" text,
"Event" text,
"Rank points" text,
"Score points" text,
"Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the shooter with 15 rank points, and 0 score points?
### Response:
| SELECT "Shooter" FROM table_79032 WHERE "Rank points" = '15' AND "Score points" = '0' |
### Instruction:
CREATE TABLE table_63479 (
"District" real,
"Incumbent" text,
"2008 Status" text,
"Democratic" text,
"Republican" text,
"Green" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the Republican when the green was Harold Burb... | SELECT "Republican" FROM table_63479 WHERE "Green" = 'harold burbank' |
### Instruction:
CREATE TABLE table_204_840 (
id number,
"no. in\nseries" number,
"no. in\nseason" number,
"title" text,
"directed by" text,
"written by" text,
"original air date" text,
"prod. code" text
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT COUNT(*) FROM table_204_840 |
### Instruction:
CREATE TABLE table_18686 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many parties were represented for Charles R. Crisp?... | SELECT COUNT("Party") FROM table_18686 WHERE "Incumbent" = 'Charles R. Crisp' |
### Instruction:
CREATE TABLE table_49257 (
"Date" text,
"Home team" text,
"Score" text,
"Away team" text,
"Venue" text,
"Box Score" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score when Sydney Spirit was the ... | SELECT "Score" FROM table_49257 WHERE "Home team" = 'sydney spirit' |
### Instruction:
CREATE TABLE table_31174 (
"Player" text,
"Starts" real,
"Cuts made" real,
"Best finish" text,
"Money list rank" real,
"Earnings ($)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the maximum start record for player of ... | SELECT MAX("Starts") FROM table_31174 WHERE "Player" = 'Jeff Brehaut' |
### Instruction:
CREATE TABLE table_38913 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What visitor has detroit red wings as the home, and march 30 as the date?
### Response:
| SELECT "Visitor" FROM table_38913 WHERE "Home" = 'detroit red wings' AND "Date" = 'march 30' |
### Instruction:
CREATE TABLE table_44347 (
"Rank" text,
"Time" text,
"Athlete" text,
"Nation" text,
"Date" text,
"Race" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the athlete with a time of 30:48?
### Response:
| SELECT "Athlete" FROM table_44347 WHERE "Time" = '30:48' |
### Instruction:
CREATE TABLE table_5843 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Opponent has an Attendance of 24,791?
### Response:
| SELECT "Opponent" FROM table_5843 WHERE "Attendance" = '24,791' |
### Instruction:
CREATE TABLE table_name_77 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the average for 2005 when 1995 is more than 3, 1996 is less than 4, and 2011 is more than 5?
### Response:
| SELECT AVG(2005) FROM table_name_77 WHERE 1995 > 3 AND 1996 < 4 AND 2011 > 5 |
### Instruction:
CREATE TABLE table_68264 (
"Name" text,
"Years" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- tell me the average roll for pirinoa school.
### Resp... | SELECT AVG("Roll") FROM table_68264 WHERE "Name" = 'pirinoa school' |
### Instruction:
CREATE TABLE table_14108 (
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of points of driver enrique bernoldi (r)?
#... | SELECT COUNT("Points") FROM table_14108 WHERE "Driver" = 'enrique bernoldi (r)' |
### Instruction:
CREATE TABLE table_24998 (
"Province, Community" text,
"Contestant" text,
"Age" real,
"Height" text,
"Hometown" text,
"Geographical Regions" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How tall is contestant Alexandra D az Be... | SELECT "Height" FROM table_24998 WHERE "Contestant" = 'Alexandra Díaz Bello' |
### Instruction:
CREATE TABLE table_203_148 (
id number,
"date" text,
"name" text,
"nationality" text,
"tonnage\n(grt)" number,
"fate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which submarine had the most tonnage ?
### Response:
| SELECT "name" FROM table_203_148 ORDER BY "tonnage\n(grt)" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_26525 (
"Episode" real,
"Contest" text,
"Original airdate" text,
"Challengers (Female)" text,
"Challengers (Male)" text,
"Events" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what episode did heat 1 take ... | SELECT "Episode" FROM table_26525 WHERE "Contest" = 'Heat 1' |
### Instruction:
CREATE TABLE table_68209 (
"Number" real,
"Name of the song" text,
"Singer" text,
"Drama" text,
"Kind of the song" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What type of song is larger than 8 and named ?
### Response:
| SELECT "Kind of the song" FROM table_68209 WHERE "Number" > '8' AND "Name of the song" = '實情' |
### Instruction:
CREATE TABLE table_18613 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What party does clyde t. ellis represent?
### Respons... | SELECT "Party" FROM table_18613 WHERE "Incumbent" = 'Clyde T. Ellis' |
### Instruction:
CREATE TABLE table_21346 (
"Date" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" real,
"Competition" text,
"Man of the Match" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the opponent for 4th
### R... | SELECT "Opponent" FROM table_21346 WHERE "Date" = '4th' |
### Instruction:
CREATE TABLE roller_coaster (
country_id VARCHAR,
LENGTH INTEGER
)
CREATE TABLE country (
country_id VARCHAR,
LENGTH INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many countries do not have an roller coaster longer than 3000?
... | SELECT COUNT(*) FROM country WHERE NOT country_id IN (SELECT country_id FROM roller_coaster WHERE LENGTH > 3000) |
### Instruction:
CREATE TABLE table_40798 (
"Free" text,
"Free polite" text,
"Genitive 1" text,
"Genitive 2" text,
"Genitive 3" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Free has a Free polite of *[i-]k-ita?
### Response:
| SELECT "Free" FROM table_40798 WHERE "Free polite" = '*[i-]k-ita' |
### Instruction:
CREATE TABLE table_75973 (
"Season" text,
"Nationality" text,
"Player" text,
"Club" text,
"League" text,
"Goals" real,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player was in the Omonia Nicosia club?
##... | SELECT "Player" FROM table_75973 WHERE "Club" = 'omonia nicosia' |
### Instruction:
CREATE TABLE table_name_16 (
att_cmp_int VARCHAR,
gp_gs VARCHAR,
avg_g VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the att-cmp-int that has 12 for the gp-gs and 174.3 as the avg/g?
### Response:
| SELECT att_cmp_int FROM table_name_16 WHERE gp_gs = "12" AND avg_g = 174.3 |
### Instruction:
CREATE TABLE table_47032 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sco... | SELECT "Score" FROM table_47032 WHERE "Game" = '25' |
### Instruction:
CREATE TABLE table_42072 (
"Region" text,
"Province" text,
"Capital" text,
"No. of Communes" real,
"Area" real,
"2002 Population" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average area with valpara so as the cap... | SELECT AVG("Area") FROM table_42072 WHERE "Capital" = 'valparaíso' |
### Instruction:
CREATE TABLE table_name_60 (
week INTEGER,
date VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the latest week with a date of November 12, 1967 and less than 34,761 in attendance?
### Response:
| SELECT MAX(week) FROM table_name_60 WHERE date = "november 12, 1967" AND attendance < 34 OFFSET 761 |
### Instruction:
CREATE TABLE table_name_88 (
pick INTEGER,
position VARCHAR,
round VARCHAR,
school_club_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Pick has a Round larger than 1, a School/Club Team of alcorn state, and a Position of d... | SELECT SUM(pick) FROM table_name_88 WHERE round > 1 AND school_club_team = "alcorn state" AND position = "defensive back" |
### Instruction:
CREATE TABLE table_10984 (
"Grand Prix" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning Driver" text,
"Constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the fastest lap for Belgian Grand... | SELECT "Fastest Lap" FROM table_10984 WHERE "Grand Prix" = 'belgian grand prix' |
### Instruction:
CREATE TABLE table_203_675 (
id number,
"match" number,
"date" text,
"round" text,
"home/away" text,
"opponent team" text,
"score" text,
"scorers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- was the top game home or a... | SELECT "home/away" FROM table_203_675 WHERE id = 1 |
### Instruction:
CREATE TABLE table_name_49 (
state VARCHAR,
city VARCHAR,
aam_accredited VARCHAR,
astc_member VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is State, when AAM Accredited is No, when ASTC Member is No, and when City is Tulsa?
... | SELECT state FROM table_name_49 WHERE aam_accredited = "no" AND astc_member = "no" AND city = "tulsa" |
### Instruction:
CREATE TABLE table_12167 (
"Tournament" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result in 2011 for the French Open tournament?
### Response:
| SELECT "2011" FROM table_12167 WHERE "Tournament" = 'french open' |
### Instruction:
CREATE TABLE table_61685 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date is there a status of Five Nations and an against of 23?
### Response... | SELECT "Date" FROM table_61685 WHERE "Status" = 'five nations' AND "Against" = '23' |
### Instruction:
CREATE TABLE table_55969 (
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Bronze has a Silver smaller than 1, and a Total larger than 3?
### Response:
| SELECT AVG("Bronze") FROM table_55969 WHERE "Silver" < '1' AND "Total" > '3' |
### Instruction:
CREATE TABLE table_43664 (
"Player" text,
"Position" text,
"Round" real,
"Pick" real,
"NFL Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the NFL club of the cornerback player with a pick greater than 63?
### Respons... | SELECT "NFL Club" FROM table_43664 WHERE "Pick" > '63' AND "Position" = 'cornerback' |
### Instruction:
CREATE TABLE table_62854 (
"Nat." text,
"Name" text,
"Moving from" text,
"Type" text,
"Transfer window" text,
"Ends" real,
"Transfer fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Ends have a Name of zambrano?
#... | SELECT MAX("Ends") FROM table_62854 WHERE "Name" = 'zambrano' |
### Instruction:
CREATE TABLE table_204_872 (
id number,
"name" text,
"completed" text,
"architect" text,
"location" text,
"year of listing & ref(s)" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which two buildings were listed before 1974 ?
... | SELECT "name" FROM table_204_872 WHERE "year of listing & ref(s)" < 1974 |
### Instruction:
CREATE TABLE table_7256 (
"Round" real,
"Pick" real,
"Name" text,
"Position" text,
"School/College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Average round for rodney harrison p before 145?
### Response:
| SELECT AVG("Round") FROM table_7256 WHERE "Name" = 'rodney harrison p' AND "Pick" < '145' |
### Instruction:
CREATE TABLE table_31542 (
"Pick" text,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the NHL team for ryan johnson
### R... | SELECT "NHL team" FROM table_31542 WHERE "Player" = 'ryan johnson' |
### Instruction:
CREATE TABLE table_200_32 (
id number,
"year" number,
"w" number,
"l" number,
"t" number,
"finish" text,
"coach" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many years did cooney checkaye coach the muncie flyers ?
#... | SELECT COUNT("year") FROM table_200_32 WHERE "coach" = 'cooney checkaye' |
### Instruction:
CREATE TABLE table_80423 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score for the game that has an attendance of 5,298?
###... | SELECT "Score" FROM table_80423 WHERE "Attendance" = '5,298' |
### Instruction:
CREATE TABLE table_name_70 (
motion_picture VARCHAR,
award VARCHAR,
actor VARCHAR,
year VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Motion Picture after 2003 had Viola Davis nominated for Best Supporting A... | SELECT motion_picture FROM table_name_70 WHERE year > 2003 AND result = "nominated" AND actor = "viola davis" AND award = "best supporting actress" |
### Instruction:
CREATE TABLE table_42242 (
"City" text,
"Province" text,
"Country" text,
"IATA" text,
"Airport" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which airport is in Xinjiang province in the city Kuqa?
### Response:
| SELECT "Airport" FROM table_42242 WHERE "Province" = 'xinjiang' AND "City" = 'kuqa' |
### Instruction:
CREATE TABLE publication (
Publication_ID int,
Book_ID int,
Publisher text,
Publication_Date text,
Price real
)
CREATE TABLE book (
Book_ID int,
Title text,
Issues real,
Writer text
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT Publication_Date, COUNT(Publication_Date) FROM publication GROUP BY Publication_Date |
### Instruction:
CREATE TABLE table_19529 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which title had the production code... | SELECT "Title" FROM table_19529 WHERE "Production code" = '1ACX04' |
### Instruction:
CREATE TABLE table_58556 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the bronze medal count of the team that finished with 47 total med... | SELECT AVG("Bronze") FROM table_58556 WHERE "Total" = '47' |
### Instruction:
CREATE TABLE table_25395 (
"Team" text,
"SEC Wins" real,
"SEC Losses" real,
"Percentage" text,
"Home Record" text,
"Road Record" text,
"Overall Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the percentage for o... | SELECT "Percentage" FROM table_25395 WHERE "Team" = 'Ole Miss' |
### Instruction:
CREATE TABLE table_332 (
"Player" text,
"No.(s)" text,
"Height in Ft." text,
"Position" text,
"Years for Rockets" text,
"School/Club Team/Country" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the player name who came ... | SELECT "Player" FROM table_332 WHERE "School/Club Team/Country" = 'Australia' |
### Instruction:
CREATE TABLE table_58211 (
"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 is the NBA draft result of the player from Dunbar High Scho... | SELECT "NBA Draft" FROM table_58211 WHERE "School" = 'dunbar high school' |
### Instruction:
CREATE TABLE table_18568 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What party is incumbent virgil chapman from?
### Resp... | SELECT "Party" FROM table_18568 WHERE "Incumbent" = 'Virgil Chapman' |
### Instruction:
CREATE TABLE table_15394 (
"Operator" text,
"Shipyard" text,
"Project" text,
"Commissioned" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the commissioned with a 636.3 project, and ordered status?
### Respo... | SELECT "Commissioned" FROM table_15394 WHERE "Project" = '636.3' AND "Status" = 'ordered' |
### Instruction:
CREATE TABLE table_name_83 (
draws INTEGER,
losses VARCHAR,
wins VARCHAR,
wimmera_fl VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Draws have Wins larger than 7, and a Wimmera FL of nhill, and Losses larger than 8?
### Re... | SELECT SUM(draws) FROM table_name_83 WHERE wins > 7 AND wimmera_fl = "nhill" AND losses > 8 |
### Instruction:
CREATE TABLE table_67619 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of points for chassis of bmw t269 (f2)
### Response:
| SELECT COUNT("Points") FROM table_67619 WHERE "Chassis" = 'bmw t269 (f2)' |
### Instruction:
CREATE TABLE table_25971 (
"Rank" real,
"Runs" real,
"Player" text,
"Matches" real,
"Innings" real,
"Not Out" real,
"Average" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the innings is 68, what is the average?
### Re... | SELECT "Average" FROM table_25971 WHERE "Innings" = '68' |
### Instruction:
CREATE TABLE table_14752049_6 (
country VARCHAR,
change__2011_to_2012_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the change (2011 to 2012) is +13.4% what is the country?
### Response:
| SELECT country FROM table_14752049_6 WHERE change__2011_to_2012_ = "+13.4%" |
### Instruction:
CREATE TABLE table_685 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which district is the incumbent Marcia C. Kaptur?
#... | SELECT "District" FROM table_685 WHERE "Incumbent" = 'Marcia C. Kaptur' |
### Instruction:
CREATE TABLE table_1835 (
"P" real,
"Player" text,
"Position" text,
"SPL" real,
"League Cup" real,
"Scottish Cup" real,
"UEFA Champions League" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the hig... | SELECT MAX("UEFA Champions League") FROM table_1835 |
### Instruction:
CREATE TABLE table_66803 (
"Rank" real,
"Airline" text,
"Country" text,
"Destination number" real,
"Remarks" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the remarks for a destination under 19 and rank less than 5?
###... | SELECT "Remarks" FROM table_66803 WHERE "Destination number" < '19' AND "Rank" < '5' |
### Instruction:
CREATE TABLE table_name_26 (
tournament VARCHAR,
date VARCHAR,
score_in_the_final VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What tournament took place after 1986 and had a final score of 7 6, 3 6, 6 2?
### Response:
| SELECT tournament FROM table_name_26 WHERE date > 1986 AND score_in_the_final = "7–6, 3–6, 6–2" |
### Instruction:
CREATE TABLE table_204_345 (
id number,
"discipline" text,
"amanda" number,
"bernie" number,
"javine h" number,
"julia" number,
"michelle" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the last discipline listed o... | SELECT "discipline" FROM table_204_345 ORDER BY id DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_204_429 (
id number,
"battle" text,
"location" text,
"date(s)" text,
"engagement remarks" text,
"victor" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the total amount of m -lrb- mexican -rrb- victor... | SELECT COUNT(*) FROM table_204_429 WHERE "victor" = 'm' |
### Instruction:
CREATE TABLE table_203_660 (
id number,
"county" text,
"obama%" text,
"obama#" number,
"mccain%" text,
"mccain#" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the total listed for camden county ?
... | SELECT "total" FROM table_203_660 WHERE "county" = 'camden' |
### Instruction:
CREATE TABLE table_51567 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who constructed the car with a grid over 19 that retired due to suspension?
### ... | SELECT "Constructor" FROM table_51567 WHERE "Grid" > '19' AND "Time/Retired" = 'suspension' |
### Instruction:
CREATE TABLE table_18219 (
"District" text,
"Incumbent" text,
"Party" text,
"Elected" real,
"Status" text,
"Opponent" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was incumbent Martin Lancaster elected?
### Respons... | SELECT MIN("Elected") FROM table_18219 WHERE "Incumbent" = 'Martin Lancaster' |
### Instruction:
CREATE TABLE table_9040 (
"Plan" text,
"Downstream" text,
"Upstream" text,
"Up:Down Ratio" real,
"Monthly Cap" text,
"Price" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the upstream with a 150 gb monthly cap?
### Re... | SELECT "Upstream" FROM table_9040 WHERE "Monthly Cap" = '150 gb' |
### Instruction:
CREATE TABLE table_name_90 (
serial_no VARCHAR,
entered_service VARCHAR,
owner VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Serial number of the Locomotive that Entered Service in November 1984 and has an Owner of Chicago F... | SELECT serial_no FROM table_name_90 WHERE entered_service = "november 1984" AND owner = "chicago freight car leasing australia" |
### Instruction:
CREATE TABLE table_204_174 (
id number,
"rank" number,
"name" text,
"nationality" text,
"result" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which person medaled , but was not from south korea ?
### Response... | SELECT "name" FROM table_204_174 WHERE "rank" IS NULL AND "nationality" <> 'south korea' |
### Instruction:
CREATE TABLE table_13719788_1 (
year__ceremony_ VARCHAR,
film_title_used_in_nomination VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many years have a film that uses the title 'Nagabonar' in the nomination?
### Response:
| SELECT COUNT(year__ceremony_) FROM table_13719788_1 WHERE film_title_used_in_nomination = "Nagabonar" |
### Instruction:
CREATE TABLE table_19742 (
"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.
-- How many games were played against the Chicago... | SELECT COUNT("Record") FROM table_19742 WHERE "Opponent" = 'Chicago Bears' |
### Instruction:
CREATE TABLE table_75996 (
"Season" text,
"Coach" text,
"Overall" text,
"Conference" text,
"Big Ten" text,
"National" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Season with a Big Ten that is 2nd (386)?
### Resp... | SELECT "Season" FROM table_75996 WHERE "Big Ten" = '2nd (386)' |
### Instruction:
CREATE TABLE table_name_52 (
year VARCHAR,
meeting VARCHAR,
venue VARCHAR,
extra VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year has a venue of algiers, algeria, extra smaller than 8.03, and a Meeting of all africa games?
... | SELECT year FROM table_name_52 WHERE venue = "algiers, algeria" AND extra < 8.03 AND meeting = "all africa games" |
### Instruction:
CREATE TABLE table_204_680 (
id number,
"released" text,
"title" text,
"artist" text,
"format" text,
"language" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the first live album that was released in 2011 ?
### Respo... | SELECT "title" FROM table_204_680 WHERE "format" = 'live album' ORDER BY "released" LIMIT 1 |
### Instruction:
CREATE TABLE table_76222 (
"Date" text,
"Opponent" text,
"Score" text,
"Leading Scorer" text,
"Attendance" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the leading scorer of the wnba finals series?
### ... | SELECT "Leading Scorer" FROM table_76222 WHERE "Series" = 'wnba finals' |
### Instruction:
CREATE TABLE table_32856 (
"Sanctioning" text,
"Race Name" text,
"Circuit" text,
"City/Location" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where did the Gould Rex Mays Classic 150 occur?
### Response:
| SELECT "City/Location" FROM table_32856 WHERE "Race Name" = 'gould rex mays classic 150' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.