instruction
stringlengths
37
754
output
stringlengths
9
3.43k
### Instruction: For how many contestants was the background internet dreamer? ### Response:
SELECT COUNT("Contestant") FROM table_23337 WHERE "Background" = 'Internet dreamer'
### Instruction: What's the score for $22,500? ### Response:
SELECT score FROM table_name_62 WHERE money___$__ = "22,500"
### Instruction: What is the original airdate when the season number is 4? ### Response:
SELECT "Original air date" FROM table_1338 WHERE "Season #" = '4'
### Instruction: pregnant female who currently smoke. ### Response:
SELECT * FROM table_train_253 WHERE pregnancy_or_lactation = 1 AND smoking = 1
### Instruction: What is the highest Year, when Laps is greater than 161? ### Response:
SELECT MAX(year) FROM table_name_82 WHERE laps > 161
### Instruction: What years were the inactive Idaho chapter active? ### Response:
SELECT charter_range FROM table_name_99 WHERE status = "inactive" AND state = "idaho"
### Instruction: What is the losing bonus associated with 0 tries for? ### Response:
SELECT "Losing Bonus" FROM table_40992 WHERE "Tries For" = '0'
### Instruction: Find the state and country of all cities with post code starting with 4. ### Response:
SELECT state_province_county, country FROM addresses WHERE zip_postcode LIKE "4%"
### Instruction: What was the attendance on september 29? ### Response:
SELECT MAX("Attendance") FROM table_62474 WHERE "Date" = 'september 29'
### Instruction: What is the sum of average values for 23 yards? ### Response:
SELECT SUM("Average") FROM table_37004 WHERE "Yards" = '23'
### Instruction: Which Country is listed for the Director Thomas Vinterberg? ### Response:
SELECT "Country" FROM table_80062 WHERE "Director" = 'thomas vinterberg'
### Instruction: What location had a final score of W 30 5? ### Response:
SELECT location FROM table_name_92 WHERE final_score = "w 30 – 5"
### Instruction: what is the total points scored in the second round by all teams ? ### Response:
SELECT SUM("2nd leg" + "2nd leg") FROM table_204_405
### Instruction: Name the sabaean for sab - ### Response:
SELECT "Sabaean" FROM table_29137 WHERE "Arabic" = 'sabʕ-'
### Instruction: what are the total number of times the status is listed as roaming ? ### Response:
SELECT COUNT(*) FROM table_203_868 WHERE "status" = 'roaming'
### Instruction: what was the only show that ran on the channel star one ? ### Response:
SELECT "serial name" FROM table_203_173 WHERE "channel" = 'star one'
### Instruction: What is every location for the date of March 20? ### Response:
SELECT "Location" FROM table_26115 WHERE "Date" = 'March 20'
### Instruction: What was the score on 14 march 2004? ### Response:
SELECT score FROM table_name_39 WHERE date = "14 march 2004"
### Instruction: what is the most laps with a grid of 20? ### Response:
SELECT MAX("Laps") FROM table_12062 WHERE "Grid" = '20'
### Instruction: What game had the date was it with the final score of 7-23 ### Response:
SELECT date FROM table_name_35 WHERE final_score = "7-23"
### Instruction: What is the total points for the tean with 8 losses? ### Response:
SELECT COUNT(points) FROM table_13015539_1 WHERE lost = 8
### Instruction: When was the pre-season game record achieved? ### Response:
SELECT "Date/Year" FROM table_24348 WHERE "Type of Record" = 'Pre-season game'
### Instruction: Name the total number of round 3 for class tt1 ### Response:
SELECT COUNT("Round 3") FROM table_1939 WHERE "Class" = 'TT1'
### Instruction: what is ethnicity of subject name jerry deberry? ### Response:
SELECT demographic.ethnicity FROM demographic WHERE demographic.name = "Jerry Deberry"
### Instruction: What is the name of the season won by John Rhode? ### Response:
SELECT name FROM table_name_75 WHERE the_biggest_loser = "john rhode"
### Instruction: Who had the fastest lap in round 15? ### Response:
SELECT "Fastest Lap" FROM table_30950 WHERE "Rd." = '15'
### Instruction: What is the 1st leg of 2q round? ### Response:
SELECT "1st Leg" FROM table_46712 WHERE "Round" = '2q'
### Instruction: Who came as a replacement in Sheffield United? ### Response:
SELECT replaced_by FROM table_19359427_6 WHERE team = "Sheffield United"
### Instruction: How many seasons featured 29 conversions? ### Response:
SELECT COUNT(penalties) FROM table_20505342_1 WHERE conversions = 29
### Instruction: What was the score of Johnny Miller (7)? ### Response:
SELECT "Score" FROM table_37505 WHERE "Winner" = 'johnny miller (7)'
### Instruction: Can you tell me the Source that has the Rank of 78? ### Response:
SELECT "Source" FROM table_40483 WHERE "Rank" = '78'
### Instruction: Which state has the venue Tsukisamu dome? ### Response:
SELECT state FROM table_name_30 WHERE venue = "tsukisamu dome"
### Instruction: What's the speed rank in 1963? ### Response:
SELECT "Speed rank" FROM table_62034 WHERE "Year" = '1963'
### Instruction: Name the arabic for amu te ### Response:
SELECT "Arabic" FROM table_29136 WHERE "Tigrinya" = 'ħamuʃte'
### Instruction: what number of bronze medals did iran receive ? ### Response:
SELECT "bronze" FROM table_204_775 WHERE "nation" = 'iran'
### Instruction: What is Series, when Winner is Jetmir Salaj? ### Response:
SELECT "Series" FROM table_41918 WHERE "Winner" = 'jetmir salaj'
### Instruction: What is the Country for the 2006-07 season? ### Response:
SELECT country FROM table_name_11 WHERE season = "2006-07"
### Instruction: Name the dar for 912 ### Response:
SELECT "DAR" FROM table_20382 WHERE "N\u00b0" = '912'
### Instruction: wendlinger finished 8th . who finished next ? ### Response:
SELECT "driver" FROM table_204_788 WHERE "pos" = 8 + 1
### Instruction: Name the number of semifinalists for 19 rank ### Response:
SELECT COUNT("Semifinalists") FROM table_4262 WHERE "Rank" = '19'
### Instruction: What are the years employed shown for mathematics & prefect master? ### Response:
SELECT employed FROM table_name_74 WHERE position_held = "mathematics & prefect master"
### Instruction: How many rounds exist for picks under 5? ### Response:
SELECT COUNT("Rd #") FROM table_77530 WHERE "Pick #" < '5'
### Instruction: What Nation Placed 122.5? ### Response:
SELECT "Nation" FROM table_37273 WHERE "Places" = '122.5'
### Instruction: What district is Joseph Lecompte in office in? ### Response:
SELECT district FROM table_2668243_8 WHERE incumbent = "Joseph Lecompte"
### Instruction: Name the most overall rank for czech republic ### Response:
SELECT MAX(overall_rank) FROM table_2701625_1 WHERE country = "Czech Republic"
### Instruction: how many arcade games were released in 1987 ? ### Response:
SELECT COUNT(*) FROM table_204_480 WHERE "year" = 1987
### Instruction: What year(s) was the race status piston? ### Response:
SELECT "Year" FROM table_22186 WHERE "Race status" = 'Piston'
### Instruction: What is the type of the player moving from belgrano? ### Response:
SELECT "Type" FROM table_50451 WHERE "Moving from" = 'belgrano'
### Instruction: What was the lineup that resulted in 1-0 AET W? ### Response:
SELECT lineup FROM table_name_29 WHERE result = "1-0 aet w"
### Instruction: How many times is the player vaughn taylor listed? ### Response:
SELECT COUNT("Before") FROM table_30540 WHERE "Player" = 'Vaughn Taylor'
### Instruction: Which opponent plays on September 19? ### Response:
SELECT "Opponent" FROM table_79767 WHERE "Date" = 'september 19'
### Instruction: Which public college has a nickname of The Grenadiers? ### Response:
SELECT institution FROM table_name_30 WHERE type = "public" AND nickname = "grenadiers"
### Instruction: what time slot did the show have for its first 6 episodes ? ### Response:
SELECT "timeslot (est)" FROM table_204_384 WHERE "#" = 6
### Instruction: The Eyserweg race was which race #? ### Response:
SELECT MAX(number) FROM table_1749567_2 WHERE name = "Eyserweg"
### Instruction: Which Country has a Host of miguel esteban? ### Response:
SELECT "Country" FROM table_40041 WHERE "Host" = 'miguel esteban'
### Instruction: Find the number of dorms for each gender in a bar chart, list in ascending by the bars. ### Response:
SELECT gender, COUNT(*) FROM Dorm GROUP BY gender ORDER BY gender
### Instruction: select * from posts where owneruserid=1505120;. ### Response:
SELECT * FROM Posts WHERE OwnerUserId = 1505120
### Instruction: Name who wrote the production code 322 ### Response:
SELECT "Written by" FROM table_29533 WHERE "Prod. code" = '322'
### Instruction: Who is the music by for episode the Elbow Room? ### Response:
SELECT "Music by" FROM table_22816 WHERE "Episode title" = 'Elbow Room'
### Instruction: What are all the places where Birgit Fischer competed? ### Response:
SELECT "Location" FROM table_19645 WHERE "Athletes" = 'Birgit Fischer'
### Instruction: What district first elected in 1978? ### Response:
SELECT district FROM table_1341472_51 WHERE first_elected = 1978
### Instruction: What is the Stadium held on november 29? ### Response:
SELECT "Stadium" FROM table_71883 WHERE "Date" = 'november 29'
### Instruction: Tell me the catalog for date larger than 2004 ### Response:
SELECT "Catalog" FROM table_32162 WHERE "Date" > '2004'
### Instruction: how many episodes were there where nobody was sent home ? ### Response:
SELECT COUNT("episode") FROM table_204_945 WHERE "sent home" = 'none'
### Instruction: what is the total number of the population in 2002 ? ### Response:
SELECT SUM("population (2002 census)") FROM table_203_465
### Instruction: What was the time/retired of car number 6. ### Response:
SELECT "Time/Retired" FROM table_48011 WHERE "Car No." = '6'
### Instruction: how many times was the rosemont convention center used ? ### Response:
SELECT COUNT(*) FROM table_204_823 WHERE "location" = 'rosemont convention center'
### Instruction: Which Assist/pass has a Goal of 5? ### Response:
SELECT "Assist/pass" FROM table_70076 WHERE "Goal" = '5'
### Instruction: what is the record that had a score of 5-3? ### Response:
SELECT record FROM table_27539272_5 WHERE score = "5-3"
### Instruction: In 1950 what is the average rank? ### Response:
SELECT AVG("Rank") FROM table_5469 WHERE "Year" = '1950'
### Instruction: Who composed the work conducted by jaroslav Vogel? ### Response:
SELECT composer FROM table_24521345_1 WHERE conductor = "Jaroslav Vogel"
### Instruction: What is Australian, when British is 'a , , '? ### Response:
SELECT australian FROM table_name_12 WHERE british = "aɪ, ɪ, ə"
### Instruction: The game played on 6 December 1986 had what score? ### Response:
SELECT score FROM table_name_12 WHERE date = "6 december 1986"
### Instruction: When 2 is the rank what is the city/town? ### Response:
SELECT "City/Town" FROM table_25791 WHERE "Rank" = '2'
### Instruction: What week was the opponent the San Diego Chargers? ### Response:
SELECT AVG(week) FROM table_name_71 WHERE opponent = "san diego chargers"
### Instruction: Which UK Base has an airborne unit of Pathfinders? ### Response:
SELECT uk_base FROM table_name_42 WHERE airborne_unit = "pathfinders"
### Instruction: What day was the against 22 and the status tour match? ### Response:
SELECT date FROM table_name_51 WHERE status = "tour match" AND against = 22
### Instruction: What average drawn has a played greater than 42? ### Response:
SELECT AVG("Drawn") FROM table_48984 WHERE "Played" > '42'
### Instruction: What materials are covered in ACABS 860 ? ### Response:
SELECT DISTINCT description, name FROM course WHERE department = 'ACABS' AND number = 860
### Instruction: Name the horizontal number for number 10 ### Response:
SELECT COUNT(horizontal_0_a) FROM table_25519358_1 WHERE number = 10
### Instruction: Name the total number of population for craig ### Response:
SELECT COUNT(population) FROM table_22815568_12 WHERE county = "Craig"
### Instruction: Which Rush song was played for Mike Fincke? ### Response:
SELECT song FROM table_name_4 WHERE played_for = "mike fincke" AND artist = "rush"
### Instruction: At what stadium was the final score 31-28? ### Response:
SELECT stadium FROM table_name_60 WHERE final_score = "31-28"
### Instruction: Who was the athlete from egypt with q in the notes? ### Response:
SELECT athlete FROM table_name_50 WHERE notes = "q" AND country = "egypt"
### Instruction: If the try bonus was 5 what was the try against score? ### Response:
SELECT "Tries against" FROM table_39093 WHERE "Try bonus" = '5'
### Instruction: What is the western word for 'latrones' in Latin? ### Response:
SELECT western FROM table_26614365_1 WHERE latin = "latrones"
### Instruction: What are the life spans of representatives from New York state or Indiana state? ### Response:
SELECT lifespan FROM representative WHERE state = "New York" OR state = "Indiana"
### Instruction: Show the distinct position of players from college UCLA or Duke. ### Response:
SELECT DISTINCT position FROM match_season WHERE college = "UCLA" OR college = "Duke"
### Instruction: Which Planet has a Sanskrit word of budha? ### Response:
SELECT "Planet" FROM table_61945 WHERE "Sanskrit word" = 'budha'
### Instruction: What is the date of the game at Commerce Bank Ballpark? ### Response:
SELECT "Date" FROM table_53240 WHERE "Field" = 'commerce bank ballpark'
### Instruction: where is the participant marelissa him from ### Response:
SELECT hometown FROM table_27515452_3 WHERE contestant = "Marelissa Him"
### Instruction: when 68 is the episode number what is the series number? ### Response:
SELECT "Series #" FROM table_4151 WHERE "Episode #" = '68'
### Instruction: Who was the visiting team on December 17? ### Response:
SELECT "Visitor" FROM table_56712 WHERE "Date" = 'december 17'
### Instruction: What event had Wang Bingyu for the skip? ### Response:
SELECT "Event" FROM table_9349 WHERE "Skip" = 'wang bingyu'
### Instruction: What is the team set at junction oval? ### Response:
SELECT "Home team" FROM table_52086 WHERE "Venue" = 'junction oval'
### Instruction: Find User by Deleted Question. ### Response:
SELECT * FROM Posts WHERE (PostTypeId = 12) AND (Id = '##POSTID##') ORDER BY CreationDate
### Instruction: what is the total number of medals for all the countries ranked fourth ? ### Response:
SELECT SUM("total") FROM table_204_308 WHERE "rank" = 4
### Instruction: How many nationalities does Tom Colley have? ### Response:
SELECT COUNT(nationality) FROM table_1965650_4 WHERE player = "Tom Colley"
### Instruction: Which Winners club has a Week of 4.5? ### Response:
SELECT "Winners club" FROM table_78862 WHERE "Week" = '4.5'
### Instruction: How many judges were there for the eliminated couple? ### Response:
SELECT "Judges" FROM table_73947 WHERE "Result" = 'Eliminated'