instruction
stringlengths
37
754
output
stringlengths
9
3.43k
### Instruction: In how many different years did the race happen on February 27? ### Response:
SELECT COUNT("Year") FROM table_24988 WHERE "Date" = 'February 27'
### Instruction: Name the points for 212 respect toward opponents ### Response:
SELECT points FROM table_226619_12 WHERE respect_toward_opponents = 212
### Instruction: How many different countries did the champion Se Ri Pak (2) represent? ### Response:
SELECT COUNT(country) FROM table_229059_2 WHERE champion = "Se Ri Pak (2)"
### Instruction: Name the authority when the decile is 6 for pongaroa school ### Response:
SELECT authority FROM table_name_32 WHERE decile = 6 AND name = "pongaroa school"
### Instruction: Name the most appearances for bernard allou ### Response:
SELECT MAX(appearances¹) FROM table_24565004_2 WHERE name = "Bernard Allou"
### Instruction: What is the 2004 value with a sf in 2010? ### Response:
SELECT 2004 FROM table_name_4 WHERE 2010 = "sf"
### Instruction: What is the total number of played for the entry with a position of less than 1? ### Response:
SELECT SUM("Played") FROM table_59266 WHERE "Position" < '1'
### Instruction: WHAT IS THE LOSING BONUS WITH 190 POINTS? ### Response:
SELECT losing_bonus FROM table_name_31 WHERE points_for = "190"
### Instruction: What is the discipline for the summer Olympics in 2008? ### Response:
SELECT discipline FROM table_name_68 WHERE tournament = "summer olympics" AND year = 2008
### Instruction: What is the 2nd leg of team 1 Dolphins? ### Response:
SELECT "2nd leg" FROM table_75685 WHERE "Team 1" = 'dolphins'
### Instruction: What is Current Rank, when Ring Name is Kimurayama Mamoru? ### Response:
SELECT current_rank FROM table_name_63 WHERE ring_name = "kimurayama mamoru"
### Instruction: What was the number of race that Kevin Curtain won? ### Response:
SELECT COUNT(no) FROM table_10083598_1 WHERE pole_position = "Kevin Curtain"
### Instruction: What team has Steinar Kaldal, a guard / forward? ### Response:
SELECT team FROM table_name_57 WHERE position = "guard / forward" AND player = "steinar kaldal"
### Instruction: What is Position, when School/Club Team is McMaster? ### Response:
SELECT "Position" FROM table_48609 WHERE "School/Club Team" = 'mcmaster'
### Instruction: What is every value for TDP if model is x53xx? ### Response:
SELECT "TDP" FROM table_27037 WHERE "Model (list)" = 'X53xx'
### Instruction: What is the highest Points in Position 2 with more than 3 Drawn games? ### Response:
SELECT MAX(points) FROM table_name_75 WHERE position = 2 AND drawn > 3
### Instruction: What player has the score of 67-72=139? ### Response:
SELECT player FROM table_name_58 WHERE score = 67 - 72 = 139
### Instruction: How many bronzes for the nation with 2 golds and ranked below 2? ### Response:
SELECT SUM(bronze) FROM table_name_9 WHERE gold = 2 AND rank > 2
### Instruction: taking medication for lyperlipidemia ldl > 160 ### Response:
SELECT * FROM table_train_98 WHERE lyperlipidemia_ldl > 160
### Instruction: What tournament did Nadal win and had a nadal of 16? ### Response:
SELECT tournament FROM table_name_75 WHERE winner = "nadal" AND "nadal" = 16
### Instruction: What is the status for 24/11/1979? ### Response:
SELECT status FROM table_name_86 WHERE date = "24/11/1979"
### Instruction: What is the highest game number with a record of 12-8-1? ### Response:
SELECT MAX(game) FROM table_name_29 WHERE record = "12-8-1"
### Instruction: What was the away team's score at the venue football park? ### Response:
SELECT "Away team score" FROM table_20733 WHERE "Ground" = 'Football Park'
### Instruction: What day was the score 3-0 after 2011? ### Response:
SELECT date FROM table_name_88 WHERE score = "3-0" AND year = 2011
### Instruction: What city had a rank before 3 and primary carrier JetBlue Airways? ### Response:
SELECT city FROM table_name_78 WHERE rank < 3 AND carriers = "jetblue airways"
### Instruction: What is the score for the away team of north melbourne? ### Response:
SELECT "Away team score" FROM table_51750 WHERE "Away team" = 'north melbourne'
### Instruction: What is Resident Country, when Local Location is 'Copenhagen'? ### Response:
SELECT "Resident Country" FROM table_62110 WHERE "Local Location" = 'copenhagen'
### Instruction: What's the nickname of Westfield State University's students? ### Response:
SELECT "Nickname" FROM table_23260 WHERE "Institution" = 'Westfield State University'
### Instruction: Which party's candidate is Grech Louis Grech? ### Response:
SELECT "Party" FROM table_36140 WHERE "Candidate" = 'grech louis grech'
### Instruction: which is the preferred language of the patient with patient id 91588? ### Response:
SELECT demographic.language FROM demographic WHERE demographic.subject_id = "91588"
### Instruction: What are the largest cuts made when the events are less than 21? ### Response:
SELECT MAX("Cuts made") FROM table_76031 WHERE "Events" < '21'
### Instruction: How many car numbers were listed for Rusty Wallace? ### Response:
SELECT COUNT("Car #") FROM table_21874 WHERE "Winning Driver" = 'Rusty Wallace'
### Instruction: Who had the pole position at the German Grand Prix? ### Response:
SELECT pole_position FROM table_1137718_2 WHERE grand_prix = "German grand_prix"
### Instruction: What is the name of the race where Stirling Moss was the winning driver? ### Response:
SELECT race_name FROM table_name_13 WHERE winning_driver = "stirling moss"
### Instruction: What are all the approved treatments for the target CD30? ### Response:
SELECT "Approved treatment(s)" FROM table_20926 WHERE "Target" = 'CD30'
### Instruction: How many wins did the player have in the Formula BMW World Final? ### Response:
SELECT "Wins" FROM table_21430 WHERE "Series" = 'Formula BMW World Final'
### Instruction: when was garibaldets ( ) launched? ### Response:
SELECT "Launched" FROM table_4476 WHERE "Name" = 'garibaldets (гарибальдиец)'
### Instruction: When harvey laidman is the director what is the season number? ### Response:
SELECT "Season #" FROM table_3659 WHERE "Directed by" = 'Harvey Laidman'
### Instruction: What is the reference for the romani title da.i.su.ki? ### Response:
SELECT reference FROM table_name_4 WHERE romaji_title = "da.i.su.ki"
### Instruction: Who are all the candidates when Sam Rayburn was incumbent? ### Response:
SELECT "Candidates" FROM table_18644 WHERE "Incumbent" = 'Sam Rayburn'
### Instruction: how many medals did france and cuba win ? ### Response:
SELECT SUM("total") FROM table_203_535 WHERE "nation" IN ('france', 'cuba')
### Instruction: What was the highest average for the contestant having an interview score of 8.46? ### Response:
SELECT MAX(average) FROM table_name_84 WHERE interview = 8.46
### Instruction: Who is the driver with 58 laps and a grid smaller than 21? ### Response:
SELECT driver FROM table_name_44 WHERE laps = 58 AND grid < 21
### Instruction: What is the digital terrestria channel number for itv3? ### Response:
SELECT digital_terrestrial_channel FROM table_182410_10 WHERE channel = "ITV3"
### Instruction: What is the engine configuration of the 1.2 mpi engine? ### Response:
SELECT "engine configuration" FROM table_57355 WHERE "engine name" = '1.2 mpi'
### Instruction: number institutes from north carolina in the acrl ? ### Response:
SELECT COUNT("institution") FROM table_204_442 WHERE "location" = 'north carolina'
### Instruction: Draw a bar chart of decor versus minimal baseprice, and sort by the X-axis in desc please. ### Response:
SELECT decor, MIN(basePrice) FROM Rooms GROUP BY decor ORDER BY decor DESC
### Instruction: serum triglyceride greater than 500 mg / dl ### Response:
SELECT * FROM table_train_270 WHERE serum_triglyceride > 500
### Instruction: What team is in the toyota h llin arena? ### Response:
SELECT "Team" FROM table_34170 WHERE "Arena" = 'toyota höllin'
### Instruction: how many points did the ravens win by in week 13 ? ### Response:
SELECT "result" - "result" FROM table_204_918 WHERE "week" = 13
### Instruction: Visualize a pie chart about the proportion of All_Home and the sum of School_ID. ### Response:
SELECT All_Home, SUM(School_ID) FROM basketball_match GROUP BY All_Home
### Instruction: Find the component amounts and names of all furnitures that have more than 10 components. ### Response:
SELECT Num_of_Component, name FROM furniture WHERE Num_of_Component > 10
### Instruction: on which date was the game played with the most number of people in attendance ? ### Response:
SELECT "date" FROM table_204_441 ORDER BY "attendance" DESC LIMIT 1
### Instruction: What is To par, when Player is 'Larry Rinker'? ### Response:
SELECT "To par" FROM table_60486 WHERE "Player" = 'larry rinker'
### Instruction: Which Role has a First US National Tour of roger bart? ### Response:
SELECT "Role" FROM table_10179 WHERE "First US National Tour" = 'roger bart'
### Instruction: Name the number of episods for segment c being s oyster ### Response:
SELECT COUNT("Episode") FROM table_19917 WHERE "Segment C" = 's Oyster'
### Instruction: List the number of invoices and the invoice total from California. ### Response:
SELECT billing_state, COUNT(*), SUM(total) FROM invoices WHERE billing_state = "CA"
### Instruction: what other partner did he have besides john newcombe ? ### Response:
SELECT "partner" FROM table_204_196 WHERE "partner" <> 'john newcombe'
### Instruction: What constituency does the Conservative Darren Millar belong to? ### Response:
SELECT "Constituency" FROM table_77717 WHERE "Conservative" = 'darren millar'
### Instruction: Create a pie chart showing the number of payment method code across payment method code. ### Response:
SELECT payment_method_code, COUNT(payment_method_code) FROM Customers GROUP BY payment_method_code
### Instruction: posts tagged python + (excel or vba). ### Response:
SELECT COUNT(Id) AS num FROM Posts WHERE Tags LIKE '%python%' AND (Tags LIKE '%vba%' OR Tags LIKE '%excel%')
### Instruction: How many parties does incumbent carl vinson represent? ### Response:
SELECT COUNT("Party") FROM table_18585 WHERE "Incumbent" = 'Carl Vinson'
### Instruction: What was the rank of BBC 2 in 2005? ### Response:
SELECT "BBC Two Rank" FROM table_31671 WHERE "Year" = '2005'
### Instruction: What is the serial number of the model made in 1930? ### Response:
SELECT "Serial numbers" FROM table_63993 WHERE "Year made" = '1930'
### Instruction: List top 10 employee work longest in the company. List employee's first and last name. ### Response:
SELECT first_name, last_name FROM employees ORDER BY hire_date LIMIT 10
### Instruction: For part 2 *lauk, what is listed for part 4? ### Response:
SELECT part_4 FROM table_1745843_2 WHERE part_2 = "*lauk"
### Instruction: Can you tell me the highest Capacity that has the Team of torpedo? ### Response:
SELECT MAX("Capacity") FROM table_77061 WHERE "Team" = 'torpedo'
### Instruction: What was the score in Hampden Park, Glasgow? ### Response:
SELECT "Score" FROM table_42032 WHERE "Venue" = 'hampden park, glasgow'
### Instruction: How many opponents were there when the record was 6-0? ### Response:
SELECT COUNT("Opponent") FROM table_24203 WHERE "Record" = '6-0'
### Instruction: How many silver medals when the total was 2 and less than 1 bronze? ### Response:
SELECT SUM(silver) FROM table_name_37 WHERE bronze < 1 AND total = 2
### Instruction: What is the Liscumb when Gauthier is 34? ### Response:
SELECT liscumb FROM table_11447995_2 WHERE gauthier = "34"
### Instruction: Which leagues entered an extra preliminary round? ### Response:
SELECT "Leagues entering at this round" FROM table_26075 WHERE "Round" = 'Extra Preliminary Round'
### Instruction: Who is the shirt sponsor for FC Bunyodkor? ### Response:
SELECT "Shirt sponsor" FROM table_27746 WHERE "Team" = 'FC Bunyodkor'
### Instruction: What is the total crowd size that saw Geelong play as the away team? ### Response:
SELECT COUNT(crowd) FROM table_name_17 WHERE away_team = "geelong"
### Instruction: in which years did he release more than 2 albums ? ### Response:
SELECT "year" FROM table_204_243 GROUP BY "year" HAVING COUNT("album") > 2
### Instruction: What department irrigated 2170 Ha? ### Response:
SELECT "Department" FROM table_21335 WHERE "Irrigated Ha" = '2170'
### Instruction: what is the date when the score is 115-93? ### Response:
SELECT "Date" FROM table_49109 WHERE "Score" = '115-93'
### Instruction: Which Segment C has a Netflix of s08e16? ### Response:
SELECT segment_c FROM table_name_43 WHERE netflix = "s08e16"
### Instruction: What was the result of the election with incumbent bob barr? ### Response:
SELECT "Result" FROM table_29544 WHERE "Incumbent" = 'Bob Barr'
### Instruction: When 19th is the position what is the highest amount of poles? ### Response:
SELECT MAX("Poles") FROM table_25273 WHERE "Pos." = '19th'
### Instruction: What medal was awarded in the men's freestyle 52 kg? ### Response:
SELECT medal FROM table_name_69 WHERE event = "men's freestyle 52 kg"
### Instruction: What was the result of the election in the Florida 18 district? ### Response:
SELECT "Result" FROM table_18272 WHERE "District" = 'Florida 18'
### Instruction: What was the audience for Mi Amigo el Monstruo? ### Response:
SELECT "Audience" FROM table_56321 WHERE "Title" = 'mi amigo el monstruo'
### Instruction: What is the result for the match against Wataru Sakata? ### Response:
SELECT "Res." FROM table_47710 WHERE "Opponent" = 'wataru sakata'
### Instruction: What was the record at the game that had a loss of Spillner (1-8)? ### Response:
SELECT record FROM table_name_13 WHERE loss = "spillner (1-8)"
### Instruction: what is drug type of subject id 2560? ### Response:
SELECT prescriptions.drug_type FROM prescriptions WHERE prescriptions.subject_id = "2560"
### Instruction: What is the total number of Points from a Match that is larger than 18? ### Response:
SELECT COUNT("Points") FROM table_42154 WHERE "Match" > '18'
### Instruction: With Olympic Bronze Medalist as the total what are the score points? ### Response:
SELECT "Score points" FROM table_79030 WHERE "Total" = 'olympic bronze medalist'
### Instruction: What team had 1:34.578 in Qual 2? ### Response:
SELECT team FROM table_name_55 WHERE qual_2 = "1:34.578"
### Instruction: which are they only two names that have spain as their country of origin ? ### Response:
SELECT "name" FROM table_203_573 WHERE "country of origin" = 'spain'
### Instruction: What are the number of the dates of publications in descending order of price? ### Response:
SELECT Publication_Date, COUNT(Publication_Date) FROM publication GROUP BY Publication_Date ORDER BY Price DESC
### Instruction: Which stage corresponds to Banesto and Tony Rominger? ### Response:
SELECT stage FROM table_name_7 WHERE team_classification = "banesto" AND points_classification = "tony rominger"
### Instruction: Which Performance has a Usage of hepa and a Class of h14? ### Response:
SELECT performance FROM table_name_38 WHERE usage = "hepa" AND class = "h14"
### Instruction: Who placed fourth when the winner was Greg Hancock? ### Response:
SELECT 4 AS th_placed FROM table_21808535_1 WHERE winner = "Greg Hancock"
### Instruction: The person that was notable for professional wrestling had a Born-Died of what year? ### Response:
SELECT born___died FROM table_name_1 WHERE notable_for = "professional wrestling"
### Instruction: What was the earliest year someone was first elected from Massachusetts 3 ### Response:
SELECT MIN("First elected") FROM table_18099 WHERE "District" = 'Massachusetts 3'
### Instruction: What is the Nationality for alexandre jacques? ### Response:
SELECT "Nationality" FROM table_75534 WHERE "Player" = 'alexandre jacques'
### Instruction: What kind of Week 4 has a Week 2 of tiffany logan? ### Response:
SELECT week_4 FROM table_name_65 WHERE week_2 = "tiffany logan"
### Instruction: Name the original title for 6.05 million viewership ### Response:
SELECT original_title FROM table_17641206_6 WHERE viewership = "6.05 million"
### Instruction: What is the percentage of votes for the party that has Seats of 80? ### Response:
SELECT "Percentage" FROM table_52369 WHERE "Seats" = '80'