instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_30890 (
"Number" text,
"Serial Number" real,
"Into Service" text,
"Withdrawn" text,
"Scrapped" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the withdrawn for example and serial number 579
### Response:
| SELECT "Withdrawn" FROM table_30890 WHERE "Into Service" = 'Example' AND "Serial Number" = '579' |
### Instruction:
CREATE TABLE table_61433 (
"Artist" text,
"Album" text,
"Country" text,
"Year" real,
"Catalog #" text,
"Format" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the artist with catalog number ZK 34354?
### Response:
| SELECT "Artist" FROM table_61433 WHERE "Catalog #" = 'zk 34354' |
### Instruction:
CREATE TABLE table_29635868_1 (
origin VARCHAR,
title_ VARCHAR,
_link_to_episode_on_youtube VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many origins have titles of Samoan cricket bats?
### Response:
| SELECT COUNT(origin) FROM table_29635868_1 WHERE title_ & _link_to_episode_on_youtube = "Samoan Cricket Bats" |
### Instruction:
CREATE TABLE table_17959 (
"Year" real,
"Points" text,
"Rebounds" text,
"Assists" text,
"Steals" text,
"Blocks" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who are the blockers where points are scored by Zach Randolph (24)?
... | SELECT "Blocks" FROM table_17959 WHERE "Points" = 'Zach Randolph (24)' |
### Instruction:
CREATE TABLE table_38746 (
"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.
-- What College team has 8 rounds?
### Response:
| SELECT "College/Junior/Club Team (League)" FROM table_38746 WHERE "Round" = '8' |
### Instruction:
CREATE TABLE table_29838 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT MIN("Game") FROM table_29838 |
### Instruction:
CREATE TABLE table_2633 (
"District" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date successor seated" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many date of successor seated is new jersey 2nd in the... | SELECT COUNT("Date successor seated") FROM table_2633 WHERE "District" = 'New Jersey 2nd' |
### Instruction:
CREATE TABLE table_7375 (
"Cartridge" text,
"Bullet weight" text,
"Muzzle velocity" text,
"Muzzle energy" text,
"Source" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Source, when Cartridge is .375 remington ultra magnum?
... | SELECT "Source" FROM table_7375 WHERE "Cartridge" = '.375 remington ultra magnum' |
### Instruction:
CREATE TABLE table_name_25 (
year_completed INTEGER,
dam_type VARCHAR,
dam_constructed VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Year completed has a Dam type of earthfill embankment, and a Dam constructed of khancoban dam?
... | SELECT MAX(year_completed) FROM table_name_25 WHERE dam_type = "earthfill embankment" AND dam_constructed = "khancoban dam" |
### Instruction:
CREATE TABLE table_70591 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the Opponent that has the Series of 4-2?
### Respon... | SELECT "Opponent" FROM table_70591 WHERE "Series" = '4-2' |
### Instruction:
CREATE TABLE table_name_25 (
swimsuit INTEGER,
evening_gown VARCHAR,
interview VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number for swimsuit when the evening gown number is larger than 9.257 and the interview number is 9... | SELECT SUM(swimsuit) FROM table_name_25 WHERE evening_gown > 9.257 AND interview = 9.357 |
### Instruction:
CREATE TABLE table_2624098_1 (
latin_day_name_meaning VARCHAR,
glossed_from_latin_day_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the meaning of the latin day name 'dies saturni'?
### Response:
| SELECT latin_day_name_meaning FROM table_2624098_1 WHERE glossed_from_latin_day_name = "Dies Saturni" |
### Instruction:
CREATE TABLE table_28910 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result in the district represented by Thom... | SELECT "Result" FROM table_28910 WHERE "Incumbent" = 'Thomas R. Gold' |
### Instruction:
CREATE TABLE table_20863 (
"Player" text,
"No." real,
"Nationality" text,
"Position" text,
"Years for Grizzlies" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who are the players that have attended Stan... | SELECT "Player" FROM table_20863 WHERE "School/Club Team" = 'Stanford' |
### Instruction:
CREATE TABLE table_15481 (
"Institution" text,
"Location" text,
"Founded" real,
"Type" text,
"Joined" real,
"Nickname" text,
"Colors" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did Northeastern University join?
##... | SELECT SUM("Joined") FROM table_15481 WHERE "Institution" = 'northeastern university' |
### Instruction:
CREATE TABLE table_72576 (
"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.
-- Name the player for chicago black hawks
#... | SELECT "Player" FROM table_72576 WHERE "NHL team" = 'Chicago Black Hawks' |
### Instruction:
CREATE TABLE table_51577 (
"Club" text,
"Leagues" text,
"Venue" text,
"Location" text,
"Capacity" real,
"Established" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the location of a1 women's - handball?
### Response:
| SELECT "Location" FROM table_51577 WHERE "Leagues" = 'a1 women''s - handball' |
### Instruction:
CREATE TABLE table_204_523 (
id number,
"week" number,
"date" text,
"opponent" text,
"score" text,
"result" text,
"attendance" number,
"record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times did a game res... | SELECT COUNT(*) FROM table_204_523 WHERE "result" = 'loss' |
### Instruction:
CREATE TABLE table_26283 (
"Episode" text,
"Director" text,
"Writer" text,
"Original air date" text,
"Ratings (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the original air date if the ratings is 1.92 million?
... | SELECT "Original air date" FROM table_26283 WHERE "Ratings (millions)" = '1.92' |
### Instruction:
CREATE TABLE table_42972 (
"City of License /Market" text,
"Station" text,
"Channel TV ( DT )" text,
"Years owned" text,
"Current affiliation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the city containing the KDKA-TV st... | SELECT "City of License /Market" FROM table_42972 WHERE "Station" = 'kdka-tv' |
### Instruction:
CREATE TABLE table_name_10 (
attendance INTEGER,
scorers VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the average Attendance that has the Scorers of steven, johnston, walters, mccoist, i.ferguson?
### Response:
| SELECT AVG(attendance) FROM table_name_10 WHERE scorers = "steven, johnston, walters, mccoist, i.ferguson" |
### Instruction:
CREATE TABLE table_68392 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the venue when the date is September 24, 1980?
### Response:
| SELECT "Venue" FROM table_68392 WHERE "Date" = 'september 24, 1980' |
### Instruction:
CREATE TABLE table_15668 (
"Film" text,
"Director(s)" text,
"Producer(s)" text,
"Recipient" text,
"Date" text,
"Award" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the film where Hannah Gal was the director?
### Resp... | SELECT "Film" FROM table_15668 WHERE "Director(s)" = 'hannah gal' |
### Instruction:
CREATE TABLE table_41581 (
"Name" text,
"Japanese" text,
"Date of designation" text,
"Date of reclassification" text,
"Region" text,
"Prefecture" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What kind of Japanese has a Region ... | SELECT "Japanese" FROM table_41581 WHERE "Region" = 'tōhoku' |
### Instruction:
CREATE TABLE table_67038 (
"Year" real,
"Chassis" text,
"Engine(s)" text,
"Tyres" text,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What tyres are associated with a year after 1974 and 5 points?
### Response:
| SELECT "Tyres" FROM table_67038 WHERE "Year" > '1974' AND "Points" = '5' |
### Instruction:
CREATE TABLE table_name_6 (
rank INTEGER,
heat VARCHAR,
nationality VARCHAR,
time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the nationality is united states, and the time is 58.06, and the heat is larger than 5 what is the ... | SELECT MIN(rank) FROM table_name_6 WHERE nationality = "united states" AND time = "58.06" AND heat > 5 |
### Instruction:
CREATE TABLE table_75054 (
"Rank" real,
"Airport" text,
"Code (IATA/ICAO)" text,
"Total Cargo (Metric Tonnes)" real,
"% Change" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the code for rank 10?
### Response:
| SELECT "Code (IATA/ICAO)" FROM table_75054 WHERE "Rank" = '10' |
### Instruction:
CREATE TABLE table_30340 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Incoming manager" text,
"Date of appointment" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many managers... | SELECT COUNT("Outgoing manager") FROM table_30340 WHERE "Team" = 'Sunshine Stars' |
### Instruction:
CREATE TABLE table_2742 (
"Season" text,
"Premiere" text,
"Finale" text,
"Reunion" text,
"Winners" text,
"Runners up" text,
"Number of contestants" real,
"Number of episodes" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-... | SELECT MAX("Number of contestants") FROM table_2742 |
### Instruction:
CREATE TABLE table_203_325 (
id number,
"year" number,
"title" text,
"(english)" text,
"ifpi israel certification" text,
"label" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many albums did david d'or release with the hed ... | SELECT COUNT("title") FROM table_203_325 WHERE "label" = 'hed arzi' |
### Instruction:
CREATE TABLE table_13003460_1 (
english_translation VARCHAR,
the_icelandic_of_the_glossary VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the english translation of giefdu mier socka bond
### Response:
| SELECT english_translation FROM table_13003460_1 WHERE the_icelandic_of_the_glossary = "giefdu mier socka bond" |
### Instruction:
CREATE TABLE table_23283 (
"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.
-- When chris carney is the incumbent what are the results... | SELECT "Result" FROM table_23283 WHERE "Incumbent" = 'Chris Carney' |
### Instruction:
CREATE TABLE table_name_37 (
company VARCHAR,
incorporated_in VARCHAR,
type VARCHAR,
principal_activities VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which company's type is joint venture, and has principle activities listed as Ca... | SELECT company FROM table_name_37 WHERE type = "joint venture" AND principal_activities = "cargo airline" AND incorporated_in = "china" |
### Instruction:
CREATE TABLE table_44664 (
"Rider" text,
"Manufacturer" text,
"Laps" text,
"Time/Retired" text,
"Grid" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the rider for Honda with a grid of 25?
### Response:
| SELECT "Rider" FROM table_44664 WHERE "Manufacturer" = 'honda' AND "Grid" = '25' |
### Instruction:
CREATE TABLE table_12934 (
"Percentage Range" text,
"Grade" text,
"Points for Higher" real,
"Points for Ordinary" real,
"Points for Foundation" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- With 10 as the points for foundation, wha... | SELECT MAX("Points for Ordinary") FROM table_12934 WHERE "Points for Foundation" = '10' |
### Instruction:
CREATE TABLE table_15722 (
"Rank" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the lowest rank for the netherlands in lane less than 4?
### Response:
| SELECT MIN("Rank") FROM table_15722 WHERE "Nationality" = 'netherlands' AND "Lane" < '4' |
### Instruction:
CREATE TABLE table_name_37 (
france VARCHAR,
_percentage_people_under_18__2005_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE FRANCE WITH PEOPLE UNDER 18 OF SUB-SAHARAN AFRICA?
### Response:
| SELECT france FROM table_name_37 WHERE _percentage_people_under_18__2005_ = "sub-saharan africa" |
### Instruction:
CREATE TABLE table_30769 (
"Branding" text,
"Callsign" text,
"Frequency" text,
"Power (kW)" text,
"Station Type" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where are the broadcasting companys with the callsi... | SELECT "Location" FROM table_30769 WHERE "Callsign" = 'DWRH' |
### Instruction:
CREATE TABLE table_203_671 (
id number,
"name" text,
"rank" text,
"age" number,
"years until mandatory retirement" text,
"appointed by" text,
"year appointed" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many associa... | SELECT COUNT(*) FROM table_203_671 WHERE "rank" = 'associate justice' |
### Instruction:
CREATE TABLE table_name_43 (
heat INTEGER,
lane VARCHAR,
country VARCHAR,
mark VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest heat for the United states with a mark of 51.85 pb and lane higher than 6?
### Respons... | SELECT MIN(heat) FROM table_name_43 WHERE country = "united states" AND mark = "51.85 pb" AND lane > 6 |
### Instruction:
CREATE TABLE table_7866 (
"Year" real,
"Country" text,
"Champion" text,
"Total score" text,
"To Par [a ]" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the champion was Gay Brewer Category:Articles with hCards what was the tot... | SELECT "Total score" FROM table_7866 WHERE "Champion" = 'gay brewer category:articles with hcards' |
### Instruction:
CREATE TABLE table_204_501 (
id number,
"institution" text,
"location" text,
"nickname" text,
"founded" number,
"type" text,
"enrollment" number,
"joined" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the firs... | SELECT "institution" FROM table_204_501 WHERE id = 1 |
### Instruction:
CREATE TABLE table_44338 (
"Team" text,
"Tries for" text,
"Tries against" text,
"Try diff" text,
"Points for" text,
"Points against" text,
"Points diff" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team has a 118 Poin... | SELECT "Team" FROM table_44338 WHERE "Points for" = '118' |
### Instruction:
CREATE TABLE table_name_42 (
average INTEGER,
evening_gown VARCHAR,
interview VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the lowest average for interview more than 9.57 and delaware and evening gown more tha... | SELECT MIN(average) FROM table_name_42 WHERE interview > 9.57 AND country = "delaware" AND evening_gown > 9.77 |
### Instruction:
CREATE TABLE table_62355 (
"Event" text,
"Time" text,
"Nationality" text,
"Date" text,
"Meet" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the nationality of the event with a 1:51.51 time?
### Respon... | SELECT "Nationality" FROM table_62355 WHERE "Time" = '1:51.51' |
### Instruction:
CREATE TABLE table_12834315_8 (
barrel_length VARCHAR,
rear_sight VARCHAR,
barrel_profile VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many inches is the barrel length when the rear sight is weaver and the barrel profile is A2?
#... | SELECT barrel_length FROM table_12834315_8 WHERE rear_sight = "Weaver" AND barrel_profile = "A2" |
### Instruction:
CREATE TABLE table_name_76 (
cuts_made INTEGER,
events VARCHAR,
wins VARCHAR,
top_25 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How man cuts were there of players who had 0 wins but had 1 player in the top 25 with more than 4 eve... | SELECT SUM(cuts_made) FROM table_name_76 WHERE wins = 0 AND top_25 = 1 AND events > 4 |
### Instruction:
CREATE TABLE table_203_501 (
id number,
"title" text,
"genre" text,
"sub\u00addivisions" text,
"libretto" text,
"premiere date" text,
"place, theatre" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the year of the l... | SELECT MAX("premiere date") FROM table_203_501 |
### Instruction:
CREATE TABLE table_11874 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what venue was the 1978 FIFA world cup qualification played in?
### Response:
| SELECT "Venue" FROM table_11874 WHERE "Competition" = '1978 fifa world cup qualification' |
### Instruction:
CREATE TABLE table_19949 (
"Competition" text,
"Played" real,
"Derby County" real,
"Draw" real,
"Nottingham Forest" real,
"Derby County Goals" real,
"Nottingham Forest Goals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Na... | SELECT MIN("Derby County Goals") FROM table_19949 |
### Instruction:
CREATE TABLE table_7189 (
"Episode Number" real,
"Air Date" text,
"Guest Host" text,
"Musical Guest (Song performed)" text,
"Coat Of Cash Wearing Celebrity" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the air date of epi... | SELECT "Air Date" FROM table_7189 WHERE "Episode Number" = '5' |
### Instruction:
CREATE TABLE table_name_59 (
year INTEGER,
rank VARCHAR,
accolade VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest Year, when Rank is less than 28, and when Accolade is 'The 100 greatest metal albums of the decade'?
#... | SELECT MAX(year) FROM table_name_59 WHERE rank < 28 AND accolade = "the 100 greatest metal albums of the decade" |
### Instruction:
CREATE TABLE table_name_62 (
voter_turnout INTEGER,
byut VARCHAR,
ou_psd VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lower turnout that has a byut of 50.7 and an ou psd smaller than 36.8?
### Response:
| SELECT MIN(voter_turnout) FROM table_name_62 WHERE byut = 50.7 AND ou_psd < 36.8 |
### Instruction:
CREATE TABLE table_53630 (
"Rank" real,
"Name" text,
"Team" text,
"Games" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the least amount of games for Luis scola with a rank greater than 1?
### Response:
| SELECT MIN("Games") FROM table_53630 WHERE "Rank" > '1' AND "Name" = 'luis scola' |
### Instruction:
CREATE TABLE table_204_638 (
id number,
"year" number,
"tournament" text,
"surface" text,
"round" text,
"winner" text,
"score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the last year where connors won ?
### R... | SELECT MAX("year") FROM table_204_638 WHERE "winner" = 'jimmy connors' |
### Instruction:
CREATE TABLE DEPARTMENT (
DName VARCHAR,
DNO VARCHAR
)
CREATE TABLE MINOR_IN (
DNO VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the name of the department that has the biggest number of students minored in?
### Response:
| SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_18096 (
"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.
-- Who were the candidates when ed markey was the incumben... | SELECT "Candidates" FROM table_18096 WHERE "Incumbent" = 'Ed Markey' |
### Instruction:
CREATE TABLE table_name_2 (
date INTEGER,
label VARCHAR,
catalog VARCHAR,
format VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the earliest date for the album that had a catalog number of 3645, was formatted as a cd and was ... | SELECT MIN(date) FROM table_name_2 WHERE catalog = "3645" AND format = "cd" AND label = "luaka bop" |
### Instruction:
CREATE TABLE table_24043 (
"Episode" text,
"Broadcast date" text,
"Run time" text,
"Viewers (in millions)" text,
"Archive" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many millions viewers watched the episode that ran 23:25?
... | SELECT "Viewers (in millions)" FROM table_24043 WHERE "Run time" = '23:25' |
### Instruction:
CREATE TABLE table_32025 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When there was a draw, what was th... | SELECT "Time" FROM table_32025 WHERE "Res." = 'draw' |
### Instruction:
CREATE TABLE table_18540 (
"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 is the number of candidates for pennsylvania 3
#... | SELECT COUNT("Candidates") FROM table_18540 WHERE "District" = 'Pennsylvania 3' |
### Instruction:
CREATE TABLE table_41832 (
"Year" text,
"Team" text,
"Comp" text,
"Rate" text,
"RAtt" text,
"RYds" text,
"RAvg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the RAtt in the year 1988?
### Response:
| SELECT "RAtt" FROM table_41832 WHERE "Year" = '1988' |
### Instruction:
CREATE TABLE table_32288 (
"Date" text,
"Time" text,
"Epicenter" text,
"Magnitude" text,
"Fatalities" text,
"Name" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Name has a Time of 01:17:01?
### Response:
| SELECT "Name" FROM table_32288 WHERE "Time" = '01:17:01' |
### Instruction:
CREATE TABLE table_20398823_1 (
podiums INTEGER,
points VARCHAR,
wins VARCHAR,
season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the least podiums for 0 wins and 2005 season for 321 points
### Response:
| SELECT MIN(podiums) FROM table_20398823_1 WHERE wins = 0 AND season = 2005 AND points = "321" |
### Instruction:
CREATE TABLE table_1710426_2 (
best_10_year_period VARCHAR,
best_15_year_period VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which people had the best 10-year period when Capablanca had the best 15-year period?
### Response:
| SELECT best_10_year_period FROM table_1710426_2 WHERE best_15_year_period = "Capablanca" |
### Instruction:
CREATE TABLE table_name_2 (
gold INTEGER,
silver VARCHAR,
sport VARCHAR,
total VARCHAR,
bronze VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- I want to know the average Gold for total smaller 12 and bronze less than 1 and wushu w... | SELECT AVG(gold) FROM table_name_2 WHERE total < 12 AND bronze < 1 AND sport = "wushu" AND silver > 3 |
### Instruction:
CREATE TABLE table_name_39 (
poles INTEGER,
points VARCHAR,
class VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Poles have a Class of 125cc, and a Team of matteoni racing team, and Points larger than 3?
### ... | SELECT SUM(poles) FROM table_name_39 WHERE class = "125cc" AND team = "matteoni racing team" AND points > 3 |
### Instruction:
CREATE TABLE table_51538 (
"Pick" real,
"Player" text,
"Country of origin*" text,
"PBA team" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which pick was the lowest from Manila College in Philippines?
### Response... | SELECT MIN("Pick") FROM table_51538 WHERE "Country of origin*" = 'philippines' AND "College" = 'manila' |
### Instruction:
CREATE TABLE table_66499 (
"Draw" real,
"Artist" text,
"Song" text,
"Televote/SMS" text,
"Place" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the place when the televote/sms is 2.39%?
### Response:
| SELECT SUM("Place") FROM table_66499 WHERE "Televote/SMS" = '2.39%' |
### Instruction:
CREATE TABLE table_38790 (
"Round" text,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team (League)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what Round is John Parco a Center?
### Response:
| SELECT "Round" FROM table_38790 WHERE "Position" = 'center' AND "Player" = 'john parco' |
### Instruction:
CREATE TABLE table_27368 (
"Pick #" real,
"NFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most pick number for guard and kansas city chiefs
### Response:
| SELECT MAX("Pick #") FROM table_27368 WHERE "Position" = 'Guard' AND "NFL Team" = 'Kansas City Chiefs' |
### Instruction:
CREATE TABLE table_62304 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the 1st leg for Team 2, Slovan Liberec?
### Response:
| SELECT "1st leg" FROM table_62304 WHERE "Team 2" = 'slovan liberec' |
### Instruction:
CREATE TABLE table_17919342_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 was the film The Blossoming of Maximo Oliveros entered?
### Response:
| SELECT COUNT(year__ceremony_) FROM table_17919342_1 WHERE film_title_used_in_nomination = "The Blossoming of Maximo Oliveros" |
### Instruction:
CREATE TABLE table_78933 (
"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.
-- What was the aggregate score that had a 1-2 second leg score?
### ... | SELECT "Aggregate" FROM table_78933 WHERE "2nd leg" = '1-2' |
### Instruction:
CREATE TABLE table_22913 (
"Fiscal year" real,
"2-car sets" real,
"3-car sets" real,
"4-car sets" real,
"6-car sets" real,
"8-car sets" real,
"Total vehicles" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most 3 ca... | SELECT MAX("3-car sets") FROM table_22913 |
### Instruction:
CREATE TABLE table_52218 (
"Year" text,
"Builder" text,
"Motors" text,
"Trailers" text,
"Control Trailers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- I want the trailers for 1931 and builder of mccw
### Response:
| SELECT "Trailers" FROM table_52218 WHERE "Year" = '1931' AND "Builder" = 'mccw' |
### Instruction:
CREATE TABLE Plays_games (
gameid VARCHAR
)
CREATE TABLE Video_games (
gameid VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show all game names played by at least 1000 hours.
### Response:
| SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid HAVING SUM(hours_played) >= 1000 |
### Instruction:
CREATE TABLE table_76393 (
"Year (Ceremony)" text,
"Film title used in nomination" text,
"Original title" text,
"Language(s)" text,
"Director" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was Zona Sur ... | SELECT "Year (Ceremony)" FROM table_76393 WHERE "Original title" = 'zona sur' |
### Instruction:
CREATE TABLE table_31265 (
"Season" real,
"Apocalypstix" text,
"Denim Demons" text,
"Sake Tuyas" text,
"Toxic Shocks" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many seasons did Apocalypstix place 2nd?
### Response:
| SELECT COUNT("Season") FROM table_31265 WHERE "Apocalypstix" = '2nd' |
### Instruction:
CREATE TABLE table_20194 (
"Player" text,
"No." real,
"Nationality" text,
"Position" text,
"Years in Orlando" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of players for louisiana state... | SELECT COUNT("Player") FROM table_20194 WHERE "School/Club Team" = 'Louisiana State' |
### Instruction:
CREATE TABLE table_29132 (
"Name" text,
"Position" text,
"Height" text,
"Weight" real,
"Age" real,
"Home Town" text,
"Team/School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the player from purcell, o... | SELECT "Name" FROM table_29132 WHERE "Home Town" = 'Purcell, OK' |
### Instruction:
CREATE TABLE entrepreneur (
entrepreneur_id number,
people_id number,
company text,
money_requested number,
investor text
)
CREATE TABLE people (
people_id number,
name text,
height number,
weight number,
date_of_birth text
)
-- Using valid SQLite, answer the ... | SELECT company, investor FROM entrepreneur |
### Instruction:
CREATE TABLE table_77584 (
"Rank" real,
"Rider" text,
"Team" text,
"Speed" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the rank of the rider with time of 1:41.40.55?
### Response:
| SELECT SUM("Rank") FROM table_77584 WHERE "Time" = '1:41.40.55' |
### Instruction:
CREATE TABLE table_44897 (
"Team" text,
"Coach" text,
"Home Ground" text,
"Location" text,
"Founded" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average year that the club located in enfield was founded with an unknow... | SELECT AVG("Founded") FROM table_44897 WHERE "Coach" = 'unknown' AND "Location" = 'enfield' |
### Instruction:
CREATE TABLE table_52628 (
"Week" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Time" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- I want to know the time which has attendance of 66,772
### Resp... | SELECT "Time" FROM table_52628 WHERE "Attendance" = '66,772' |
### Instruction:
CREATE TABLE table_12078626_1 (
date_of_completion VARCHAR,
deadline_for_completion VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the date of completion where deadline for completion is september 30, 2007
### Response:
| SELECT date_of_completion FROM table_12078626_1 WHERE deadline_for_completion = "September 30, 2007" |
### Instruction:
CREATE TABLE table_203_598 (
id number,
"date" text,
"time" text,
"opponent" text,
"site" text,
"tv" text,
"result" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which date had the most attendance ?... | SELECT "date" FROM table_203_598 ORDER BY "attendance" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_204_215 (
id number,
"airline" text,
"destination(s)" text,
"aircraft scheduled" text,
"service date(s)" text,
"comments" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many destinations does air florida h... | SELECT "destination(s)" FROM table_204_215 WHERE "airline" = 'air florida' |
### Instruction:
CREATE TABLE table_42126 (
"Year" real,
"Country" text,
"Team" text,
"Individual" text,
"Location" text,
"Runners-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the runners-up when the individual winner was Tiger Wo... | SELECT "Runners-up" FROM table_42126 WHERE "Individual" = 'tiger woods' |
### Instruction:
CREATE TABLE table_44327 (
"Round" real,
"Pick" real,
"Player" text,
"Nationality" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the player that has a round greater than 2 and a pick bigger than 83?
### Res... | SELECT "Player" FROM table_44327 WHERE "Round" > '2' AND "Pick" > '83' |
### Instruction:
CREATE TABLE table_49229 (
"Class" text,
"Part 1" text,
"Part 2" text,
"Part 3" text,
"Part 4" text,
"Verb meaning" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which part 2 has a verb that means to leap?
### Response:
| SELECT "Part 2" FROM table_49229 WHERE "Verb meaning" = 'to leap' |
### Instruction:
CREATE TABLE table_7365 (
"Vol. #" real,
"Title" text,
"Material collected" text,
"Pages" real,
"ISBN" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many pages does the ISBN 1-40122-328-1 have?
### Response:
| SELECT SUM("Pages") FROM table_7365 WHERE "ISBN" = '1-40122-328-1' |
### Instruction:
CREATE TABLE table_203_793 (
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 was the date of the last game... | SELECT "date" FROM table_203_793 ORDER BY "date" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_204_576 (
id number,
"year" number,
"best" text,
"location" text,
"date" text,
"world rank" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who had the best time ostrava or berlin ?
### Response:
| SELECT "location" FROM table_204_576 WHERE "location" IN ('ostrava', 'berlin') ORDER BY "best" LIMIT 1 |
### Instruction:
CREATE TABLE table_29094 (
"Series #" real,
"Episode #" real,
"Title" text,
"Director" text,
"Writer" text,
"Original Airdate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The episode with the title 'Written in Dust' is what e... | SELECT "Episode #" FROM table_29094 WHERE "Title" = 'Written in Dust' |
### Instruction:
CREATE TABLE table_9393 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Attendance" real,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What hame has points larger th... | SELECT SUM("Game") FROM table_9393 WHERE "Points" > '81' |
### Instruction:
CREATE TABLE table_61780 (
"Year" real,
"Award ceremony" text,
"Role" text,
"Production" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Award Ceremony in 2009 has a Role of Glinda?
### Response:
| SELECT "Award ceremony" FROM table_61780 WHERE "Role" = 'glinda' AND "Year" = '2009' |
### Instruction:
CREATE TABLE table_name_31 (
prize VARCHAR,
beer_name VARCHAR,
year VARCHAR,
competition VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What prize did good old boy win in 2002 at the camra london and south east regional competition?
... | SELECT prize FROM table_name_31 WHERE year > 2002 AND competition = "camra london and south east regional competition" AND beer_name = "good old boy" |
### Instruction:
CREATE TABLE table_203_340 (
id number,
"rank" number,
"airport" text,
"passengers handled" number,
"% change 2011 / 12" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which airport has the least amount of passengers going through... | SELECT "airport" FROM table_203_340 ORDER BY "passengers handled" LIMIT 1 |
### Instruction:
CREATE TABLE table_2093 (
"Season" text,
"Final Venue" text,
"Champion" text,
"Result" text,
"Finalist" text,
"MVP" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the finalist in the season 2007-08?
### Response:
| SELECT "Finalist" FROM table_2093 WHERE "Season" = '2007-08' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.