instruction
stringlengths
37
754
output
stringlengths
9
3.43k
### Instruction: Find meter_300 and ID , and visualize them by a bar chart, and show bar in asc order. ### Response:
SELECT meter_300, ID FROM swimmer ORDER BY meter_300
### Instruction: What is the size of the biggest crowd for a game where Fitzroy was the away team? ### Response:
SELECT MAX(crowd) FROM table_name_29 WHERE away_team = "fitzroy"
### Instruction: What is the origin for the item with an owner of Hunan Broadcasting System (HBS)? ### Response:
SELECT origin FROM table_name_82 WHERE owner = "hunan broadcasting system (hbs)"
### Instruction: How many episodes did Eve Weston write? ### Response:
SELECT COUNT(no_in_series) FROM table_27462177_1 WHERE written_by = "Eve Weston"
### Instruction: Which club had round of group stage round 1 and 5? ### Response:
SELECT "Club" FROM table_59759 WHERE "Round" = 'group stage round 1 and 5'
### Instruction: Name the venue for 15 august 2006 ### Response:
SELECT "Venue" FROM table_31957 WHERE "Date" = '15 august 2006'
### Instruction: What publishers produce product number SLUS-20265? ### Response:
SELECT "Publisher" FROM table_117 WHERE "Product No." = 'SLUS-20265'
### Instruction: What total average has 1988 has the year (s) won? ### Response:
SELECT AVG(total) FROM table_name_34 WHERE year_s__won = "1988"
### Instruction: Name the brighton cast for andrew verala ### Response:
SELECT brighton_cast FROM table_17085724_1 WHERE indianapolis_concerts = "Andrew Verala"
### Instruction: Where was the game site for the game that had a packers record of 2-2? ### Response:
SELECT "Game Site" FROM table_34081 WHERE "Record" = '2-2'
### Instruction: How many goals for Kenton have a transfer window of Summer? ### Response:
SELECT COUNT(goals) FROM table_name_36 WHERE transfer_window = "summer" AND name = "kenton"
### Instruction: Name the club with date of appointment of 1 november 2007 ### Response:
SELECT club FROM table_name_67 WHERE date_of_appointment = "1 november 2007"
### Instruction: What are the highest number of points with an Entrant of warsteiner brewery? ### Response:
SELECT MAX(points) FROM table_name_8 WHERE entrant = "warsteiner brewery"
### Instruction: Where was the location where justin robbins fought against billy kidd? ### Response:
SELECT "Location" FROM table_50908 WHERE "Opponent" = 'billy kidd'
### Instruction: In which location did he win the Superbrawl 16 event? ### Response:
SELECT location FROM table_name_57 WHERE res = "win" AND event = "superbrawl 16"
### Instruction: How many gold have a National of New Zealand with a total less than 2? ### Response:
SELECT SUM(gold) FROM table_name_15 WHERE nation = "new zealand" AND total < 2
### Instruction: Which Position has a Difference of 5, and a Drawn smaller than 3? ### Response:
SELECT MIN(position) FROM table_name_84 WHERE difference = "5" AND drawn < 3
### Instruction: How many values of prominence(m) occur at rank 5? ### Response:
SELECT COUNT(prominence__m_) FROM table_18946749_4 WHERE rank = 5
### Instruction: What was the year for the film 'Vitus'? ### Response:
SELECT year__ceremony_ FROM table_22034853_1 WHERE original_title = "Vitus"
### Instruction: What is the smallest number of laps for Team Green when the grid is 1? ### Response:
SELECT MIN(laps) FROM table_name_67 WHERE team = "team green" AND grid = 1
### Instruction: What is the title and source for the game developed by Hydravision Entertainment? ### Response:
SELECT "Title and source" FROM table_3580 WHERE "Developer" = 'Hydravision Entertainment'
### Instruction: Name the club for drawn of 0 and lost of 0 ### Response:
SELECT "Club" FROM table_6336 WHERE "Drawn" = '0' AND "Lost" = '0'
### Instruction: Who directed # (season #) is 1 ( 2 )? ### Response:
SELECT "Directed by" FROM table_30403 WHERE "# (season #)" = '1 ( 2 )'
### Instruction: What is the constructor of the driver Heinz-Harald Frentzen? ### Response:
SELECT "Constructor" FROM table_57600 WHERE "Driver" = 'heinz-harald frentzen'
### Instruction: What was the record setting time in the 800m freestyle? ### Response:
SELECT "Time" FROM table_66470 WHERE "Event" = '800m freestyle'
### Instruction: Which competition was played on 8 June 2005? ### Response:
SELECT "Competition" FROM table_32233 WHERE "Date" = '8 june 2005'
### Instruction: How many losses did the 1943 MLB have? ### Response:
SELECT AVG("Losses") FROM table_53203 WHERE "MLB season" = '1943'
### Instruction: What is the publication date of the book that is narrated by Michael Maloney? ### Response:
SELECT "Published" FROM table_74394 WHERE "Audiobook narrator" = 'Michael Maloney'
### Instruction: WHich Category in White has a Amerindian of 4,87%? ### Response:
SELECT "White" FROM table_42073 WHERE "Amerindian" = '4,87%'
### Instruction: Name the average week for attendance of 75,111 ### Response:
SELECT AVG("Week") FROM table_15072 WHERE "Attendance" = '75,111'
### Instruction: On what date were sheets issued in Tallahassee, Florida? ### Response:
SELECT date_of_issue FROM table_name_40 WHERE place_of_issue = "tallahassee, florida"
### Instruction: What is the name for the 2012 CN Sabadell? ### Response:
SELECT "Name" FROM table_9225 WHERE "2012 club" = 'cn sabadell'
### Instruction: What is the Elmers End with a 09:54 Bingham Road? ### Response:
SELECT elmers_end FROM table_name_65 WHERE bingham_road = "09:54"
### Instruction: What year did Martina Navratilova win Wimbledon? ### Response:
SELECT "Wimbledon" FROM table_73243 WHERE "Player" = 'Martina Navratilova'
### Instruction: Who was the champion prior to Xix Xavant? ### Response:
SELECT previous_champion_s_ FROM table_1272033_1 WHERE champion_s_ = "Xix Xavant"
### Instruction: List the number for the operator melbourne and metropolitan tramways board. ### Response:
SELECT "Number" FROM table_25031 WHERE "Operator" = 'Melbourne and Metropolitan Tramways Board'
### Instruction: What are the japanese title(s) for tv asahi? ### Response:
SELECT "Japanese Title" FROM table_73025 WHERE "TV Station" = 'TV Asahi'
### Instruction: How many tries for when the points against was 547? ### Response:
SELECT tries_for FROM table_13564637_4 WHERE points_against = "547"
### Instruction: What is Ivaipor , pr's biggest population? ### Response:
SELECT MAX("Population") FROM table_11750 WHERE "Town/City" = 'ivaiporã, pr'
### Instruction: What was the placing of the race in which Chic won by 8gf? ### Response:
SELECT placing FROM table_name_58 WHERE beat_by = "won" AND distance = "8gf"
### Instruction: What is the mean number of totals with no silvers and a bronze number less than 0? ### Response:
SELECT AVG(total) FROM table_name_9 WHERE silver = 0 AND bronze < 0
### Instruction: What Nationality's time is 2:07.64? ### Response:
SELECT "Nationality" FROM table_67970 WHERE "Time" = '2:07.64'
### Instruction: How many high rebound catagories are listed for game number 5? ### Response:
SELECT COUNT(high_rebounds) FROM table_22871239_5 WHERE _number = 5
### Instruction: For each state, find the total account balance of customers whose credit score is above 100. ### Response:
SELECT SUM(acc_bal), state FROM customer WHERE credit_score > 100 GROUP BY state
### Instruction: what is the procedure icd9 code for the patient id 14755? ### Response:
SELECT procedures.icd9_code FROM procedures WHERE procedures.subject_id = "14755"
### Instruction: When did the Cowboys score 13 points in 1966? ### Response:
SELECT "Date" FROM table_73436 WHERE "Cowboys points" = '13'
### Instruction: Who was in 4th when in 6th is Air Traffic? ### Response:
SELECT "Fourth" FROM table_72843 WHERE "Sixth" = 'Air Traffic'
### Instruction: Name the awardees for best special effects ### Response:
SELECT awardee_s_ FROM table_24446718_3 WHERE name_of_award = "Best Special Effects"
### Instruction: What are the averages for games with 212 wickets taken? ### Response:
SELECT "Average" FROM table_27124 WHERE "Wickets taken" = '212'
### Instruction: What was the outcome on 13 may 2007? ### Response:
SELECT "Outcome" FROM table_39007 WHERE "Date" = '13 may 2007'
### Instruction: What's the language of the school that teaches grades 4-12? ### Response:
SELECT "Language" FROM table_22940 WHERE "Grades" = '4-12'
### Instruction: who is the the candidates with incumbent being james o'connor ### Response:
SELECT "Candidates" FROM table_780 WHERE "Incumbent" = 'James O''Connor'
### Instruction: which aiport is in the united kingdom and has iata of lcy? ### Response:
SELECT airport FROM table_name_58 WHERE country = "united kingdom" AND iata = "lcy"
### Instruction: What year was the class 253 larger than 18 built? ### Response:
SELECT year_built FROM table_name_10 WHERE class = "class 253" AND number > 18
### Instruction: What is the area of drummond village? ### Response:
SELECT MAX(area_km_2) FROM table_name_45 WHERE status = "village" AND official_name = "drummond"
### Instruction: Find the name of the department which has the highest average salary of professors. ### Response:
SELECT dept_name FROM instructor GROUP BY dept_name ORDER BY AVG(salary) DESC LIMIT 1
### Instruction: What engine did the mclaren mp4-20 use? ### Response:
SELECT "Engine" FROM table_14476 WHERE "Chassis" = 'mclaren mp4-20'
### Instruction: What is the lowest number of FA cups associated with 0 malaysia cups? ### Response:
SELECT MIN(fa_cup) FROM table_name_69 WHERE malaysia_cup < 0
### Instruction: What is the lowest fiscal year if total vehicles is 490? ### Response:
SELECT MIN("Fiscal year") FROM table_2021 WHERE "Total vehicles" = '490'
### Instruction: Which Year has a Label-Nr of 88146? ### Response:
SELECT "Year" FROM table_64648 WHERE "Label-Nr" = '88146'
### Instruction: What is the gold number when the total is 8 and bronze is more than 4? ### Response:
SELECT AVG(gold) FROM table_name_19 WHERE total = 8 AND bronze > 4
### Instruction: what is diagnoses icd9 code of subject id 6983? ### Response:
SELECT diagnoses.icd9_code FROM diagnoses WHERE diagnoses.subject_id = "6983"
### Instruction: What grand prixs did Daijiro Hiura win? ### Response:
SELECT grand_prix FROM table_18303274_1 WHERE race_winner = "Daijiro Hiura"
### Instruction: What is the team when player is listed as Ronjay Buenafe? ### Response:
SELECT team FROM table_28628309_8 WHERE player = "Ronjay Buenafe"
### Instruction: What is High Rebounds, when Date is 'March 13'? ### Response:
SELECT "High rebounds" FROM table_50541 WHERE "Date" = 'march 13'
### Instruction: how many bosnian in cook islands is macedonian ### Response:
SELECT COUNT(cook_islands) FROM table_24807774_1 WHERE bosnian = "Macedonian"
### Instruction: What Band number has a Power (W) of 400 or less? ### Response:
SELECT SUM("Band") FROM table_64771 WHERE "Power (W)" < '400'
### Instruction: what was the opponent on november 14, 2005? ### Response:
SELECT opponent FROM table_name_91 WHERE date = "november 14, 2005"
### Instruction: What is the latest year that 6th, Heartland is regular season? ### Response:
SELECT MAX("Year") FROM table_17665 WHERE "Regular Season" = '6th, Heartland'
### Instruction: What was the first leg score for the match that had AS Police as team 2? ### Response:
SELECT "1st leg" FROM table_41375 WHERE "Team 2" = 'as police'
### Instruction: How many values for Ofsted occurr at Chowbent Primary School? ### Response:
SELECT COUNT("Ofsted") FROM table_46855 WHERE "School" = 'chowbent primary school'
### Instruction: What Competition had a game on October 31, 1979? ### Response:
SELECT competition FROM table_name_53 WHERE date = "october 31, 1979"
### Instruction: how many games had at least 5,000 attendees ? ### Response:
SELECT COUNT("game") FROM table_203_410 WHERE "attendance" >= 5000
### Instruction: what are the number of times weld county is listed on this chart ? ### Response:
SELECT COUNT(*) FROM table_204_279 WHERE "principal\ncounty" = 'weld county'
### Instruction: What is the average year for Maserati Straight-4 Engines? ### Response:
SELECT AVG("Year") FROM table_70352 WHERE "Engine" = 'maserati straight-4'
### Instruction: When the venue is victoria park, what's the largest Crowd that attended? ### Response:
SELECT MAX(crowd) FROM table_name_64 WHERE venue = "victoria park"
### Instruction: Name the D 46 which has a D 43 of majority ### Response:
SELECT "D 46" FROM table_51879 WHERE "D 43" = 'majority→'
### Instruction: What is the highest round that has a draftee from Washington State University? ### Response:
SELECT MAX("Round") FROM table_70940 WHERE "School" = 'washington state university'
### Instruction: What is the Finished place for da'tara trained by Nick zito? ### Response:
SELECT finished FROM table_name_3 WHERE trainer = "nick zito" AND horse = "da'tara"
### Instruction: What was the home team's score of the game where South Melbourne is the away team? ### Response:
SELECT home_team AS score FROM table_name_77 WHERE away_team = "south melbourne"
### Instruction: Return a bar chart on what are the different ship flags, and how many ships have each?, order from high to low by the X. ### Response:
SELECT Flag, COUNT(*) FROM Ship GROUP BY Flag ORDER BY Flag DESC
### Instruction: Which Played has a Points of 2, and a Position smaller than 8? ### Response:
SELECT AVG(played) FROM table_name_28 WHERE points = 2 AND position < 8
### Instruction: What is Score, when Away Team is 'Yeovil Town'? ### Response:
SELECT "Score" FROM table_62246 WHERE "Away team" = 'yeovil town'
### Instruction: What position has over 0 wins and under 3 podiums? ### Response:
SELECT "Position" FROM table_5138 WHERE "Wins" > '0' AND "Podiums" < '3'
### Instruction: What was the result when then opponents conference was Mac (east)? ### Response:
SELECT result FROM table_28418916_3 WHERE opponents_conference = "MAC (East)"
### Instruction: What's the Kilometers listed that also has the Station Code of Kuda? ### Response:
SELECT "Kilometers" FROM table_38539 WHERE "Station Code" = 'kuda'
### Instruction: Which 2006 cfl draft pick played college ball at Idaho state? ### Response:
SELECT "Pick #" FROM table_55798 WHERE "College" = 'idaho state'
### Instruction: how many sections does each course has?, and show in asc by the CRS_CODE. ### Response:
SELECT CRS_CODE, COUNT(*) FROM CLASS GROUP BY CRS_CODE ORDER BY CRS_CODE
### Instruction: What is the 2008 value with a 7 in 2010? ### Response:
SELECT 2008 FROM table_name_94 WHERE 2010 = "7"
### Instruction: When ellery and frankie are the couple what is the highest total? ### Response:
SELECT MAX("Total") FROM table_23248 WHERE "Couple" = 'Ellery and Frankie'
### Instruction: When bush# is 3907, what is Kerry#? ### Response:
SELECT kerry_number FROM table_1302886_1 WHERE bush_number = 3907
### Instruction: In what Week was the Attendance 49,097? ### Response:
SELECT AVG("Week") FROM table_79509 WHERE "Attendance" = '49,097'
### Instruction: If the team is Rubio , what is the 08 points? ### Response:
SELECT "08 Pts" FROM table_24709 WHERE "Team" = 'Rubio Ñú'
### Instruction: What is the average number of matches of leonardo in seasons after 1? ### Response:
SELECT AVG(matches) FROM table_name_79 WHERE name = "leonardo" AND seasons > 1
### Instruction: who is the first finisher from russia ? ### Response:
SELECT "name" FROM table_204_554 WHERE "nation" = 'russia' ORDER BY "rank" LIMIT 1
### Instruction: When was the first UK broadcast for episode 9? ### Response:
SELECT first_broadcast_uk___bbc_four__ FROM table_26591309_2 WHERE episode = 9
### Instruction: what is 1980 when 1979 is 951? ### Response:
SELECT 1980 FROM table_name_9 WHERE 1979 = "951"
### Instruction: What club did the championship player come from who had 10 goals? ### Response:
SELECT club_s_ FROM table_28286776_12 WHERE goal_s_ = 10
### Instruction: What is the highest round number for the player who came from team Missouri? ### Response:
SELECT MAX("Round") FROM table_75524 WHERE "School/Club Team" = 'missouri'
### Instruction: What is the height for shanghai x-1 financial building? ### Response:
SELECT "Height m / feet" FROM table_4944 WHERE "Name" = 'shanghai x-1 financial building'