instruction
stringlengths 37
754
| output
stringlengths 9
3.43k
|
---|---|
### Instruction:
Show the average of artists' age by country, and I want to sort by the X from high to low.
### Response:
| SELECT Country, AVG(Age) FROM artist GROUP BY Country ORDER BY Country DESC |
### Instruction:
How many wins had a win percentage of 0.667
### Response:
| SELECT "Wins" FROM table_2176 WHERE "Winning %" = '0.667' |
### Instruction:
what is the most common cause for a retired car ?
### Response:
| SELECT "retired" FROM table_203_339 GROUP BY "retired" ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
What is the smallest population recorded back in 2002?
### Response:
| SELECT MIN(2002 AS _population) FROM table_13764346_1 |
### Instruction:
I want to know the crowd with a home team of carlton
### Response:
| SELECT SUM("Crowd") FROM table_11220 WHERE "Home team" = 'carlton' |
### Instruction:
at lease how many bell griffons are in service .
### Response:
| SELECT "#\nused" FROM table_204_161 WHERE "name" = 'bell griffon' |
### Instruction:
What is the division for the season earlier than 2004?
### Response:
| SELECT "Division" FROM table_49032 WHERE "Season" < '2004' |
### Instruction:
What is the average pick of the kansas city chiefs?
### Response:
| SELECT AVG("Pick") FROM table_66638 WHERE "Team" = 'kansas city chiefs' |
### Instruction:
what is the place when the event is 4000 m individual pursuit?
### Response:
| SELECT place FROM table_name_94 WHERE event = "4000 m individual pursuit" |
### Instruction:
Who sand He's Bigfoot?
### Response:
| SELECT "Singer(s)" FROM table_26241 WHERE "Song(s) Title" = 'He''s Bigfoot' |
### Instruction:
What is Tiffani Johnson's maximum steals?
### Response:
| SELECT MAX(steals) FROM table_24912693_4 WHERE player = "Tiffani Johnson" |
### Instruction:
How many primary conferences were held in Allendale, Michigan?
### Response:
| SELECT COUNT("Primary conference") FROM table_74098 WHERE "Location" = 'Allendale, Michigan' |
### Instruction:
what is days of hospital stay of subject id 8440?
### Response:
| SELECT demographic.days_stay FROM demographic WHERE demographic.subject_id = "8440" |
### Instruction:
Who owns the station on channel 33.3?
### Response:
| SELECT "Station Ownership" FROM table_19096 WHERE "Virtual channel" = '33.3' |
### Instruction:
Can you tell me the Record that has the Date of december 15?
### Response:
| SELECT "Record" FROM table_36571 WHERE "Date" = 'december 15' |
### Instruction:
What score has jim courier as the opponent in the final?
### Response:
| SELECT score FROM table_name_86 WHERE opponent_in_the_final = "jim courier" |
### Instruction:
Name the main location for public and masters university
### Response:
| SELECT main_location FROM table_2076533_1 WHERE control = "Public" AND type = "Masters university" |
### Instruction:
What is the lowest Stls, when Rebs is greater than 8.6?
### Response:
| SELECT MIN(stls) FROM table_name_27 WHERE rebs > 8.6 |
### Instruction:
what is the number of players from the edinburgh kings ?
### Response:
| SELECT COUNT("player") FROM table_203_418 WHERE "current club" = 'edinburgh kings' |
### Instruction:
Who was the champion when atl tico wanderers was the runner-up?
### Response:
| SELECT champion FROM table_name_57 WHERE runner_up = "atlético wanderers" |
### Instruction:
What is the 2-person dive that has 2 as the surface?
### Response:
| SELECT "2" AS _person_dive FROM table_name_86 WHERE surface = "2" |
### Instruction:
What is Group Song, when Name is Alice ?
### Response:
| SELECT "Group Song" FROM table_40382 WHERE "Name" = 'alice 林芯糸' |
### Instruction:
What is the date of the race for the new zealand grand prix?
### Response:
| SELECT "Date" FROM table_47609 WHERE "Race" = 'new zealand grand prix' |
### Instruction:
What is the location and total attendance for games played against New Orleans?
### Response:
| SELECT location_attendance FROM table_15872814_5 WHERE team = "New Orleans" |
### Instruction:
What county is the team with the mascot of the Tigers in?
### Response:
| SELECT "County" FROM table_14180 WHERE "Mascot" = 'tigers' |
### Instruction:
How many heights does chad henne have?
### Response:
| SELECT COUNT(height) FROM table_15017024_2 WHERE player_name = "Chad Henne" |
### Instruction:
What is the Theme with a Design with sputnik design partners?
### Response:
| SELECT "Theme" FROM table_57514 WHERE "Design" = 'sputnik design partners' |
### Instruction:
What was the largest crowd size at a South Melbourne home game?
### Response:
| SELECT MAX("Crowd") FROM table_11841 WHERE "Home team" = 'south melbourne' |
### Instruction:
Tell me the date of stade des martyrs, dr congo
### Response:
| SELECT date FROM table_name_89 WHERE venue = "stade des martyrs, dr congo" |
### Instruction:
Getting all users from a given location sorted by reputation 'desc'.
### Response:
| SELECT Id AS "user_link", Location, Reputation FROM Users WHERE Location LIKE '%##location##%' ORDER BY Reputation DESC |
### Instruction:
On what date was a friendly competition and a result of 3 0?
### Response:
| SELECT date FROM table_name_69 WHERE competition = "friendly" AND result = "3–0" |
### Instruction:
Who was the home team for the game played at Lake Oval?
### Response:
| SELECT "Home team" FROM table_51842 WHERE "Venue" = 'lake oval' |
### Instruction:
what is drug type of drug name hydromorphone?
### Response:
| SELECT prescriptions.drug_type FROM prescriptions WHERE prescriptions.drug = "Hydromorphone" |
### Instruction:
What date was the loss of sparks (0 1)?
### Response:
| SELECT "Date" FROM table_67925 WHERE "Loss" = 'sparks (0–1)' |
### Instruction:
What's the Icelandic word for the German word for hand?
### Response:
| SELECT "Icelandic" FROM table_12397 WHERE "German" = 'hand' |
### Instruction:
what's the grand finalist where winners is collingwood
### Response:
| SELECT grand_finalist FROM table_1139835_3 WHERE winners = "Collingwood" |
### Instruction:
What is the IHSAA class for the school where the mascot is the Rebels?
### Response:
| SELECT ihsaa_class FROM table_name_80 WHERE mascot = "rebels" |
### Instruction:
When the away team is Geelong, what is the highest crowd count?
### Response:
| SELECT MAX(crowd) FROM table_name_86 WHERE away_team = "geelong" |
### Instruction:
What is the name of the episode with 418 as the production code?
### Response:
| SELECT title FROM table_2818164_5 WHERE production_code = 418 |
### Instruction:
how many bridges are 400 feet long at most ?
### Response:
| SELECT COUNT("bridge name") FROM table_204_507 WHERE "total length" <= 400 |
### Instruction:
Name the space crusade when the english is of finnish
### Response:
| SELECT "Space Crusade" FROM table_55266 WHERE "English" = 'finnish' |
### Instruction:
What is the First Issue date of Bamboo Blade?
### Response:
| SELECT "First Issue" FROM table_63808 WHERE "Title" = 'bamboo blade' |
### Instruction:
Who was the visiting team when the leading scorer was Jones : 20?
### Response:
| SELECT visitor FROM table_name_9 WHERE leading_scorer = "jones : 20" |
### Instruction:
Which number was the lyricist ahmed metwally?
### Response:
| SELECT "No." FROM table_30205 WHERE "Lyricist" = 'Ahmed Metwally' |
### Instruction:
Name the indianapolis concerts for paul baker
### Response:
| SELECT "Indianapolis Concerts" FROM table_1592 WHERE "Brighton Cast" = 'Paul Baker' |
### Instruction:
On what circuit was the iii Reims Grand Prix held?
### Response:
| SELECT "Circuit" FROM table_10147 WHERE "Race Name" = 'iii reims grand prix' |
### Instruction:
Which films participated when the category was Best Newcomer?
### Response:
| SELECT participants_recipients FROM table_29644931_1 WHERE category = "Best Newcomer" |
### Instruction:
Who was the Prato Elector with a faction of Italian?
### Response:
| SELECT elector FROM table_name_51 WHERE faction = "italian" AND nationality = "prato" |
### Instruction:
I want the total number of people in the crowd for essendon home team
### Response:
| SELECT COUNT(crowd) FROM table_name_31 WHERE home_team = "essendon" |
### Instruction:
What is the home team score for St Kilda's home team?
### Response:
| SELECT "Home team score" FROM table_53474 WHERE "Home team" = 'st kilda' |
### Instruction:
What tournament has 1r as the 2011?
### Response:
| SELECT "Tournament" FROM table_12854 WHERE "2011" = '1r' |
### Instruction:
What Brazil scorers have a 1-1 Score?
### Response:
| SELECT "Brazil scorers" FROM table_5371 WHERE "Score" = '1-1' |
### Instruction:
Which party has Peter A. Quinn as a representative?
### Response:
| SELECT "Party" FROM table_80457 WHERE "Representative" = 'peter a. quinn' |
### Instruction:
What theme placed as #3 in the finale?
### Response:
| SELECT result FROM table_12175755_1 WHERE theme = "Finale" AND order__number = "3" |
### Instruction:
Tell me short title of theprocedure of patient with patient id 3343.
### Response:
| SELECT procedures.short_title FROM procedures WHERE procedures.subject_id = "3343" |
### Instruction:
Name the total number of years for a 39-31 record
### Response:
| SELECT COUNT("Year") FROM table_55803 WHERE "Record" = '39-31' |
### Instruction:
What status is on 21/08/1999?
### Response:
| SELECT status FROM table_name_66 WHERE date = "21/08/1999" |
### Instruction:
Which title had the production code 1ACX04?
### Response:
| SELECT title FROM table_14724369_1 WHERE production_code = "1ACX04" |
### Instruction:
What Game had a Result of 125-123 (OT)?
### Response:
| SELECT game FROM table_name_45 WHERE result = "125-123 (ot)" |
### Instruction:
What position is the player from Chapel Hill, NC?
### Response:
| SELECT position FROM table_20785990_2 WHERE home_town = "Chapel Hill, NC" |
### Instruction:
How many acres in the townland of Coomroe?
### Response:
| SELECT COUNT("Area( acres )") FROM table_31509 WHERE "Townland" = 'Coomroe' |
### Instruction:
What is the winning total from 1976?
### Response:
| SELECT MAX("Total") FROM table_71915 WHERE "Year(s) won" = '1976' |
### Instruction:
What position did the team new york red bulls pick?
### Response:
| SELECT "Position" FROM table_31273 WHERE "MLS team" = 'New York Red Bulls' |
### Instruction:
What is the Home with a Time that is 12:00?
### Response:
| SELECT "Home" FROM table_39911 WHERE "Time" = '12:00' |
### Instruction:
Which Atomic property has Helium of 4.16?
### Response:
| SELECT "Atomic property" FROM table_59863 WHERE "Helium" = '4.16' |
### Instruction:
What is the geo id for malcolm township?
### Response:
| SELECT COUNT("GEO ID") FROM table_22477 WHERE "Township" = 'Malcolm' |
### Instruction:
Which home team has a Away team of hawthorn?
### Response:
| SELECT "Home team" FROM table_77898 WHERE "Away team" = 'hawthorn' |
### Instruction:
Why was a seat left open fo Connecticut at-large?
### Response:
| SELECT "Reason for change" FROM table_25039 WHERE "District" = 'Connecticut At-large' |
### Instruction:
Which overall pick was traded to the Cleveland Browns?
### Response:
| SELECT "Overall" FROM table_16059 WHERE "College" = 'Traded to the Cleveland Browns' |
### Instruction:
Name the straight to number 1 for tribal king
### Response:
| SELECT "Straight to #1 ?" FROM table_3763 WHERE "Artist" = 'Tribal King' |
### Instruction:
Who is the male talent in 1991?
### Response:
| SELECT "Talent (Male)" FROM table_42477 WHERE "Year" = '1991' |
### Instruction:
how many total operas were performed at the dresden ?
### Response:
| SELECT COUNT("title") FROM table_204_354 WHERE "place, theatre" = 'dresden' |
### Instruction:
Find the id of the order whose shipment tracking number is '3452'.
### Response:
| SELECT order_id FROM shipments WHERE shipment_tracking_number = "3452" |
### Instruction:
Who won the men's doubles in 1995?
### Response:
| SELECT "Men's doubles" FROM table_68890 WHERE "Year" = '1995' |
### Instruction:
What is the team nickname of university of wisconsin-platteville?
### Response:
| SELECT nickname FROM table_name_93 WHERE institution = "university of wisconsin-platteville" |
### Instruction:
Which margin of defeats had points of 30?
### Response:
| SELECT margin_of_defeat FROM table_10753917_1 WHERE points = "30" |
### Instruction:
What player was drafted by the philadelphia union?
### Response:
| SELECT player FROM table_25518547_3 WHERE mls_team = "Philadelphia Union" |
### Instruction:
What is the name of the episode performed by Essra Mohawk
### Response:
| SELECT episode_title FROM table_191105_4 WHERE performed_by = "Essra Mohawk" |
### Instruction:
How many house colours are associated with house names of Hillary?
### Response:
| SELECT COUNT("House colour") FROM table_23003 WHERE "House name" = 'Hillary' |
### Instruction:
Who was the electorate when the member was rex connor?
### Response:
| SELECT "Electorate" FROM table_9193 WHERE "Member" = 'rex connor' |
### Instruction:
What is the tries against for the team that has a losing bonus?
### Response:
| SELECT "Tries against" FROM table_34175 WHERE "Losing bonus" = 'losing bonus' |
### Instruction:
A bar chart shows the distribution of Date_of_Birth and Height , list by the y-axis in desc.
### Response:
| SELECT Date_of_Birth, Height FROM people ORDER BY Height DESC |
### Instruction:
What is the NBA draft result of Dwayne Washington?
### Response:
| SELECT "NBA Draft" FROM table_58210 WHERE "Player" = 'dwayne washington' |
### Instruction:
Which IHSAA class has a mascot of the Raiders?
### Response:
| SELECT "IHSAA Class" FROM table_64419 WHERE "Mascot" = 'raiders' |
### Instruction:
Who did the fastest lap in the dutch grand prix?
### Response:
| SELECT "Fastest Lap" FROM table_16724 WHERE "Race" = 'Dutch Grand Prix' |
### Instruction:
what are the number of legs lost by james wade ?
### Response:
| SELECT "legs lost" FROM table_203_460 WHERE "player" = 'james wade' |
### Instruction:
When 'past tense' is the title who is the writer?
### Response:
| SELECT "Written by" FROM table_25526 WHERE "Title" = 'Past Tense' |
### Instruction:
What is the Location of the byron nelson golf classic?
### Response:
| SELECT "Location" FROM table_34398 WHERE "Tournament" = 'byron nelson golf classic' |
### Instruction:
What is the house colour associated with the house name of Kupe?
### Response:
| SELECT "House colour" FROM table_23004 WHERE "House name" = 'Kupe' |
### Instruction:
Name the calcium for fat being 6.5
### Response:
| SELECT "Calcium (mg)" FROM table_3171 WHERE "Fat (g)" = '6.5' |
### Instruction:
Which date has a PSOE of 36.1%?
### Response:
| SELECT "Date" FROM table_71381 WHERE "PSOE" = '36.1%' |
### Instruction:
Who was in a with opponent St. Johnstone?
### Response:
| SELECT scorers FROM table_name_8 WHERE venue = "a" AND opponent = "st. johnstone" |
### Instruction:
How many locations have been used for ballparks named Memorial Stadium?
### Response:
| SELECT COUNT(location) FROM table_1987995_5 WHERE ballpark = "Memorial Stadium" |
### Instruction:
For a power notation of 10 12, what is the long scale?
### Response:
| SELECT long_scale FROM table_name_7 WHERE power_notation = "10 12" |
### Instruction:
What was the nationality of player picked no. 179?
### Response:
| SELECT "Nationality" FROM table_29023 WHERE "Pick #" = '179' |
### Instruction:
What is every original air date for the number in season of 7?
### Response:
| SELECT "Original air date" FROM table_28996 WHERE "No. in season" = '7' |
### Instruction:
How many drivers on the grid are called Vitor Meira?
### Response:
| SELECT COUNT(grid) FROM table_17256857_1 WHERE driver = "Vitor Meira" |
### Instruction:
In which season did the vora settlements join the league?
### Response:
| SELECT "Season joined league" FROM table_61485 WHERE "Settlements" = 'évora' |
### Instruction:
What year was the play-by-play for Don Earle?
### Response:
| SELECT "Year" FROM table_62250 WHERE "Play-by-play" = 'don earle' |
### Instruction:
What team is sponsored by w.h. bolin?
### Response:
| SELECT "Team" FROM table_58297 WHERE "Sponsor" = 'w.h. bolin' |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.