instruction
stringlengths 37
754
| output
stringlengths 9
3.43k
|
---|---|
### Instruction:
How many sitting politicians were originally elected in 1972?
### Response:
| SELECT COUNT("Incumbent") FROM table_18312 WHERE "First elected" = '1972' |
### Instruction:
What is the total if 44 is tosses/pyramids?
### Response:
| SELECT "Total" FROM table_24714 WHERE "Tosses/Pyramids" = '44' |
### Instruction:
Name the m r romaja for kwanbuk
### Response:
| SELECT "M\u2013R Romaja" FROM table_20519 WHERE "Region" = 'Kwanbuk' |
### Instruction:
What is the Score of the Game with a Record of 13 12?
### Response:
| SELECT "Score" FROM table_76862 WHERE "Record" = '13–12' |
### Instruction:
How many companies named cenovus energy?
### Response:
| SELECT COUNT("Rank (all) 2013") FROM table_2973 WHERE "Name" = 'Cenovus Energy' |
### Instruction:
Who were the reporters for the 1977 Belmont Stakes?
### Response:
| SELECT reporters FROM table_22583466_5 WHERE year = 1977 |
### Instruction:
What is the Mary Davis with a Gay Mitchell that is 4.6%?
### Response:
| SELECT "Mary Davis" FROM table_40453 WHERE "Gay Mitchell" = '4.6%' |
### Instruction:
What is the lowest rank for El Paso Natural Gas Company Building?
### Response:
| SELECT MIN("Rank") FROM table_64743 WHERE "Name" = 'el paso natural gas company building' |
### Instruction:
which nationality is both scott birnie and bob mormina ?
### Response:
| SELECT "nationality" FROM table_203_824 WHERE "player" = 'scott birnie' |
### Instruction:
What is the rank of london borough in southwark?
### Response:
| SELECT rank FROM table_19149550_7 WHERE london_borough = "Southwark" |
### Instruction:
What 1973 has a 1978 of 75%?
### Response:
| SELECT 1973 FROM table_name_31 WHERE 1978 = "75%" |
### Instruction:
Which broadcast date has 6.8 million viewers?
### Response:
| SELECT broadcast_date FROM table_2114238_1 WHERE viewers__in_millions_ = "6.8" |
### Instruction:
The year that has a BB + HBP of 51 is listed as?
### Response:
| SELECT "Year" FROM table_69872 WHERE "BB +HBP" = '51' |
### Instruction:
does allegiant air fly to dallas or las vegas ?
### Response:
| SELECT "destination(s)" FROM table_204_215 WHERE "airline" = 'allegiant air' |
### Instruction:
what is the difference between his greatest amount of yearly winnings and his least ?
### Response:
| SELECT MAX("winnings") - MIN("winnings") FROM table_203_424 |
### Instruction:
What is the team 2 with cobreloa as team 1?
### Response:
| SELECT "Team 2" FROM table_45883 WHERE "Team 1" = 'cobreloa' |
### Instruction:
what is the total wins for club kotayk abovian ?
### Response:
| SELECT "aggregate" FROM table_203_269 WHERE "club" = 'kotayk abovian' |
### Instruction:
In 2010-11, what was the League name?
### Response:
| SELECT "League" FROM table_74941 WHERE "Year" = '2010-11' |
### Instruction:
Name the least runs conceded for brett lee
### Response:
| SELECT MIN(runs_conceded) FROM table_15700367_4 WHERE name = "Brett Lee" |
### Instruction:
What's Enrique de la Fuente's weight?
### Response:
| SELECT MIN(weight) FROM table_13312864_1 WHERE player = "Enrique de la Fuente" |
### Instruction:
Who directed the episode with a production code of 4WAB04?
### Response:
| SELECT "Directedby" FROM table_2292 WHERE "Production code" = '4WAB04' |
### Instruction:
what is the meaning of meal code S
### Response:
| SELECT DISTINCT compartment, meal_code, meal_description, meal_number FROM food_service WHERE meal_code = 'S' |
### Instruction:
What is Tommy Nobis' position that has fewer than 16 picks?
### Response:
| SELECT position FROM table_name_80 WHERE pick__number < 16 AND name = "tommy nobis" |
### Instruction:
how many overall championships does concordia university have
### Response:
| SELECT MIN(national_titles) FROM table_14115168_4 WHERE school = "Concordia University" |
### Instruction:
Return a scatter chart about the correlation between Team_ID and ACC_Percent , and group by attribute All_Home.
### Response:
| SELECT Team_ID, ACC_Percent FROM basketball_match GROUP BY All_Home |
### Instruction:
Which driver drove the Tourtel Larrousse F1?
### Response:
| SELECT "Driver" FROM table_56953 WHERE "Entrant" = 'tourtel larrousse f1' |
### Instruction:
Who in Qual 2 had the best time of 1:31.327?
### Response:
| SELECT qual_2 FROM table_name_5 WHERE best = "1:31.327" |
### Instruction:
What is the sum of Capacity, when Team is 'Denizlispor'?
### Response:
| SELECT SUM("Capacity") FROM table_48886 WHERE "Team" = 'denizlispor' |
### Instruction:
Tag Wiki edits owned by Community.
### Response:
| SELECT * FROM Posts AS p JOIN PostHistory ON PostId = p.Id WHERE UserId = -1 AND PostTypeId IN (4, 5) |
### Instruction:
Who was the opponent at the game that had a loss of Westbrook (2-2)?
### Response:
| SELECT opponent FROM table_name_74 WHERE loss = "westbrook (2-2)" |
### Instruction:
Which party is Lawrence H. Fountain part of?
### Response:
| SELECT "Party" FROM table_18386 WHERE "Incumbent" = 'Lawrence H. Fountain' |
### Instruction:
What is the total number of playoffs held in exactly 2006?
### Response:
| SELECT COUNT(playoffs) FROM table_1999350_1 WHERE year = 2006 |
### Instruction:
When Gary Player was the runner-up, what was the margin of victory?
### Response:
| SELECT margin_of_victory FROM table_name_28 WHERE runner_s__up = "gary player" |
### Instruction:
What's the sum of tie no for home team burgess hill town?
### Response:
| SELECT SUM("Tie no") FROM table_62044 WHERE "Home team" = 'burgess hill town' |
### Instruction:
What is the surface on 15 August 2009?
### Response:
| SELECT "Surface" FROM table_59443 WHERE "Date" = '15 august 2009' |
### Instruction:
What number parliament held it's election in 1997?
### Response:
| SELECT parliament FROM table_1889233_2 WHERE general_election_contested = 1997 |
### Instruction:
What is the total number of capacity for the venue of the club, pirin?
### Response:
| SELECT COUNT("Capacity") FROM table_76679 WHERE "Club" = 'pirin' |
### Instruction:
What is the best finish record for Sean O'hair?
### Response:
| SELECT best_finish FROM table_29504351_2 WHERE player = "Sean O'Hair" |
### Instruction:
What was the winning score in the Alfred Dunhill links championship?
### Response:
| SELECT "Winning score" FROM table_14358 WHERE "Tournament" = 'alfred dunhill links championship' |
### Instruction:
Which Home has a Competition of european cup, and a Round of qf?
### Response:
| SELECT home FROM table_name_70 WHERE competition = "european cup" AND round = "qf" |
### Instruction:
What is the percentage for Mel Martinez when the sample size is 800?
### Response:
| SELECT mel_martinez__r_ FROM table_name_6 WHERE sample_size = 800 |
### Instruction:
Which region is associated with the catalog value of 512335?
### Response:
| SELECT "Region" FROM table_79531 WHERE "Catalog" = '512335' |
### Instruction:
calculate the maximum age of male patients aged 48 or above
### Response:
| SELECT MAX(demographic.age) FROM demographic WHERE demographic.gender = "M" AND demographic.age >= "48" |
### Instruction:
What was the venue in 1951 on November 4?
### Response:
| SELECT venue FROM table_name_83 WHERE year = 1951 AND date = "november 4" |
### Instruction:
What's the total when A Score was less than 6.9?
### Response:
| SELECT AVG("Total") FROM table_66154 WHERE "A Score" < '6.9' |
### Instruction:
Which opponent had 38,642 attendance?
### Response:
| SELECT "Opponent" FROM table_48765 WHERE "Attendance" = '38,642' |
### Instruction:
which product as rdf for input or output
### Response:
| SELECT "product" FROM table_204_870 WHERE "input format" = 'rdf' OR "output format" = 'rdf' |
### Instruction:
which is the first church located in los angeles ?
### Response:
| SELECT "church name" FROM table_203_274 WHERE "community" = 'los angeles' ORDER BY id LIMIT 1 |
### Instruction:
what's the name with first operational being march 1945
### Response:
| SELECT name FROM table_13636_1 WHERE first_operational = "March 1945" |
### Instruction:
When 'the telenovela' is the title how many series numbers are there?
### Response:
| SELECT COUNT("Series #") FROM table_1700 WHERE "Title" = 'The Telenovela' |
### Instruction:
What Laurel Mountain Channel is associated with B Mountain Channel of 7?
### Response:
| SELECT laurel_mountain_channel FROM table_name_51 WHERE b_mountain_channel = "7" |
### Instruction:
Draw a bar chart about the distribution of Date_of_Birth and Height , could you sort from low to high by the total number?
### Response:
| SELECT Date_of_Birth, Height FROM people ORDER BY Height |
### Instruction:
When philippe gilbert is the winner who is the points classification?
### Response:
| SELECT points_classification FROM table_18733814_2 WHERE winner = "Philippe Gilbert" |
### Instruction:
Which Date performed has a Main contestant of karanvir bohra?
### Response:
| SELECT date_performed FROM table_name_58 WHERE main_contestant = "karanvir bohra" |
### Instruction:
for patient id 21796, specify the type of admission.
### Response:
| SELECT demographic.admission_type FROM demographic WHERE demographic.subject_id = "21796" |
### Instruction:
what is the height of columbia river hs?
### Response:
| SELECT height FROM table_29598261_1 WHERE last_school_college = "Columbia River HS" |
### Instruction:
what's the district with incumbent being john e. miller
### Response:
| SELECT "District" FROM table_18663 WHERE "Incumbent" = 'John E. Miller' |
### Instruction:
Which January has a Record of 28 14 8?
### Response:
| SELECT "January" FROM table_35456 WHERE "Record" = '28–14–8' |
### Instruction:
List the minimum impressions for sammy traor
### Response:
| SELECT MIN(appearances¹) FROM table_24565004_21 WHERE name = "Sammy Traoré" |
### Instruction:
What is the total number of points of driver enrique bernoldi (r)?
### Response:
| SELECT COUNT(points) FROM table_name_95 WHERE driver = "enrique bernoldi (r)" |
### Instruction:
What is the CB CW of the song which has a BB Pop of 11?
### Response:
| SELECT "CB CW" FROM table_4787 WHERE "BB Pop" = '11' |
### Instruction:
Show employee_id from each email, and display from high to low by the total number.
### Response:
| SELECT EMAIL, EMPLOYEE_ID FROM employees ORDER BY EMPLOYEE_ID DESC |
### Instruction:
what is the seating capacity of a BOEING 767
### Response:
| SELECT DISTINCT aircraft_code FROM aircraft WHERE basic_type = '767' AND manufacturer = 'BOEING' |
### Instruction:
Who was team 1 when the chalkheads were team 2?
### Response:
| SELECT "Team 1" FROM table_22574 WHERE "Team 2" = 'Chalkheads' |
### Instruction:
What category was Scream nominated for at the International Horror Guild?
### Response:
| SELECT category FROM table_name_52 WHERE work = "scream" AND award = "international horror guild" |
### Instruction:
Which shoulder has a Neck of 7.3 (.288)?
### Response:
| SELECT "Shoulder" FROM table_4593 WHERE "Neck" = '7.3 (.288)' |
### Instruction:
Who is the player with a Jersey Number(s) greater than 30?
### Response:
| SELECT "Player" FROM table_43973 WHERE "Jersey Number(s)" > '30' |
### Instruction:
Who was rose in the 1975 Broadway Revival?
### Response:
| SELECT "Rose" FROM table_52473 WHERE "Productions" = '1975 broadway revival' |
### Instruction:
What is Application Sharing, when Web Conferencing is 'Web Conferencing'?
### Response:
| SELECT application_sharing FROM table_name_40 WHERE web_conferencing = "web conferencing" |
### Instruction:
How many episodes are directed by Jamie Payne?
### Response:
| SELECT COUNT(episode) FROM table_29574579_1 WHERE directed_by = "Jamie Payne" |
### Instruction:
What was the city whose stadium is Gerald J. Ford Stadium?
### Response:
| SELECT "City" FROM table_30708 WHERE "Stadium" = 'Gerald J. Ford Stadium' |
### Instruction:
What is the Away captain with a Venue that is old trafford?
### Response:
| SELECT "Away captain" FROM table_7302 WHERE "Venue" = 'old trafford' |
### Instruction:
What occurence has 0.925 listed as the matrix sim?
### Response:
| SELECT MAX("Occurrence") FROM table_28964 WHERE "Matrix Sim" = '0.925' |
### Instruction:
Bar graph to show the number of document type description from different document type description
### Response:
| SELECT Document_Type_Description, COUNT(Document_Type_Description) FROM Ref_Document_Types GROUP BY Document_Type_Description |
### Instruction:
How many different writers have written the episode with series number 8?
### Response:
| SELECT COUNT(written_by) FROM table_23958944_2 WHERE no_by_series = 8 |
### Instruction:
Which Cover model has a Centerfold model of scarlett keegan?
### Response:
| SELECT "Cover model" FROM table_40539 WHERE "Centerfold model" = 'scarlett keegan' |
### Instruction:
Who was the home team that played at Moorabbin Oval?
### Response:
| SELECT "Home team" FROM table_54669 WHERE "Venue" = 'moorabbin oval' |
### Instruction:
who spend the most amount of time in office ?
### Response:
| SELECT "menteri besar" FROM table_204_668 ORDER BY "left office" - "took office" DESC LIMIT 1 |
### Instruction:
What is sSpec Number, when Model Number is Atom N475?
### Response:
| SELECT "sSpec number" FROM table_9829 WHERE "Model number" = 'atom n475' |
### Instruction:
What is Expected End Date, when Target/Approach is Notes?
### Response:
| SELECT "Expected End Date" FROM table_76646 WHERE "Target/Approach" = 'notes' |
### Instruction:
What's the highest amount of laps Garry Mccoy drove?
### Response:
| SELECT MAX("Laps") FROM table_44125 WHERE "Rider" = 'garry mccoy' |
### Instruction:
Is the facility opened in 1968 a major facility?
### Response:
| SELECT Major AS facility FROM table_25346763_1 WHERE year_opened = "1968" |
### Instruction:
Where was the game played when 71,060 people attended?
### Response:
| SELECT "Game Site" FROM table_46929 WHERE "Attendance" = '71,060' |
### Instruction:
Name the most official number for tf1 # being 42
### Response:
| SELECT MAX(official__number) FROM table_16425614_4 WHERE tf1__number = 42 |
### Instruction:
What is the Novelty of the dinosaur, whose naming Author was Galton?
### Response:
| SELECT "Novelty" FROM table_75804 WHERE "Authors" = 'galton' |
### Instruction:
What type of settlement has a population of 1441?
### Response:
| SELECT type FROM table_2562572_26 WHERE population__2011_ = 1441 |
### Instruction:
What was the result for the time of 1-26.21?
### Response:
| SELECT "Result" FROM table_23775 WHERE "Time" = '1-26.21' |
### Instruction:
What was the result for the film with the English name of Morning Undersea?
### Response:
| SELECT "Result" FROM table_24784 WHERE "English title" = 'Morning Undersea' |
### Instruction:
When Denizli was the province, what was the total number of valid votes?
### Response:
| SELECT COUNT("Valid votes") FROM table_29387 WHERE "Province" = 'Denizli' |
### Instruction:
Which is the category of the group was establishe in 1990?
### Response:
| SELECT "Category" FROM table_58399 WHERE "Established" = '1990' |
### Instruction:
Find the number of courses provided in each year with a group line chart that groups by semester, list the binning year in asc order.
### Response:
| SELECT year, COUNT(*) FROM section GROUP BY semester ORDER BY year |
### Instruction:
How many Drawns have Points smaller than 5 and a Lost larger than 7?
### Response:
| SELECT COUNT(drawn) FROM table_name_87 WHERE points < 5 AND lost > 7 |
### Instruction:
Which Name has a Term end of 18 july 1944?
### Response:
| SELECT name FROM table_name_88 WHERE term_end = "18 july 1944" |
### Instruction:
Which party is associated with the person who was first elected in 1982?
### Response:
| SELECT "Party" FROM table_18245 WHERE "First elected" = '1982' |
### Instruction:
Which Artist has a Percentage of 11.32%?
### Response:
| SELECT "Artist" FROM table_66374 WHERE "Percentage" = '11.32%' |
### Instruction:
Which country contains the Shanghai Pudong International airport?
### Response:
| SELECT "Country" FROM table_32965 WHERE "Airport" = 'shanghai pudong international airport' |
### Instruction:
What is the date released when the Left Bloc had 3.2%?
### Response:
| SELECT "Date Released" FROM table_66278 WHERE "Left Bloc" = '3.2%' |
### Instruction:
How many villains were in episode 3 (13)?
### Response:
| SELECT COUNT(villains) FROM table_23170118_2 WHERE episode_number = "3 (13)" |
### Instruction:
A bar chart for what are the number of the names of all the playlists?, could you order x axis in asc order please?
### Response:
| SELECT name, COUNT(name) FROM playlists GROUP BY name ORDER BY name |
### Instruction:
Who was the winning driver in the FR2.0 11 series?
### Response:
| SELECT "Winning driver" FROM table_3307 WHERE "Series" = 'FR2.0 11' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.