instruction
stringlengths
37
754
output
stringlengths
9
3.43k
### Instruction: Draw a bar chart for how many players played each position?, rank from high to low by the total number. ### Response:
SELECT Position, COUNT(*) FROM match_season GROUP BY Position ORDER BY COUNT(*) DESC
### Instruction: What is the name of the team that has 307 attempts? ### Response:
SELECT "Team" FROM table_71842 WHERE "Attempts" = '307'
### Instruction: what is the place when the event is 4000 m individual pursuit? ### Response:
SELECT place FROM table_name_2 WHERE event = "4000 m individual pursuit"
### Instruction: What is the venue where the melbourne tigers play their home games? ### Response:
SELECT venue FROM table_name_26 WHERE home_team = "melbourne tigers"
### Instruction: How many times did the Lancaster City team play? ### Response:
SELECT COUNT(played) FROM table_17366952_1 WHERE team = "Lancaster City"
### Instruction: What is SECOND, when SIXTH is Victoria? ### Response:
SELECT "SECOND" FROM table_41108 WHERE "SIXTH" = 'victoria'
### Instruction: How many stadiums does each country have Show bar chart, and rank by the Y-axis in descending. ### Response:
SELECT Country, COUNT(*) FROM stadium GROUP BY Country ORDER BY COUNT(*) DESC
### Instruction: What is the lowest attendance on November 18? ### Response:
SELECT MIN("Attendance") FROM table_53718 WHERE "Date" = 'november 18'
### Instruction: Who is the incumbent in the Alabama 6 voting district? ### Response:
SELECT incumbent FROM table_1341973_3 WHERE district = "Alabama 6"
### Instruction: What is the smallest pick number for McGill? ### Response:
SELECT MIN(pick__number) FROM table_21321804_5 WHERE college = "McGill"
### Instruction: Which team drafted Esa Tikkanen? ### Response:
SELECT nhl_team FROM table_2679061_4 WHERE player = "Esa Tikkanen"
### Instruction: What is Laure Manaudou's highest rank? ### Response:
SELECT MAX("Rank") FROM table_79297 WHERE "Name" = 'laure manaudou'
### Instruction: Plot the total number by grouped by country as a bar graph, and order by the y axis from low to high please. ### Response:
SELECT Country, COUNT(*) FROM member GROUP BY Country ORDER BY COUNT(*)
### Instruction: how many players won at least later than 2010 ? ### Response:
SELECT COUNT("player") FROM table_204_310 WHERE "year" > 2010
### Instruction: What is the average game number that was on october 19? ### Response:
SELECT AVG("Game") FROM table_46062 WHERE "October" = '19'
### Instruction: what type was joined in 1902 5? ### Response:
SELECT "Type" FROM table_28513 WHERE "Joined" = '1902 5'
### Instruction: What date did the episode air when guy grossi won? ### Response:
SELECT airdate FROM table_29281529_2 WHERE winner = "Guy Grossi"
### Instruction: Show me the total number by grape in a histogram, and display by the X-axis in asc. ### Response:
SELECT Grape, COUNT(*) FROM wine GROUP BY Grape ORDER BY Grape
### Instruction: How many times is the couple kerry & daniel? ### Response:
SELECT COUNT("Place") FROM table_31253 WHERE "Couple" = 'Kerry & Daniel'
### Instruction: For episode number 2 what is the season viewer average? ### Response:
SELECT "Season viewer average" FROM table_41841 WHERE "Episode number" = '2'
### Instruction: What is the number of games for the season with 10 ties? ### Response:
SELECT "Games" FROM table_40756 WHERE "Tied" = '10'
### Instruction: What is the assumed office date of the prime minister ranked 22? ### Response:
SELECT "Assumed Office:" FROM table_61918 WHERE "Rank:" = '22'
### Instruction: What is the combined of Crowd when richmond played at home? ### Response:
SELECT COUNT("Crowd") FROM table_55411 WHERE "Home team" = 'richmond'
### Instruction: what is the number of laps that pippa mann completed ? ### Response:
SELECT "laps" FROM table_204_175 WHERE "driver" = 'pippa mann'
### Instruction: Tell me the venue for year less than 2003 ### Response:
SELECT "Venue" FROM table_31603 WHERE "Year" < '2003'
### Instruction: What happened on 2009-09-05? ### Response:
SELECT circumstances FROM table_name_93 WHERE date = "2009-09-05"
### Instruction: What was the attendance when their record stood at 0-2-2? ### Response:
SELECT SUM(attendance) FROM table_name_5 WHERE record = "0-2-2"
### Instruction: Which letter has an operator of the Defense Information Systems Agency? ### Response:
SELECT "Letter" FROM table_46741 WHERE "Operator" = 'defense information systems agency'
### Instruction: What is the tries for when 52 was the tries against? ### Response:
SELECT "Tries for" FROM table_76614 WHERE "Tries against" = '52'
### Instruction: Display a pie chart for what are the total enrollments of universities of each affiliation type? ### Response:
SELECT Affiliation, SUM(Enrollment) FROM university GROUP BY Affiliation
### Instruction: who is the the pole position with date being august 10 ### Response:
SELECT pole_position FROM table_14638077_2 WHERE date = "August 10"
### Instruction: In what year was this event held in Oslo, Norway? ### Response:
SELECT "Year" FROM table_48324 WHERE "Venue" = 'oslo, norway'
### Instruction: How many values for attendance on the date of September 5? ### Response:
SELECT COUNT("Attendance") FROM table_73593 WHERE "Date" = 'September 5'
### Instruction: What are the luma samples at level 1.3? ### Response:
SELECT "Luma samples/s" FROM table_26281 WHERE "Level" = '1.3'
### Instruction: What player belongs to the Chicago Blackhawks? ### Response:
SELECT player FROM table_2781227_2 WHERE nhl_team = "Chicago Blackhawks"
### Instruction: What was the result on October 1, 1989? ### Response:
SELECT result FROM table_name_15 WHERE date = "october 1, 1989"
### Instruction: For a segment D of pasta, what is the segment B? ### Response:
SELECT "Segment B" FROM table_75290 WHERE "Segment D" = 'pasta'
### Instruction: Worst Posts (according to votes). ### Response:
SELECT Score, Id AS "post_link" FROM Posts WHERE PostTypeId = 1 ORDER BY Score LIMIT 10
### Instruction: If I take 990 , will I have to do a project ? ### Response:
SELECT DISTINCT has_projects FROM course WHERE department = 'EECS' AND number = 990
### Instruction: What is the total number of Attempts, when Touchdowns is 6? ### Response:
SELECT COUNT(attempts) FROM table_name_61 WHERE touchdowns = 6
### Instruction: What is the origin of the one with a number larger than 161? ### Response:
SELECT "Origin" FROM table_31726 WHERE "Number" > '161'
### Instruction: What is the Pick # of the player from Simon Fraser College? ### Response:
SELECT AVG(pick__number) FROM table_name_50 WHERE college = "simon fraser"
### Instruction: What group was sunline in when he was at moonee valley? ### Response:
SELECT group FROM table_2581397_2 WHERE venue = "Moonee Valley"
### Instruction: What district is Jim Moran the incumbent for. ### Response:
SELECT "District" FROM table_59674 WHERE "Incumbent" = 'jim moran'
### Instruction: What is the largest crowd when the away team is Hawthorn? ### Response:
SELECT MAX(crowd) FROM table_name_49 WHERE away_team = "hawthorn"
### Instruction: What is Bruce Cerone overall? ### Response:
SELECT MIN(overall) FROM table_10361230_1 WHERE player_name = "Bruce Cerone"
### Instruction: Name the week 3 for team of mark/jennifer ### Response:
SELECT "Week 3" FROM table_75057 WHERE "Team" = 'mark/jennifer'
### Instruction: Find the number of students who participate in the tryout for each college ordered by descending count. ### Response:
SELECT COUNT(*), cName FROM tryout GROUP BY cName ORDER BY COUNT(*) DESC
### Instruction: What is the sum of Draws for a season later than 1964? ### Response:
SELECT SUM(draws) FROM table_name_67 WHERE season > 1964
### Instruction: in which year were the most steam locomotives built ? ### Response:
SELECT "year built" FROM table_204_30 GROUP BY ("year built") ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: Name the party for the pennsylvania 25 ### Response:
SELECT "Party" FROM table_18490 WHERE "District" = 'Pennsylvania 25'
### Instruction: What is the average high temperature for each day of week? ### Response:
SELECT AVG(high_temperature), day_of_week FROM weekly_weather GROUP BY day_of_week
### Instruction: Who was the opponent with the loss in Westbury, NY? ### Response:
SELECT opponent FROM table_name_37 WHERE result = "loss" AND location = "westbury, ny"
### Instruction: Name the athlete for bulgaria with rank less than 22 ### Response:
SELECT athlete FROM table_name_46 WHERE rank < 22 AND nation = "bulgaria"
### Instruction: Which New council has an Election result larger than 24? ### Response:
SELECT AVG(new_council) FROM table_name_33 WHERE election_result > 24
### Instruction: When was H.B. Higgins first elected? ### Response:
SELECT "First elected" FROM table_60460 WHERE "Member" = 'h.b. higgins'
### Instruction: Name the pronunciation b for meaning of grind ### Response:
SELECT "Pronunciation b" FROM table_35737 WHERE "Meaning a" = 'grind'
### Instruction: When 5th is the regular season what is the highest season? ### Response:
SELECT MAX("Division") FROM table_22963 WHERE "Regular Season" = '5th'
### Instruction: Who is the director of the episode that corresponds to the total episodes number 14? ### Response:
SELECT "Director" FROM table_998 WHERE "Total#" = '14'
### Instruction: What team(s) played in the 1995-96 season? ### Response:
SELECT teams FROM table_name_46 WHERE season = "1995-96"
### Instruction: What is the date of the game at Arrowhead Stadium? ### Response:
SELECT date FROM table_17848578_1 WHERE game_site = "Arrowhead Stadium"
### Instruction: Name the least year for walter hagen ### Response:
SELECT MIN(year) FROM table_225880_1 WHERE runner_s__up = "Walter Hagen"
### Instruction: What is the price of 60 mbps downstream? ### Response:
SELECT "Price" FROM table_44731 WHERE "Downstream" = '60 mbps'
### Instruction: Which Rider finished with a speed of 81.91mph? ### Response:
SELECT rider FROM table_name_39 WHERE speed = "81.91mph"
### Instruction: how many people wrote the episode directed by rob schrab? ### Response:
SELECT COUNT("Written by") FROM table_30273 WHERE "Directed by" = 'Rob Schrab'
### Instruction: What is the overall length with a designation of s-8ko? ### Response:
SELECT "Length overall" FROM table_5007 WHERE "Designation" = 's-8ko'
### Instruction: Name the number of nationality is tom hilde ### Response:
SELECT COUNT(nationality) FROM table_14407512_23 WHERE name = "Tom Hilde"
### Instruction: What is the average number of wins for events larger than 28? ### Response:
SELECT AVG("Wins") FROM table_41731 WHERE "Events" > '28'
### Instruction: What is the most number of laps run by Ilario Dionisi? ### Response:
SELECT MAX(laps) FROM table_name_89 WHERE rider = "ilario dionisi"
### Instruction: What is the round for a year earlier than 1987? ### Response:
SELECT "Round" FROM table_62128 WHERE "Year" < '1987'
### Instruction: What was the final result when the viewers selected ejay? ### Response:
SELECT result FROM table_15162503_1 WHERE viewers_selection = "Ejay"
### Instruction: Name the narraed by for beluga shipping ### Response:
SELECT "Narrated by" FROM table_3488 WHERE "Vessel Operator" = 'Beluga Shipping'
### Instruction: Can you tell me the Score that has the Date of april 8? ### Response:
SELECT "Score" FROM table_40165 WHERE "Date" = 'april 8'
### Instruction: what was the date of the last episode that was broadcast ? ### Response:
SELECT "original broadcast date" FROM table_204_958 ORDER BY "episode" DESC LIMIT 1
### Instruction: Which branding has the callsign of DXGH? ### Response:
SELECT branding FROM table_28794440_1 WHERE callsign = "DXGH"
### Instruction: What was kumar sangakkara's average? ### Response:
SELECT average FROM table_26041144_11 WHERE player = "Kumar Sangakkara"
### Instruction: What is the displacement for the model 1400? ### Response:
SELECT "Displacement" FROM table_62862 WHERE "Model" = '1400'
### Instruction: Name the opponent with round of 1 and time of n/a ### Response:
SELECT opponent FROM table_name_37 WHERE round = "1" AND time = "n/a"
### Instruction: What are the lowest points past the year 1978? ### Response:
SELECT MIN("Points") FROM table_14876 WHERE "Year" > '1978'
### Instruction: What is the highest pick number for player don barber? ### Response:
SELECT MAX(pick__number) FROM table_2679061_6 WHERE player = "Don Barber"
### Instruction: What round has hereford united as the opponent? ### Response:
SELECT "Round" FROM table_35336 WHERE "Opponent" = 'hereford united'
### Instruction: Which Tire has a Sponsor of Duracell? ### Response:
SELECT "Tire" FROM table_50550 WHERE "Sponsor" = 'duracell'
### Instruction: Which team has Peak Fitness as the primary sponsor? ### Response:
SELECT team FROM table_name_87 WHERE primary_sponsor_s_ = "peak fitness"
### Instruction: What was the season when the low team is chicago sting? ### Response:
SELECT season FROM table_237757_10 WHERE low_team = "Chicago Sting"
### Instruction: What is the venue where the home team is Footscray? ### Response:
SELECT "Venue" FROM table_33355 WHERE "Home team" = 'footscray'
### Instruction: What is the score with third place of stefan edberg? ### Response:
SELECT "Score" FROM table_53827 WHERE "Third Place" = 'stefan edberg'
### Instruction: Where did Scott Fitzgerald rank on the UK charts? ### Response:
SELECT "UK Chart" FROM table_65325 WHERE "Artist" = 'scott fitzgerald'
### Instruction: Who was the Builder for the locomotive that has a works number of 323? ### Response:
SELECT builder FROM table_name_92 WHERE works_number = "323"
### Instruction: In Which rank was there a location of porto alegre? ### Response:
SELECT "Rank" FROM table_41855 WHERE "Location" = 'porto alegre'
### Instruction: On what date was the lead 8.6%? ### Response:
SELECT "Date(s) conducted" FROM table_52880 WHERE "Lead" = '8.6%'
### Instruction: Name the most season for old hoss radbourn ### Response:
SELECT MAX(season) FROM table_242813_2 WHERE pitcher = "Old Hoss Radbourn"
### Instruction: What are the first names and last names of the employees who live in Calgary city. ### Response:
SELECT FirstName, LastName FROM EMPLOYEE WHERE City = "Calgary"
### Instruction: In what season did Rusty Wallace win? ### Response:
SELECT MAX("Season") FROM table_21875 WHERE "Winning Driver" = 'Rusty Wallace'
### Instruction: Which Total has a Rank of 9, and a Silver smaller than 2? ### Response:
SELECT MAX(total) FROM table_name_37 WHERE rank = 9 AND silver < 2
### Instruction: What was the result of the election in the Maryland 7 district? ### Response:
SELECT results FROM table_1341423_20 WHERE district = "Maryland 7"
### Instruction: List total amount of invoice from Chicago, IL. ### Response:
SELECT SUM(total) FROM invoices WHERE billing_city = "Chicago" AND billing_state = "IL"
### Instruction: Who is the incumbent in the Washington 1 district? ### Response:
SELECT incumbent FROM table_1805191_48 WHERE district = "Washington 1"
### Instruction: What is the highest when pohang steelers is the team? ### Response:
SELECT highest FROM table_21824695_8 WHERE team = "Pohang Steelers"
### Instruction: Show me the proportion on what are the countries of perpetrators? Show each country and the corresponding number of perpetrators there. ### Response:
SELECT Country, COUNT(*) FROM perpetrator GROUP BY Country
### Instruction: which pylon has the most remarks about it ? ### Response:
SELECT "name" FROM table_203_375 ORDER BY LENGTH("remarks") DESC LIMIT 1