instruction
stringlengths 37
754
| output
stringlengths 9
3.43k
|
---|---|
### Instruction:
How many players have an affiliation with University of Maryland?
### Response:
|
SELECT COUNT(player) FROM table_25518547_2 WHERE affiliation = "University of Maryland"
|
### Instruction:
What are the total account balances for each customer from Utah or Texas?
### Response:
|
SELECT SUM(acc_bal) FROM customer WHERE state = 'Utah' OR state = 'Texas'
|
### Instruction:
Where was the game held that resulted in a score of 9-2?
### Response:
|
SELECT "Venue" FROM table_14489 WHERE "Score" = '9-2'
|
### Instruction:
What player's hometown is Abilene, Texas?
### Response:
|
SELECT "Player" FROM table_17084 WHERE "Hometown" = 'Abilene, Texas'
|
### Instruction:
Where did the match with opponent Laverne Clark occur?
### Response:
|
SELECT "Location" FROM table_39990 WHERE "Opponent" = 'laverne clark'
|
### Instruction:
Can you tell me the Season that has the Score of 1-0?
### Response:
|
SELECT "Season" FROM table_44056 WHERE "Score" = '1-0'
|
### Instruction:
What year was incumbent Martin Lancaster elected?
### Response:
|
SELECT MIN("Elected") FROM table_18219 WHERE "Incumbent" = 'Martin Lancaster'
|
### Instruction:
What is the date of the game with 40,005 in attendance?
### Response:
|
SELECT date FROM table_name_61 WHERE attendance = "40,005"
|
### Instruction:
Which college's enrollment is less than 1,000?
### Response:
|
SELECT institution FROM table_name_85 WHERE enrollment < 1 OFFSET 000
|
### Instruction:
Who was appointed on October 24, 1997?
### Response:
|
SELECT name FROM table_name_63 WHERE appointment = "october 24, 1997"
|
### Instruction:
What is the enrollment for Foote Field?
### Response:
|
SELECT MAX("Enrollment") FROM table_72349 WHERE "Football stadium" = 'Foote Field'
|
### Instruction:
Return a bar chart about the distribution of Days and the sum of Credits , and group by attribute Days.
### Response:
|
SELECT Days, SUM(Credits) FROM Course GROUP BY Days ORDER BY Credits
|
### Instruction:
what's the jurisdiction where percent yes is 43.4
### Response:
|
SELECT jurisdiction FROM table_120778_2 WHERE percent_yes = "43.4"
|
### Instruction:
What is the average rank for nations with fewer than 0 gold medals?
### Response:
|
SELECT AVG("Rank") FROM table_37650 WHERE "Gold" < '0'
|
### Instruction:
What was the season where the team reached a GP of 244?
### Response:
|
SELECT "Season" FROM table_73374 WHERE "GF" = '244'
|
### Instruction:
Visualize a bar chart for how many books fall into each category?, sort the total number in descending order.
### Response:
|
SELECT Category, COUNT(*) FROM book_club GROUP BY Category ORDER BY COUNT(*) DESC
|
### Instruction:
How many students participated in tryouts for each college by descennding count. Show a pie chart.
### Response:
|
SELECT cName, COUNT(*) FROM Tryout GROUP BY cName ORDER BY COUNT(*) DESC
|
### Instruction:
What team was the opponent when the score was 8-2?
### Response:
|
SELECT "Opponent" FROM table_41739 WHERE "Score" = '8-2'
|
### Instruction:
What was the final score for the date of December 30?
### Response:
|
SELECT "Final Score" FROM table_69276 WHERE "Date" = 'december 30'
|
### Instruction:
What district is incument terry kilgore from?
### Response:
|
SELECT district FROM table_13618584_2 WHERE incumbent = "Terry Kilgore"
|
### Instruction:
Which handicap has the horse knowhere?
### Response:
|
SELECT handicap__st_lb_ FROM table_19624708_1 WHERE horse = "Knowhere"
|
### Instruction:
How many were in district virginia 6?
### Response:
|
SELECT COUNT("Candidates") FROM table_28949 WHERE "District" = 'Virginia 6'
|
### Instruction:
What was the worldwide gross for the film directed by joe pytka?
### Response:
|
SELECT worldwide_gross FROM table_name_65 WHERE director = "joe pytka"
|
### Instruction:
Name the most male life expectancy for pakistan
### Response:
|
SELECT MAX(male_life_expectancy) FROM table_2701625_1 WHERE country = "Pakistan"
|
### Instruction:
What is the home team score when st kilda is the away team?
### Response:
|
SELECT "Home team score" FROM table_4662 WHERE "Away team" = 'st kilda'
|
### Instruction:
Which fleet numbers has quanitity of 13?
### Response:
|
SELECT "Fleet number(s)" FROM table_49529 WHERE "Quantity made" = '13'
|
### Instruction:
Which Romaji Title has a Japanese Title of ?
### Response:
|
SELECT romaji_title FROM table_name_64 WHERE japanese_title = "女王の教室"
|
### Instruction:
What was the date of the game for the HartlePool United team?
### Response:
|
SELECT "Date" FROM table_63723 WHERE "Home team" = 'hartlepool united'
|
### Instruction:
What is the barony for the Ballintaggart townland?
### Response:
|
SELECT "Barony" FROM table_4289 WHERE "Townland" = 'Ballintaggart'
|
### Instruction:
Name the others for cons of 21% and lead of 24%
### Response:
|
SELECT others FROM table_name_60 WHERE cons = "21%" AND lead = "24%"
|
### Instruction:
how many historic sites were listed in 1988 ?
### Response:
|
SELECT COUNT("name") FROM table_204_423 WHERE "listing date" = 1988
|
### Instruction:
What year was incumbent jim ramstad first elected?
### Response:
|
SELECT MIN("First elected") FROM table_679 WHERE "Incumbent" = 'Jim Ramstad'
|
### Instruction:
How many snatches were there with a total of 267.5?
### Response:
|
SELECT COUNT(snatch) FROM table_name_73 WHERE total < 267.5
|
### Instruction:
Name the city of license with frequency of 90.1 fm
### Response:
|
SELECT city_of_license FROM table_name_37 WHERE frequency = "90.1 fm"
|
### Instruction:
which episodes were not directed by shelley jensen ?
### Response:
|
SELECT "title" FROM table_203_182 WHERE "directed by" <> 'shelley jensen'
|
### Instruction:
which producer had the most titles ?
### Response:
|
SELECT "writer(s)" FROM table_204_927 GROUP BY "writer(s)" ORDER BY COUNT("title") DESC LIMIT 1
|
### Instruction:
Name the paarameter for 1.0 m 3rd stage
### Response:
|
SELECT "Parameter" FROM table_20883 WHERE "3rd stage" = '1.0 m'
|
### Instruction:
what is the Identifier with 94.9 fm Frequency
### Response:
|
SELECT "Identifier" FROM table_77055 WHERE "Frequency" = '94.9 fm'
|
### Instruction:
Which week had the highest attendance with 58,701?
### Response:
|
SELECT MAX(week) FROM table_name_77 WHERE attendance = "58,701"
|
### Instruction:
When first elected was 2006, who was the delegate?
### Response:
|
SELECT "Delegate" FROM table_75479 WHERE "First Elected" = '2006'
|
### Instruction:
Name the record with attendance of 73,996
### Response:
|
SELECT "Record" FROM table_15111 WHERE "Attendance" = '73,996'
|
### Instruction:
How many runners-up did Espartanos de Margarita have?
### Response:
|
SELECT runners_up FROM table_name_84 WHERE team = "espartanos de margarita"
|
### Instruction:
During season 1935, what was the venue?
### Response:
|
SELECT "Venue" FROM table_58153 WHERE "Season" = '1935'
|
### Instruction:
What is the lowest Game, when Date is March 21?
### Response:
|
SELECT MIN("Game") FROM table_76738 WHERE "Date" = 'march 21'
|
### Instruction:
Name the date for the score of w 83-69
### Response:
|
SELECT "Date" FROM table_21316 WHERE "Score" = 'W 83-69'
|
### Instruction:
Find the average credit score of the customers who do not have any loan.
### Response:
|
SELECT AVG(credit_score) FROM customer WHERE NOT cust_id IN (SELECT cust_id FROM loan)
|
### Instruction:
Which terminations correspond to a US MSRP of $49?
### Response:
|
SELECT "Termination" FROM table_20473 WHERE "US MSRP" = '$49'
|
### Instruction:
Which Notes has Authors of zhou clarke zhang?
### Response:
|
SELECT "Notes" FROM table_41411 WHERE "Authors" = 'zhou clarke zhang'
|
### Instruction:
jimmy johnson won how many consecutive espy awards ?
### Response:
|
SELECT COUNT(*) FROM table_203_364 WHERE "driver" = 'jimmie johnson'
|
### Instruction:
What is the frequency of Walterboro, SC?
### Response:
|
SELECT frequency_mhz FROM table_name_74 WHERE city_of_license = "walterboro, sc"
|
### Instruction:
What college does Jean-Nicolas Carriere play for?
### Response:
|
SELECT college FROM table_16575609_3 WHERE player = "Jean-Nicolas Carriere"
|
### Instruction:
How many people watched the episode 'bad girls'?
### Response:
|
SELECT "U.S. viewers (million)" FROM table_30598 WHERE "Title" = 'Bad Girls'
|
### Instruction:
have total body weight below 30 kg or above 90 kg
### Response:
|
SELECT * FROM table_train_12 WHERE body_weight < 30 OR body_weight > 90
|
### Instruction:
Post for tag from year 2013.
### Response:
|
SELECT Id, Title, Tags FROM Posts WHERE YEAR(CreationDate) > 2013 AND Tags LIKE '%mysql%'
|
### Instruction:
tell me the number of times marcel rocque was lead ?
### Response:
|
SELECT COUNT(*) FROM table_204_747 WHERE "lead" = 'marcel rocque'
|
### Instruction:
What is the sum of Top-5 values with events values less than 2?
### Response:
|
SELECT SUM("Top-5") FROM table_32126 WHERE "Events" < '2'
|
### Instruction:
What are the school years where class 'AAA' is argyle?
### Response:
|
SELECT school_year FROM table_14603212_5 WHERE class_aAA = Argyle
|
### Instruction:
who co-wrote Season 2, Episode 3?
### Response:
|
SELECT written_by FROM table_17901155_3 WHERE no_in_season = 3
|
### Instruction:
What is the average age of male students in each city? Draw a bar chart.
### Response:
|
SELECT city_code, AVG(Age) FROM Student WHERE Sex = 'M' GROUP BY city_code
|
### Instruction:
Stack bar chart of school_id vs ACC_Road based on all home
### Response:
|
SELECT All_Home, School_ID FROM basketball_match GROUP BY ACC_Road, All_Home
|
### Instruction:
Tell me the score of misa eguchi eri hozumi
### Response:
|
SELECT score FROM table_name_62 WHERE opponents = "misa eguchi eri hozumi"
|
### Instruction:
What is the biggest week with an opponent of washington redskins?
### Response:
|
SELECT MAX(week) FROM table_name_18 WHERE opponent = "washington redskins"
|
### Instruction:
What is the number of pole position with a round of 15?
### Response:
|
SELECT COUNT("Pole Position") FROM table_16666 WHERE "Round" = '15'
|
### Instruction:
How many teams placed 4th in the regular season?
### Response:
|
SELECT COUNT(division) FROM table_12002388_1 WHERE reg_season = "4th"
|
### Instruction:
What is the gross capacity where the reactor is ABWR type?
### Response:
|
SELECT "Gross Capacity" FROM table_53326 WHERE "Reactor Type" = 'abwr'
|
### Instruction:
Who had the fastest lap in the Monaco Grand Prix?
### Response:
|
SELECT "Fastest Lap" FROM table_52286 WHERE "Race" = 'monaco grand prix'
|
### Instruction:
Which title has a translation in it of 1000 lies?
### Response:
|
SELECT "Title" FROM table_34769 WHERE "Translation" = '1000 lies'
|
### Instruction:
what is the tv station when the average ratings is 19.5%?
### Response:
|
SELECT tv_station FROM table_name_36 WHERE average_ratings = "19.5%"
|
### Instruction:
What is in 1st place when present is mogu?
### Response:
|
SELECT 1 AS st FROM table_27298240_28 WHERE present = "mogu"
|
### Instruction:
What conference did the player originally from the denver broncos play in?
### Response:
|
SELECT "Conf." FROM table_66519 WHERE "Original NFL team" = 'denver broncos'
|
### Instruction:
List all high rebound entries from May 11.
### Response:
|
SELECT high_rebounds FROM table_22654073_13 WHERE date = "May 11"
|
### Instruction:
Who was the Director of Kung Fu Panda 2?
### Response:
|
SELECT "Director" FROM table_13743 WHERE "Title" = 'kung fu panda 2'
|
### Instruction:
Who was the opponent that played against the Buckeyes on October 17?
### Response:
|
SELECT opponent_number FROM table_name_16 WHERE date = "october 17"
|
### Instruction:
List all players with highest assists from April 2.
### Response:
|
SELECT high_assists FROM table_23248910_10 WHERE date = "April 2"
|
### Instruction:
Who is the actor required when Edna Stricken is the FlatSpin actor?
### Response:
|
SELECT actor_required FROM table_name_24 WHERE flatspin = "edna stricken"
|
### Instruction:
Which Runner-Up has a Total of 31,200?
### Response:
|
SELECT runner_up FROM table_name_44 WHERE total = "£31,200"
|
### Instruction:
What 20-29 was in season 2008?
### Response:
|
SELECT 20 AS _29 FROM table_name_69 WHERE season = "2008"
|
### Instruction:
which chassis were in use prior to 1988?
### Response:
|
SELECT "Chassis" FROM table_14936 WHERE "Year" < '1988'
|
### Instruction:
What is the strike rate when there are 17 wickets?
### Response:
|
SELECT strike_rate FROM table_19662262_6 WHERE wickets = 17
|
### Instruction:
What score had a record of 17 18 6?
### Response:
|
SELECT "Score" FROM table_9868 WHERE "Record" = '17–18–6'
|
### Instruction:
how many championships does nippon sport science university have
### Response:
|
SELECT "winner" FROM table_204_19 WHERE "university" = 'nippon sport science university'
|
### Instruction:
how many drivers raced in the preliminary round ?
### Response:
|
SELECT COUNT("diver") FROM table_203_780 WHERE NOT "preliminary\npoints" IS NULL
|
### Instruction:
How many seasons had episode 158?
### Response:
|
SELECT MIN("No. in season") FROM table_24884 WHERE "No. in series" = '158'
|
### Instruction:
What position does the player who is 6-10 play?
### Response:
|
SELECT "Position" FROM table_51688 WHERE "Height in Ft." = '6-10'
|
### Instruction:
what are the number of times model 25 is listed on this chart ?
### Response:
|
SELECT COUNT(*) FROM table_203_136 WHERE "name" = 'model 25'
|
### Instruction:
What is the lowest rank of the building with 12 floors?
### Response:
|
SELECT MIN("Rank") FROM table_9308 WHERE "Floors*" = '12'
|
### Instruction:
What is the Origin of Programming for the Network NDTV India?
### Response:
|
SELECT "Origin of Programming" FROM table_4728 WHERE "Network" = 'ndtv india'
|
### Instruction:
Name the points with chassis of march 751
### Response:
|
SELECT "Points" FROM table_15125 WHERE "Chassis" = 'march 751'
|
### Instruction:
What team was the Away team when the Tie no was 3?
### Response:
|
SELECT "Away team" FROM table_42785 WHERE "Tie no" = '3'
|
### Instruction:
Name the status for unemployment rate being 6.7%
### Response:
|
SELECT "Status" FROM table_25333 WHERE "Unemployment Rate" = '6.7%'
|
### Instruction:
What is the production code for episode 26 in the series?
### Response:
|
SELECT production_code FROM table_1876825_3 WHERE no_in_series = 26
|
### Instruction:
Calvin Abueva Calvin Abueva had what statistic?
### Response:
|
SELECT statistic FROM table_name_70 WHERE name = "calvin abueva calvin abueva"
|
### Instruction:
Name the original title of the Suzana Amaral film
### Response:
|
SELECT "Original title" FROM table_19966 WHERE "Director" = 'Suzana Amaral'
|
### Instruction:
what re the high assists for january 29?
### Response:
|
SELECT "High assists" FROM table_31414 WHERE "Date" = 'January 29'
|
### Instruction:
who is the winner when the score is 71-62?
### Response:
|
SELECT "Winner" FROM table_63518 WHERE "Score" = '71-62'
|
### Instruction:
Which team had an outgoing manager of Behtash Fariba?
### Response:
|
SELECT "Team" FROM table_24903 WHERE "Outgoing manager" = 'Behtash Fariba'
|
### Instruction:
Name the most 1 credit for three of a kind
### Response:
|
SELECT MAX(1 AS _credit) FROM table_148535_2 WHERE hand = "Three of a Kind"
|
### Instruction:
Who had a perfection percentage of 77.96%?
### Response:
|
SELECT "Name" FROM table_71568 WHERE "Perfection" = '77.96%'
|
### Instruction:
What year did they finish 1st, southern?
### Response:
|
SELECT MAX(year) FROM table_12002388_1 WHERE reg_season = "1st, Southern"
|
### Instruction:
what are all the hometown where the average age is 16
### Response:
|
SELECT "Hometown" FROM table_28568 WHERE "Age(s)" = '16'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.