instruction
stringlengths 37
754
| output
stringlengths 9
3.43k
|
---|---|
### Instruction:
What is the home team that played on M.C.G. grounds?
### Response:
| SELECT "Home team" FROM table_1440 WHERE "Ground" = 'M.C.G.' |
### Instruction:
What was the original title of Run for Money?
### Response:
| SELECT "Original title" FROM table_22173 WHERE "Film title used in nomination" = 'Run for Money' |
### Instruction:
What was the attendance when they played the New Orleans Saints?
### Response:
| SELECT "Attendance" FROM table_8321 WHERE "Opponent" = 'new orleans saints' |
### Instruction:
Which bubbles has an atribute of onlostpointercapture?
### Response:
| SELECT "Bubbles" FROM table_35692 WHERE "Attribute" = 'onlostpointercapture' |
### Instruction:
What episode did Pamela Anderson guest host.
### Response:
| SELECT COUNT(episode_number) FROM table_1590967_7 WHERE guest_host = "Pamela Anderson" |
### Instruction:
On what date is there a Tryre of d at the Circuit of monaco?
### Response:
| SELECT date FROM table_name_91 WHERE tyre = "d" AND circuit = "monaco" |
### Instruction:
Who was the home team at the game that had a score of 2 2?
### Response:
| SELECT "Home" FROM table_52387 WHERE "Score" = '2 – 2' |
### Instruction:
What is every value for sacks if interceptions is 19?
### Response:
| SELECT sacks FROM table_27487336_1 WHERE interceptions = "19" |
### Instruction:
What is the away team score when the home team is Geelong?
### Response:
| SELECT "Away team score" FROM table_32203 WHERE "Home team" = 'geelong' |
### Instruction:
Create a bar chart showing the total number across city code, I want to order bar in desc order.
### Response:
| SELECT city_code, COUNT(*) FROM Student GROUP BY city_code ORDER BY city_code DESC |
### Instruction:
Give the order ids for all orders, as well as the total product quantity in each in a scatter chart
### Response:
| SELECT order_id, SUM(product_quantity) FROM Order_Items GROUP BY order_id |
### Instruction:
What is the size of the crowd for the home team of Footscray?
### Response:
| SELECT "Crowd" FROM table_52653 WHERE "Home team" = 'footscray' |
### Instruction:
WHAT IS THE DATE WITH AN AWAY TEAM OF BURTON ALBION?
### Response:
| SELECT date FROM table_name_15 WHERE away_team = "burton albion" |
### Instruction:
What is the 2nd leg of goi s team 2?
### Response:
| SELECT "2nd leg" FROM table_48892 WHERE "Team #2" = 'goiás' |
### Instruction:
What were the high rebounds on February 24?
### Response:
| SELECT high_rebounds FROM table_15869204_7 WHERE date = "February 24" |
### Instruction:
count yearid for visualizing a line chart, and sort X-axis in descending order.
### Response:
| SELECT yearid, COUNT(yearid) FROM hall_of_fame ORDER BY yearid DESC |
### Instruction:
What's 's romanised name?
### Response:
| SELECT romanised_name FROM table_2263674_1 WHERE chinese_name = "梁愛詩" |
### Instruction:
What was the home leg score against partizani tirana?
### Response:
| SELECT "Home Leg" FROM table_24805 WHERE "Opponents" = 'Partizani Tirana' |
### Instruction:
I want the R 53 of D 41 of r 21
### Response:
| SELECT r_53 FROM table_name_95 WHERE d_41 = "r 21" |
### Instruction:
What event was in New Orleans, Louisiana, USA?
### Response:
| SELECT "Event" FROM table_35205 WHERE "Location" = 'new orleans, louisiana, usa' |
### Instruction:
What Station Name has an Arrival time of 01:10?
### Response:
| SELECT "Station Name" FROM table_5092 WHERE "Arrival" = '01:10' |
### Instruction:
What is the quantity of the item with the numbers of 29-36?
### Response:
| SELECT AVG(quantity) FROM table_name_91 WHERE numbers = "29-36" |
### Instruction:
what is the percent for other when the margin of error is 3%?
### Response:
| SELECT "Other" FROM table_10801 WHERE "Margin of error" = '± 3%' |
### Instruction:
Show different types of ships and the number of ships of each type Show bar chart, and order from high to low by the Type.
### Response:
| SELECT Type, COUNT(*) FROM ship GROUP BY Type ORDER BY Type DESC |
### Instruction:
Where was Outback Steakhouse Pro-AM held?
### Response:
| SELECT "Location" FROM table_20029 WHERE "Tournament" = 'Outback Steakhouse Pro-Am' |
### Instruction:
What is the sum of total values for Rd 7 less than 8?
### Response:
| SELECT SUM("Total") FROM table_77244 WHERE "Rd 7" < '8' |
### Instruction:
total number of members from lawton and oklahoma city
### Response:
| SELECT COUNT("name") FROM table_204_68 WHERE "hometown" IN ('lawton', 'oklahoma city') |
### Instruction:
i would like to leave around 7 o'clock in the morning
### Response:
| SELECT DISTINCT flight_id FROM flight WHERE departure_time <= 730 AND departure_time >= 630 |
### Instruction:
What Site had an Attendance of 45,000?
### Response:
| SELECT "Site" FROM table_46199 WHERE "Attendance" = '45,000' |
### Instruction:
On what date is there an assist/pass by Shannon Boxx?
### Response:
| SELECT "Date" FROM table_65211 WHERE "Assist/pass" = 'shannon boxx' |
### Instruction:
Tell me the lowest bronze for panama and total larger than 8
### Response:
| SELECT MIN(bronze) FROM table_name_84 WHERE nation = "panama" AND total > 8 |
### Instruction:
Name the D46 when it has D 44 of majority
### Response:
| SELECT "D 46" FROM table_15360 WHERE "D 44" = '← majority' |
### Instruction:
What is the average for Draw games where Played games is more than 18?
### Response:
| SELECT AVG("Draw") FROM table_7307 WHERE "Played" > '18' |
### Instruction:
Bounty Amount Received per User. Questions where a user has received a Bounty Amount for their answer.
### Response:
| SELECT * FROM PostHistory WHERE PostHistoryTypeId = 21 |
### Instruction:
What is the largest Founded with an Institution of cloud county community college?
### Response:
| SELECT MAX("Founded") FROM table_70257 WHERE "Institution" = 'cloud county community college' |
### Instruction:
If the location is Chicago, Illinois, what is the airport name?
### Response:
| SELECT "Airport Name" FROM table_22097 WHERE "Location" = 'Chicago, Illinois' |
### Instruction:
WHAT IS THE ROUND FOR ZACH BOYCHUK?
### Response:
| SELECT COUNT("Round") FROM table_49926 WHERE "Player" = 'zach boychuk' |
### Instruction:
What was the position of the player that went to warren central high school?
### Response:
| SELECT "Position" FROM table_78371 WHERE "School" = 'warren central high school' |
### Instruction:
How many players were drafted by the Edmonton Oilers?
### Response:
| SELECT COUNT("Player") FROM table_30512 WHERE "NHL team" = 'Edmonton Oilers' |
### Instruction:
Who's the player that was eliminated on episode 4?
### Response:
| SELECT "Player" FROM table_64424 WHERE "Eliminated" = 'episode 4' |
### Instruction:
How many opponents are there when cowboy points were 10?
### Response:
| SELECT opponents FROM table_22815265_1 WHERE cowboys_points = 10 |
### Instruction:
When was there a record of 13 17 3?
### Response:
| SELECT "Date" FROM table_38885 WHERE "Record" = '13–17–3' |
### Instruction:
What is the lowest ERP W of w223bp?
### Response:
| SELECT MIN(erp_w) FROM table_name_6 WHERE call_sign = "w223bp" |
### Instruction:
how many athletes did china have in the top 10 ranks ?
### Response:
| SELECT COUNT("athlete") FROM table_203_441 WHERE "athlete" = 'chn' |
### Instruction:
What is ISBN US, when Title is 'Crisis In Space'?
### Response:
| SELECT "ISBN US" FROM table_46140 WHERE "Title" = 'crisis in space' |
### Instruction:
what was the last year they came in 3rd place
### Response:
| SELECT MAX("year") FROM table_204_426 WHERE "regular season" = '3rd, atlantic' |
### Instruction:
What region is on 11 August 2008?
### Response:
| SELECT "Region" FROM table_61517 WHERE "Date" = '11 august 2008' |
### Instruction:
Who was the designer for The Grapefruit Moon?
### Response:
| SELECT "Designer" FROM table_66336 WHERE "Restaurant Name" = 'the grapefruit moon' |
### Instruction:
how many games were not played at araneta coliseum ?
### Response:
| SELECT COUNT(*) FROM table_204_627 WHERE "venue (location)" <> 'araneta coliseum' |
### Instruction:
What position was picked for Canada on Pick 8?
### Response:
| SELECT "Position" FROM table_34860 WHERE "Country" = 'canada' AND "Pick" = '8' |
### Instruction:
What is Score, when Away Team is 'Thame United'?
### Response:
| SELECT "Score" FROM table_12331 WHERE "Away team" = 'thame united' |
### Instruction:
Result F A of 2 0 had what total number of attendance?
### Response:
| SELECT COUNT(attendance) FROM table_name_42 WHERE result_f_a = "2–0" |
### Instruction:
What shareholder has 2.55 percent of votes?
### Response:
| SELECT shareholder FROM table_206419_3 WHERE percent_of_votes = "2.55" |
### Instruction:
What aircraft type is the Casa C-212 Aviocar?
### Response:
| SELECT type FROM table_name_45 WHERE aircraft = "casa c-212 aviocar" |
### Instruction:
Visualize a bar chart for what is average age for different job title?, order by the x-axis in desc.
### Response:
| SELECT job, AVG(age) FROM Person GROUP BY job ORDER BY job DESC |
### Instruction:
which year does the artist have the most charted singles ?
### Response:
| SELECT "year" FROM table_204_239 GROUP BY "year" ORDER BY COUNT("title") DESC LIMIT 1 |
### Instruction:
When is the earliest year founded for houses named after the river benue?
### Response:
| SELECT MIN("Founded") FROM table_54086 WHERE "Named after" = 'river benue' |
### Instruction:
Who won the regular season when Missouri Valley Conference took place?
### Response:
| SELECT regular_season_winner FROM table_22779004_1 WHERE conference = "Missouri Valley conference" |
### Instruction:
How many different items appear in the high rebounds column in game 80?
### Response:
| SELECT COUNT("High rebounds") FROM table_29780 WHERE "Game" = '80' |
### Instruction:
In what Year was Labyrinth nominated?
### Response:
| SELECT "Year (Ceremony)" FROM table_43409 WHERE "Film title used in nomination" = 'labyrinth' |
### Instruction:
What is the Java EE compatibility of the 5.2.4 edition?
### Response:
| SELECT java_ee_compatibility FROM table_name_97 WHERE edition = "5.2.4" |
### Instruction:
What is the series # when the director is john showalter?
### Response:
| SELECT series__number FROM table_29747178_2 WHERE directed_by = "John Showalter" |
### Instruction:
What were the totals when the average is 6.25?
### Response:
| SELECT "Totals" FROM table_30632 WHERE "Average" = '6.25' |
### Instruction:
Which City of license has a Call sign of w220ba?
### Response:
| SELECT city_of_license FROM table_name_64 WHERE call_sign = "w220ba" |
### Instruction:
Show the different headquarters and number of companies at each headquarter, and list X-axis in descending order.
### Response:
| SELECT Headquarters, COUNT(*) FROM company GROUP BY Headquarters ORDER BY Headquarters DESC |
### Instruction:
Short unanswered questions with zero score.
### Response:
| SELECT Id AS "post_link" FROM Posts WHERE AnswerCount = 0 AND Score = 0 ORDER BY LENGTH(Body) |
### Instruction:
When was episode 02x07 first broadcast?
### Response:
| SELECT first_broadcast FROM table_29141354_2 WHERE episode = "02x07" |
### Instruction:
who was in office for the most amount of time ?
### Response:
| SELECT "name" FROM table_203_559 ORDER BY "left office" - "took office" DESC LIMIT 1 |
### Instruction:
how many third place finishes has kathrin zettel had ?
### Response:
| SELECT COUNT(*) FROM table_204_730 WHERE "third" = 'kathrin zettel' |
### Instruction:
What's the location of the National event with Kevin Martin winning?
### Response:
| SELECT location FROM table_name_49 WHERE winning_skip = "kevin martin" AND event = "the national" |
### Instruction:
display users name and text comments.
### Response:
| SELECT DisplayName, 'text' FROM Users INNER JOIN Comments ON Users.Id = Comments.UserId WHERE Users.DisplayName LIKE 'Tawfik' |
### Instruction:
What league has a value of 0 29 (152) for Europe?
### Response:
| SELECT league FROM table_name_43 WHERE europe = "0 29 (152)" |
### Instruction:
If the Venue was kardinia park what was the highest Crowd attended?
### Response:
| SELECT MAX(crowd) FROM table_name_12 WHERE venue = "kardinia park" |
### Instruction:
prostate specific antigen ( psa ) > 4 ng / ml;
### Response:
| SELECT * FROM table_train_248 WHERE prostate_specific_antigen_psa > 4 |
### Instruction:
What Valvetrain has a fuel system made up of petrol engines?
### Response:
| SELECT "Valvetrain" FROM table_75416 WHERE "Fuel system" = 'petrol engines' |
### Instruction:
What is the inductioin for 1975 1976?
### Response:
| SELECT induction FROM table_name_93 WHERE years = "1975–1976" |
### Instruction:
What was the result of the game that was attended by 72,703 people?
### Response:
| SELECT result FROM table_name_76 WHERE attendance = "72,703" |
### Instruction:
List all of the NLL Toronto Rock players.
### Response:
| SELECT player FROM table_18042409_1 WHERE national_lacrosse_league = "Toronto Rock" |
### Instruction:
I want to know the proportion of the total number for each product type code.
### Response:
| SELECT Product_Type_Code, COUNT(Product_Type_Code) FROM Products GROUP BY Product_Type_Code |
### Instruction:
Which school has a Hometown of phoenix, az?
### Response:
| SELECT "School" FROM table_51898 WHERE "Hometown" = 'phoenix, az' |
### Instruction:
What was the score of the game played on 16 August 2006?
### Response:
| SELECT score FROM table_name_32 WHERE date = "16 august 2006" |
### Instruction:
What is the highest population within the municipality of Porsgrunn?
### Response:
| SELECT MAX("Population") FROM table_42260 WHERE "Municipality" = 'porsgrunn' |
### Instruction:
Which Total matches is the highest one that has Points % of 70%?
### Response:
| SELECT MAX("Total matches") FROM table_5979 WHERE "Points %" = '70%' |
### Instruction:
What is the Game on May 24 with Road Team Seattle?
### Response:
| SELECT game FROM table_name_76 WHERE road_team = "seattle" AND date = "may 24" |
### Instruction:
What is the name where the license number is PL 22?
### Response:
| SELECT name__year_commissioned_ FROM table_name_7 WHERE licence_number = "pl 22" |
### Instruction:
What's the hometown of the player with a college of lsu?
### Response:
| SELECT "Hometown" FROM table_53571 WHERE "College" = 'lsu' |
### Instruction:
Name the incorporated for principal activites of travel agency
### Response:
| SELECT "Incorporated in" FROM table_67422 WHERE "Principal activities" = 'travel agency' |
### Instruction:
name a site that was listed no later than 1960 .
### Response:
| SELECT "name" FROM table_204_423 WHERE "listing date" <= 1960 |
### Instruction:
Who was the writer of the episode title 'Divine Intervention'?
### Response:
| SELECT "Writer(s)" FROM table_30041 WHERE "Episode" = 'Divine Intervention' |
### Instruction:
How many points did the Away team from Geelong score?
### Response:
| SELECT "Away team score" FROM table_32405 WHERE "Away team" = 'geelong' |
### Instruction:
Name the bulgarian name for mart
### Response:
| SELECT "Bulgarian name" FROM table_19978 WHERE "Bulgarian name ( Transliteration )" = 'Mart' |
### Instruction:
What was the Champion of the Game with a Score of 65 56?
### Response:
| SELECT champion__seed_ FROM table_name_78 WHERE score = "65–56" |
### Instruction:
What was the location for when the opponent was @ roughriders?
### Response:
| SELECT "Location" FROM table_24605 WHERE "Opponent" = '@ Roughriders' |
### Instruction:
Which Ratio as % has a Ratio of 8/9?
### Response:
| SELECT "Ratio as %" FROM table_40436 WHERE "Ratio" = '8/9' |
### Instruction:
Nametheh school team for norman gonzales
### Response:
| SELECT school_club_team FROM table_15463188_7 WHERE name = "Norman Gonzales" |
### Instruction:
What is the Pick 3 Player from East College?
### Response:
| SELECT "Player" FROM table_65063 WHERE "College" = 'east' AND "Pick" = '3' |
### Instruction:
What is the 1994 when QF is 1999?
### Response:
| SELECT 1994 FROM table_name_4 WHERE 1999 = "qf" |
### Instruction:
Which police force serves a population of 17000?
### Response:
| SELECT "Police force" FROM table_17625 WHERE "Population" = '17000' |
### Instruction:
How many flights with price higher than 300 for each destination city? Return a pie chart.
### Response:
| SELECT destination, COUNT(destination) FROM flight WHERE price > 300 GROUP BY destination |
### Instruction:
List all season numbers with production codes of 5m21.
### Response:
| SELECT "Season #" FROM table_25897 WHERE "Production code" = '5M21' |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.