question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What to par has t3 as the place and england as the country?
CREATE TABLE table_name_96 (to_par VARCHAR, place VARCHAR, country VARCHAR)
SELECT to_par FROM table_name_96 WHERE place = "t3" AND country = "england"
What was the loss of the game when the record was 27-17?
CREATE TABLE table_name_61 (loss VARCHAR, record VARCHAR)
SELECT loss FROM table_name_61 WHERE record = "27-17"
Find the names of customers who have bought by at least three distinct products.
CREATE TABLE order_items (order_id VARCHAR, product_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR, order_id VARCHAR)
SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id JOIN order_items AS T3 ON T2.order_id = T3.order_id GROUP BY T1.customer_id HAVING COUNT(DISTINCT T3.product_id) >= 3
What is the minimum number of members Europe had at the time Africa had 7375139?
CREATE TABLE table_1914090_2 (europe INTEGER, africa VARCHAR)
SELECT MIN(europe) FROM table_1914090_2 WHERE africa = 7375139
Name the size of the screen that came out in 2006 and is iliad
CREATE TABLE table_name_73 (screen_size__inch_ VARCHAR, intro_year VARCHAR, model VARCHAR)
SELECT screen_size__inch_ FROM table_name_73 WHERE intro_year = "2006" AND model = "iliad"
What stake has realtor for American equity realty as their occupation?
CREATE TABLE table_name_98 (stake VARCHAR, occupation VARCHAR)
SELECT stake FROM table_name_98 WHERE occupation = "realtor for american equity realty"
What was the attendance of the game on October 17, 2004?
CREATE TABLE table_name_41 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_41 WHERE date = "october 17, 2004"
Which Avg/G has a Long of 93, and a Loss smaller than 249?
CREATE TABLE table_name_71 (avg_g INTEGER, long VARCHAR, loss VARCHAR)
SELECT SUM(avg_g) FROM table_name_71 WHERE long = 93 AND loss < 249
What is the total number of churches named Høyanger Kyrkje?
CREATE TABLE table_178389_1 (sub_parish__sogn_ VARCHAR, church_name VARCHAR)
SELECT COUNT(sub_parish__sogn_) FROM table_178389_1 WHERE church_name = "Høyanger kyrkje"
What is the highest number born in a none EU state (1000) from Denmark with a total population (1000) less than 5,534?
CREATE TABLE table_name_20 (born_in_a_non_eu_state__1000_ INTEGER, country VARCHAR, total_population__1000_ VARCHAR)
SELECT MAX(born_in_a_non_eu_state__1000_) FROM table_name_20 WHERE country = "denmark" AND total_population__1000_ < 5 OFFSET 534
What is the Outcome of the Los Angeles Tournament when the Partner is Julie Halard?
CREATE TABLE table_name_8 (outcome VARCHAR, tournament VARCHAR, partner VARCHAR)
SELECT outcome FROM table_name_8 WHERE tournament = "los angeles" AND partner = "julie halard"
Name the total number of lg for cg is larger than 1.0 for c apps is 3
CREATE TABLE table_22538587_3 (l_g VARCHAR, c_g VARCHAR, c_apps VARCHAR)
SELECT COUNT(l_g) FROM table_22538587_3 WHERE c_g > 1.0 AND c_apps = 3
How many wins, on average, were defeated by furuichi?
CREATE TABLE table_name_45 (wins INTEGER, defeated_by VARCHAR)
SELECT AVG(wins) FROM table_name_45 WHERE defeated_by = "furuichi"
What was the score of the game in which the Toronto Maple Leafs were visitors?
CREATE TABLE table_name_97 (score VARCHAR, visitor VARCHAR)
SELECT score FROM table_name_97 WHERE visitor = "toronto maple leafs"
What rider has laps less than 20, a ducati 1098 rs 08 as the bike, with accident as the time, and a grid less than 14?
CREATE TABLE table_name_64 (rider VARCHAR, grid VARCHAR, time VARCHAR, laps VARCHAR, bike VARCHAR)
SELECT rider FROM table_name_64 WHERE laps < 20 AND bike = "ducati 1098 rs 08" AND time = "accident" AND grid < 14
Tell me the school with a height of 6-9
CREATE TABLE table_name_82 (school VARCHAR, height VARCHAR)
SELECT school FROM table_name_82 WHERE height = "6-9"
How many tries were against when the number won was 14?
CREATE TABLE table_13399573_3 (tries_against VARCHAR, won VARCHAR)
SELECT tries_against FROM table_13399573_3 WHERE won = "14"
who had the high points on june 8?
CREATE TABLE table_name_42 (high_points VARCHAR, date VARCHAR)
SELECT high_points FROM table_name_42 WHERE date = "june 8"
what is the school that hosts jim goodman
CREATE TABLE table_name_57 (school_club_team VARCHAR, player VARCHAR)
SELECT school_club_team FROM table_name_57 WHERE player = "jim goodman"
What is the basketball status for Valparaiso who has an indoor track status of yes?
CREATE TABLE table_name_69 (bask VARCHAR, indoor_track VARCHAR, school VARCHAR)
SELECT bask FROM table_name_69 WHERE indoor_track = "yes" AND school = "valparaiso"
Which Opponent has a Series of bruins lead 2–1?
CREATE TABLE table_name_91 (opponent VARCHAR, series VARCHAR)
SELECT opponent FROM table_name_91 WHERE series = "bruins lead 2–1"
What team is from the Eastern province?
CREATE TABLE table_19905183_1 (team VARCHAR, province VARCHAR)
SELECT team FROM table_19905183_1 WHERE province = "Eastern"
Tell me the screen size for pixels of model s6400
CREATE TABLE table_name_69 (screen_size VARCHAR, pixels VARCHAR, model VARCHAR)
SELECT screen_size, pixels FROM table_name_69 WHERE model = "s6400"
How many games for keith j. miller, who debuted after 1974 with less than 1 goal?
CREATE TABLE table_name_28 (games INTEGER, debut_year VARCHAR, goals VARCHAR, player VARCHAR)
SELECT AVG(games) FROM table_name_28 WHERE goals < 1 AND player = "keith j. miller" AND debut_year > 1974
What is the value for the byte string when the memory map, decimal, and floating points are all standard and the max memory is smaller than 512?
CREATE TABLE table_name_23 (byte_string VARCHAR, max_memory__kwords_ VARCHAR, floating_point VARCHAR, memory_map VARCHAR, decimal VARCHAR)
SELECT byte_string FROM table_name_23 WHERE memory_map = "standard" AND decimal = "standard" AND floating_point = "standard" AND max_memory__kwords_ < 512
Name the telephone 052 for area km2 being 5.42
CREATE TABLE table_14465924_1 (telephone__052_ VARCHAR, area__km_2__ VARCHAR)
SELECT telephone__052_ FROM table_14465924_1 WHERE area__km_2__ = "5.42"
when was the number l6, with a fleet of black sea, launched?
CREATE TABLE table_name_86 (launched VARCHAR, fleet VARCHAR, number VARCHAR)
SELECT launched FROM table_name_86 WHERE fleet = "black sea" AND number = "l6"
What player was moving from manchester united?
CREATE TABLE table_name_78 (name VARCHAR, moving_from VARCHAR)
SELECT name FROM table_name_78 WHERE moving_from = "manchester united"
Which country has the highest bronze amount and a silver amount bigger than 41?
CREATE TABLE table_name_65 (bronze INTEGER, silver INTEGER)
SELECT MAX(bronze) FROM table_name_65 WHERE silver > 41
Name the lowest 2008 for guizhou when 2005 is less than 31
CREATE TABLE table_name_45 (year VARCHAR)
SELECT MIN(2008) FROM table_name_45 WHERE year = "guizhou" AND 2005 < 31
What's the end score of the game where Shane Battier (8) did the high rebounds?
CREATE TABLE table_23281862_6 (score VARCHAR, high_rebounds VARCHAR)
SELECT score FROM table_23281862_6 WHERE high_rebounds = "Shane Battier (8)"
What nationality has a position of left wing, and a round greater than 4, with mattia baldi as the player?
CREATE TABLE table_name_75 (nationality VARCHAR, player VARCHAR, position VARCHAR, round VARCHAR)
SELECT nationality FROM table_name_75 WHERE position = "left wing" AND round > 4 AND player = "mattia baldi"
Please show the most common reigns of wrestlers.
CREATE TABLE wrestler (Reign VARCHAR)
SELECT Reign FROM wrestler GROUP BY Reign ORDER BY COUNT(*) DESC LIMIT 1
What is the date of the match on clay with score of 6-3 2-6 6-4?
CREATE TABLE table_name_15 (date VARCHAR, surface VARCHAR, score VARCHAR)
SELECT date FROM table_name_15 WHERE surface = "clay" AND score = "6-3 2-6 6-4"
What period(s) featured a left inside linebacker?
CREATE TABLE table_28606933_7 (period VARCHAR, position VARCHAR)
SELECT period FROM table_28606933_7 WHERE position = "Left inside linebacker"
What is the name of the title that was directed by Friz Freleng and has a production number of 443?
CREATE TABLE table_name_81 (title VARCHAR, director VARCHAR, production_number VARCHAR)
SELECT title FROM table_name_81 WHERE director = "friz freleng" AND production_number = "443"
How many lanes have a rank greater than 8?
CREATE TABLE table_name_25 (lane INTEGER, rank INTEGER)
SELECT SUM(lane) FROM table_name_25 WHERE rank > 8
Return all players sorted by college in ascending alphabetical order.
CREATE TABLE match_season (player VARCHAR, College VARCHAR)
SELECT player FROM match_season ORDER BY College
What is the status of the match held on 12/7/1997?
CREATE TABLE table_name_31 (status VARCHAR, date VARCHAR)
SELECT status FROM table_name_31 WHERE date = "12/7/1997"
Name the trinidad for yellow-bellied puffing snake
CREATE TABLE table_1850282_7 (trinidad VARCHAR, common_name VARCHAR)
SELECT trinidad FROM table_1850282_7 WHERE common_name = "Yellow-bellied puffing snake"
What L2 cache had a release date of august 26, 2007?
CREATE TABLE table_name_71 (l2_cache VARCHAR, release_date VARCHAR)
SELECT l2_cache FROM table_name_71 WHERE release_date = "august 26, 2007"
Can you tell me the Opponent that has the December of 2?
CREATE TABLE table_name_52 (opponent VARCHAR, december VARCHAR)
SELECT opponent FROM table_name_52 WHERE december = 2
If the stage is 9, what is the team classification name?
CREATE TABLE table_22941863_19 (team_classification VARCHAR, stage VARCHAR)
SELECT team_classification FROM table_22941863_19 WHERE stage = 9
Give me the zip code where the average mean humidity is below 70 and at least 100 trips took place.
CREATE TABLE weather (zip_code VARCHAR, mean_humidity INTEGER); CREATE TABLE trip (zip_code VARCHAR, mean_humidity INTEGER)
SELECT zip_code FROM weather GROUP BY zip_code HAVING AVG(mean_humidity) < 70 INTERSECT SELECT zip_code FROM trip GROUP BY zip_code HAVING COUNT(*) >= 100
What is the Total of the Player with a Finish of 1?
CREATE TABLE table_name_2 (total VARCHAR, finish VARCHAR)
SELECT COUNT(total) FROM table_name_2 WHERE finish = "1"
Name the Report with Winning constructor of maserati, and a Name of monza grand prix?
CREATE TABLE table_name_28 (report VARCHAR, winning_constructor VARCHAR, name VARCHAR)
SELECT report FROM table_name_28 WHERE winning_constructor = "maserati" AND name = "monza grand prix"
Which Release price (USD ) has a GPU frequency of 650–1150 mhz and a sSpec number of sr0pq(e1)?
CREATE TABLE table_name_20 (release_price___usd__ VARCHAR, gpu_frequency VARCHAR, sspec_number VARCHAR)
SELECT release_price___usd__ FROM table_name_20 WHERE gpu_frequency = "650–1150 mhz" AND sspec_number = "sr0pq(e1)"
What is the date for week 15?
CREATE TABLE table_name_28 (date VARCHAR, week VARCHAR)
SELECT date FROM table_name_28 WHERE week = 15
What is the lowest Took Office, when Senator is Eddie Bernice Johnson, and when District is greater than 23?
CREATE TABLE table_name_50 (took_office INTEGER, senator VARCHAR, district VARCHAR)
SELECT MIN(took_office) FROM table_name_50 WHERE senator = "eddie bernice johnson" AND district > 23
What is the score for Greg Norman
CREATE TABLE table_name_84 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_84 WHERE player = "greg norman"
What was the position (P) for Clapham?
CREATE TABLE table_12608427_8 (p VARCHAR, name VARCHAR)
SELECT p FROM table_12608427_8 WHERE name = "Clapham"
Which Player has a Total Goals greater than 1 and Qualifying Goals smaller than 3?
CREATE TABLE table_name_90 (player VARCHAR, total_goals VARCHAR, qualifying_goals VARCHAR)
SELECT player FROM table_name_90 WHERE total_goals > 1 AND qualifying_goals < 3
What years was Denis Lawson nominated for an award?
CREATE TABLE table_name_45 (year VARCHAR, nominee VARCHAR)
SELECT COUNT(year) FROM table_name_45 WHERE nominee = "denis lawson"
What was the lowest win when there were 34 points and more than 13 draws?
CREATE TABLE table_name_2 (wins INTEGER, points VARCHAR, draws VARCHAR)
SELECT MIN(wins) FROM table_name_2 WHERE points = 34 AND draws > 13
What is the score at game 31?
CREATE TABLE table_name_19 (score VARCHAR, game VARCHAR)
SELECT score FROM table_name_19 WHERE game = 31
Name the country for pieroni
CREATE TABLE table_name_46 (country VARCHAR, name VARCHAR)
SELECT country FROM table_name_46 WHERE name = "pieroni"
What is the lowest capacity for the 1975 toyota celica 1600gt?
CREATE TABLE table_name_89 (capacity INTEGER, vehicle VARCHAR)
SELECT MIN(capacity) FROM table_name_89 WHERE vehicle = "1975 toyota celica 1600gt"
Location of brendan byrne arena had what score?
CREATE TABLE table_name_5 (score VARCHAR, location VARCHAR)
SELECT score FROM table_name_5 WHERE location = "brendan byrne arena"
What are the Runner(s)-up of the 1972 Championship?
CREATE TABLE table_name_41 (runner_s__up VARCHAR, year VARCHAR)
SELECT runner_s__up FROM table_name_41 WHERE year = "1972"
What is NK Rijeka's away score?
CREATE TABLE table_name_75 (away VARCHAR, club VARCHAR)
SELECT away FROM table_name_75 WHERE club = "nk rijeka"
What is the visitor team of the game with Chicago as the home team?
CREATE TABLE table_name_74 (visitor VARCHAR, home VARCHAR)
SELECT visitor FROM table_name_74 WHERE home = "chicago"
Which Played has a Position smaller than 4, and Wins larger than 16, and Points of 38, and Goals against larger than 35?
CREATE TABLE table_name_94 (played INTEGER, goals_against VARCHAR, points VARCHAR, position VARCHAR, wins VARCHAR)
SELECT AVG(played) FROM table_name_94 WHERE position < 4 AND wins > 16 AND points = 38 AND goals_against > 35
What is the height of Anthony Crater?
CREATE TABLE table_29418619_1 (height VARCHAR, name VARCHAR)
SELECT height FROM table_29418619_1 WHERE name = "Anthony Crater"
Which Year Inducted is the highest one that has a Year smaller than 1965?
CREATE TABLE table_name_28 (year INTEGER)
SELECT MAX(year) AS Inducted FROM table_name_28 WHERE year < 1965
What is the average overall pick number for the USF player who was picked after round 5?
CREATE TABLE table_name_23 (overall INTEGER, college VARCHAR, round VARCHAR)
SELECT AVG(overall) FROM table_name_23 WHERE college = "usf" AND round > 5
Where's the first round that southern mississippi shows up during the draft?
CREATE TABLE table_name_31 (round INTEGER, school_club_team VARCHAR)
SELECT MIN(round) FROM table_name_31 WHERE school_club_team = "southern mississippi"
Which school joined in 1971 and left in 1975?
CREATE TABLE table_name_15 (school VARCHAR, year_joined VARCHAR, year_left VARCHAR)
SELECT school FROM table_name_15 WHERE year_joined = "1971" AND year_left = "1975"
What was the Result after the Week 4 on November 3, 1968?
CREATE TABLE table_name_27 (result VARCHAR, week VARCHAR, date VARCHAR)
SELECT result FROM table_name_27 WHERE week > 4 AND date = "november 3, 1968"
Find the name and email of the user whose name contains the word ‘Swift’.
CREATE TABLE user_profiles (name VARCHAR, email VARCHAR)
SELECT name, email FROM user_profiles WHERE name LIKE '%Swift%'
Who had the fastest lap in the Dutch TT Grand Prix?
CREATE TABLE table_18303274_1 (fastest_lap VARCHAR, grand_prix VARCHAR)
SELECT fastest_lap FROM table_18303274_1 WHERE grand_prix = "Dutch TT"
What was the premiere date of the season won by Matt Hoover?
CREATE TABLE table_name_32 (premiere VARCHAR, the_biggest_loser VARCHAR)
SELECT premiere FROM table_name_32 WHERE the_biggest_loser = "matt hoover"
In what district is the city listed in Serial number 9?
CREATE TABLE table_18425346_2 (district VARCHAR, serial_no VARCHAR)
SELECT COUNT(district) FROM table_18425346_2 WHERE serial_no = 9
What is the highest value for Game, when Points is 16, when Date is November 11, 2008, and when Attendance is greater than 19,289?
CREATE TABLE table_name_24 (game INTEGER, attendance VARCHAR, points VARCHAR, date VARCHAR)
SELECT MAX(game) FROM table_name_24 WHERE points = 16 AND date = "november 11, 2008" AND attendance > 19 OFFSET 289
Enrollment that has a School of south central (union mills) has what sum?
CREATE TABLE table_name_72 (enrollment INTEGER, school VARCHAR)
SELECT SUM(enrollment) FROM table_name_72 WHERE school = "south central (union mills)"
When was the mcdonald's lpga championship?
CREATE TABLE table_17335602_1 (date VARCHAR, tournament VARCHAR)
SELECT date FROM table_17335602_1 WHERE tournament = "McDonald's LPGA Championship"
Which 2010 has a 2002 of 2r?
CREATE TABLE table_name_20 (Id VARCHAR)
SELECT 2010 FROM table_name_20 WHERE 2002 = "2r"
Name the date for hard surface and tournament of fort walton beach
CREATE TABLE table_name_84 (date VARCHAR, surface VARCHAR, tournament VARCHAR)
SELECT date FROM table_name_84 WHERE surface = "hard" AND tournament = "fort walton beach"
how many varsity teams are in west roxbury, ma?
CREATE TABLE table_2439728_1 (varsity_teams INTEGER, location VARCHAR)
SELECT MAX(varsity_teams) FROM table_2439728_1 WHERE location = "West Roxbury, MA"
How low was the income where services is 72.5?
CREATE TABLE table_13618358_1 (income_poverty_f VARCHAR, services_ VARCHAR, _cons_truction_b VARCHAR)
SELECT income_poverty_f FROM table_13618358_1 WHERE services_ & _cons_truction_b = "72.5"
Who sang the song composed by Mariah Carey and Walter Afanasieff?
CREATE TABLE table_name_20 (performer_s_ VARCHAR, composer_s_ VARCHAR)
SELECT performer_s_ FROM table_name_20 WHERE composer_s_ = "mariah carey and walter afanasieff"
What is the date of the event with a $322,280 prize?
CREATE TABLE table_name_12 (date VARCHAR, prize VARCHAR)
SELECT date FROM table_name_12 WHERE prize = "$322,280"
What rank is Partizan Igokea that has less than 130 rebounds?
CREATE TABLE table_name_53 (rank INTEGER, rebounds VARCHAR, team VARCHAR)
SELECT MIN(rank) FROM table_name_53 WHERE rebounds < 130 AND team = "partizan igokea"
1980 smaller than 719, and a 1960 smaller than 205, and a 1996[2] smaller than 364, and a 1970 larger than 251 is what 1990 highest?
CREATE TABLE table_name_94 (Id VARCHAR)
SELECT MAX(1990) FROM table_name_94 WHERE 1980 < 719 AND 1960 < 205 AND 1996[2] < 364 AND 1970 > 251
What was the record for the Argonauts on September 7?
CREATE TABLE table_24136814_3 (record VARCHAR, date VARCHAR)
SELECT record FROM table_24136814_3 WHERE date = "September 7"
How many seasons did coach steve fisher have?
CREATE TABLE table_name_5 (season VARCHAR, coach VARCHAR)
SELECT COUNT(season) FROM table_name_5 WHERE coach = "steve fisher"
Which headquarters are associated with the school board Renfrew County Catholic District School Board?
CREATE TABLE table_1506619_1 (headquarters VARCHAR, school_board VARCHAR)
SELECT headquarters FROM table_1506619_1 WHERE school_board = "Renfrew County Catholic District school_board"
What is the highest SHTS of Kasey Keller
CREATE TABLE table_name_56 (shts INTEGER, goalkeeper VARCHAR)
SELECT MAX(shts) FROM table_name_56 WHERE goalkeeper = "kasey keller"
What is the points difference associated with more than 3 points and more than 0 losses?
CREATE TABLE table_name_66 (points_difference VARCHAR, points VARCHAR, lost VARCHAR)
SELECT points_difference FROM table_name_66 WHERE points > 3 AND lost > 0
Who is the Trainer with the Year of 2013?
CREATE TABLE table_name_33 (trainer VARCHAR, year VARCHAR)
SELECT trainer FROM table_name_33 WHERE year = "2013"
What is the lowest 06-10 totals with a pubs 2010 of 68 and a 07-11 totals larger than 305?
CREATE TABLE table_name_15 (totals_06_10 INTEGER, pubs_2010 VARCHAR, totals_07_11 VARCHAR)
SELECT MIN(totals_06_10) FROM table_name_15 WHERE pubs_2010 = 68 AND totals_07_11 > 305
What time has humber college north as the ground, and toronto downtown dingos as the home?
CREATE TABLE table_name_58 (time VARCHAR, ground VARCHAR, home VARCHAR)
SELECT time FROM table_name_58 WHERE ground = "humber college north" AND home = "toronto downtown dingos"
What is the highest no. in season?
CREATE TABLE table_10701133_1 (no_in_season INTEGER)
SELECT MAX(no_in_season) FROM table_10701133_1
What is the lowest octal with a 30 hexadecimal and less than 0 glyphs?
CREATE TABLE table_name_82 (octal INTEGER, hexadecimal VARCHAR, glyph VARCHAR)
SELECT MIN(octal) FROM table_name_82 WHERE hexadecimal = 30 AND glyph < 0
What was the score of the home game at Tampa Bay?
CREATE TABLE table_name_56 (score VARCHAR, home VARCHAR)
SELECT score FROM table_name_56 WHERE home = "tampa bay"
Which part 2 has a verb that means to leap?
CREATE TABLE table_name_70 (part_2 VARCHAR, verb_meaning VARCHAR)
SELECT part_2 FROM table_name_70 WHERE verb_meaning = "to leap"
What years won when the To par is more than 13?
CREATE TABLE table_name_65 (year_s__won VARCHAR, to_par INTEGER)
SELECT year_s__won FROM table_name_65 WHERE to_par > 13
What is the Final score on november 22?
CREATE TABLE table_name_48 (final_score VARCHAR, date VARCHAR)
SELECT final_score FROM table_name_48 WHERE date = "november 22"
Which # of Episodes has a Mole of craig slike?
CREATE TABLE table_name_55 (_number_of_episodes INTEGER, mole VARCHAR)
SELECT MIN(_number_of_episodes) FROM table_name_55 WHERE mole = "craig slike"
How many people attended games at vfl park?
CREATE TABLE table_name_12 (crowd INTEGER, venue VARCHAR)
SELECT SUM(crowd) FROM table_name_12 WHERE venue = "vfl park"
What round has 2-1 as the result, and A as the venue?
CREATE TABLE table_name_2 (round VARCHAR, result VARCHAR, venue VARCHAR)
SELECT round FROM table_name_2 WHERE result = "2-1" AND venue = "a"