instruction
stringlengths
37
754
output
stringlengths
9
3.43k
### Instruction: What is the average enrollment of the Redbirds' school? ### Response:
SELECT AVG("Enrollment") FROM table_77488 WHERE "Nickname" = 'redbirds'
### Instruction: What date was the score 3 3, and away team was Barnet? ### Response:
SELECT date FROM table_name_96 WHERE score = "3–3" AND away_team = "barnet"
### Instruction: What is the position for the austria formel 3 cup series? ### Response:
SELECT position FROM table_27631002_1 WHERE series = "Austria Formel 3 Cup"
### Instruction: which lyricist has the largest amount of tracks ? ### Response:
SELECT "lyrics" FROM table_203_574 GROUP BY "lyrics" ORDER BY COUNT("track number") DESC LIMIT 1
### Instruction: What was the production code of the episode written by Brendan Cowell? ### Response:
SELECT production_code FROM table_25390694_2 WHERE writer = "Brendan Cowell"
### Instruction: patients with a body mass index ( bmi ) of less than or equal to 26 . ### Response:
SELECT * FROM table_train_238 WHERE body_mass_index_bmi <= 26
### Instruction: Which Event has a Medal of gold and a Name of barney henricus? ### Response:
SELECT event FROM table_name_69 WHERE medal = "gold" AND name = "barney henricus"
### Instruction: What is the total overall number of the ot position player with a pick greater than 5? ### Response:
SELECT COUNT(overall) FROM table_name_59 WHERE position = "ot" AND pick > 5
### Instruction: Who's the captain of the team whose head coach is Alistair Edwards? ### Response:
SELECT captain FROM table_1301373_1 WHERE head_coach = "Alistair Edwards"
### Instruction: Who were the original artist(s) on harder to breathe? ### Response:
SELECT "Original Artist" FROM table_74311 WHERE "Track" = 'Harder To Breathe'
### Instruction: Name the most round for michael goulian ### Response:
SELECT MAX(round) FROM table_20036882_2 WHERE winning_pilot = "Michael Goulian"
### Instruction: What is the Nationality with an Elector with bertrand de saint-martin? ### Response:
SELECT nationality FROM table_name_36 WHERE elector = "bertrand de saint-martin"
### Instruction: What was the Result in the 2005-06 Season? ### Response:
SELECT "Result" FROM table_38564 WHERE "Season" = '2005-06'
### Instruction: What were the high points for the game played at the MCI Center? ### Response:
SELECT COUNT(high_points) FROM table_18904831_7 WHERE location = "MCI Center"
### Instruction: What is the number of song choices where the original artist was Bright Eyes? ### Response:
SELECT COUNT("Song choice") FROM table_28494 WHERE "Original artist" = 'Bright Eyes'
### Instruction: What is Position, when Nationality is 'Canada', and when Round is greater than 3? ### Response:
SELECT position FROM table_name_31 WHERE nationality = "canada" AND round > 3
### Instruction: What type of surface was played on July 27, 2013? ### Response:
SELECT surface FROM table_name_31 WHERE date = "july 27, 2013"
### Instruction: what is the number of different nationalities represented by the top 5 athletes ? ### Response:
SELECT COUNT(DISTINCT "nationality") FROM table_204_910 WHERE id <= 5
### Instruction: what is the original air date of the episode no in season 9? ### Response:
SELECT original_air_date FROM table_10610087_3 WHERE no_in_season = 9
### Instruction: Which station has channel TV (DT) of 3 (26)? ### Response:
SELECT "Station" FROM table_42970 WHERE "Channel TV ( DT )" = '3 (26)'
### Instruction: When tim mack is on team usa what is the progressive total? ### Response:
SELECT progressive_total FROM table_19072602_3 WHERE team_usa = "Tim Mack"
### Instruction: Who wrote the title with production code 7acx14? ### Response:
SELECT written_by FROM table_22269839_1 WHERE production_code = "7ACX14"
### Instruction: Which 1983 has a Tournament of wimbledon? ### Response:
SELECT "1983" FROM table_34845 WHERE "Tournament" = 'wimbledon'
### Instruction: Who was the opponent on December 18, 2005? ### Response:
SELECT opponent FROM table_name_80 WHERE date = "december 18, 2005"
### Instruction: How many percentage yield figures are there when 6.7% are defective? ### Response:
SELECT COUNT("Percentage yield") FROM table_2572 WHERE "Percent defective" = '6.7%'
### Instruction: What is the population with 41,511 households? ### Response:
SELECT COUNT("Population") FROM table_12600 WHERE "Number of households" = '41,511'
### Instruction: who did they have the largest win/loss differential against ? ### Response:
SELECT "opponent" FROM table_203_506 ORDER BY ABS("won" - "lost") DESC LIMIT 1
### Instruction: How many golds have a bronze less than 1, and a silver less than 1? ### Response:
SELECT COUNT(gold) FROM table_name_82 WHERE bronze < 1 AND silver < 1
### Instruction: What years does Our Lady Sacred Heart School, which is state integrated, have? ### Response:
SELECT years FROM table_name_47 WHERE authority = "state integrated" AND name = "our lady sacred heart school"
### Instruction: For each file format, return the number of artists who released songs in that format Show bar chart, and order bar from high to low order. ### Response:
SELECT formats, COUNT(*) FROM files GROUP BY formats ORDER BY formats DESC
### Instruction: Show the country where people older than 30 and younger than 25 are from. ### Response:
SELECT country FROM people WHERE age < 25 INTERSECT SELECT country FROM people WHERE age > 30
### Instruction: name the earliest competition to have a sub . ### Response:
SELECT "competition" FROM table_204_371 WHERE "appearances\nsub" > 0 ORDER BY id LIMIT 1
### Instruction: Who was the opponent at the game at Madison Square Garden? ### Response:
SELECT "Opponent" FROM table_63166 WHERE "Location/Attendance" = 'madison square garden'
### Instruction: Which Attendance is the highest one that has a Loss of batista (4-5)? ### Response:
SELECT MAX(attendance) FROM table_name_3 WHERE loss = "batista (4-5)"
### Instruction: Which Position has a D.O.B. of 3 june 1989? ### Response:
SELECT position FROM table_name_78 WHERE dob = "3 june 1989"
### Instruction: WHAT IS THE EPISODE NUMBER THAT HAS 28 DVD? ### Response:
SELECT episode_no FROM table_name_78 WHERE no_of_dvds = "28"
### Instruction: Who were all the candidates when the first elected year was 1961? ### Response:
SELECT candidates FROM table_1341884_20 WHERE first_elected = 1961
### Instruction: What Russian has an Avoirdupois value of 0.686 gr? ### Response:
SELECT russian FROM table_name_16 WHERE avoirdupois_value = "0.686 gr"
### Instruction: What rank has andy bichel (qld) as the player? ### Response:
SELECT "Rank" FROM table_39836 WHERE "Player" = 'andy bichel (qld)'
### Instruction: How many points did the away team score at Arden Street Oval? ### Response:
SELECT "Away team score" FROM table_57724 WHERE "Venue" = 'arden street oval'
### Instruction: COunt the Year which has a Venue of latakia , syria? ### Response:
SELECT COUNT(year) FROM table_name_71 WHERE venue = "latakia , syria"
### Instruction: What date was there a crowd larger than 30,343? ### Response:
SELECT "Date" FROM table_32164 WHERE "Crowd" > '30,343'
### Instruction: What is the Record for the game held on December 2, 2001? ### Response:
SELECT record FROM table_name_52 WHERE date = "december 2, 2001"
### Instruction: What is the club the used aykut kocaman as the replacement? ### Response:
SELECT "Club" FROM table_62210 WHERE "Replacement" = 'aykut kocaman'
### Instruction: When the VFL played Junction Oval what was the home team score? ### Response:
SELECT "Home team score" FROM table_32270 WHERE "Venue" = 'junction oval'
### Instruction: How many records for number of viewers is listed for episode number 8? ### Response:
SELECT COUNT(viewers__millions_) FROM table_24689168_5 WHERE episode = 8
### Instruction: what is the surface when the opponent is selma babic? ### Response:
SELECT "Surface" FROM table_50811 WHERE "Opponent" = 'selma babic'
### Instruction: Who has high points when 50-26 is the record? ### Response:
SELECT high_points FROM table_23284271_10 WHERE record = "50-26"
### Instruction: what is the number of teams where the record is 0-1 ### Response:
SELECT COUNT(amman) FROM table_26173058_2 WHERE wehdat = "0-1"
### Instruction: Which Sport had an Event of men's 400 m hurdles? ### Response:
SELECT sport FROM table_name_21 WHERE event = "men's 400 m hurdles"
### Instruction: What is the name of the manager who was replaced by michael skibbe? ### Response:
SELECT "Name" FROM table_62209 WHERE "Replacement" = 'michael skibbe'
### Instruction: What was the time of the NJKF Titans Neo X event? ### Response:
SELECT "Time" FROM table_5578 WHERE "Event" = 'njkf titans neo x'
### Instruction: What 1951 has dne for 1948? ### Response:
SELECT "1951" FROM table_40820 WHERE "1948" = 'dne'
### Instruction: what is gender and insurance of subject id 2110? ### Response:
SELECT demographic.gender, demographic.insurance FROM demographic WHERE demographic.subject_id = "2110"
### Instruction: List all headquarters and the number of companies in each headquarter with a bar chart, show Headquarters in descending order. ### Response:
SELECT Headquarters, COUNT(*) FROM company GROUP BY Headquarters ORDER BY Headquarters DESC
### Instruction: Which fuel system has a displacement of 1490cc? ### Response:
SELECT "Fuel system" FROM table_44109 WHERE "Displacement" = '1490cc'
### Instruction: For all storms with at least 1 death, compare the number of deaths by name with a bar graph. ### Response:
SELECT Name, Number_Deaths FROM storm WHERE Number_Deaths >= 1
### Instruction: What is Michal Pivonka's pick number? ### Response:
SELECT COUNT(pick__number) FROM table_2850912_3 WHERE player = "Michal Pivonka"
### Instruction: What was the resultado when E.E.U.U was the country? ### Response:
SELECT "Resultado" FROM table_29564 WHERE "Country" = 'E.E.U.U'
### Instruction: What nation is the cyclist hat has a UCI ProTour Points of 25? ### Response:
SELECT nation FROM table_name_95 WHERE uci_protour_points = 25
### Instruction: Name the original air date of 1/2 in season ### Response:
SELECT original_air_date FROM table_16951593_1 WHERE no_in_season = "1/2"
### Instruction: what is the last iec world plugs type in the list ? ### Response:
SELECT "iec\nworld plugs\nType" FROM table_204_794 ORDER BY id DESC LIMIT 1
### Instruction: what is the properties of sodium when rubidium is nacl (2.1)? ### Response:
SELECT sodium FROM table_name_98 WHERE rubidium = "nacl (2.1)"
### Instruction: Which Nationality has a Date of 8 may 1942? ### Response:
SELECT "Nationality" FROM table_61039 WHERE "Date" = '8 may 1942'
### Instruction: Who were the opponents when there was an attendance of 48,165? ### Response:
SELECT opponent_number FROM table_name_1 WHERE attendance = "48,165"
### Instruction: What is the coefficient for agust n marches n (1)? ### Response:
SELECT "Coefficient" FROM table_74454 WHERE "Player" = 'Agustín Marchesín (1)'
### Instruction: What positions were drafted from Las Vegas, NV? ### Response:
SELECT position FROM table_11677100_16 WHERE hometown = "Las Vegas, NV"
### Instruction: What is the Hanzi of Hong Kong in 1998? ### Response:
SELECT hanzi FROM table_name_46 WHERE origin = "hong kong" AND launch = "1998"
### Instruction: What is the date of the British Rail class 111 tslrb description? ### Response:
SELECT date FROM table_name_40 WHERE description = "british rail class 111 tslrb"
### Instruction: What's the maximum wickets taken by players named Bill Lockwood? ### Response:
SELECT MAX("Wickets taken") FROM table_27121 WHERE "Name" = 'Bill Lockwood'
### Instruction: How many manhunt beauty contets have been held in france? ### Response:
SELECT "Manhunt International" FROM table_31428 WHERE "Country/Territory" = 'France'
### Instruction: Which type of crime has the most investigation complete cases? ### Response:
SELECT type FROM greatermanchestercrime WHERE outcome = "Investigation complete; no suspect identified" GROUP BY type ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: On what date did the Bills play the Houston Oilers before week 12? ### Response:
SELECT date FROM table_name_79 WHERE week < 12 AND opponent = "houston oilers"
### Instruction: What TV network is the series aistr em aired on? ### Response:
SELECT tv_network_s_ FROM table_name_21 WHERE alternate_title_translation = "aistrų žemė"
### Instruction: how many patients whose primary disease is complete heart block? ### Response:
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "COMPLETE HEART BLOCK"
### Instruction: Give me the comparison about ID over the meter_700 , and rank x axis from high to low order. ### Response:
SELECT meter_700, ID FROM swimmer ORDER BY meter_700 DESC
### Instruction: Pull all answers from given user. ### Response:
SELECT Id AS "post_link", CreationDate, Body FROM Posts WHERE OwnerUserId = '##User:int##' ORDER BY CreationDate DESC
### Instruction: Prior to taking CHE 519 , what are some useful courses to take ? ### Response:
SELECT DISTINCT advisory_requirement FROM course WHERE department = 'CHE' AND number = 519
### Instruction: Name the driver for race time being 2:34:21 ### Response:
SELECT "Driver" FROM table_20856 WHERE "Race time" = '2:34:21'
### Instruction: Which March 3 has a Poll of baseball america (top 25)? ### Response:
SELECT mar_3 FROM table_name_35 WHERE poll = "baseball america (top 25)"
### Instruction: How many values are in the ends won cell corresponding to a PA of 39? ### Response:
SELECT COUNT("Ends Won") FROM table_21221 WHERE "PA" = '39'
### Instruction: What is the result when the attendance is 54,814? ### Response:
SELECT "Result" FROM table_43462 WHERE "Attendance" = '54,814'
### Instruction: Name the year for anton kriel chris cotillard ### Response:
SELECT "Year" FROM table_15027 WHERE "Men's doubles" = 'anton kriel chris cotillard'
### Instruction: Who was the runner-up in the tournament in which Omar Camporese held third place? ### Response:
SELECT runner_up FROM table_name_60 WHERE third_place = "omar camporese"
### Instruction: How many championships have there been with Steffi Graf? ### Response:
SELECT "Championship" FROM table_25444 WHERE "Opponent in final" = 'Steffi Graf'
### Instruction: How many places have an Artist of august , and a Draw smaller than 6? ### Response:
SELECT COUNT(place) FROM table_name_80 WHERE artist = "augustė" AND draw < 6
### Instruction: How do you spell the Hebrew word in English? ### Response:
SELECT english_spelling FROM table_name_24 WHERE hebrew_word = "יְהוֹשָפָט"
### Instruction: Which venue has 2:04.22 notes? ### Response:
SELECT "Venue" FROM table_12379 WHERE "Notes" = '2:04.22'
### Instruction: How many rounds have an Opponent of sakae kasuya? ### Response:
SELECT COUNT(round) FROM table_name_90 WHERE opponent = "sakae kasuya"
### Instruction: Who was teh rider with 18 laps and a grid of 25? ### Response:
SELECT rider FROM table_name_43 WHERE laps = 18 AND grid = 25
### Instruction: Who entered on day 1 and exited on day 20? ### Response:
SELECT celebrity FROM table_name_94 WHERE entered = "day 1" AND exited = "day 20"
### Instruction: What song is done by Terence Trent D'Arby? ### Response:
SELECT "Song" FROM table_39521 WHERE "Artist" = 'terence trent d''arby'
### Instruction: what is the total point difference between the driver who received the most points and the driver who received the least ? ### Response:
SELECT MAX("points") - MIN("points") FROM table_203_519
### Instruction: When carlton was the home team what was the lowest crowd turnout? ### Response:
SELECT MIN("Crowd") FROM table_10947 WHERE "Home team" = 'carlton'
### Instruction: What is the state of the city of denver, which has a rank less than 10? ### Response:
SELECT state FROM table_name_99 WHERE rank < 10 AND city = "denver"
### Instruction: If the place is hemkunt sahib what is the category? ### Response:
SELECT category FROM table_1430913_1 WHERE name_of_place = "Hemkunt Sahib"
### Instruction: how many 5wi with an average of 33.13? ### Response:
SELECT COUNT("5wi") FROM table_30794 WHERE "Average" = '33.13'
### Instruction: What is the sum of bronzes for countries with 1 gold and under 1 silver? ### Response:
SELECT SUM(bronze) FROM table_name_19 WHERE gold = 1 AND silver < 1
### Instruction: What score did Seve Ballesteros have when he was in T3 place? ### Response:
SELECT score FROM table_name_54 WHERE place = "t3" AND player = "seve ballesteros"
### Instruction: What is the pre-release when the developer is no? ### Response:
SELECT "KINKA Pre-release" FROM table_12229 WHERE "KINKA Developer" = 'no'