instruction
stringlengths 37
754
| output
stringlengths 9
3.43k
|
---|---|
### Instruction:
Can you tell me the Score that has the Home team of townsville crocodiles?
### Response:
| SELECT score FROM table_name_24 WHERE home_team = "townsville crocodiles" |
### Instruction:
What is Average Year, when Round is R128 (First Round)?
### Response:
| SELECT AVG(year) FROM table_name_46 WHERE round = "r128 (first round)" |
### Instruction:
How many were Wounded while in a Unit with a Complement of 83 off 9 Men?
### Response:
| SELECT wounded FROM table_name_79 WHERE complement = "83 off 9 men" |
### Instruction:
How long was the time for the Legacy Fighting Championship 12?
### Response:
| SELECT "Time" FROM table_44954 WHERE "Event" = 'legacy fighting championship 12' |
### Instruction:
how many total number of points margin when brive is the winners
### Response:
| SELECT COUNT(points_margin) FROM table_27987767_2 WHERE winners = "Brive" |
### Instruction:
How many incumbents are there in district Louisiana 5?
### Response:
| SELECT COUNT(incumbent) FROM table_1341690_18 WHERE district = "Louisiana 5" |
### Instruction:
glucocorticoid history which warrants continuation of glucocorticoid administration
### Response:
| SELECT * FROM table_train_35 WHERE glucocorticoid_history = 1 |
### Instruction:
What is the highest pick number the los angeles raiders got?
### Response:
| SELECT MAX("Pick #") FROM table_73735 WHERE "NFL Team" = 'Los Angeles Raiders' |
### Instruction:
What is Canada's highest round before 1973?
### Response:
| SELECT MAX(round) FROM table_name_39 WHERE nationality = "canada" AND draft < 1973 |
### Instruction:
What was the opposing team for the game on August 29?
### Response:
| SELECT "Opponent" FROM table_51347 WHERE "Date" = 'august 29' |
### Instruction:
What is the Date of the 1999 fifa confederations cup?
### Response:
| SELECT date FROM table_name_45 WHERE competition = "1999 fifa confederations cup" |
### Instruction:
What was the away team's score at the game held at MCG?
### Response:
| SELECT "Away team score" FROM table_54379 WHERE "Venue" = 'mcg' |
### Instruction:
What was the total for the golfer who had a year won of 1987?
### Response:
| SELECT total FROM table_name_20 WHERE year_s__won = "1987" |
### Instruction:
What is the away team score for the home team listed as Footscray?
### Response:
| SELECT "Away team score" FROM table_33027 WHERE "Home team" = 'footscray' |
### Instruction:
Find the number of matches in different competitions Visualize by bar chart, and rank in descending by the total number.
### Response:
| SELECT Competition, COUNT(*) FROM match GROUP BY Competition ORDER BY COUNT(*) DESC |
### Instruction:
how old is the youngest person for each job?, and show y-axis in descending order.
### Response:
| SELECT job, MIN(age) FROM Person GROUP BY job ORDER BY MIN(age) DESC |
### Instruction:
What is the game number when the record is 30-22?
### Response:
| SELECT AVG("Game") FROM table_47035 WHERE "Record" = '30-22' |
### Instruction:
How many first games are associated with 5 games played and under 3 games lost?
### Response:
| SELECT SUM(first_game) FROM table_name_85 WHERE played = 5 AND lost < 3 |
### Instruction:
What is the latest Year, when the Venue is L bker Golf Resort?
### Response:
| SELECT MAX(year) FROM table_name_16 WHERE venue = "lübker golf resort" |
### Instruction:
Which Diameter has a Year of Issue of 1977?
### Response:
| SELECT "Diameter" FROM table_36137 WHERE "Year of Issue" = '1977' |
### Instruction:
Name the gdp world rank for asian rank being 15
### Response:
| SELECT gdp_world_rank FROM table_2249029_1 WHERE asian_rank = 15 |
### Instruction:
What event was in the 2008 Beijing games?
### Response:
| SELECT "Event" FROM table_37430 WHERE "Games" = '2008 beijing' |
### Instruction:
What is the 1st leg with a 4-3 agg.?
### Response:
| SELECT "1st leg" FROM table_76696 WHERE "Agg." = '4-3' |
### Instruction:
What location contains a school that has an enrollment of 2686?
### Response:
| SELECT location FROM table_1973729_1 WHERE enrollment = 2686 |
### Instruction:
Who had the high point total when the team was 24-17?
### Response:
| SELECT "High points" FROM table_18981 WHERE "Record" = '24-17' |
### Instruction:
What is the time/retired for mika h kkinen
### Response:
| SELECT "Time/Retired" FROM table_56317 WHERE "Driver" = 'mika häkkinen' |
### Instruction:
Name the number of package options for music box italia
### Response:
| SELECT COUNT(package_option) FROM table_15887683_10 WHERE television_service = "Music Box Italia" |
### Instruction:
What was the MNZ FEA when the SIL SPR was 18?
### Response:
| SELECT mnz_fea FROM table_name_73 WHERE sil_spr = "18" |
### Instruction:
Show the relationship between card number and customer id and group by card type code in a group scatter chart.
### Response:
| SELECT customer_id, card_number FROM Customers_Cards GROUP BY card_type_code |
### Instruction:
What district had an election with incumbent john smilie?
### Response:
| SELECT "District" FROM table_28919 WHERE "Incumbent" = 'John Smilie' |
### Instruction:
Which Results have a Category of the best new actor in lead role(female)?
### Response:
| SELECT results FROM table_name_32 WHERE category = "best new actor in lead role(female)" |
### Instruction:
Season of 2012 13 is what league?
### Response:
| SELECT "League" FROM table_79969 WHERE "Season" = '2012–13' |
### Instruction:
Name the competition for 13 december 2012
### Response:
| SELECT "Competition" FROM table_69650 WHERE "Date" = '13 december 2012' |
### Instruction:
give me the long title of procedure for procedure icd9 code 3613.
### Response:
| SELECT procedures.long_title FROM procedures WHERE procedures.icd9_code = "3613" |
### Instruction:
How many golds for the nation ranked below 5 and over 1 bronze medals?
### Response:
| SELECT MAX(gold) FROM table_name_80 WHERE rank > 5 AND bronze < 1 |
### Instruction:
Which governor took office on January 8, 1877?
### Response:
| SELECT governor FROM table_name_88 WHERE took_office = "january 8, 1877" |
### Instruction:
Which 2010 has a Tournament of australian open?
### Response:
| SELECT "2010" FROM table_38649 WHERE "Tournament" = 'australian open' |
### Instruction:
What school location had an enrollment of 12400?
### Response:
| SELECT location FROM table_16432543_3 WHERE enrollment = 12400 |
### Instruction:
how many total players were transferred to sun pegasus ?
### Response:
| SELECT COUNT("player") FROM table_204_968 WHERE "transferred to" = 'sun pegasus' |
### Instruction:
What game had more than 50,324 in attendance?
### Response:
| SELECT "Date" FROM table_68546 WHERE "Attendance" > '50,324' |
### Instruction:
what are the total number of courthouses located in biloxi ?
### Response:
| SELECT COUNT("courthouse") FROM table_204_87 WHERE "city" = 'biloxi' |
### Instruction:
List the number of the description of all aircrafts, and could you display from low to high by the total number?
### Response:
| SELECT Description, COUNT(Description) FROM aircraft GROUP BY Description ORDER BY COUNT(Description) |
### Instruction:
mention the date of birth and preferred language of subject jerry deberry.
### Response:
| SELECT demographic.dob, demographic.language FROM demographic WHERE demographic.name = "Jerry Deberry" |
### Instruction:
Week that has a Date of december 5, 1959 had what week?
### Response:
| SELECT week FROM table_name_4 WHERE date = "december 5, 1959" |
### Instruction:
which award has wentworth miller been nominated for the most ?
### Response:
| SELECT "award" FROM table_203_643 GROUP BY "award" ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
What was the home teams score when the VFL played Princes Park?
### Response:
| SELECT "Home team score" FROM table_53646 WHERE "Venue" = 'princes park' |
### Instruction:
When South Melbourne was the Away Team, what was their score?
### Response:
| SELECT "Away team score" FROM table_51599 WHERE "Away team" = 'south melbourne' |
### Instruction:
Which Attendance is the highest one that has a Record of 37-38?
### Response:
| SELECT MAX(attendance) FROM table_name_45 WHERE record = "37-38" |
### Instruction:
What is the highest round with a guard position and an overall greater than 71?
### Response:
| SELECT MAX(round) FROM table_name_21 WHERE position = "guard" AND overall > 71 |
### Instruction:
What is the to par number of the person who won in 2003?
### Response:
| SELECT to_par FROM table_name_40 WHERE year_s__won = "2003" |
### Instruction:
what's the record with result being w 52 19
### Response:
| SELECT record FROM table_14951643_1 WHERE result = "W 52–19" |
### Instruction:
list all posts for a given user by user id.
### Response:
| SELECT Id, PostTypeId, Posts.Title, Body, CreationDate FROM Posts WHERE Posts.OwnerUserId = @UserId |
### Instruction:
Show me a bar chart for what are the different transaction types, and how many transactions of each have taken place?
### Response:
| SELECT transaction_type, COUNT(*) FROM Financial_Transactions GROUP BY transaction_type |
### Instruction:
How many titles were directed in series 79?
### Response:
| SELECT COUNT(directed_by) FROM table_11411026_2 WHERE no_in_series = 79 |
### Instruction:
what is the position for the united states u-20 affiliation
### Response:
| SELECT "Position" FROM table_4233 WHERE "Affiliation" = 'United States U-20' |
### Instruction:
What was the size of the crowd at the game played at Junction Oval?
### Response:
| SELECT AVG(crowd) FROM table_name_66 WHERE venue = "junction oval" |
### Instruction:
Who is week 5 if week 2 is Jenna Jordan?
### Response:
| SELECT "Week 5" FROM table_61293 WHERE "Week 2" = 'jenna jordan' |
### Instruction:
What is the average age at appointment of those attached to security?
### Response:
| SELECT AVG(age_at_appointment) FROM table_name_58 WHERE portfolio_attachment = "security" |
### Instruction:
How many players has the highest points in the game against the Heat?
### Response:
| SELECT COUNT(high_points) FROM table_23285849_6 WHERE team = "Heat" |
### Instruction:
Who drive the car that retired due to engine failure and a grid of less than 9?
### Response:
| SELECT driver FROM table_name_91 WHERE time_retired = "engine" AND grid < 9 |
### Instruction:
What is the lowest number of people attending the game where Colorado was the home team?
### Response:
| SELECT MIN("Attendance") FROM table_37709 WHERE "Home" = 'colorado' |
### Instruction:
What is the total number of 3rd place finishes for racers with 0 titles?
### Response:
| SELECT SUM(3 AS rd_pl) FROM table_name_31 WHERE titles < 0 |
### Instruction:
which city is the most densely populated ?
### Response:
| SELECT "city" FROM table_203_413 ORDER BY "density\n(inhabitants/km2)" DESC LIMIT 1 |
### Instruction:
How many persons had immunity in the episode when Wanda was eliminated?
### Response:
| SELECT COUNT(immunity) FROM table_1272844_2 WHERE eliminated = "Wanda" |
### Instruction:
What is the minimum capacity for Sangre Grande Ground?
### Response:
| SELECT MIN("Capacity") FROM table_26508 WHERE "Stadium" = 'Sangre Grande Ground' |
### Instruction:
Which office was Richard M. Griffin vying for on the Greenback ticket?
### Response:
| SELECT office FROM table_name_97 WHERE greenback_ticket = "richard m. griffin" |
### Instruction:
Who does the lap-by-lap in 2011?
### Response:
| SELECT lap_by_lap FROM table_10716893_3 WHERE year = 2011 |
### Instruction:
how many points did toronto have more than montreal in their first game ?
### Response:
| SELECT ABS("score" - "score") FROM table_204_557 WHERE "#" = 1 |
### Instruction:
What 2006 has 1r as the 2007?
### Response:
| SELECT 2006 FROM table_name_74 WHERE 2007 = "1r" |
### Instruction:
What party is the member that has an electorate of Lindsay?
### Response:
| SELECT "Party" FROM table_58412 WHERE "Electorate" = 'lindsay' |
### Instruction:
What is the number of bronze for Canada and silver is less than 0?
### Response:
| SELECT SUM(bronze) FROM table_name_72 WHERE nation = "canada" AND silver < 0 |
### Instruction:
How many countries played in the city of ljungskile?
### Response:
| SELECT COUNT(country) FROM table_28005160_2 WHERE city = "Ljungskile" |
### Instruction:
how many radio stations are under the licensee simmons broadcasting ?
### Response:
| SELECT COUNT(*) FROM table_203_749 WHERE "licensee" = 'simmons broadcasting' |
### Instruction:
How many have the Till Agra of 500?
### Response:
| SELECT COUNT("Till Mathura") FROM table_23318 WHERE "Till Agra" = '500' |
### Instruction:
What is Race 2, when Race 1 is '18'?
### Response:
| SELECT "Race 2" FROM table_8327 WHERE "Race 1" = '18' |
### Instruction:
Was the sounddock series I v2 iphone certified?
### Response:
| SELECT "iPhone Certified" FROM table_26794 WHERE "Version" = 'SoundDock series I v2' |
### Instruction:
what is the tournament when the winning score is 2 and 1?
### Response:
| SELECT "Tournament" FROM table_58349 WHERE "Winning score" = '2 and 1' |
### Instruction:
Name the opponent for 9 november 1991
### Response:
| SELECT "Opponent" FROM table_37066 WHERE "Date" = '9 november 1991' |
### Instruction:
What is the analogue terrestrial channel when the internet shows channel4.com?
### Response:
| SELECT analogue_terrestrial_channel FROM table_name_95 WHERE internet = "channel4.com" |
### Instruction:
tell me the total number of patients who were discharged from the hospital?
### Response:
| SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE NOT admissions.dischtime IS NULL |
### Instruction:
How many points did the Bridgend Athletic RFC have?
### Response:
| SELECT "Points" FROM table_69515 WHERE "Club" = 'bridgend athletic rfc' |
### Instruction:
Which Record has a Result of loss, and a Time of 3:54?
### Response:
| SELECT record FROM table_name_96 WHERE res = "loss" AND time = "3:54" |
### Instruction:
How many episodes with the production code CA106 are there?
### Response:
| SELECT COUNT("Written by") FROM table_28078 WHERE "Production code" = 'CA106' |
### Instruction:
What are the Odds for Trainer Barclay Tagg?
### Response:
| SELECT "Odds" FROM table_76510 WHERE "Trainer" = 'barclay tagg' |
### Instruction:
What are the ids and locations of all circuits in France or Belgium. Show bar chart.
### Response:
| SELECT location, circuitId FROM circuits WHERE country = "France" OR country = "Belgium" |
### Instruction:
which type of admission did patient with patient id 6983 have?
### Response:
| SELECT demographic.admission_type FROM demographic WHERE demographic.subject_id = "6983" |
### Instruction:
Stacked bar of class and the number of class colored by Rank, could you list in descending by the Class?
### Response:
| SELECT Class, COUNT(Class) FROM captain GROUP BY Rank, Class ORDER BY Class DESC |
### Instruction:
What is the name of the performance zhu xiaoming performed?
### Response:
| SELECT "Act" FROM table_30363 WHERE "Name/Name of Act" = 'Zhu Xiaoming' |
### Instruction:
who is the the candidates with dbeingtrict being kansas 5
### Response:
| SELECT "Candidates" FROM table_18675 WHERE "District" = 'Kansas 5' |
### Instruction:
what are the number of times super league appears under the top rugby league level column ?
### Response:
| SELECT COUNT(*) FROM table_204_387 WHERE "top rugby league level" = 'super league' |
### Instruction:
For each type of store, how many of them are there Plot them as bar chart, and display by the X from high to low.
### Response:
| SELECT Type, COUNT(*) FROM store GROUP BY Type ORDER BY Type DESC |
### Instruction:
Name the Social Sec Leeds has a President of tom dawson?
### Response:
| SELECT "Social Sec Leeds" FROM table_8086 WHERE "President" = 'tom dawson' |
### Instruction:
What is the pinyin for the Chinese title ?
### Response:
| SELECT "Pinyin" FROM table_40841 WHERE "Chinese Title" = '直感一笔' |
### Instruction:
Where was the game played the ended with a score of 62-69?
### Response:
| SELECT "Ground" FROM table_7342 WHERE "Score" = '62-69' |
### Instruction:
What was Fuzzy Zoeller's score in the United States?
### Response:
| SELECT score FROM table_name_82 WHERE country = "united states" AND player = "fuzzy zoeller" |
### Instruction:
What is the least number of wins West Ham got when they tied 27 times?
### Response:
| SELECT MIN(west_ham_wins) FROM table_name_54 WHERE drawn > 27 |
### Instruction:
What was the lowest recorded record for a player with an average larger than 13?
### Response:
| SELECT MIN("Rec.") FROM table_54132 WHERE "Avg." > '13' |
### Instruction:
What was the score of the home team in the match at Western Oval?
### Response:
| SELECT "Home team score" FROM table_55576 WHERE "Venue" = 'western oval' |
### Instruction:
Name the Score of Tournament of portugal f1, faro , portugal?
### Response:
| SELECT score FROM table_name_4 WHERE tournament = "portugal f1, faro , portugal" |
### Instruction:
What is every category wise when the multi lane is 677?
### Response:
| SELECT category_wise FROM table_28723146_2 WHERE multi_lane = 677 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.