instruction
stringlengths 37
754
| output
stringlengths 9
3.43k
|
---|---|
### Instruction:
Who is the monarch that left office circa 1886?
### Response:
| SELECT "Monarch" FROM table_8047 WHERE "Left Office" = 'circa 1886' |
### Instruction:
Which Total has a Bronze larger than 1, and a Gold larger than 0?
### Response:
| SELECT MAX(total) FROM table_name_57 WHERE bronze > 1 AND gold > 0 |
### Instruction:
Give me a bar chart for sum price of each name, and order y-axis in desc order.
### Response:
| SELECT Name, SUM(Price) FROM Products GROUP BY Name ORDER BY SUM(Price) DESC |
### Instruction:
What was the lowest attendance when Fitzroy was the home team?
### Response:
| SELECT MIN("Crowd") FROM table_10320 WHERE "Home team" = 'fitzroy' |
### Instruction:
What is the Away team with Newcastle United as the Home team?
### Response:
| SELECT "Away team" FROM table_13198 WHERE "Home team" = 'newcastle united' |
### Instruction:
Which district is jamie l. whitten from?
### Response:
| SELECT "District" FROM table_72405 WHERE "Incumbent" = 'Jamie L. Whitten' |
### Instruction:
Return the number of the countries of the mountains that have a height larger than 5000.
### Response:
| SELECT Country, COUNT(Country) FROM mountain WHERE Height > 5000 GROUP BY Country |
### Instruction:
What position did the draft pick going to saskatchewan play?
### Response:
| SELECT "Position" FROM table_30261 WHERE "CFL Team" = 'Saskatchewan' |
### Instruction:
what is the number of times deggendorfer sc ii is on the list ?
### Response:
| SELECT COUNT(*) FROM table_204_1 WHERE "east" = 'deggendorfer sc ii' |
### Instruction:
At what location was the time 1:54:21?
### Response:
| SELECT "Location" FROM table_11624 WHERE "Time" = '1:54:21' |
### Instruction:
What is the home team score when the away team is Essendon?
### Response:
| SELECT "Home team score" FROM table_32753 WHERE "Away team" = 'essendon' |
### Instruction:
What are the number of rooms for each bed type Show bar chart, order by the total number from low to high.
### Response:
| SELECT bedType, COUNT(*) FROM Rooms GROUP BY bedType ORDER BY COUNT(*) |
### Instruction:
List the total number of defense points for caroline wozniacki.
### Response:
| SELECT "Points defending" FROM table_3047 WHERE "Player" = 'Caroline Wozniacki' |
### Instruction:
How many copies per particle does the protein nsp2 have?
### Response:
| SELECT "Copies per particle" FROM table_35831 WHERE "Protein" = 'nsp2' |
### Instruction:
What is the highest crowd when carlton is the away team?
### Response:
| SELECT MAX("Crowd") FROM table_56792 WHERE "Away team" = 'carlton' |
### Instruction:
What's the rank when the time was 59.65?
### Response:
| SELECT "Rank" FROM table_63673 WHERE "Time" = '59.65' |
### Instruction:
Who was the opponent at the qf(r) round?
### Response:
| SELECT "Opponent" FROM table_80095 WHERE "Round" = 'qf(r)' |
### Instruction:
Which Artist has a Track(s) of ' evilmainya '?
### Response:
| SELECT "Artist" FROM table_63196 WHERE "Track(s)" = ' evilmainya ' |
### Instruction:
What is the Position of the player from Vanderbilt?
### Response:
| SELECT "Position" FROM table_76088 WHERE "School/Club Team" = 'vanderbilt' |
### Instruction:
For an aggregate of 1-3, what was the 2nd leg?
### Response:
| SELECT 2 AS nd_leg FROM table_name_74 WHERE agg = "1-3" |
### Instruction:
Which country has a score of 70-66=136?
### Response:
| SELECT country FROM table_name_31 WHERE score = 70 - 66 = 136 |
### Instruction:
How many trains depart at 17:30?
### Response:
| SELECT COUNT("Train No.") FROM table_29242 WHERE "Departure" = '17:30' |
### Instruction:
What is Drawn, when Points Against is '686'?
### Response:
| SELECT "Drawn" FROM table_76870 WHERE "Points against" = '686' |
### Instruction:
Which Mascot has an Enrollment of 640?
### Response:
| SELECT "Mascot" FROM table_66055 WHERE "Enrollment" = '640' |
### Instruction:
What opponent in the final has rockford, Illinois as the tournament?
### Response:
| SELECT opponent_in_the_final FROM table_name_12 WHERE tournament = "rockford, illinois" |
### Instruction:
How many directed have the product code of 2.8?
### Response:
| SELECT COUNT("Directed by") FROM table_23550 WHERE "Prod. code" = '2.8' |
### Instruction:
Name the successor for james noble died in previous congress
### Response:
| SELECT successor FROM table_225198_3 WHERE reason_for_change = "James Noble died in previous Congress" |
### Instruction:
What was the final venue for 82 delegates?
### Response:
| SELECT "Finals Venue" FROM table_65499 WHERE "Number of Delegates" = '82' |
### Instruction:
Which bullet has a Shoulder of 10.92 (.430)?
### Response:
| SELECT bullet FROM table_name_25 WHERE shoulder = "10.92 (.430)" |
### Instruction:
How many people led in assists on game 71?
### Response:
| SELECT COUNT(high_assists) FROM table_23248940_10 WHERE game = 71 |
### Instruction:
What is the total access count of documents that are of the most common document type?
### Response:
| SELECT SUM(access_count) FROM documents GROUP BY document_type_code ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
What is the total membership for the metropolitan area in the city of Manchester?
### Response:
| SELECT MAX("Metropolitan area") FROM table_25270 WHERE "City" = 'Manchester' |
### Instruction:
What is the date of the tournament with 5 strokes as the margin of victory?
### Response:
| SELECT date FROM table_name_62 WHERE margin_of_victory = "5 strokes" |
### Instruction:
If the Away team is essendon, what was the Date they played?
### Response:
| SELECT "Date" FROM table_55039 WHERE "Away team" = 'essendon' |
### Instruction:
which country had the most athletes ?
### Response:
| SELECT "nationality" FROM table_204_893 GROUP BY "nationality" ORDER BY COUNT("name") DESC LIMIT 1 |
### Instruction:
Name the most high schools for 31851
### Response:
| SELECT MAX("High schools") FROM table_26252 WHERE "District-wide" = '31851' |
### Instruction:
what team played against zimbabwe in 1999?
### Response:
| SELECT team FROM table_name_11 WHERE year = 1999 AND versus = "zimbabwe" |
### Instruction:
What is the date of birth of Kameli Ratuvou?
### Response:
| SELECT date_of_birth__age_ FROM table_name_45 WHERE player = "kameli ratuvou" |
### Instruction:
If a person does 3 chin-up reps, what grade do they obtain?
### Response:
| SELECT grade FROM table_name_43 WHERE chin_up__reps_ = "3" |
### Instruction:
In the game at Victoria Park, what was the number of people in the crowd?
### Response:
| SELECT SUM(crowd) FROM table_name_34 WHERE venue = "victoria park" |
### Instruction:
What is Season, when Lead is 'Michael Goodfellow'?
### Response:
| SELECT "Season" FROM table_7885 WHERE "Lead" = 'michael goodfellow' |
### Instruction:
papers where ras bodik is an author
### Response:
| SELECT DISTINCT writes.paperid FROM author, writes WHERE author.authorname = 'ras bodik' AND writes.authorid = author.authorid |
### Instruction:
What bridge in Sheridan county was built in 1915?
### Response:
| SELECT name FROM table_name_30 WHERE county = "sheridan" AND built = "1915" |
### Instruction:
any relevant abnormality that would interfere with the efficacy or the safety assessments during study treatment administration.
### Response:
| SELECT * FROM table_train_150 WHERE abnormality = 1 |
### Instruction:
What is the finish with 200 laps and a start of 3?
### Response:
| SELECT finish FROM table_name_91 WHERE laps = 200 AND start = "3" |
### Instruction:
what is the venue on 21 june 1987?
### Response:
| SELECT venue FROM table_name_43 WHERE year = "21 june 1987" |
### Instruction:
Draw a bar chart of description versus the number of description, rank by the total number from high to low.
### Response:
| SELECT Description, COUNT(Description) FROM aircraft GROUP BY Description ORDER BY COUNT(Description) DESC |
### Instruction:
Who is listed as the Winners with a Year of 2005?
### Response:
| SELECT "Winners" FROM table_15303 WHERE "Year" = '2005' |
### Instruction:
What is the short stem for the word that has a perfect stem of poztu?
### Response:
| SELECT short_stem FROM table_name_56 WHERE perfect_stem = "poztu" |
### Instruction:
when did no. 32 play for grizzles
### Response:
| SELECT years_for_grizzlies FROM table_16494599_5 WHERE no = 32 |
### Instruction:
in how many indy 500 races , has jones been flagged ?
### Response:
| SELECT COUNT(*) FROM table_203_339 WHERE "retired" = 'flagged' |
### Instruction:
Who were the candidates when Barney Frank was the incumbent?
### Response:
| SELECT "Candidates" FROM table_18098 WHERE "Incumbent" = 'Barney Frank' |
### Instruction:
What is the result when the nominee(s) of janine sherman?
### Response:
| SELECT result FROM table_name_57 WHERE nominee_s_ = "janine sherman" |
### Instruction:
When was the song titled if you talk in your sleep released?
### Response:
| SELECT "Release date" FROM table_40062 WHERE "Song title" = 'if you talk in your sleep' |
### Instruction:
Who was the girl of the week after nicole woodruff in the same month?
### Response:
| SELECT week_5 FROM table_name_93 WHERE week_4 = "nicole woodruff" |
### Instruction:
What was the result for the district with an election in 1986
### Response:
| SELECT "Result" FROM table_28586 WHERE "Elected" = '1986' |
### Instruction:
Matches of 127 has how many total number of inns?
### Response:
| SELECT COUNT("Inns") FROM table_69325 WHERE "Matches" = '127' |
### Instruction:
What route with the line color brown has the lowest number of stations served?
### Response:
| SELECT MIN(stations_served) FROM table_name_39 WHERE line_color = "brown" |
### Instruction:
What college did Jamie Butt go to?
### Response:
| SELECT college_junior_club_team__league_ FROM table_name_78 WHERE player = "jamie butt" |
### Instruction:
what's the bubbles with attribute being onpopuphidden
### Response:
| SELECT "Bubbles" FROM table_72647 WHERE "Attribute" = 'onpopuphidden' |
### Instruction:
What is the sum of the all around with a 37.75 total?
### Response:
| SELECT SUM(all_around) FROM table_name_68 WHERE total = 37.75 |
### Instruction:
What is the email and phone number of Astrid Gruber the customer?
### Response:
| SELECT email, phone FROM customers WHERE first_name = "Astrid" AND last_name = "Gruber" |
### Instruction:
What Utah Jazz Forward played for Southern Methodist?
### Response:
| SELECT player FROM table_name_74 WHERE position = "forward" AND school_club_team = "southern methodist" |
### Instruction:
What was the score when the away team was brighton & hove albion?
### Response:
| SELECT score FROM table_name_21 WHERE away_team = "brighton & hove albion" |
### Instruction:
What wheelbase has sport coupe (4p.) as the body style?
### Response:
| SELECT wheelbase FROM table_name_20 WHERE body_styles = "sport coupe (4p.)" |
### Instruction:
What is the stadium name that has 144 as the runs?
### Response:
| SELECT "Stadium" FROM table_48473 WHERE "Runs" = '144' |
### Instruction:
Titles from last 6 months.
### Response:
| SELECT (Title) FROM Posts WHERE CreationDate > '2016-11-05 14:29:36' |
### Instruction:
When 8 is the rank what is the Saturday August 21st?
### Response:
| SELECT sat_21_aug FROM table_26986076_5 WHERE rank = 8 |
### Instruction:
What is the first leg score in that match where Marseille was the first team?
### Response:
| SELECT 1 AS st_leg FROM table_name_85 WHERE team_1 = "marseille" |
### Instruction:
Which date has roma as opponent and a H/A of A?
### Response:
| SELECT date FROM table_name_46 WHERE opponents = "roma" AND h___a = "a" |
### Instruction:
When was the earliest year that Guillermo Vilas was the runner-up?
### Response:
| SELECT MIN(year) FROM table_name_9 WHERE runner_up = "guillermo vilas" |
### Instruction:
What is the Tier when the runner-up is chanda rubin caroline vis?
### Response:
| SELECT tier FROM table_name_95 WHERE runner_up = "chanda rubin caroline vis" |
### Instruction:
What was the party of the first elected candidate in 1954?
### Response:
| SELECT "Party" FROM table_18384 WHERE "First elected" = '1954' |
### Instruction:
What is the title of the episode directed by Charles Beeson?
### Response:
| SELECT title FROM table_24649082_1 WHERE directed_by = "Charles Beeson" |
### Instruction:
What is the shipping agent code of shipping agent UPS?
### Response:
| SELECT shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_name = "UPS" |
### Instruction:
What was the score of the game when their record was 62-67
### Response:
| SELECT "Score" FROM table_80196 WHERE "Record" = '62-67' |
### Instruction:
reginald hudlin directed how many written by.
### Response:
| SELECT written_by FROM table_21994729_3 WHERE directed_by = "Reginald Hudlin" |
### Instruction:
Which year is the lowest for genre of action-adventure?
### Response:
| SELECT MIN("Year") FROM table_65244 WHERE "Genre" = 'action-adventure' |
### Instruction:
Which Format has a Date of may 24, 2008?
### Response:
| SELECT format FROM table_name_44 WHERE date = "may 24, 2008" |
### Instruction:
Which character first appeared in Amazing Fantasy #15?
### Response:
| SELECT character_s_ FROM table_name_89 WHERE first_appearance = "amazing fantasy #15" |
### Instruction:
I want the team for replaced by mark mcghee
### Response:
| SELECT "Team" FROM table_10575 WHERE "Replaced by" = 'mark mcghee' |
### Instruction:
what is age and date of birth of subject name john gartman?
### Response:
| SELECT demographic.age, demographic.dob FROM demographic WHERE demographic.name = "John Gartman" |
### Instruction:
What is masten gregory's average lap?
### Response:
| SELECT AVG("Laps") FROM table_58263 WHERE "Driver" = 'masten gregory' |
### Instruction:
What opponent has balboa stadium as the opponent?
### Response:
| SELECT "Opponent" FROM table_35912 WHERE "Stadium" = 'balboa stadium' |
### Instruction:
I want the D 42 with R 51 of r 11
### Response:
| SELECT d_42 FROM table_name_41 WHERE r_51 = "r 11" |
### Instruction:
Who direcred the episode with production code 7d03?
### Response:
| SELECT "Directed by" FROM table_27837 WHERE "Production code" = '7D03' |
### Instruction:
Which Region has a Catalog of magik muzik 806-5?
### Response:
| SELECT region FROM table_name_19 WHERE catalog = "magik muzik 806-5" |
### Instruction:
What was the original name of the restaurant located in Orillia, ON?
### Response:
| SELECT "Original Name" FROM table_14112 WHERE "Location" = 'orillia, on' |
### Instruction:
Which Year(s) won has a Total of 147?
### Response:
| SELECT "Year(s) won" FROM table_47450 WHERE "Total" = '147' |
### Instruction:
What is the result on September 25, 1966?
### Response:
| SELECT result FROM table_name_80 WHERE date = "september 25, 1966" |
### Instruction:
give the admission type of subject id 11221.
### Response:
| SELECT demographic.admission_type FROM demographic WHERE demographic.subject_id = "11221" |
### Instruction:
give me the number of patients whose age is less than 70?
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < "70" |
### Instruction:
What is the total appearances when the total goals is 289?
### Response:
| SELECT MIN("Total appearances") FROM table_31307 WHERE "Total goals" = '289' |
### Instruction:
At what venues did Lorena Ochoa win the championship?
### Response:
| SELECT "Venue" FROM table_1207 WHERE "Champion" = 'Lorena Ochoa' |
### Instruction:
I want the team with assists greater than 118 and rank less than 2
### Response:
| SELECT team FROM table_name_10 WHERE assists > 118 AND rank < 2 |
### Instruction:
Type the record details if any result has L 3-6 in it?
### Response:
| SELECT record FROM table_14656147_2 WHERE result = "L 3-6" |
### Instruction:
Show the minimum room count of apartments in different type with a pie chart.
### Response:
| SELECT apt_type_code, MIN(room_count) FROM Apartments GROUP BY apt_type_code |
### Instruction:
What's the result for the category of best actor in a supporting role?
### Response:
| SELECT "Result" FROM table_50066 WHERE "Category" = 'best actor in a supporting role' |
### Instruction:
What party does joel r. poinsett represent?
### Response:
| SELECT party FROM table_2668264_22 WHERE incumbent = "Joel R. Poinsett" |
### Instruction:
How many dances did Warren & Kym have?
### Response:
| SELECT "Number of dances" FROM table_21977 WHERE "Couple" = 'Warren & Kym' |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.