context stringlengths 27 489 | question stringlengths 12 244 | answer stringlengths 18 557 |
|---|---|---|
CREATE TABLE table_name_99 (attendance VARCHAR, points VARCHAR, home VARCHAR) | What is the total number of attendence has points greater than 40, and detroit as the home? | SELECT COUNT(attendance) FROM table_name_99 WHERE points > 40 AND home = "detroit" |
CREATE TABLE table_name_13 (tropical_lows INTEGER, season VARCHAR, tropical_cyclones VARCHAR) | What is the largest number for tropical Lows for the 1990–91 season with more than 10 tropical cyclones? | SELECT MAX(tropical_lows) FROM table_name_13 WHERE season = "1990–91" AND tropical_cyclones > 10 |
CREATE TABLE table_name_88 (Severe INTEGER, strongest_storm VARCHAR, tropical_lows VARCHAR) | What is the least number of tropical cyclones when the strongest storm was Tiffany and less than 10 tropical lows. | SELECT MIN(Severe) AS tropical_cyclones FROM table_name_88 WHERE strongest_storm = "tiffany" AND tropical_lows > 10 |
CREATE TABLE table_name_61 (Severe INTEGER, season VARCHAR, tropical_lows VARCHAR) | What is the least amount of severe tropical cyclones for the 1992–93 season and the tropical Lows smaller than 6? | SELECT MIN(Severe) AS tropical_cyclones FROM table_name_61 WHERE season = "1992–93" AND tropical_lows < 6 |
CREATE TABLE table_name_41 (tropical_lows INTEGER, season VARCHAR, tropical_cyclones VARCHAR) | What is the least amount of tropical lows for the 1993–94 season with less than 11 tropical cyclones | SELECT MIN(tropical_lows) FROM table_name_41 WHERE season = "1993–94" AND tropical_cyclones < 11 |
CREATE TABLE table_name_22 (week VARCHAR, date VARCHAR, attendance VARCHAR) | How many Weeks are on september 8, 1980 and Attendances larger than 55,045? Question 4 | SELECT COUNT(week) FROM table_name_22 WHERE date = "september 8, 1980" AND attendance > 55 OFFSET 045 |
CREATE TABLE table_name_31 (round VARCHAR, college VARCHAR) | Which Round has a College of stanford? | SELECT round FROM table_name_31 WHERE college = "stanford" |
CREATE TABLE table_name_47 (round VARCHAR, pick VARCHAR) | Which Round has a Pick of 174? | SELECT round FROM table_name_47 WHERE pick = 174 |
CREATE TABLE table_name_66 (position VARCHAR, pick VARCHAR) | Which Position has a Pick of 174? | SELECT position FROM table_name_66 WHERE pick = 174 |
CREATE TABLE table_name_39 (event VARCHAR, year VARCHAR) | that was held in 1964? | SELECT event FROM table_name_39 WHERE year = 1964 |
CREATE TABLE table_name_62 (event VARCHAR, venue VARCHAR) | What is the name of the Event with a venue that was in toronto, canada? | SELECT event FROM table_name_62 WHERE venue = "toronto, canada" |
CREATE TABLE table_name_98 (year INTEGER, competition VARCHAR) | What is the Year the competition the british empire and commonwealth games were held? | SELECT SUM(year) FROM table_name_98 WHERE competition = "british empire and commonwealth games" |
CREATE TABLE table_name_98 (position VARCHAR, competition VARCHAR) | What is the position of the commonwealth games? | SELECT position FROM table_name_98 WHERE competition = "commonwealth games" |
CREATE TABLE table_name_15 (venue VARCHAR, year VARCHAR) | What is the venue with a competition in 1964? | SELECT venue FROM table_name_15 WHERE year = 1964 |
CREATE TABLE table_name_84 (date VARCHAR, surface VARCHAR, location VARCHAR) | Name the date for clay surface and location of santos, brazil | SELECT date FROM table_name_84 WHERE surface = "clay" AND location = "santos, brazil" |
CREATE TABLE table_name_25 (date VARCHAR, outcome VARCHAR, score VARCHAR) | Name the date with outcome of winner and score of 4–6 6–2 7–6 (7–4) | SELECT date FROM table_name_25 WHERE outcome = "winner" AND score = "4–6 6–2 7–6 (7–4)" |
CREATE TABLE table_name_81 (capacity INTEGER, position_in_2004 VARCHAR) | What's the highest capacity for a position of 5 in 2004? | SELECT MAX(capacity) FROM table_name_81 WHERE position_in_2004 = "5" |
CREATE TABLE table_name_45 (venue VARCHAR, position_in_2004 VARCHAR) | Which venue was number 9 for 2004? | SELECT venue FROM table_name_45 WHERE position_in_2004 = "9" |
CREATE TABLE table_name_99 (city VARCHAR, founded VARCHAR) | What city was founded in 1857? | SELECT city FROM table_name_99 WHERE founded = 1857 |
CREATE TABLE table_name_42 (opponent VARCHAR, time VARCHAR) | Which Opponent has a Time of 2:31? | SELECT opponent FROM table_name_42 WHERE time = "2:31" |
CREATE TABLE table_name_98 (method VARCHAR, round VARCHAR, time VARCHAR) | Which Method has a Round of 1, and a Time of 0:28? | SELECT method FROM table_name_98 WHERE round = 1 AND time = "0:28" |
CREATE TABLE table_name_15 (time VARCHAR, event VARCHAR) | Which Time has an Event of call to arms i? | SELECT time FROM table_name_15 WHERE event = "call to arms i" |
CREATE TABLE table_name_58 (opponent VARCHAR, date VARCHAR) | what team played on april 9 | SELECT opponent FROM table_name_58 WHERE date = "april 9" |
CREATE TABLE table_name_61 (frequency__khz_ INTEGER, licensed_location VARCHAR) | What is the smallest frequency (kHz) that is in the location of Longview? | SELECT MIN(frequency__khz_) FROM table_name_61 WHERE licensed_location = "longview" |
CREATE TABLE table_name_44 (licensed_location VARCHAR, frequency__khz_ INTEGER) | What is the location with a frequency (kHz) greater than 1370? | SELECT licensed_location FROM table_name_44 WHERE frequency__khz_ > 1370 |
CREATE TABLE table_name_27 (capacity VARCHAR, venue VARCHAR) | What is the capacity number for Yunost? | SELECT COUNT(capacity) FROM table_name_27 WHERE venue = "yunost" |
CREATE TABLE table_name_68 (tournament VARCHAR) | What is the total number of first prizes in USD for the Canadian Open? | SELECT SUM(1 AS st_prize___) AS $__ FROM table_name_68 WHERE tournament = "canadian open" |
CREATE TABLE table_name_61 (drawn VARCHAR, lost VARCHAR) | Which Drawn has a Lost of 19? | SELECT drawn FROM table_name_61 WHERE lost = "19" |
CREATE TABLE table_name_94 (played VARCHAR) | Which Played has a Club of club? | SELECT played FROM table_name_94 WHERE "club" = "club" |
CREATE TABLE table_name_18 (club VARCHAR, losing_bonus VARCHAR) | Which Club has 1 Losing bonus? | SELECT club FROM table_name_18 WHERE losing_bonus = "1" |
CREATE TABLE table_name_65 (losing_bonus VARCHAR, points_for VARCHAR) | What is the Losing bonus of 571 Points ? | SELECT losing_bonus FROM table_name_65 WHERE points_for = "571" |
CREATE TABLE table_name_78 (lost VARCHAR, tries_for VARCHAR) | Which Lost has a Tries for of 75? | SELECT lost FROM table_name_78 WHERE tries_for = "75" |
CREATE TABLE table_name_24 (opponent_in_the_final VARCHAR, date VARCHAR) | Who is the opponent in the final of the match on 19 February 2006? | SELECT opponent_in_the_final FROM table_name_24 WHERE date = "19 february 2006" |
CREATE TABLE table_name_49 (opponent_in_the_final VARCHAR, date VARCHAR) | Who is the opponent in the final of the match on 26 March 2006? | SELECT opponent_in_the_final FROM table_name_49 WHERE date = "26 march 2006" |
CREATE TABLE table_name_54 (overall INTEGER, college VARCHAR, pick__number VARCHAR) | What is the overall number of the player from Utah with a pick # higher than 7? | SELECT SUM(overall) FROM table_name_54 WHERE college = "utah" AND pick__number < 7 |
CREATE TABLE table_name_83 (round INTEGER, pick__number INTEGER) | What is the highest round of the player with a pick number lower than 34? | SELECT MAX(round) FROM table_name_83 WHERE pick__number > 34 |
CREATE TABLE table_name_50 (round INTEGER, name VARCHAR, overall VARCHAR) | What round did Mitch Davis, with an overall higher than 118, have? | SELECT SUM(round) FROM table_name_50 WHERE name = "mitch davis" AND overall < 118 |
CREATE TABLE table_name_54 (overall INTEGER, college VARCHAR) | What is the highest overall of the player from Georgia? | SELECT MAX(overall) FROM table_name_54 WHERE college = "georgia" |
CREATE TABLE table_name_70 (position VARCHAR, overall VARCHAR) | What is the position of the player with an overall of 45? | SELECT position FROM table_name_70 WHERE overall = 45 |
CREATE TABLE table_name_54 (wins INTEGER, team VARCHAR, points VARCHAR) | How many wins for team nsu and over 2 points? | SELECT AVG(wins) FROM table_name_54 WHERE team = "nsu" AND points > 2 |
CREATE TABLE table_name_55 (year INTEGER, wins INTEGER) | What is the earliest year associated with under 0 wins? | SELECT MIN(year) FROM table_name_55 WHERE wins < 0 |
CREATE TABLE table_name_59 (wins INTEGER, year VARCHAR, team VARCHAR, points VARCHAR) | How many wins for team mv agusta, over 10 points, and after 1957? | SELECT SUM(wins) FROM table_name_59 WHERE team = "mv agusta" AND points > 10 AND year > 1957 |
CREATE TABLE table_name_32 (college_junior_club_team__league_ VARCHAR, round VARCHAR) | What College/Junior/Club Team (League) has a round of 3? | SELECT college_junior_club_team__league_ FROM table_name_32 WHERE round = 3 |
CREATE TABLE table_name_6 (player VARCHAR, round VARCHAR, nationality VARCHAR) | What player has a round larger than 1 in Austria? | SELECT player FROM table_name_6 WHERE round > 1 AND nationality = "austria" |
CREATE TABLE table_name_83 (player VARCHAR, nationality VARCHAR) | Which player's nationality is from Sweden? | SELECT player FROM table_name_83 WHERE nationality = "sweden" |
CREATE TABLE table_name_52 (college_junior_club_team__league_ VARCHAR, nationality VARCHAR, round VARCHAR) | What College/Junior/Club Team (League) from Canada has a round smaller than 3? | SELECT college_junior_club_team__league_ FROM table_name_52 WHERE nationality = "canada" AND round < 3 |
CREATE TABLE table_name_71 (distance VARCHAR, year VARCHAR) | What was the distance in 1997? | SELECT distance FROM table_name_71 WHERE year = 1997 |
CREATE TABLE table_name_19 (opponents_in_the_final VARCHAR, surface VARCHAR, date VARCHAR) | Who was the opponents in the final on January 5, 2003, on a hard surface? | SELECT opponents_in_the_final FROM table_name_19 WHERE surface = "hard" AND date = "january 5, 2003" |
CREATE TABLE table_name_46 (score_in_the_final VARCHAR, date VARCHAR) | What was the final score on the February 19, 2012 final? | SELECT score_in_the_final FROM table_name_46 WHERE date = "february 19, 2012" |
CREATE TABLE table_name_99 (attendance__away_ INTEGER, venue VARCHAR, date VARCHAR) | Name the least attendance with venue of away on 24 august 2007 | SELECT MIN(attendance__away_) FROM table_name_99 WHERE venue = "away" AND date = "24 august 2007" |
CREATE TABLE table_name_82 (attendance__away_ INTEGER, result VARCHAR, date VARCHAR) | Name the average attendance with result of won 2-0 on 2 november 2007 | SELECT AVG(attendance__away_) FROM table_name_82 WHERE result = "won 2-0" AND date = "2 november 2007" |
CREATE TABLE table_name_25 (uni_number INTEGER, surname VARCHAR) | What is the uniform number of the player whose last name is Wiltshire? | SELECT MIN(uni_number) FROM table_name_25 WHERE surname = "wiltshire" |
CREATE TABLE table_name_86 (fourth_quarter VARCHAR, rank VARCHAR, second_quarter VARCHAR) | When the rank is larger than 3 with a second quarter of johnson & johnson 156,515.9, what is the fourth quarter? | SELECT fourth_quarter FROM table_name_86 WHERE rank > 3 AND second_quarter = "johnson & johnson 156,515.9" |
CREATE TABLE table_name_69 (second_quarter VARCHAR, rank VARCHAR) | With a rank of 2 what is the second quarter? | SELECT second_quarter FROM table_name_69 WHERE rank = 2 |
CREATE TABLE table_name_45 (rank VARCHAR, third_quarter VARCHAR) | When the third quarter is China Mobile 195,680.4, what is the rank? | SELECT rank FROM table_name_45 WHERE third_quarter = "china mobile 195,680.4" |
CREATE TABLE table_name_15 (rank VARCHAR, first_quarter VARCHAR) | When the first quarter is procter & gamble 138,013, what is the rank? | SELECT rank FROM table_name_15 WHERE first_quarter = "procter & gamble 138,013" |
CREATE TABLE table_name_27 (fourth_quarter VARCHAR, rank VARCHAR, second_quarter VARCHAR) | When the rank is less than 4, and has a second quarter of exxon mobil 341,140.3, what is the fourth quarter? | SELECT fourth_quarter FROM table_name_27 WHERE rank < 4 AND second_quarter = "exxon mobil 341,140.3" |
CREATE TABLE table_name_74 (term_end VARCHAR, party VARCHAR, term_in_office VARCHAR) | What is the Term end that has a Party of united australia and 184 days in office? | SELECT term_end FROM table_name_74 WHERE party = "united australia" AND term_in_office = "184 days" |
CREATE TABLE table_name_5 (average INTEGER, yards VARCHAR) | What is the sum of average values for 23 yards? | SELECT SUM(average) FROM table_name_5 WHERE yards = 23 |
CREATE TABLE table_name_27 (yards INTEGER, sacks VARCHAR, average VARCHAR) | What are the most yards for 2 sacks and an average greater than 0? | SELECT MAX(yards) FROM table_name_27 WHERE sacks = 2 AND average > 0 |
CREATE TABLE table_name_6 (bronze VARCHAR, location VARCHAR, year VARCHAR) | What is listed for the Bronze, with the Location of Bangkok, and the Year of 1978? | SELECT bronze FROM table_name_6 WHERE location = "bangkok" AND year = 1978 |
CREATE TABLE table_name_51 (year INTEGER, silver VARCHAR) | What's listed for the lowest Year that a Silver of Kim Kyung-Ho? | SELECT MIN(year) FROM table_name_51 WHERE silver = "kim kyung-ho" |
CREATE TABLE table_name_61 (gold VARCHAR, bronze VARCHAR) | What's the Gold that also has Bronze of Kim Sun-Bin? | SELECT gold FROM table_name_61 WHERE bronze = "kim sun-bin" |
CREATE TABLE table_name_75 (bronze VARCHAR, gold VARCHAR) | What's the Bronze that's also got a Godl of Kim Woo-Jin? | SELECT bronze FROM table_name_75 WHERE gold = "kim woo-jin" |
CREATE TABLE table_name_1 (year INTEGER, bronze VARCHAR) | What is listed as the highest Year that's also got a Bronze of Wataru Haraguchi? | SELECT MAX(year) FROM table_name_1 WHERE bronze = "wataru haraguchi" |
CREATE TABLE table_name_58 (score VARCHAR, record VARCHAR) | What was the score when their record was 35–23–15? | SELECT score FROM table_name_58 WHERE record = "35–23–15" |
CREATE TABLE table_name_90 (home VARCHAR, score VARCHAR) | Which home team has a score of 5 – 6? | SELECT home FROM table_name_90 WHERE score = "5 – 6" |
CREATE TABLE table_name_17 (county VARCHAR, school VARCHAR) | In what county is the school of Merrillville? | SELECT county FROM table_name_17 WHERE school = "merrillville" |
CREATE TABLE table_name_41 (previous_conference VARCHAR, school VARCHAR) | The school of Portage was in what conference previous? | SELECT previous_conference FROM table_name_41 WHERE school = "portage" |
CREATE TABLE table_name_37 (school VARCHAR, location VARCHAR) | What is the name of the school that is in Valparaiso? | SELECT school FROM table_name_37 WHERE location = "valparaiso" |
CREATE TABLE table_name_25 (fa_cup INTEGER, total VARCHAR, malaysia_cup VARCHAR, player VARCHAR) | Which FA Cup is the highest one that has a Malaysia Cup of 0, and a Player of ahmad fouzee masuri, and a Total larger than 0? | SELECT MAX(fa_cup) FROM table_name_25 WHERE malaysia_cup = 0 AND player = "ahmad fouzee masuri" AND total > 0 |
CREATE TABLE table_name_37 (total VARCHAR, player VARCHAR, fa_cup VARCHAR) | How many totals have a Player of ahmad fouzee masuri, and an FA Cup larger than 0? | SELECT COUNT(total) FROM table_name_37 WHERE player = "ahmad fouzee masuri" AND fa_cup > 0 |
CREATE TABLE table_name_62 (fa_cup INTEGER, player VARCHAR, total VARCHAR) | Which FA Cup has a Player of khairan ezuan razali, and a Total smaller than 0? | SELECT AVG(fa_cup) FROM table_name_62 WHERE player = "khairan ezuan razali" AND total < 0 |
CREATE TABLE table_name_8 (malaysia_cup VARCHAR, league VARCHAR, total VARCHAR, player VARCHAR) | How many Malaysia Cups have a Total larger than 3, and a Player of ivan yusoff, and a League smaller than 2? | SELECT COUNT(malaysia_cup) FROM table_name_8 WHERE total > 3 AND player = "ivan yusoff" AND league < 2 |
CREATE TABLE table_name_44 (fa_cup INTEGER, malaysia_cup VARCHAR, total VARCHAR) | Which FA Cup has a Malaysia Cup larger than 0, and a Total of 8? | SELECT SUM(fa_cup) FROM table_name_44 WHERE malaysia_cup > 0 AND total = 8 |
CREATE TABLE table_name_50 (year INTEGER, venue VARCHAR) | Which Year is the highest one that has a Venue of edmonton, canada? | SELECT MAX(year) FROM table_name_50 WHERE venue = "edmonton, canada" |
CREATE TABLE table_name_27 (position VARCHAR, competition VARCHAR, year VARCHAR) | Which Position has a Competition of world championships, and a Year larger than 1997? | SELECT position FROM table_name_27 WHERE competition = "world championships" AND year > 1997 |
CREATE TABLE table_name_20 (venue VARCHAR, notes VARCHAR, year VARCHAR) | Which Venue has a Notes of heptathlon, and a Year of 1991? | SELECT venue FROM table_name_20 WHERE notes = "heptathlon" AND year = 1991 |
CREATE TABLE table_name_95 (days_held VARCHAR, wrestler VARCHAR) | What days held has noiz as the wrestler? | SELECT days_held FROM table_name_95 WHERE wrestler = "noiz" |
CREATE TABLE table_name_14 (location VARCHAR, wrestler VARCHAR) | What location has tatsuhito takaiwa as the wrestler? | SELECT location FROM table_name_14 WHERE wrestler = "tatsuhito takaiwa" |
CREATE TABLE table_name_33 (event VARCHAR, days_held VARCHAR) | What event has 8 as the days held? | SELECT event FROM table_name_33 WHERE days_held = "8" |
CREATE TABLE table_name_98 (event VARCHAR, days_held VARCHAR) | What event has unknown as the days held.? | SELECT event FROM table_name_98 WHERE days_held = "unknown" |
CREATE TABLE table_name_87 (displacement VARCHAR, engine VARCHAR) | What is the Displacement of the Iveco F1CE3481E Engine? | SELECT displacement FROM table_name_87 WHERE engine = "iveco f1ce3481e" |
CREATE TABLE table_name_68 (displacement VARCHAR, model VARCHAR) | What is the Displacement of the 180 Multijet Power/3.0 HDI Model? | SELECT displacement FROM table_name_68 WHERE model = "180 multijet power/3.0 hdi" |
CREATE TABLE table_name_12 (valvetrain VARCHAR, model VARCHAR) | What is the Valvetrain of the Diesel Engines Model? | SELECT valvetrain FROM table_name_12 WHERE model = "diesel engines" |
CREATE TABLE table_name_6 (total INTEGER, year_s__won VARCHAR) | Year(s) won of 1994 , 1997 has what average total? | SELECT AVG(total) FROM table_name_6 WHERE year_s__won = "1994 , 1997" |
CREATE TABLE table_name_41 (total INTEGER, player VARCHAR, to_par VARCHAR) | Player of corey pavin, and a To par larger than 5 has what average total? | SELECT AVG(total) FROM table_name_41 WHERE player = "corey pavin" AND to_par > 5 |
CREATE TABLE table_name_29 (player VARCHAR, total VARCHAR, to_par VARCHAR) | Total smaller than 285, and a To par larger than 1 belongs to what player? | SELECT player FROM table_name_29 WHERE total < 285 AND to_par > 1 |
CREATE TABLE table_name_83 (player VARCHAR, total VARCHAR, finish VARCHAR) | Total larger than 285, and a Finish of t30 belongs to what player? | SELECT player FROM table_name_83 WHERE total > 285 AND finish = "t30" |
CREATE TABLE table_name_38 (high_rebounds VARCHAR, record VARCHAR) | Which player for a team with an 18-20 record had the most rebounds in a game? | SELECT high_rebounds FROM table_name_38 WHERE record = "18-20" |
CREATE TABLE table_name_54 (frequency_mhz VARCHAR, erp_w VARCHAR, class VARCHAR, call_sign VARCHAR) | Name the total number of frequency Mhz with class of d and call sign of k201bm and ERP W less than 74 | SELECT COUNT(frequency_mhz) FROM table_name_54 WHERE class = "d" AND call_sign = "k201bm" AND erp_w < 74 |
CREATE TABLE table_name_24 (frequency_mhz INTEGER, call_sign VARCHAR) | Name the least frequency Mhz with call sign of k202ag | SELECT MIN(frequency_mhz) FROM table_name_24 WHERE call_sign = "k202ag" |
CREATE TABLE table_name_2 (class VARCHAR, call_sign VARCHAR) | Name the class with call sign of k220cp | SELECT class FROM table_name_2 WHERE call_sign = "k220cp" |
CREATE TABLE table_name_51 (record VARCHAR, opponent VARCHAR) | What is the Winnipeg Jets record? | SELECT record FROM table_name_51 WHERE opponent = "winnipeg jets" |
CREATE TABLE table_name_26 (home VARCHAR, date VARCHAR) | What's the stadium on November 8? | SELECT home FROM table_name_26 WHERE date = "november 8" |
CREATE TABLE table_name_53 (visitor VARCHAR, date VARCHAR) | Who was the visitor on March 17? | SELECT visitor FROM table_name_53 WHERE date = "march 17" |
CREATE TABLE table_name_49 (score VARCHAR, home VARCHAR, date VARCHAR) | What's the score for Toronto Maple Leafs on November 10? | SELECT score FROM table_name_49 WHERE home = "toronto maple leafs" AND date = "november 10" |
CREATE TABLE table_name_75 (visitor VARCHAR, date VARCHAR) | Who was the visitor on October 31? | SELECT visitor FROM table_name_75 WHERE date = "october 31" |
CREATE TABLE table_name_42 (rank VARCHAR, wins VARCHAR, class VARCHAR) | What is the rank associated with 0 wins and a 350cc class? | SELECT rank FROM table_name_42 WHERE wins = 0 AND class = "350cc" |
CREATE TABLE table_name_73 (run_2 VARCHAR, country VARCHAR, run_1 VARCHAR) | What is the run 2 of the athlete from Australia with a run 1 less than 53.75? | SELECT run_2 FROM table_name_73 WHERE country = "australia" AND run_1 < 53.75 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.