instruction
stringlengths 37
754
| output
stringlengths 9
3.43k
|
---|---|
### Instruction:
What is the total number of goals scored against clubs that have played more than 42 times?
### Response:
| SELECT COUNT(goals_against) FROM table_name_68 WHERE played > 42 |
### Instruction:
what is age and insurance of subject id 2560?
### Response:
| SELECT demographic.age, demographic.insurance FROM demographic WHERE demographic.subject_id = "2560" |
### Instruction:
Show me about the distribution of Team_Name and School_ID in a bar chart, show in desc by the bar.
### Response:
| SELECT Team_Name, School_ID FROM basketball_match ORDER BY Team_Name DESC |
### Instruction:
Who had the most assists and how many did they have on January 5?
### Response:
| SELECT "High assists" FROM table_74403 WHERE "Date" = 'January 5' |
### Instruction:
What are the grapes, appelations, and wines with scores above 93, sorted by Name?
### Response:
| SELECT grape, appelation, name FROM wine WHERE score > 93 ORDER BY name |
### Instruction:
What was the result of the game played in hurst?
### Response:
| SELECT "Result F \u2013 A" FROM table_37892 WHERE "H / A" = 'hurst' |
### Instruction:
Who was the opponent when the record was 61-57?
### Response:
| SELECT "Opponent" FROM table_53142 WHERE "Record" = '61-57' |
### Instruction:
How many sail numbers for boat skippered by Geoff Ross?
### Response:
| SELECT COUNT(sail_number) FROM table_20854943_2 WHERE skipper = "Geoff Ross" |
### Instruction:
Name the least season number for two marriage proposals
### Response:
| SELECT MIN(season__number) FROM table_25363904_2 WHERE title_english = "Two marriage proposals" |
### Instruction:
What is after intermediate algebra
### Response:
| SELECT senior__4th_year_ FROM table_13967239_2 WHERE sophomore__grade_8_ = "Intermediate Algebra" |
### Instruction:
What is the 2010 when the 2009 shows Q1?
### Response:
| SELECT 2010 FROM table_name_50 WHERE 2009 = "q1" |
### Instruction:
What is the release date of 'New Worlds for Old'?
### Response:
| SELECT release_date FROM table_27932399_1 WHERE release_title = "New Worlds For Old" |
### Instruction:
What is Away Team, when Home Team is 'Sheffield Wednesday'?
### Response:
| SELECT away_team FROM table_name_65 WHERE home_team = "sheffield wednesday" |
### Instruction:
What's the number of the game played on June 22?
### Response:
| SELECT MAX(game) FROM table_19778010_5 WHERE date = "June 22" |
### Instruction:
What position did a. j. feeley play who was picked in round 5?
### Response:
| SELECT position FROM table_name_70 WHERE round = 5 AND player = "a. j. feeley" |
### Instruction:
The episode with the title 'Written in Dust' is what episode #?
### Response:
| SELECT "Episode #" FROM table_29094 WHERE "Title" = 'Written in Dust' |
### Instruction:
What novelty has USA as the location, and coryloides as the name?
### Response:
| SELECT novelty FROM table_name_70 WHERE location = "usa" AND name = "coryloides" |
### Instruction:
If the highest score is 88, what are the 50s?
### Response:
| SELECT "50s" FROM table_74068 WHERE "Highest Score" = '88' |
### Instruction:
Who had the high points when high assists is tim duncan (5)?
### Response:
| SELECT "High points" FROM table_3856 WHERE "High assists" = 'Tim Duncan (5)' |
### Instruction:
Who was the tournament winner in the Southwestern Athletic Conference?
### Response:
| SELECT "Tournament Winner" FROM table_30825 WHERE "Conference" = 'Southwestern Athletic Conference' |
### Instruction:
Which week's game was attended by 65,272 people?
### Response:
| SELECT "Week" FROM table_43024 WHERE "Attendance" = '65,272' |
### Instruction:
What is the customer id with most number of cards, and how many does he have?
### Response:
| SELECT customer_id, COUNT(*) FROM Customers_cards GROUP BY customer_id ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
What is the rear sight in the Cole model no. 735?
### Response:
| SELECT "Rear sight" FROM table_72335 WHERE "Colt model no." = '735' |
### Instruction:
What are all the order #s from the week 'top 6'?
### Response:
| SELECT order__number FROM table_29756040_1 WHERE week__number = "Top 6" |
### Instruction:
What team had a qual 1 of 59.895?
### Response:
| SELECT "Team" FROM table_32367 WHERE "Qual 1" = '59.895' |
### Instruction:
specify the birthdate and gender of patient id 17519
### Response:
| SELECT demographic.dob, demographic.gender FROM demographic WHERE demographic.subject_id = "17519" |
### Instruction:
Who directed the nominated film 'blood on his hands'?
### Response:
| SELECT director_s_ FROM table_name_45 WHERE rank = "nominated" AND film = "blood on his hands" |
### Instruction:
Result of win, and a Score of 33-22 involved what event?
### Response:
| SELECT event FROM table_name_4 WHERE result = "win" AND score = "33-22" |
### Instruction:
What is the tournament on 5 October 2004?
### Response:
| SELECT "Tournament" FROM table_12131 WHERE "Date" = '5 october 2004' |
### Instruction:
Name the college/junior club team for john campbell
### Response:
| SELECT college_junior_club_team FROM table_1965650_3 WHERE player = "John Campbell" |
### Instruction:
How many delegates in each committee? Return a bar chart, I want to order in descending by the X.
### Response:
| SELECT Committee, COUNT(Committee) FROM election GROUP BY Committee ORDER BY Committee DESC |
### Instruction:
When is the most recent year with more than 27 points and more than 5 wins?
### Response:
| SELECT MAX(year) FROM table_name_69 WHERE points > 27 AND wins > 5 |
### Instruction:
How many counties have a place name of Macedonia?
### Response:
| SELECT COUNT("County(ies) [A ]") FROM table_3172 WHERE "Place Name" = 'Macedonia' |
### Instruction:
When was the dvd release directed by Billy O'Brien?
### Response:
| SELECT dvd_release FROM table_19982699_1 WHERE director = "Billy O'Brien" |
### Instruction:
What was the record at the game that had a loss of Blyleven (4-5)?
### Response:
| SELECT record FROM table_name_55 WHERE loss = "blyleven (4-5)" |
### Instruction:
Who was the manager for the team with captain Neil Redfearn?
### Response:
| SELECT "Manager 1" FROM table_70936 WHERE "Captain" = 'neil redfearn' |
### Instruction:
For series number 256, what was the original air date?
### Response:
| SELECT original_air_date FROM table_17356106_1 WHERE series__number = 256 |
### Instruction:
What type of aircraft was the plane with a tail number of ya-bao?
### Response:
| SELECT "Aircraft" FROM table_42153 WHERE "Tail number" = 'ya-bao' |
### Instruction:
How many times was the incumbent mike capuano
### Response:
| SELECT COUNT(result) FROM table_1341395_22 WHERE incumbent = "Mike Capuano" |
### Instruction:
What competition was played on 2 June 1992?
### Response:
| SELECT "Competition" FROM table_60766 WHERE "Date" = '2 june 1992' |
### Instruction:
What is the letter name for the Asomtavruli ?
### Response:
| SELECT "Letter name" FROM table_47095 WHERE "Asomtavruli" = 'ⴙ' |
### Instruction:
What is Qual 2, when Best is 1:27.976?
### Response:
| SELECT qual_2 FROM table_name_10 WHERE best = "1:27.976" |
### Instruction:
when points against is points again, which are the drawn?
### Response:
| SELECT drawn FROM table_20396710_1 WHERE "points_against" = "points_against" |
### Instruction:
What is the power for the years 1975-84?
### Response:
| SELECT "Power" FROM table_62867 WHERE "Years" = '1975-84' |
### Instruction:
what's the imperial that contains a jyutping of cin4?
### Response:
| SELECT "Imperial value" FROM table_38997 WHERE "Jyutping" = 'cin4' |
### Instruction:
What was the result of the game after week 3 against the New York Giants?
### Response:
| SELECT result FROM table_name_94 WHERE week > 3 AND opponent = "new york giants" |
### Instruction:
Name the sum of frequency will call sign of k259aw
### Response:
| SELECT SUM("Frequency MHz") FROM table_79769 WHERE "Call sign" = 'k259aw' |
### Instruction:
Plot sum capacity over openning year in a line chart, I want to display by the X in descending.
### Response:
| SELECT Openning_year, SUM(Capacity) FROM cinema ORDER BY Openning_year DESC |
### Instruction:
What was the loss of the game with a record of 54 42?
### Response:
| SELECT "Loss" FROM table_15205 WHERE "Record" = '54–42' |
### Instruction:
Which record's round was 3 when the event was fight festival 27?
### Response:
| SELECT record FROM table_name_19 WHERE round = 3 AND event = "fight festival 27" |
### Instruction:
Which companies have a free float of 0.2726?
### Response:
| SELECT company FROM table_20667854_1 WHERE free_float = "0.2726" |
### Instruction:
When 5 is the rank of 2011 what is the country?
### Response:
| SELECT "Country" FROM table_31107 WHERE "Rank 2011" = '5' |
### Instruction:
Which player played wide receiver after 2008?
### Response:
| SELECT "Player" FROM table_6757 WHERE "Year" > '2008' AND "Position" = 'wide receiver' |
### Instruction:
Who published the title in the pet-raising simulator genre?
### Response:
| SELECT "Publisher" FROM table_24383 WHERE "Genre" = 'Pet-raising simulator' |
### Instruction:
Date of 8 july 1994 involves which performer 1?
### Response:
| SELECT performer_1 FROM table_name_31 WHERE date = "8 july 1994" |
### Instruction:
What team's manager was replaced by Ercan Ertem z?
### Response:
| SELECT team FROM table_27091128_2 WHERE replaced_by = "Ercan Ertemçöz" |
### Instruction:
What are the election date for elections held in the province of Albacete?
### Response:
| SELECT "Election date" FROM table_28606 WHERE "Province" = 'Albacete' |
### Instruction:
A bar chart for what are the number of the countries of mountains with height bigger than 5000?
### Response:
| SELECT Country, COUNT(Country) FROM mountain WHERE Height > 5000 GROUP BY Country |
### Instruction:
is ludvika ffl a d3 or a d2 ?
### Response:
| SELECT "away team" FROM table_204_846 WHERE "away team" = 'ludvika ffi' |
### Instruction:
For the race called by Marshall Cassidy, who was the host?
### Response:
| SELECT "s Host" FROM table_25131 WHERE "Race caller" = 'Marshall Cassidy' |
### Instruction:
What is the name of the race won by driver Carlos Reutemann?
### Response:
| SELECT "Race Name" FROM table_54001 WHERE "Winning driver" = 'carlos reutemann' |
### Instruction:
Which audition city held callbacks at Amelia Island Plantation?
### Response:
| SELECT "Audition City" FROM table_11081 WHERE "Callback Venue" = 'amelia island plantation' |
### Instruction:
how many Curtiss XBTC aircraft are retired?
### Response:
| SELECT COUNT(retired) FROM table_13605170_2 WHERE aircraft_type = "Curtiss XBTC" |
### Instruction:
Erdo an Ar ca is the head coach at what venue?
### Response:
| SELECT "Venue" FROM table_21646 WHERE "Head coach" = 'Erdoğan Arıca' |
### Instruction:
Which authors published papers in 2015 ?
### Response:
| SELECT DISTINCT writes.authorid FROM paper, writes WHERE paper.year = 2015 AND writes.paperid = paper.paperid |
### Instruction:
If the games played are smaller than 18, what are the lowest goals conceded?
### Response:
| SELECT MIN(goals_conceded) FROM table_name_72 WHERE played < 18 |
### Instruction:
When was the film directed by Pen-Ek Ratanaruang released?
### Response:
| SELECT "Date" FROM table_41061 WHERE "Director" = 'pen-ek ratanaruang' |
### Instruction:
How many frequency figures are given for next station service pattern?
### Response:
| SELECT COUNT(frequency__per_hour_) FROM table_1612760_1 WHERE service_pattern = "Next station" |
### Instruction:
What year was incumbent william f. stevenson first elected?
### Response:
| SELECT "First elected" FROM table_788 WHERE "Incumbent" = 'William F. Stevenson' |
### Instruction:
How many CFL teams drafted someone from mount allison college?
### Response:
| SELECT COUNT(cfl_team) FROM table_26996293_3 WHERE college = "Mount Allison" |
### Instruction:
Which University's soccer stadium in named Moncton Stadium?
### Response:
| SELECT university FROM table_27369069_1 WHERE soccer_stadium = "Moncton Stadium" |
### Instruction:
What is the average against of Murrayfield, Edinburgh?
### Response:
| SELECT AVG("Against") FROM table_59515 WHERE "Venue" = 'murrayfield, edinburgh' |
### Instruction:
Tell me the opponents for partner of yvonne meusburger
### Response:
| SELECT "Opponents" FROM table_31833 WHERE "Partner" = 'yvonne meusburger' |
### Instruction:
Questions with 4 Close Votes.
### Response:
| SELECT PostId AS "post_link" FROM Votes WHERE VoteTypeId = 6 GROUP BY PostId HAVING SUM(1) = 4 |
### Instruction:
Who was performer 3 with karen maruyama as performer 2?
### Response:
| SELECT performer_3 FROM table_name_67 WHERE performer_2 = "karen maruyama" |
### Instruction:
What is District, when Incumbent is 'Richard Neal'?
### Response:
| SELECT "District" FROM table_59230 WHERE "Incumbent" = 'richard neal' |
### Instruction:
Who was the man of the match when they lost 2-4?
### Response:
| SELECT "Man of the Match" FROM table_21357 WHERE "Result" = 'Lost 2-4' |
### Instruction:
What is the average rank of Great Britain when their total is over 4?
### Response:
| SELECT AVG(rank) FROM table_name_80 WHERE total > 4 AND nation = "great britain" |
### Instruction:
What are the average points White made with 0 extra points?
### Response:
| SELECT AVG("Points") FROM table_4968 WHERE "Extra points" = '0' AND "Player" = 'white' |
### Instruction:
What is the average amount of spectators when Essendon played as the home team?
### Response:
| SELECT AVG(crowd) FROM table_name_84 WHERE home_team = "essendon" |
### Instruction:
How many cities have an enrollment of 19082?
### Response:
| SELECT COUNT("City") FROM table_72350 WHERE "Enrollment" = '19082' |
### Instruction:
How many values for high assists when the game is 81?
### Response:
| SELECT COUNT(high_assists) FROM table_23248869_10 WHERE game = 81 |
### Instruction:
What is the IATA for the chennai international airport?
### Response:
| SELECT "IATA" FROM table_33925 WHERE "Airport" = 'chennai international airport' |
### Instruction:
How many 180s have legs won of 45?
### Response:
| SELECT MAX("180s") FROM table_24018 WHERE "Legs Won" = '45' |
### Instruction:
Name the number of last appearance where team is san francisco 49ers
### Response:
| SELECT COUNT("Last appearance") FROM table_1347 WHERE "Team" = 'San Francisco 49ers' |
### Instruction:
what is patient 025-66662's gender?
### Response:
| SELECT DISTINCT patient.gender FROM patient WHERE patient.uniquepid = '025-66662' |
### Instruction:
Name the dates for margin of victory being 5 strokes
### Response:
| SELECT COUNT(dates) FROM table_1628792_1 WHERE margin_of_victory = "5 strokes" |
### Instruction:
what was the total amount of points scored on november 4th ?
### Response:
| SELECT "score" + "score" FROM table_204_388 WHERE "date" = 'november 4' |
### Instruction:
How many games had the attendance of 60225?
### Response:
| SELECT COUNT(result) FROM table_14945608_1 WHERE attendance = 60225 |
### Instruction:
with Distribution of 10.6% what is the average api level?
### Response:
| SELECT AVG("API level") FROM table_15321 WHERE "Distribution" = '10.6%' |
### Instruction:
What is the willow canyon of Stallion?
### Response:
| SELECT willow_canyon FROM table_11340432_1 WHERE shadow_ridge = "Stallion" |
### Instruction:
Name the january when april is courtney rachel culkin
### Response:
| SELECT "January" FROM table_69132 WHERE "April" = 'courtney rachel culkin' |
### Instruction:
Compare the total number of different ranks using a bar graph, and sort from low to high by the Y.
### Response:
| SELECT Rank, COUNT(Rank) FROM captain GROUP BY Rank ORDER BY COUNT(Rank) |
### Instruction:
Which Losses has Scored of 9, and Points larger than 8?
### Response:
| SELECT AVG(losses) FROM table_name_87 WHERE scored = 9 AND points > 8 |
### Instruction:
How many silver medals for germany with a bronze count more than 0?
### Response:
| SELECT MAX(silver) FROM table_name_81 WHERE nation = "germany" AND bronze > 0 |
### Instruction:
What was the home team that scored 5.7 (37)?
### Response:
| SELECT "Home team" FROM table_33487 WHERE "Home team score" = '5.7 (37)' |
### Instruction:
Return a bar chart about the distribution of Date_of_Birth and Height , and order Y-axis from high to low order.
### Response:
| SELECT Date_of_Birth, Height FROM people ORDER BY Height DESC |
### Instruction:
Who or which group is most popular in 2015?
### Response:
| SELECT artist FROM torrents WHERE groupyear = 2015 GROUP BY artist ORDER BY totalsnatched DESC LIMIT 1 |
### Instruction:
What is the Score 1 of the game with Attendance of 2,571?
### Response:
| SELECT score_1 FROM table_name_55 WHERE attendance = "2,571" |
### Instruction:
What was the maximum rank-final score on the floor exercise?
### Response:
| SELECT MAX("Rank-Final") FROM table_28861 WHERE "Apparatus" = 'Floor Exercise' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.