question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Find the product type whose average price is higher than the average price of all products.
CREATE TABLE products (product_type_code VARCHAR, product_price INTEGER)
SELECT product_type_code FROM products GROUP BY product_type_code HAVING AVG(product_price) > (SELECT AVG(product_price) FROM products)
What is the lowest total GFR that has 95.80% of the population as Whites, and a TFR total larger than 2.14, in 2006?
CREATE TABLE table_name_64 (gfr_2006 INTEGER, whites_as__percentage_of_pop VARCHAR, tfr_2006 VARCHAR)
SELECT MIN(gfr_2006) FROM table_name_64 WHERE whites_as__percentage_of_pop = "95.80%" AND tfr_2006 > 2.14
How many data are there under NO vote with a description of $1500 tax exemption amendment?
CREATE TABLE table_256286_8 (no_votes VARCHAR, description VARCHAR)
SELECT COUNT(no_votes) FROM table_256286_8 WHERE description = "$1500 Tax Exemption Amendment"
when does the train arriving at bourne at 11.45 departure
CREATE TABLE table_18333678_2 (departure VARCHAR, going_to VARCHAR, arrival VARCHAR)
SELECT departure FROM table_18333678_2 WHERE going_to = "Bourne" AND arrival = "11.45"
Show all document names using templates with template type code BK.
CREATE TABLE Documents (document_name VARCHAR, template_id VARCHAR); CREATE TABLE Templates (template_id VARCHAR, template_type_code VARCHAR)
SELECT T2.document_name FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T1.template_type_code = "BK"
What is the maximum date for a mintage of 150 and a KM number of S66?
CREATE TABLE table_26336060_19 (date INTEGER, mintage VARCHAR, km_number VARCHAR)
SELECT MAX(date) FROM table_26336060_19 WHERE mintage = 150 AND km_number = "S66"
What is the Result when the Attendance is 1,634?
CREATE TABLE table_name_85 (result VARCHAR, attendance VARCHAR)
SELECT result FROM table_name_85 WHERE attendance = "1,634"
What is the tournament with greg rusedski as the opponent?
CREATE TABLE table_name_57 (tournament VARCHAR, opponent VARCHAR)
SELECT tournament FROM table_name_57 WHERE opponent = "greg rusedski"
What is the number of losses that coach John Kowalski has with a PTS smaller than 9?
CREATE TABLE table_name_84 (loss VARCHAR, coach VARCHAR, pts VARCHAR)
SELECT COUNT(loss) FROM table_name_84 WHERE coach = "john kowalski" AND pts < 9
What is the city of the Museum that houses the specimen discovered by Jane Solem?
CREATE TABLE table_name_28 (museum VARCHAR, discoverer VARCHAR)
SELECT museum AS city FROM table_name_28 WHERE discoverer = "jane solem"
What is the name of the track that hosted the Swedish Grand Prix in 1979?
CREATE TABLE table_name_79 (track VARCHAR, year VARCHAR)
SELECT track FROM table_name_79 WHERE year = "1979"
Who won in mixed doubles in 2008?
CREATE TABLE table_name_53 (mixed_doubles VARCHAR, year VARCHAR)
SELECT mixed_doubles FROM table_name_53 WHERE year = "2008"
Name the average points for chassis of stevens and year less than 1950
CREATE TABLE table_name_14 (points INTEGER, chassis VARCHAR, year VARCHAR)
SELECT AVG(points) FROM table_name_14 WHERE chassis = "stevens" AND year < 1950
How many courses have more than 2 credits?
CREATE TABLE COURSE (Credits INTEGER)
SELECT COUNT(*) FROM COURSE WHERE Credits > 2
What is the lowest #?
CREATE TABLE table_11964047_10 (_number INTEGER)
SELECT MIN(_number) FROM table_11964047_10
Which 2009 tournament was french open?
CREATE TABLE table_name_51 (tournament VARCHAR)
SELECT 2009 FROM table_name_51 WHERE tournament = "french open"
What sport did Miroslav Jambor Richard Csejtey participate in?
CREATE TABLE table_name_16 (sport VARCHAR, name VARCHAR)
SELECT sport FROM table_name_16 WHERE name = "miroslav jambor richard csejtey"
What is the sum of Year(s), when Postion is 6th, and when Competition is Commonwealth Games?
CREATE TABLE table_name_68 (year INTEGER, position VARCHAR, competition VARCHAR)
SELECT SUM(year) FROM table_name_68 WHERE position = "6th" AND competition = "commonwealth games"
What is Height, when Name is "Manuela Zanchi"?
CREATE TABLE table_name_95 (height VARCHAR, name VARCHAR)
SELECT height FROM table_name_95 WHERE name = "manuela zanchi"
How many song titles belong to the artist Ratt?
CREATE TABLE table_21500850_1 (song_title VARCHAR, artist VARCHAR)
SELECT COUNT(song_title) FROM table_21500850_1 WHERE artist = "Ratt"
What is the dutch word for one?
CREATE TABLE table_name_18 (dutch VARCHAR, english VARCHAR)
SELECT dutch FROM table_name_18 WHERE english = "one"
What is the date with the catalogue # cocy-80093?
CREATE TABLE table_name_37 (date VARCHAR, catalogue__number VARCHAR)
SELECT date FROM table_name_37 WHERE catalogue__number = "cocy-80093"
What is the Position for the European U23 Championships?
CREATE TABLE table_name_74 (position VARCHAR, competition VARCHAR)
SELECT position FROM table_name_74 WHERE competition = "european u23 championships"
What is the points sum of the series with less than 0 poles?
CREATE TABLE table_name_28 (points INTEGER, poles INTEGER)
SELECT SUM(points) FROM table_name_28 WHERE poles < 0
What club had over 0 goals in 2011?
CREATE TABLE table_name_40 (club VARCHAR, goals VARCHAR, season VARCHAR)
SELECT club FROM table_name_40 WHERE goals > 0 AND season = "2011"
How many Laps were there in 2010?
CREATE TABLE table_name_46 (laps INTEGER, year VARCHAR)
SELECT SUM(laps) FROM table_name_46 WHERE year = 2010
What is the game with the golden state warriors?
CREATE TABLE table_name_37 (game VARCHAR, team VARCHAR)
SELECT game FROM table_name_37 WHERE team = "golden state warriors"
What is the average number of goals that occurred in Hong Kong Stadium, Hong Kong?
CREATE TABLE table_name_53 (goals INTEGER, venue VARCHAR)
SELECT AVG(goals) FROM table_name_53 WHERE venue = "hong kong stadium, hong kong"
Who was the winner in 2007?
CREATE TABLE table_name_49 (winner VARCHAR, date VARCHAR)
SELECT winner FROM table_name_49 WHERE date = 2007
WHAT IS THE LEAGUE WITH PLAYER JOE COLBORNE?
CREATE TABLE table_name_78 (college_junior_club_team__league_ VARCHAR, player VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_78 WHERE player = "joe colborne"
What is the name of the inscription where Virgil is listed as the identification?
CREATE TABLE table_name_57 (inscription VARCHAR, identification VARCHAR)
SELECT inscription FROM table_name_57 WHERE identification = "virgil"
What was Anders Forsbrand's score when the TO par is +4?
CREATE TABLE table_name_65 (score VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT score FROM table_name_65 WHERE to_par = "+4" AND player = "anders forsbrand"
What is the lowest Points, when Class is 50cc, when Year is 1965, and when Wins is less than 0?
CREATE TABLE table_name_2 (points INTEGER, wins VARCHAR, class VARCHAR, year VARCHAR)
SELECT MIN(points) FROM table_name_2 WHERE class = "50cc" AND year = 1965 AND wins < 0
In how many rounds of the draft was there a college from Georgia involved?
CREATE TABLE table_name_94 (round VARCHAR, college VARCHAR)
SELECT COUNT(round) FROM table_name_94 WHERE college = "georgia"
Name the record with home of bucks on 24 november 2007
CREATE TABLE table_name_76 (record VARCHAR, home VARCHAR, date VARCHAR)
SELECT record FROM table_name_76 WHERE home = "bucks" AND date = "24 november 2007"
Tell me the leading scorer for grizzlies
CREATE TABLE table_name_59 (leading_scorer VARCHAR, visitor VARCHAR)
SELECT leading_scorer FROM table_name_59 WHERE visitor = "grizzlies"
Name the area for map # 24
CREATE TABLE table_16278349_1 (area__km²_ VARCHAR, map__number VARCHAR)
SELECT area__km²_ FROM table_16278349_1 WHERE map__number = 24
Who was the opposing team in the game(s) that started at 7:30pm?
CREATE TABLE table_name_97 (opponent VARCHAR, time VARCHAR)
SELECT opponent FROM table_name_97 WHERE time = "7:30pm"
What college did Craig Zimmer go to?
CREATE TABLE table_10975034_5 (college VARCHAR, player VARCHAR)
SELECT college FROM table_10975034_5 WHERE player = "Craig Zimmer"
What is the date of the tournament with 5 strokes as the margin of victory?
CREATE TABLE table_name_62 (date VARCHAR, margin_of_victory VARCHAR)
SELECT date FROM table_name_62 WHERE margin_of_victory = "5 strokes"
How far did p. carbery run to get 2nd?
CREATE TABLE table_name_67 (distance VARCHAR, jockey VARCHAR, result VARCHAR)
SELECT distance FROM table_name_67 WHERE jockey = "p. carbery" AND result = "2nd"
Tell me the horse when the faults are 9 and the total is 46.36
CREATE TABLE table_name_11 (horse VARCHAR, faults VARCHAR, total VARCHAR)
SELECT horse FROM table_name_11 WHERE faults = "9" AND total = 46.36
What was the top place with over 24 points and more than 14 played?
CREATE TABLE table_name_41 (place__posición_ INTEGER, points__pts_ VARCHAR, played__pj_ VARCHAR)
SELECT MAX(place__posición_) FROM table_name_41 WHERE points__pts_ > 24 AND played__pj_ > 14
Name the least dismissals for sammy carter
CREATE TABLE table_23316034_23 (dismissals INTEGER, player VARCHAR)
SELECT MIN(dismissals) FROM table_23316034_23 WHERE player = "Sammy Carter"
How much power does the 1500 model have with a displacement of 1490cc?
CREATE TABLE table_name_22 (power VARCHAR, model VARCHAR, displacement VARCHAR)
SELECT power FROM table_name_22 WHERE model = "1500" AND displacement = "1490cc"
Ismaël Bangoura with a rank larger than 5 after the year 2005 was moving to what football club?
CREATE TABLE table_name_39 (moving_to VARCHAR, name VARCHAR, year VARCHAR, rank VARCHAR)
SELECT moving_to FROM table_name_39 WHERE year > 2005 AND rank > 5 AND name = "ismaël bangoura"
How many third places has a total greater than 2 and a rank less than 2?
CREATE TABLE table_name_23 (third_place VARCHAR, total VARCHAR, rank VARCHAR)
SELECT third_place FROM table_name_23 WHERE total > 2 AND rank < 2
What was the score of the game with Nathalie Tauziat as a partner?
CREATE TABLE table_name_7 (score VARCHAR, partnering VARCHAR)
SELECT score FROM table_name_7 WHERE partnering = "nathalie tauziat"
What was the year when Chūnqiū Cháshì (春秋茶室) was submitted?
CREATE TABLE table_17350255_1 (year__ceremony_ VARCHAR, original_title VARCHAR)
SELECT year__ceremony_ FROM table_17350255_1 WHERE original_title = "Chūnqiū cháshì (春秋茶室)"
What was the number of viewers in millions for the broadcast from 2010?
CREATE TABLE table_24212608_1 (viewers__millions_ VARCHAR, broadcast_date VARCHAR)
SELECT viewers__millions_ FROM table_24212608_1 WHERE broadcast_date = 2010
What Title's Transliteration is Fal'shivaya Nota?
CREATE TABLE table_name_38 (title VARCHAR, transliteration VARCHAR)
SELECT title FROM table_name_38 WHERE transliteration = "fal'shivaya nota"
What was the highest long of Charles Pauley with fewer than 60 yards?
CREATE TABLE table_name_83 (long INTEGER, player VARCHAR, yards VARCHAR)
SELECT MAX(long) FROM table_name_83 WHERE player = "charles pauley" AND yards < 60
What is the type of sco country?
CREATE TABLE table_name_92 (type VARCHAR, country VARCHAR)
SELECT type FROM table_name_92 WHERE country = "sco"
What jockey rode for Michael House before 2012
CREATE TABLE table_name_70 (jockey VARCHAR, year VARCHAR, owner VARCHAR)
SELECT jockey FROM table_name_70 WHERE year < 2012 AND owner = "michael house"
What was the lost with tries for?
CREATE TABLE table_12828723_5 (lost VARCHAR)
SELECT lost FROM table_12828723_5 WHERE "tries_for" = "tries_for"
who is the opponents when the surface is clay and the date is 12 july 1992?
CREATE TABLE table_name_93 (opponents VARCHAR, surface VARCHAR, date VARCHAR)
SELECT opponents FROM table_name_93 WHERE surface = "clay" AND date = "12 july 1992"
Count the Draw which has Lost of 0, and a Goals Scored larger than 0?
CREATE TABLE table_name_59 (draw INTEGER, lost VARCHAR, goals_scored VARCHAR)
SELECT SUM(draw) FROM table_name_59 WHERE lost = 0 AND goals_scored > 0
What is the Population of Sargent County?
CREATE TABLE table_name_38 (population VARCHAR, county VARCHAR)
SELECT population FROM table_name_38 WHERE county = "sargent"
name the school located at Milton, ma.
CREATE TABLE table_2439728_1 (school VARCHAR, location VARCHAR)
SELECT school FROM table_2439728_1 WHERE location = "Milton, MA"
Show the most common apartment type code among apartments with more than 1 bathroom.
CREATE TABLE Apartments (apt_type_code VARCHAR, bathroom_count INTEGER)
SELECT apt_type_code FROM Apartments WHERE bathroom_count > 1 GROUP BY apt_type_code ORDER BY COUNT(*) DESC LIMIT 1
Which 2003 has a 2012 of 1r, and a 2008 of 1r?
CREATE TABLE table_name_42 (Id VARCHAR)
SELECT 2003 FROM table_name_42 WHERE 2012 = "1r" AND 2008 = "1r"
How many high points occur with the team Umass?
CREATE TABLE table_29556461_9 (high_points VARCHAR, team VARCHAR)
SELECT COUNT(high_points) FROM table_29556461_9 WHERE team = "UMass"
What were the active dates for the storm that had 185km/h (115mph) deaths?
CREATE TABLE table_10602294_1 (dates_active VARCHAR, deaths VARCHAR)
SELECT dates_active FROM table_10602294_1 WHERE deaths = "185km/h (115mph)"
What 2002 tournament has 2008 career statistics?
CREATE TABLE table_name_21 (Id VARCHAR)
SELECT 2002 FROM table_name_21 WHERE 2008 = "career statistics"
Which opponent has a Season of 2010/11?
CREATE TABLE table_name_7 (opponent VARCHAR, season VARCHAR)
SELECT opponent FROM table_name_7 WHERE season = "2010/11"
When was Göteborg the opponent with a score of 3-1?
CREATE TABLE table_name_9 (date VARCHAR, opponents VARCHAR, score VARCHAR)
SELECT date FROM table_name_9 WHERE opponents = "göteborg" AND score = "3-1"
What is the Sum of ERP W, when Call Sign is K216GA?
CREATE TABLE table_name_49 (erp_w INTEGER, call_sign VARCHAR)
SELECT SUM(erp_w) FROM table_name_49 WHERE call_sign = "k216ga"
When mcwilliams-franklin (8) has the highest rebounds what is the date?
CREATE TABLE table_18904831_6 (date VARCHAR, high_rebounds VARCHAR)
SELECT date FROM table_18904831_6 WHERE high_rebounds = "McWilliams-Franklin (8)"
On which date was the record of 43.89 m set?
CREATE TABLE table_name_35 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_35 WHERE record = "43.89 m"
What is the average place for a couple with the rank by average of 9 and total smaller than 83?
CREATE TABLE table_name_91 (place INTEGER, rank_by_average VARCHAR, total VARCHAR)
SELECT AVG(place) FROM table_name_91 WHERE rank_by_average = 9 AND total < 83
Who was the home team on October 28 when the new england patriots were the visitors?
CREATE TABLE table_name_34 (designated_home VARCHAR, date VARCHAR, designated_visitors VARCHAR)
SELECT designated_home FROM table_name_34 WHERE date = "october 28" AND designated_visitors = "new england patriots"
What university was Kevan George affiliated with?
CREATE TABLE table_29836557_2 (affiliation VARCHAR, player VARCHAR)
SELECT affiliation FROM table_29836557_2 WHERE player = "Kevan George"
What is the largest amount of assists that Nicole Levandusky made?
CREATE TABLE table_19722664_5 (assists INTEGER, player VARCHAR)
SELECT MAX(assists) FROM table_19722664_5 WHERE player = "Nicole Levandusky"
Where did the player with a transfer type, a summer transfer window, and ended before 2013 move from?
CREATE TABLE table_name_38 (moving_from VARCHAR, ends VARCHAR, type VARCHAR, transfer_window VARCHAR)
SELECT moving_from FROM table_name_38 WHERE type = "transfer" AND transfer_window = "summer" AND ends < 2013
Show the names of all the donors except those whose donation amount less than 9.
CREATE TABLE endowment (donator_name VARCHAR, amount INTEGER)
SELECT donator_name FROM endowment EXCEPT SELECT donator_name FROM endowment WHERE amount < 9
What is the result when the week is greater than 7 and the Houston Oilers were the opponent?
CREATE TABLE table_name_60 (result VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_60 WHERE week > 7 AND opponent = "houston oilers"
What was the to par when South Africa was in T4 place?
CREATE TABLE table_name_16 (to_par VARCHAR, place VARCHAR, country VARCHAR)
SELECT to_par FROM table_name_16 WHERE place = "t4" AND country = "south africa"
What was Rut's Slovenes percentage in 1991?
CREATE TABLE table_name_76 (percent_of_slovenes_1991 VARCHAR, village__slovenian_ VARCHAR)
SELECT percent_of_slovenes_1991 FROM table_name_76 WHERE village__slovenian_ = "rut"
Which date was the event that Yani won in a playoff over Yueh-Chyn Huang?
CREATE TABLE table_name_55 (date VARCHAR, margin_of_victory VARCHAR, runner_s__up VARCHAR)
SELECT date FROM table_name_55 WHERE margin_of_victory = "playoff" AND runner_s__up = "yueh-chyn huang"
What is the overall total for the Omaha Nighthawks?
CREATE TABLE table_27094070_4 (overall_total INTEGER, team VARCHAR)
SELECT MIN(overall_total) FROM table_27094070_4 WHERE team = "Omaha Nighthawks"
what is the course at midlothian, illinois for a year before 1934?
CREATE TABLE table_name_98 (course VARCHAR, year VARCHAR, location VARCHAR)
SELECT course FROM table_name_98 WHERE year < 1934 AND location = "midlothian, illinois"
What year did the malaysia premier league get a position of 8/12?
CREATE TABLE table_name_93 (year VARCHAR, league VARCHAR, league_position VARCHAR)
SELECT year FROM table_name_93 WHERE league = "malaysia premier league" AND league_position = "8/12"
What is the lowest series episode with a production code of 406?
CREATE TABLE table_23513241_5 (series_episode INTEGER, prod_code VARCHAR)
SELECT MIN(series_episode) FROM table_23513241_5 WHERE prod_code = 406
What is the week 11 nov 16 standing with wisconsin (10-1) on week 13 Nov 30?
CREATE TABLE table_name_50 (week_11_nov_16 VARCHAR, week_13_nov_30 VARCHAR)
SELECT week_11_nov_16 FROM table_name_50 WHERE week_13_nov_30 = "wisconsin (10-1)"
What tournament has 0 / 5 as career SR and A as 1983?
CREATE TABLE table_name_71 (tournament VARCHAR, career_sr VARCHAR)
SELECT tournament FROM table_name_71 WHERE career_sr = "0 / 5" AND 1983 = "a"
What co-singer has sukhwinder singh as the composer?
CREATE TABLE table_name_26 (co_singer VARCHAR, composer VARCHAR)
SELECT co_singer FROM table_name_26 WHERE composer = "sukhwinder singh"
What races were Chi-Chi Rodriguez the runner-up in?
CREATE TABLE table_name_22 (tournament VARCHAR, runner_s__up VARCHAR)
SELECT tournament FROM table_name_22 WHERE runner_s__up = "chi-chi rodriguez"
Which Top Division debut for Kitazakura has Tournaments less than 88?
CREATE TABLE table_name_12 (top_division_debut VARCHAR, tournaments VARCHAR, name VARCHAR)
SELECT top_division_debut FROM table_name_12 WHERE tournaments < 88 AND name = "kitazakura"
WHAT IS THE GRID WITH AN ACCIDENT AND HONDA MANUFACTURER?
CREATE TABLE table_name_72 (grid INTEGER, time_retired VARCHAR, manufacturer VARCHAR)
SELECT MAX(grid) FROM table_name_72 WHERE time_retired = "accident" AND manufacturer = "honda"
What is the lowest high position for 10 years of hits, and over 870,000 sales?
CREATE TABLE table_name_22 (Highest INTEGER, album_title VARCHAR, sales VARCHAR)
SELECT MIN(Highest) AS position FROM table_name_22 WHERE album_title = "10 years of hits" AND sales > 870 OFFSET 000
Name the number of song for scoreboard being 3rd
CREATE TABLE table_21234111_6 (song VARCHAR, scoreboard VARCHAR)
SELECT COUNT(song) FROM table_21234111_6 WHERE scoreboard = "3rd"
What is the of games when for the term [c] of 1969 – 1973?
CREATE TABLE table_name_24 (games INTEGER, term_ VARCHAR, c_ VARCHAR)
SELECT SUM(games) FROM table_name_24 WHERE term_[c_] = "1969 – 1973"
How much Drawn has Goals Against of 81, and a Lost larger than 23?
CREATE TABLE table_name_95 (drawn VARCHAR, goals_against VARCHAR, lost VARCHAR)
SELECT COUNT(drawn) FROM table_name_95 WHERE goals_against = 81 AND lost > 23
What Round is in Ullevaal?
CREATE TABLE table_name_99 (round VARCHAR, venue VARCHAR)
SELECT round FROM table_name_99 WHERE venue = "ullevaal"
What rank has Bill Ponsford (vic) as the player?
CREATE TABLE table_name_82 (rank VARCHAR, player VARCHAR)
SELECT rank FROM table_name_82 WHERE player = "bill ponsford (vic)"
What glider did thomas gostner pilot?
CREATE TABLE table_name_84 (glider VARCHAR, pilot VARCHAR)
SELECT glider FROM table_name_84 WHERE pilot = "thomas gostner"
What was the rank of the swimmer with a time of 1:55.40?
CREATE TABLE table_name_23 (rank VARCHAR, time VARCHAR)
SELECT rank FROM table_name_23 WHERE time = "1:55.40"
What is the lowest Goals Agains, when Played is greater than 34?
CREATE TABLE table_name_38 (goals_against INTEGER, played INTEGER)
SELECT MIN(goals_against) FROM table_name_38 WHERE played > 34
What was the latest round that Derek Pagel was selected with a pick higher than 50?
CREATE TABLE table_name_22 (round INTEGER, pick VARCHAR, player VARCHAR)
SELECT MAX(round) FROM table_name_22 WHERE pick > 50 AND player = "derek pagel"
If the market name is Xperia U, what is the weight?
CREATE TABLE table (weight VARCHAR, market_name VARCHAR)
SELECT weight FROM table WHERE market_name = "Xperia U"