answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 484 |
|---|---|---|
SELECT MAX(not_usable) FROM table_name_30 WHERE launch_failures > 0 AND retired < 30 AND block = "block i" | What is the highest number of not usable satellites when there are more than 0 launch failures, less than 30 retired, and the block is I? | CREATE TABLE table_name_30 (not_usable INTEGER, block VARCHAR, launch_failures VARCHAR, retired VARCHAR) |
SELECT distance FROM table_name_71 WHERE route = "maldegem > brussels" | What is the distance of the maldegem > brussels route? | CREATE TABLE table_name_71 (distance VARCHAR, route VARCHAR) |
SELECT money_requested__£_ FROM table_name_78 WHERE entrepreneur_s_ = "ian chamings" | How much money did Ian Chamings request? | CREATE TABLE table_name_78 (money_requested__£_ VARCHAR, entrepreneur_s_ VARCHAR) |
SELECT AVG(erp_w) FROM table_name_36 WHERE call_sign = "w237br" | Name the average ERP W and call sign of w237br | CREATE TABLE table_name_36 (erp_w INTEGER, call_sign VARCHAR) |
SELECT attendance FROM table_name_84 WHERE tie_no = "40" | On what day was the attendance that had a Tie value of 40? | CREATE TABLE table_name_84 (attendance VARCHAR, tie_no VARCHAR) |
SELECT T1.name, T1.lat, MIN(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.end_station_id GROUP BY T2.end_station_id | For each station, find its latitude and the minimum duration of trips that ended at the station. | CREATE TABLE trip (duration INTEGER, end_station_id VARCHAR); CREATE TABLE station (name VARCHAR, lat VARCHAR, id VARCHAR) |
SELECT result_f___a FROM table_name_92 WHERE league_position = "2nd" AND opponents = "liverpool" | What Result F – A has a League position of 2nd, and Opponents of liverpool? | CREATE TABLE table_name_92 (result_f___a VARCHAR, league_position VARCHAR, opponents VARCHAR) |
SELECT venue FROM table_name_95 WHERE discipline = "3.3km c prologue" | What was the venue with a 3.3km c prologue discipline? | CREATE TABLE table_name_95 (venue VARCHAR, discipline VARCHAR) |
SELECT MAX(floors) FROM table_name_62 WHERE name = "regions center" AND rank < 11 | When Regions center has a rank less than 11, what is the greatest number o floors? | CREATE TABLE table_name_62 (floors INTEGER, name VARCHAR, rank VARCHAR) |
SELECT title FROM table_name_56 WHERE us_release = "august 1996" | Which title has a US release of august 1996? | CREATE TABLE table_name_56 (title VARCHAR, us_release VARCHAR) |
SELECT MIN(capacity) FROM table_name_35 WHERE team = "šibenik" | what is the capacity for the team šibenik? | CREATE TABLE table_name_35 (capacity INTEGER, team VARCHAR) |
SELECT attendance FROM table_name_84 WHERE date = "november 2, 2003" | What was the attendance on november 2, 2003? | CREATE TABLE table_name_84 (attendance VARCHAR, date VARCHAR) |
SELECT COUNT(party) FROM table_1341930_5 WHERE incumbent = "James William Trimble" | Name the number of party with the incubent james william trimble | CREATE TABLE table_1341930_5 (party VARCHAR, incumbent VARCHAR) |
SELECT years_active FROM table_272865_20 WHERE asian_cup_played_as_a_captain = "Qatar 1988" | What were the years active where Asian Cup played as a captain is Qatar 1988? | CREATE TABLE table_272865_20 (years_active VARCHAR, asian_cup_played_as_a_captain VARCHAR) |
SELECT 1987 FROM table_name_47 WHERE 1999 = "a" AND 1989 = "a" AND 1997 = "a" | What is the value in 1987 when it is A in 1999, 1989, and 1997? | CREATE TABLE table_name_47 (Id VARCHAR) |
SELECT SUM(rank) FROM table_name_15 WHERE years = "1996–2012" AND apps > 340 | What is the sum of rank with years 1996–2012 and apps greater than 340? | CREATE TABLE table_name_15 (rank INTEGER, years VARCHAR, apps VARCHAR) |
SELECT date_of_death† FROM table_11585313_2 WHERE name = "Henk Hordijk" | What was the date of Henk Hordijk's death? | CREATE TABLE table_11585313_2 (date_of_death† VARCHAR, name VARCHAR) |
SELECT attendance FROM table_name_21 WHERE time = "1:31" | Name the attendance for time of 1:31 | CREATE TABLE table_name_21 (attendance VARCHAR, time VARCHAR) |
SELECT player FROM table_name_58 WHERE club_province = "bulls" AND date_of_birth__age_ = "6 may 1978" | Which player on the Bulls has a 6 May 1978 birthday? | CREATE TABLE table_name_58 (player VARCHAR, club_province VARCHAR, date_of_birth__age_ VARCHAR) |
SELECT cash_on_hand FROM table_name_93 WHERE after_debt = "$82,741" | How much cash was on hand after debt of $82,741? | CREATE TABLE table_name_93 (cash_on_hand VARCHAR, after_debt VARCHAR) |
SELECT away_team FROM table_name_96 WHERE home_team = "melbourne" | What was the away team that played against Melbourne? | CREATE TABLE table_name_96 (away_team VARCHAR, home_team VARCHAR) |
SELECT attendance FROM table_name_62 WHERE record = "1-1" | How many people attended the game whose score was 1-1? | CREATE TABLE table_name_62 (attendance VARCHAR, record VARCHAR) |
SELECT MIN(crowd) FROM table_name_93 WHERE away_team = "hawthorn" | What is the smallest amount of spectators when the away team was Hawthorn? | CREATE TABLE table_name_93 (crowd INTEGER, away_team VARCHAR) |
SELECT hometown FROM table_name_64 WHERE school = "kennedy-kenrick catholic high school" | Where is the Hometown of the person that attended Kennedy-Kenrick Catholic High School? | CREATE TABLE table_name_64 (hometown VARCHAR, school VARCHAR) |
SELECT 2 AS nd_member FROM table_name_19 WHERE assembled = "3 november 1529" | Who was the 2nd member of the parliament that was assembled on 3 november 1529? | CREATE TABLE table_name_19 (assembled VARCHAR) |
SELECT translation FROM table_23915_4 WHERE ipa___são_paulo__ = "dɐ̃ːˈtɕiɣɐ ˈtɐ̃ʊ̯̃ ɐ̃ˈmadɐ ˈsuɐ ɦõ̞ˈmənə" | What is the original of the ipa ( são paulo ) translation dɐ̃ːˈtɕiɣɐ ˈtɐ̃ʊ̯̃ ɐ̃ˈmadɐ ˈsuɐ ɦõ̞ˈmənə? | CREATE TABLE table_23915_4 (translation VARCHAR, ipa___são_paulo__ VARCHAR) |
SELECT date FROM table_name_66 WHERE record = "28-41" | When did the Indians play a game with a record of 28-41? | CREATE TABLE table_name_66 (date VARCHAR, record VARCHAR) |
SELECT away_team FROM table_name_93 WHERE tie_no = "replay" AND score = "2–0" | Which Away has a Tie no of replay, and a Score of 2–0? | CREATE TABLE table_name_93 (away_team VARCHAR, tie_no VARCHAR, score VARCHAR) |
SELECT opponent FROM table_name_43 WHERE location = "tokyo , japan" AND method = "decision (unanimous)" AND record = "4-1" | What is Opponent, when Location is "Tokyo , Japan", when Method is "Decision (unanimous)", and when Record is "4-1"? | CREATE TABLE table_name_43 (opponent VARCHAR, record VARCHAR, location VARCHAR, method VARCHAR) |
SELECT COUNT(singles_w_l) FROM table_10294071_1 WHERE doubles_w_l = "11–14" | what is the total number of singles w–l where doubles w–l is 11–14 | CREATE TABLE table_10294071_1 (singles_w_l VARCHAR, doubles_w_l VARCHAR) |
SELECT * FROM hiring | Give me all the information about hiring. | CREATE TABLE hiring (Id VARCHAR) |
SELECT location FROM table_1973648_1 WHERE nickname = "Eagles" | Name the location for eagles | CREATE TABLE table_1973648_1 (location VARCHAR, nickname VARCHAR) |
SELECT COUNT(position) FROM table_2850912_8 WHERE nhl_team = "Detroit Red Wings" AND player = "Urban Nordin" | how many parts does detroit red wings person urban nordin play | CREATE TABLE table_2850912_8 (position VARCHAR, nhl_team VARCHAR, player VARCHAR) |
SELECT MIN(no_in_season) FROM table_26565936_2 WHERE directed_by = "Nelson McCormick" | What was the first episode in the season directed by nelson mccormick? | CREATE TABLE table_26565936_2 (no_in_season INTEGER, directed_by VARCHAR) |
SELECT record FROM table_name_87 WHERE visitor = "chicago black hawks" AND date = "november 24" | What was the team's record when they played visitor team Chicago Black Hawks on November 24? | CREATE TABLE table_name_87 (record VARCHAR, visitor VARCHAR, date VARCHAR) |
SELECT original_artist FROM table_28715942_2 WHERE track = "Harder To Breathe" | Who were the original artist(s) on harder to breathe? | CREATE TABLE table_28715942_2 (original_artist VARCHAR, track VARCHAR) |
SELECT MIN(top_25) FROM table_name_47 WHERE events < 17 AND top_5 > 0 | what is the lowest top-25 when the events is less than 17 and top-5 is more than 0? | CREATE TABLE table_name_47 (top_25 INTEGER, events VARCHAR, top_5 VARCHAR) |
SELECT MAX(silver) FROM table_name_86 WHERE bronze = 1 AND gold = 1 | What is the highest silver medal count when there is 1 Bronze medal and 1 Gold medal? | CREATE TABLE table_name_86 (silver INTEGER, bronze VARCHAR, gold VARCHAR) |
SELECT nation FROM table_name_82 WHERE bronze < 1 AND total > 1 AND silver = 1 | Which Nation has a Bronze smaller than 1, and a Total larger than 1, and a Silver of 1? | CREATE TABLE table_name_82 (nation VARCHAR, silver VARCHAR, bronze VARCHAR, total VARCHAR) |
SELECT constellation FROM table_name_57 WHERE declination___j2000__ = "°32′39″" | What constellation has a Declination ( J2000 ) of °32′39″? | CREATE TABLE table_name_57 (constellation VARCHAR, declination___j2000__ VARCHAR) |
SELECT finish FROM table_25920798_2 WHERE vote = "4-4" | Name the finish for 4-4 | CREATE TABLE table_25920798_2 (finish VARCHAR, vote VARCHAR) |
SELECT social_sec_leeds FROM table_name_23 WHERE fixtures_sec = "n/a" AND general_sec = "n/a" AND season = "2005–2006" | Name the Social Sec Leeds has Fixtures Sec of n/a, and a General Sec of n/a, and the Season of 2005–2006? | CREATE TABLE table_name_23 (social_sec_leeds VARCHAR, season VARCHAR, fixtures_sec VARCHAR, general_sec VARCHAR) |
SELECT COUNT(against) FROM table_name_63 WHERE date = "27/02/2005" | What is the total number of Against, when Date is "27/02/2005"? | CREATE TABLE table_name_63 (against VARCHAR, date VARCHAR) |
SELECT MIN(round) FROM table_name_26 WHERE player = "jim thompson" | What is recorded as the lowest Round for the Player Jim Thompson? | CREATE TABLE table_name_26 (round INTEGER, player VARCHAR) |
SELECT party FROM table_1341568_14 WHERE incumbent = "Lane Evans" | What party was Lane Evans? | CREATE TABLE table_1341568_14 (party VARCHAR, incumbent VARCHAR) |
SELECT written_by FROM table_27622417_1 WHERE prod_code = "411" | who were the writers in the episode whose production code was 411? | CREATE TABLE table_27622417_1 (written_by VARCHAR, prod_code VARCHAR) |
SELECT MAX(1995) FROM table_name_4 WHERE 1990 > 36 AND 1987 < 1987 AND 2007 > 107 | What is the highest 1995 with a 1990 less than 36, a 1987 less than 1987, and a 2007 value greater than 107? | CREATE TABLE table_name_4 (Id VARCHAR) |
SELECT MAX(attendance) FROM table_name_85 WHERE result = "w 16-13" AND week < 12 | How many people attended the game with a result of w 16-13 and a week earlier than 12? | CREATE TABLE table_name_85 (attendance INTEGER, result VARCHAR, week VARCHAR) |
SELECT MIN(round) FROM table_name_43 WHERE player = "ian forbes" | What is the lowest round number that Ian Forbes was picked in the draft? | CREATE TABLE table_name_43 (round INTEGER, player VARCHAR) |
SELECT place FROM table_name_16 WHERE country = "wales" | What place has Wales as a country? | CREATE TABLE table_name_16 (place VARCHAR, country VARCHAR) |
SELECT country FROM table_name_50 WHERE town = "dubai" | what country is dubai in | CREATE TABLE table_name_50 (country VARCHAR, town VARCHAR) |
SELECT COUNT(record) FROM table_23285805_5 WHERE game = 30 | Name the number of records for 30 game | CREATE TABLE table_23285805_5 (record VARCHAR, game VARCHAR) |
SELECT eliminated FROM table_29692554_2 WHERE time = "22:50" | What number was the person eliminated at 22:50? | CREATE TABLE table_29692554_2 (eliminated VARCHAR, time VARCHAR) |
SELECT score FROM table_name_47 WHERE tie_no = "4" | What is the score when the tie number is 4? | CREATE TABLE table_name_47 (score VARCHAR, tie_no VARCHAR) |
SELECT SUM(year) FROM table_name_46 WHERE animal = "downy woodpecker" | What year was the downy woodpecker coin created? | CREATE TABLE table_name_46 (year INTEGER, animal VARCHAR) |
SELECT college_junior_club_team__league_ FROM table_name_31 WHERE position = "right wing" AND round = "6" | In what League in Round 6 is the Position Right Wing? | CREATE TABLE table_name_31 (college_junior_club_team__league_ VARCHAR, position VARCHAR, round VARCHAR) |
SELECT completions FROM table_name_89 WHERE attempts = "1,271" | Which Completions has Attempts of 1,271? | CREATE TABLE table_name_89 (completions VARCHAR, attempts VARCHAR) |
SELECT player FROM table_29836557_2 WHERE pick__number = 34 | Who was pick number 34? | CREATE TABLE table_29836557_2 (player VARCHAR, pick__number VARCHAR) |
SELECT T2.Birth_Date, T2.Birth_Place FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Total DESC LIMIT 1 | What are the birth date and birth place of the body builder with the highest total points? | CREATE TABLE body_builder (People_ID VARCHAR, Total VARCHAR); CREATE TABLE people (Birth_Date VARCHAR, Birth_Place VARCHAR, People_ID VARCHAR) |
SELECT transfer_window FROM table_name_27 WHERE name = "tofas" | Which Transfer window has a Name of tofas? | CREATE TABLE table_name_27 (transfer_window VARCHAR, name VARCHAR) |
SELECT time FROM table_name_29 WHERE song_title = "treat me nice" | What is the time from the song called Treat Me Nice? | CREATE TABLE table_name_29 (time VARCHAR, song_title VARCHAR) |
SELECT award FROM table_name_49 WHERE year < 2012 AND category = "revelación pop del año" | Before the year 2012, what award was given to the artist in the category of revelación pop del año? | CREATE TABLE table_name_49 (award VARCHAR, year VARCHAR, category VARCHAR) |
SELECT MIN(gold) FROM table_name_51 WHERE total > 15 AND bronze < 31 | What is the smallest gold value that has a total over 15 and bronze values under 31? | CREATE TABLE table_name_51 (gold INTEGER, total VARCHAR, bronze VARCHAR) |
SELECT MIN(area__km²_) FROM table_16278825_1 WHERE name_of_county = "Vas" | Name the least area for vas | CREATE TABLE table_16278825_1 (area__km²_ INTEGER, name_of_county VARCHAR) |
SELECT date FROM table_name_68 WHERE score = "115-93" | what is the date when the score is 115-93? | CREATE TABLE table_name_68 (date VARCHAR, score VARCHAR) |
SELECT COUNT(grid) FROM table_name_6 WHERE driver = "dave walker" | How many grids does dave walker have? | CREATE TABLE table_name_6 (grid VARCHAR, driver VARCHAR) |
SELECT MIN(points) FROM table_name_75 WHERE year > 1974 AND rank = "15th" | Which Points is the lowest one that has a Year larger than 1974, and a Rank of 15th? | CREATE TABLE table_name_75 (points INTEGER, year VARCHAR, rank VARCHAR) |
SELECT no FROM table_18442691_2 WHERE released = "Cannot handle non-empty timestamp argument! 2007" | When cannot handle non-empty timestamp argument! 2007 is released what is the no.? | CREATE TABLE table_18442691_2 (no VARCHAR, released VARCHAR) |
SELECT 2007 FROM table_name_88 WHERE tournament = "wimbledon" | What 2007 has wimbledon as the tournament? | CREATE TABLE table_name_88 (tournament VARCHAR) |
SELECT MAX(field_goals) FROM table_19722233_5 WHERE assists = 27 | what is the highest number of goals did the player with 27 asists score | CREATE TABLE table_19722233_5 (field_goals INTEGER, assists VARCHAR) |
SELECT MIN(year) FROM table_name_24 WHERE wins > 0 | What is the lowest year that have wins greater than 0? | CREATE TABLE table_name_24 (year INTEGER, wins INTEGER) |
SELECT COUNT(elapsed_time) FROM table_22050544_3 WHERE event = "$16.50 Fixed-Limit Badugi" | How many categories for elapsed time exist for the $16.50 fixed-limit badugi game? | CREATE TABLE table_22050544_3 (elapsed_time VARCHAR, event VARCHAR) |
SELECT name FROM table_name_19 WHERE lane > 3 AND nationality = "france" | Which france nationality has a lane larger than 3? | CREATE TABLE table_name_19 (name VARCHAR, lane VARCHAR, nationality VARCHAR) |
SELECT COUNT(rank) FROM table_27155990_1 WHERE project_name = "Pebble: E-Paper Watch for iPhone and Android" | Project Name Pebble: E-Paper Watch for Iphone and Android was ranked how many times? | CREATE TABLE table_27155990_1 (rank VARCHAR, project_name VARCHAR) |
SELECT years FROM table_name_70 WHERE representative = "frank a. oliver" | What years did Representative Frank A. Oliver serve? | CREATE TABLE table_name_70 (years VARCHAR, representative VARCHAR) |
SELECT race_1 FROM table_name_25 WHERE round = "round 2" | What is the Race 1 result of Round 2? | CREATE TABLE table_name_25 (race_1 VARCHAR, round VARCHAR) |
SELECT date FROM table_name_5 WHERE opponents = "kelly de beer eva pera" | The tournament with the opponent of Kelly De Beer Eva Pera was played on what date? | CREATE TABLE table_name_5 (date VARCHAR, opponents VARCHAR) |
SELECT player FROM table_20590020_2 WHERE cuts_made = 8 | Which players made exactly 8 cuts? | CREATE TABLE table_20590020_2 (player VARCHAR, cuts_made VARCHAR) |
SELECT australian FROM table_name_79 WHERE american = "ɑ" | What is the Australian for the American ɑ? | CREATE TABLE table_name_79 (australian VARCHAR, american VARCHAR) |
SELECT COUNT(rating) FROM table_name_22 WHERE air_date = "june 25, 2008" AND share > 3 | What is the total number of Rating(s), when Air Date is June 25, 2008, and when Share is greater than 3? | CREATE TABLE table_name_22 (rating VARCHAR, air_date VARCHAR, share VARCHAR) |
SELECT COUNT(*), gender FROM artist GROUP BY gender | What is the number of artists for each gender? | CREATE TABLE artist (gender VARCHAR) |
SELECT COUNT(sail_number) FROM table_20854943_2 WHERE skipper = "Geoff Ross" | How many sail numbers for boat skippered by Geoff Ross? | CREATE TABLE table_20854943_2 (sail_number VARCHAR, skipper VARCHAR) |
SELECT name FROM table_name_80 WHERE style = "ballet" AND status = "original cast" | Who had a ballet style with original cast? | CREATE TABLE table_name_80 (name VARCHAR, style VARCHAR, status VARCHAR) |
SELECT decision FROM table_name_96 WHERE visitor = "washington" AND date = "october 13" | What was the decision of the game with Washington as the visitor team on October 13? | CREATE TABLE table_name_96 (decision VARCHAR, visitor VARCHAR, date VARCHAR) |
SELECT cover_model FROM table_name_77 WHERE centerfold_model = "jennifer walcott" | which Cover model has a Centerfold model of jennifer walcott? | CREATE TABLE table_name_77 (cover_model VARCHAR, centerfold_model VARCHAR) |
SELECT club_team_s_ FROM table_name_52 WHERE team_number > 14 | How many club teams had more than 14 people? | CREATE TABLE table_name_52 (club_team_s_ VARCHAR, team_number INTEGER) |
SELECT rank FROM table_name_99 WHERE laps < 137 AND qual = "116.470" | What's the rank when the laps are fewer than 137 and the qual is 116.470? | CREATE TABLE table_name_99 (rank VARCHAR, laps VARCHAR, qual VARCHAR) |
SELECT record FROM table_name_49 WHERE time = "5:00" AND opponent = "jess liaudin" AND location = "england" | Which record has 5:00 as the time, jess liaudin as the opponent for the location of england? | CREATE TABLE table_name_49 (record VARCHAR, location VARCHAR, time VARCHAR, opponent VARCHAR) |
SELECT SUM(year) FROM table_name_39 WHERE album___song = "speaking louder than before" | What year was the Album/Song Speaking louder than before? | CREATE TABLE table_name_39 (year INTEGER, album___song VARCHAR) |
SELECT home_team AS score FROM table_name_36 WHERE home_team = "footscray" | What is the average home team score for Footscray? | CREATE TABLE table_name_36 (home_team VARCHAR) |
SELECT SUM(losses) FROM table_name_6 WHERE wins > 6 AND club = "camperdown" AND against > 1238 | What is the sum of losses when wins is more than 6, club is camperdown and against is more than 1238? | CREATE TABLE table_name_6 (losses INTEGER, against VARCHAR, wins VARCHAR, club VARCHAR) |
SELECT year__ceremony_ FROM table_22020724_1 WHERE title_in_the_original_language = "Tummien perhosten koti" | What year was the ceremony where the film 'Tummien Perhosten Koti' was submitted? | CREATE TABLE table_22020724_1 (year__ceremony_ VARCHAR, title_in_the_original_language VARCHAR) |
SELECT class FROM table_name_26 WHERE quantity_made = 5 | Which locomotive class had 5 items made? | CREATE TABLE table_name_26 (class VARCHAR, quantity_made VARCHAR) |
SELECT population FROM table_22815568_7 WHERE county = "McDowell" | What is the population of the country of McDowell? | CREATE TABLE table_22815568_7 (population VARCHAR, county VARCHAR) |
SELECT SUM(points) FROM table_name_45 WHERE player = "sweeley" AND field_goals < 0 | How many points does Sweeley have, with less than 0 Field goals? | CREATE TABLE table_name_45 (points INTEGER, player VARCHAR, field_goals VARCHAR) |
SELECT DISTINCT building FROM classroom WHERE capacity > 50 | Find the buildings which have rooms with capacity more than 50. | CREATE TABLE classroom (building VARCHAR, capacity INTEGER) |
SELECT sales_breakdown FROM table_21458142_1 WHERE publisher = "Nintendo" AND title = "Mario Kart DS" | What's the sales breakdown for Nintendo's Mario Kart DS? | CREATE TABLE table_21458142_1 (sales_breakdown VARCHAR, publisher VARCHAR, title VARCHAR) |
SELECT college_junior_club_team FROM table_2781227_10 WHERE player = "Wes Swinson" | what educational institute does wes swinson attend | CREATE TABLE table_2781227_10 (college_junior_club_team VARCHAR, player VARCHAR) |
SELECT circuit FROM table_25213146_2 WHERE round = 4 | Where was the circuit for round 4? | CREATE TABLE table_25213146_2 (circuit VARCHAR, round VARCHAR) |
SELECT venue FROM table_name_64 WHERE result = "draw" | Where was the game held that resulted in a draw? | CREATE TABLE table_name_64 (venue VARCHAR, result VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.