context
stringlengths 0
489
| instruction
stringlengths 16
244
| response
stringlengths 38
557
|
---|---|---|
CREATE TABLE table_name_75 (publication VARCHAR, country VARCHAR) | Which publication happened in the UK? | SELECT publication FROM table_name_75 WHERE country = "uk" |
CREATE TABLE table_name_73 (draw INTEGER, song VARCHAR, points VARCHAR) | WHAT IS THE DRAW FOR u ritmu ljubavi, POINTS LARGER THAN 87? | SELECT MAX(draw) FROM table_name_73 WHERE song = "u ritmu ljubavi" AND points > 87 |
CREATE TABLE table_name_5 (total_freshwater_withdrawal__km_3__yr_ INTEGER, industrial_use__m_3__p_yr__in__percentage_ VARCHAR, per_capita_withdrawal__m_3__p_yr_ VARCHAR) | What is the average Total Freshwater Withdrawal (km 3 /yr), when Industrial Use (m 3 /p/yr)(in %) is 337(63%), and when Per Capita Withdrawal (m 3 /p/yr) is greater than 535? | SELECT AVG(total_freshwater_withdrawal__km_3__yr_) FROM table_name_5 WHERE industrial_use__m_3__p_yr__in__percentage_ = "337(63%)" AND per_capita_withdrawal__m_3__p_yr_ > 535 |
CREATE TABLE table_name_22 (per_capita_withdrawal__m_3__p_yr_ INTEGER, agricultural_use__m_3__p_yr__in__percentage_ VARCHAR, total_freshwater_withdrawal__km_3__yr_ VARCHAR) | What is the highest Per Capita Withdrawal (m 3 /p/yr), when Agricultural Use (m 3 /p/yr)(in %) is 1363(92%), and when Total Freshwater Withdrawal (km 3 /yr) is less than 42.7? | SELECT MAX(per_capita_withdrawal__m_3__p_yr_) FROM table_name_22 WHERE agricultural_use__m_3__p_yr__in__percentage_ = "1363(92%)" AND total_freshwater_withdrawal__km_3__yr_ < 42.7 |
CREATE TABLE table_name_7 (agricultural_use__m_3__p_yr__in__percentage_ VARCHAR, per_capita_withdrawal__m_3__p_yr_ VARCHAR, domestic_use__m_3__p_yr__in__percentage_ VARCHAR) | What is Agricultural Use (m 3 /p/yr)(in %), when Per Capita Withdrawal (m 3 /p/yr) is greater than 923, and when Domestic Use (m 3 /p/yr)(in %) is 73(7%)? | SELECT agricultural_use__m_3__p_yr__in__percentage_ FROM table_name_7 WHERE per_capita_withdrawal__m_3__p_yr_ > 923 AND domestic_use__m_3__p_yr__in__percentage_ = "73(7%)" |
CREATE TABLE table_name_32 (industrial_use__m_3__p_yr__in__percentage_ VARCHAR, total_freshwater_withdrawal__km_3__yr_ VARCHAR, agricultural_use__m_3__p_yr__in__percentage_ VARCHAR) | What is Industrial Use (m 3 /p/yr)(in %), when Total Freshwater Withdrawal (km 3/yr) is less than 82.75, and when Agricultural Use (m 3 /p/yr)(in %) is 1363(92%)? | SELECT industrial_use__m_3__p_yr__in__percentage_ FROM table_name_32 WHERE total_freshwater_withdrawal__km_3__yr_ < 82.75 AND agricultural_use__m_3__p_yr__in__percentage_ = "1363(92%)" |
CREATE TABLE table_name_88 (total_goals INTEGER, league_cup_goals VARCHAR, playoff_apps VARCHAR, fa_cup_apps VARCHAR) | How many total goals did the squad with 2 playoff apps, 2 FA Cup Apps, and 0 League Cup goals get? | SELECT SUM(total_goals) FROM table_name_88 WHERE playoff_apps = "2" AND fa_cup_apps = "2" AND league_cup_goals < 0 |
CREATE TABLE table_name_28 (squad_no INTEGER, playoff_goals VARCHAR, total_goals VARCHAR, league_goals VARCHAR) | What's the lowest squad number with more than 6 goals, fewer than 8 league goals, and more than 0 playoff goals? | SELECT MIN(squad_no) FROM table_name_28 WHERE total_goals > 6 AND league_goals < 8 AND playoff_goals > 0 |
CREATE TABLE table_name_46 (condition VARCHAR, prothrombin_time VARCHAR, partial_thromboplastin_time VARCHAR, platelet_count VARCHAR) | Which Condition has an unaffected Partial thromboplastin time, Platelet count, and a Prothrombin time? | SELECT condition FROM table_name_46 WHERE partial_thromboplastin_time = "unaffected" AND platelet_count = "unaffected" AND prothrombin_time = "unaffected" |
CREATE TABLE table_name_73 (condition VARCHAR, partial_thromboplastin_time VARCHAR, prothrombin_time VARCHAR, bleeding_time VARCHAR) | Which Condition has an unaffected Prothrombin time and a Bleeding time, and a Partial thromboplastin time of prolonged? | SELECT condition FROM table_name_73 WHERE prothrombin_time = "unaffected" AND bleeding_time = "unaffected" AND partial_thromboplastin_time = "prolonged" |
CREATE TABLE table_name_74 (wins INTEGER, top_5 VARCHAR, cuts_made VARCHAR, events VARCHAR) | What are the highest wins with cuts smaller than 6, events of 4 and a top-5 smaller than 0? | SELECT MAX(wins) FROM table_name_74 WHERE cuts_made < 6 AND events = 4 AND top_5 < 0 |
CREATE TABLE table_name_62 (top_5 INTEGER, top_10 VARCHAR, top_25 VARCHAR, cuts_made VARCHAR) | What are the lowest top-5 with a top-25 larger than 4, 29 cuts and a top-10 larger than 18? | SELECT MIN(top_5) FROM table_name_62 WHERE top_25 > 4 AND cuts_made = 29 AND top_10 > 18 |
CREATE TABLE table_name_5 (team__number2 VARCHAR) | What is the 1st leg with a junior team #2? | SELECT 1 AS st_leg FROM table_name_5 WHERE team__number2 = "junior" |
CREATE TABLE table_name_26 (against VARCHAR, points VARCHAR, drawn VARCHAR, lost VARCHAR) | Which Against has a Drawn smaller than 5, and a Lost smaller than 6, and a Points larger than 36? | SELECT COUNT(against) FROM table_name_26 WHERE drawn < 5 AND lost < 6 AND points > 36 |
CREATE TABLE table_name_18 (played INTEGER, drawn VARCHAR, position VARCHAR, lost VARCHAR, points VARCHAR) | Which Played has a Lost larger than 9, and a Points smaller than 15, and a Position smaller than 12, and a Drawn smaller than 2? | SELECT AVG(played) FROM table_name_18 WHERE lost > 9 AND points < 15 AND position < 12 AND drawn < 2 |
CREATE TABLE table_name_87 (pick__number INTEGER, round VARCHAR, position VARCHAR, player VARCHAR) | What is the average value for Pick #, when Position is Linebacker, when Player is Bob Bruenig, and when Round is less than 3? | SELECT AVG(pick__number) FROM table_name_87 WHERE position = "linebacker" AND player = "bob bruenig" AND round < 3 |
CREATE TABLE table_name_64 (year_commissioned INTEGER, average_annual_output__million_kwh_ VARCHAR, installed_capacity__megawatts_ VARCHAR) | What is the earliest Year commissioned wiht an Average annual output greater than 58 and Installed capacity of 20? | SELECT MIN(year_commissioned) FROM table_name_64 WHERE average_annual_output__million_kwh_ > 58 AND installed_capacity__megawatts_ = 20 |
CREATE TABLE table_name_19 (area__km²_ INTEGER, density___km²_ VARCHAR, official_website VARCHAR) | What is the sum of the area values for districts having density over 462 and websites of http://krishna.nic.in/? | SELECT SUM(area__km²_) FROM table_name_19 WHERE density___km²_ > 462 AND official_website = "http://krishna.nic.in/" |
CREATE TABLE table_name_80 (school_club_team VARCHAR, player VARCHAR) | What is Stephen Thompson's School/Club Team? | SELECT school_club_team FROM table_name_80 WHERE player = "stephen thompson" |
CREATE TABLE table_name_25 (semi_finalists VARCHAR, runner_up VARCHAR, week_of VARCHAR) | When the runner-up is listed as Gigi Fernández Natalia Zvereva and the week is 26 June 2 weeks, who are the semi finalists? | SELECT semi_finalists FROM table_name_25 WHERE runner_up = "gigi fernández natalia zvereva" AND week_of = "26 june 2 weeks" |
CREATE TABLE table_name_71 (winner VARCHAR, week_of VARCHAR, runner_up VARCHAR) | Who is the winner in the week listed as 26 June 2 weeks, when the runner-up is Arantxa Sánchez Vicario? | SELECT winner FROM table_name_71 WHERE week_of = "26 june 2 weeks" AND runner_up = "arantxa sánchez vicario" |
CREATE TABLE table_name_22 (party VARCHAR, home_town VARCHAR, district VARCHAR, took_office VARCHAR) | What is Party, when District is less than 10, when Took Office is less than 1991, and when Home Town is Mount Pleasant? | SELECT party FROM table_name_22 WHERE district < 10 AND took_office < 1991 AND home_town = "mount pleasant" |
CREATE TABLE table_name_71 (week_of VARCHAR, winner VARCHAR) | In which week is the winner listed as Jana Novotná Arantxa Sánchez Vicario 5–7, 7–5, 6–4? | SELECT week_of FROM table_name_71 WHERE winner = "jana novotná arantxa sánchez vicario 5–7, 7–5, 6–4" |
CREATE TABLE table_name_87 (team VARCHAR, penalty VARCHAR, player VARCHAR) | What team was Ryan Callahan, who received a penalty for roughing, playing for? | SELECT team FROM table_name_87 WHERE penalty = "roughing" AND player = "ryan callahan" |
CREATE TABLE table_name_89 (Home INTEGER, institution VARCHAR, wins VARCHAR) | What is the sum of the home wins of the Boston College Eagles, which has more than 6 wins? | SELECT SUM(Home) AS wins FROM table_name_89 WHERE institution = "boston college eagles" AND wins > 6 |
CREATE TABLE table_name_85 (datacenter VARCHAR, itanium VARCHAR, features VARCHAR) | What is the Datacenter for the Memory modules: hot addition Feature that has Yes listed for Itanium? | SELECT datacenter FROM table_name_85 WHERE itanium = "yes" AND features = "memory modules: hot addition" |
CREATE TABLE table_name_34 (socket VARCHAR, release_date VARCHAR, order_part_number VARCHAR) | What is the socket with an order part number of amm300dbo22gq and a September 10, 2009 release date? | SELECT socket FROM table_name_34 WHERE release_date = "september 10, 2009" AND order_part_number = "amm300dbo22gq" |
CREATE TABLE table_name_80 (l2_cache VARCHAR, multi_1 VARCHAR, release_date VARCHAR, fpu_width VARCHAR) | What is the L2 cache with a release date on September 10, 2009, a 128-bit FPU width, and a 12x multi 1? | SELECT l2_cache FROM table_name_80 WHERE release_date = "september 10, 2009" AND fpu_width = "128-bit" AND multi_1 = "12x" |
CREATE TABLE table_name_54 (type VARCHAR, company VARCHAR, incorporated_in VARCHAR, principal_activities VARCHAR) | Which Type has an Incorporated in of netherlands, a Principal activities of airline, and a Company of transavia.com? | SELECT type FROM table_name_54 WHERE incorporated_in = "netherlands" AND principal_activities = "airline" AND company = "transavia.com" |
CREATE TABLE table_name_2 (writer VARCHAR, company VARCHAR, title VARCHAR) | Who was the writer of The Year of the Cat from the BBV? | SELECT writer FROM table_name_2 WHERE company = "bbv" AND title = "the year of the cat" |
CREATE TABLE table_name_32 (round INTEGER, player VARCHAR) | Which Round has a Player of sammy okpro? | SELECT AVG(round) FROM table_name_32 WHERE player = "sammy okpro" |
CREATE TABLE table_name_37 (goals INTEGER, matches VARCHAR, name VARCHAR) | What are the lowest goal that have goals/matches greater than 0.43 with joachim streich as the name and matches greater than 378? | SELECT MIN(goals) FROM table_name_37 WHERE goals / matches > 0.43 AND name = "joachim streich" AND matches > 378 |
CREATE TABLE table_name_70 (years VARCHAR, goals VARCHAR, matches VARCHAR) | What years have goals less than 229, and 440 as matches? | SELECT years FROM table_name_70 WHERE goals < 229 AND matches = 440 |
CREATE TABLE table_name_42 (year_s__won VARCHAR, total VARCHAR, player VARCHAR) | Which Year(s) won has a Total smaller than 292, and a Player of hale irwin? | SELECT year_s__won FROM table_name_42 WHERE total < 292 AND player = "hale irwin" |
CREATE TABLE table_name_41 (attendance VARCHAR, runner_up VARCHAR, title VARCHAR) | What is the Attendance number when the runner-up was suntory sungoliath, and a Title of 46th? | SELECT attendance FROM table_name_41 WHERE runner_up = "suntory sungoliath" AND title = "46th" |
CREATE TABLE table_name_39 (score VARCHAR, winner VARCHAR, runner_up VARCHAR) | What is the Score when the winner was sanyo wild knights, and a Runner-up of suntory sungoliath? | SELECT score FROM table_name_39 WHERE winner = "sanyo wild knights" AND runner_up = "suntory sungoliath" |
CREATE TABLE table_name_32 (winning_song VARCHAR, debut_album VARCHAR) | Which winning song had a debut album in progress? | SELECT winning_song FROM table_name_32 WHERE debut_album = "in progress" |
CREATE TABLE table_name_98 (s_registered_user VARCHAR, userpics_free VARCHAR) | What is the S Registered User, when Userpics Free is 6 [free] or 15 [plus]? | SELECT s_registered_user FROM table_name_98 WHERE userpics_free = "6 [free] or 15 [plus]" |
CREATE TABLE table_name_8 (assets__billion_ INTEGER, market_value__billion_$_ VARCHAR, industry VARCHAR, rank VARCHAR) | How many Assets (billion $) has an Industry of oil and gas, and a Rank of 9, and a Market Value (billion $) larger than 121.7? | SELECT SUM(assets__billion_) AS $_ FROM table_name_8 WHERE industry = "oil and gas" AND rank = 9 AND market_value__billion_$_ > 121.7 |
CREATE TABLE table_name_44 (market_value__billion_ INTEGER, profits__billion_$_ VARCHAR, assets__billion_$_ VARCHAR, company VARCHAR) | Name the lowest Market Value (billion $) which has Assets (billion $) larger than 276.81, and a Company of toyota, and Profits (billion $) larger than 17.21? | SELECT MIN(market_value__billion_) AS $_ FROM table_name_44 WHERE assets__billion_$_ > 276.81 AND company = "toyota" AND profits__billion_$_ > 17.21 |
CREATE TABLE table_name_45 (playoff_result VARCHAR, year VARCHAR, points VARCHAR, winner VARCHAR, win__number VARCHAR) | What is Playoff Result, when Winner is "Alaska Aces", when Win # is greater than 1, when Points is less than 106, and when Year is "2011-12"? | SELECT playoff_result FROM table_name_45 WHERE winner = "alaska aces" AND win__number > 1 AND points < 106 AND year = "2011-12" |
CREATE TABLE table_name_44 (catalog VARCHAR, date VARCHAR) | Which catalog has a date of 24 march 2006? | SELECT catalog FROM table_name_44 WHERE date = "24 march 2006" |
CREATE TABLE table_name_87 (win__number INTEGER, points VARCHAR, winner VARCHAR, playoff_result VARCHAR) | What is the highest Win #, when Winner is "Knoxville Cherokees", when Playoff Result is "Lost 1st Round ( LOU )", and when Points is less than 94? | SELECT MAX(win__number) FROM table_name_87 WHERE winner = "knoxville cherokees" AND playoff_result = "lost 1st round ( lou )" AND points < 94 |
CREATE TABLE table_name_68 (no_7 VARCHAR, no_6 VARCHAR, no_10 VARCHAR, no_1 VARCHAR, no_9 VARCHAR) | What name was number 7 when Mason was number 1, Owen was number 6, Jackson was number 9, and Logan was number 10? | SELECT no_7 FROM table_name_68 WHERE no_1 = "mason" AND no_9 = "jackson" AND no_10 = "logan" AND no_6 = "owen" |
CREATE TABLE table_name_87 (position VARCHAR, player VARCHAR) | What is the positions of Damon Jones? | SELECT position FROM table_name_87 WHERE player = "damon jones" |
CREATE TABLE table_name_11 (years_for_grizzlies VARCHAR, school_club_team VARCHAR) | for how many years did the player who graduated from stanford play for Grizzlies? | SELECT years_for_grizzlies FROM table_name_11 WHERE school_club_team = "stanford" |
CREATE TABLE table_name_85 (club VARCHAR, stadium VARCHAR, founded VARCHAR, joined_prsl VARCHAR) | what is the club that was founded before 2007, joined prsl in 2008 and the stadium is yldefonso solá morales stadium? | SELECT club FROM table_name_85 WHERE founded < 2007 AND joined_prsl = 2008 AND stadium = "yldefonso solá morales stadium" |
CREATE TABLE table_name_95 (founded INTEGER, joined_prsl VARCHAR, home_city VARCHAR) | When is the club founded that founed prsl in 2008 and the home city is carolina 1? | SELECT MAX(founded) FROM table_name_95 WHERE joined_prsl = 2008 AND home_city = "carolina 1" |
CREATE TABLE table_name_86 (year VARCHAR, result VARCHAR, champions VARCHAR) | What is the Year of the game with Result of 4–3 and Champions of Daegu Tongyang Orions? | SELECT year FROM table_name_86 WHERE result = "4–3" AND champions = "daegu tongyang orions" |
CREATE TABLE table_name_6 (league_cup_goals INTEGER, club VARCHAR) | What is the highest number of League Cup goals that were scored by Hartlepool? | SELECT MAX(league_cup_goals) FROM table_name_6 WHERE club = "hartlepool" |
CREATE TABLE table_name_95 (Box VARCHAR, home_team VARCHAR) | What was the box score for the game that had the Townsville Crocodiles as home team? | SELECT Box AS score FROM table_name_95 WHERE home_team = "townsville crocodiles" |
CREATE TABLE table_name_70 (date VARCHAR, region VARCHAR, catalog VARCHAR) | What's the Date for the Region of Europe and has the Catalog of 28765 22392 8? | SELECT date FROM table_name_70 WHERE region = "europe" AND catalog = "28765 22392 8" |
CREATE TABLE table_name_98 (pick VARCHAR, school VARCHAR) | What is the Pick # of the Player from Southern MIssissippi? | SELECT COUNT(pick) FROM table_name_98 WHERE school = "southern mississippi" |
CREATE TABLE table_name_37 (place VARCHAR, player VARCHAR) | What is Claude Harmon's Place? | SELECT place FROM table_name_37 WHERE player = "claude harmon" |
CREATE TABLE table_name_69 (geographic_character VARCHAR, population__2007_ VARCHAR, population__2010_ VARCHAR, urban_rural VARCHAR) | WHAT IS THE TYPE OF LAND WITH A 2010 POPULATION GREATER THAN 2539, A RURAL AREA, AND A 2007 POPULATION OF 2572? | SELECT geographic_character FROM table_name_69 WHERE population__2010_ > 2539 AND urban_rural = "rural" AND population__2007_ = 2572 |
CREATE TABLE table_name_10 (geographic_character VARCHAR, barangay VARCHAR, population__2007_ VARCHAR, population__2010_ VARCHAR) | WHAT IS THE TYPE OF LAND WITH A 2007 POPULATION SMALLER THAN 4346, 2010 POPULATION LARGER THAN 3385, FROM BARANGAY OF MANALONGON? | SELECT geographic_character FROM table_name_10 WHERE population__2007_ < 4346 AND population__2010_ > 3385 AND barangay = "manalongon" |
CREATE TABLE table_name_44 (goals_against VARCHAR, losses VARCHAR, goal_difference VARCHAR, wins VARCHAR) | What is the number of goals against when the goal difference was less than 43, the Wins less than 13, and losses more than 14? | SELECT goals_against FROM table_name_44 WHERE goal_difference < 43 AND wins < 13 AND losses > 14 |
CREATE TABLE table_name_72 (goal_difference INTEGER, played VARCHAR, goals_against VARCHAR, position VARCHAR) | What is the highest Goal Difference when the goals against were less than 76, and the position larger than 5, and a Played larger than 30? | SELECT MAX(goal_difference) FROM table_name_72 WHERE goals_against < 76 AND position > 5 AND played > 30 |
CREATE TABLE table_name_55 (tries INTEGER, season VARCHAR, appearance VARCHAR) | what is the average tries for the season 2008 warrington wolves with an appearance more than 7? | SELECT AVG(tries) FROM table_name_55 WHERE season = "2008 warrington wolves" AND appearance > 7 |
CREATE TABLE table_name_72 (shot__percentage INTEGER, country VARCHAR, ends_lost VARCHAR) | What is the sum shot % when the country is finland, and an ends lost is larger than 49? | SELECT SUM(shot__percentage) FROM table_name_72 WHERE country = "finland" AND ends_lost > 49 |
CREATE TABLE table_name_59 (long INTEGER, loss VARCHAR, gain VARCHAR) | When the player gained below 1,405 yards and lost over 390 yards, what's the sum of the long yards? | SELECT SUM(long) FROM table_name_59 WHERE loss > 390 AND gain < 1 OFFSET 405 |
CREATE TABLE table_name_68 (location VARCHAR, year VARCHAR, result VARCHAR) | what is the location when the year is before 1979 and the result is 19-17? | SELECT location FROM table_name_68 WHERE year < 1979 AND result = "19-17" |
CREATE TABLE table_name_25 (total INTEGER, name VARCHAR, league VARCHAR) | Which Total has a Name of alex mcleish category:articles with hcards, and a League smaller than 494? | SELECT AVG(total) FROM table_name_25 WHERE name = "alex mcleish category:articles with hcards" AND league < 494 |
CREATE TABLE table_name_22 (scottish_cup VARCHAR, europe VARCHAR, league VARCHAR, years VARCHAR) | Which Scottish Cup has a League smaller than 561, Years of 1989–1995 1997–2001, and Europe smaller than 11? | SELECT COUNT(scottish_cup) FROM table_name_22 WHERE league < 561 AND years = "1989–1995 1997–2001" AND europe < 11 |
CREATE TABLE table_name_30 (date_from VARCHAR, date_to VARCHAR, name VARCHAR) | What was the Date From for Theo Robinson, who was with the team until the end of season? | SELECT date_from FROM table_name_30 WHERE date_to = "end of season" AND name = "theo robinson" |
CREATE TABLE table_name_87 (name VARCHAR, assets__bn$_ VARCHAR, market_value__bn$_ VARCHAR, rank VARCHAR) | Which company had a market value less than $5.59 billion, assets greater than $27.46 billion, and a rank above 39? | SELECT name FROM table_name_87 WHERE market_value__bn$_ < 5.59 AND rank > 39 AND assets__bn$_ > 27.46 |
CREATE TABLE table_24628683_2 (wrestler VARCHAR, method_of_elimination VARCHAR) | How many wrestlers are recorded for the chamber that's method of elimination was pinned after being hit by a lead pipe? | SELECT COUNT(wrestler) FROM table_24628683_2 WHERE method_of_elimination = "Pinned after being hit by a lead pipe" |
CREATE TABLE table_name_23 (bangladeshis_admitted INTEGER, nepalis_admitted VARCHAR, pakistanis_admitted VARCHAR) | How many Bangladeshis were admitted when 714 Nepalis and 13,575 Pakistanis were admitted? | SELECT AVG(bangladeshis_admitted) FROM table_name_23 WHERE nepalis_admitted = 714 AND pakistanis_admitted > 13 OFFSET 575 |
CREATE TABLE table_name_22 (english_meaning VARCHAR, full_word VARCHAR) | What is English Meaning, when Full Word is "Shens Gamo"? | SELECT english_meaning FROM table_name_22 WHERE full_word = "shens gamo" |
CREATE TABLE table_name_54 (case_suffix__case_ VARCHAR, english_meaning VARCHAR) | What is Case Suffix (Case), when English Meaning is "to Georgia, in Georgia"? | SELECT case_suffix__case_ FROM table_name_54 WHERE english_meaning = "to georgia, in georgia" |
CREATE TABLE table_name_85 (overall INTEGER, round VARCHAR, position VARCHAR) | WHAT IS THE AVERAGE OVERALL WITH A ROUND LARGER THAN 9, AND RB POSITION? | SELECT AVG(overall) FROM table_name_85 WHERE round > 9 AND position = "rb" |
CREATE TABLE table_name_22 (overall INTEGER, name VARCHAR, round VARCHAR) | What is the sum of Overall, when Name is "Tim Smiley", and when Round is less than 5? | SELECT SUM(overall) FROM table_name_22 WHERE name = "tim smiley" AND round < 5 |
CREATE TABLE table_name_96 (score_in_the_final VARCHAR, championship VARCHAR, outcome VARCHAR) | What is Score In The Final, when Championship is "Athens , Greece", and when Outcome is "Winner"? | SELECT score_in_the_final FROM table_name_96 WHERE championship = "athens , greece" AND outcome = "winner" |
CREATE TABLE table_name_73 (tournament VARCHAR, career_sr VARCHAR) | What is Tournament, when Career SR is "ATP Masters Series"? | SELECT tournament FROM table_name_73 WHERE career_sr = "atp masters series" |
CREATE TABLE table_name_60 (home VARCHAR, date VARCHAR, attendance VARCHAR, score VARCHAR) | What is the home team of the match on 21 September 2008 with an attendance less than 2248 and a 2:0 score? | SELECT home FROM table_name_60 WHERE attendance < 2248 AND score = "2:0" AND date = "21 september 2008" |
CREATE TABLE table_name_45 (established INTEGER, venue VARCHAR) | When was the venue named nassau veterans memorial coliseum established?? | SELECT MAX(established) FROM table_name_45 WHERE venue = "nassau veterans memorial coliseum" |
CREATE TABLE table_name_70 (january INTEGER, opponent VARCHAR, game VARCHAR) | What day in January was the game greater than 49 and had @ Montreal Canadiens as opponents? | SELECT SUM(january) FROM table_name_70 WHERE opponent = "@ montreal canadiens" AND game > 49 |
CREATE TABLE table_name_22 (staying_councillors INTEGER, new_council VARCHAR, previous_council VARCHAR) | Which Staying councillors have a New council of 7, and a Previous council larger than 8? | SELECT AVG(staying_councillors) FROM table_name_22 WHERE new_council = 7 AND previous_council > 8 |
CREATE TABLE table_name_66 (pop_dens INTEGER, district VARCHAR, noof_settlements VARCHAR) | What is the lowest population density of Strakonice (st) with more than 112 settlements? | SELECT MIN(pop_dens) FROM table_name_66 WHERE district = "strakonice (st)" AND noof_settlements > 112 |
CREATE TABLE table_name_62 (presentation_of_credentials VARCHAR, name VARCHAR) | When did Robert G. Miner present his credentials? | SELECT presentation_of_credentials FROM table_name_62 WHERE name = "robert g. miner" |
CREATE TABLE table_name_32 (points_against VARCHAR, losing_bonus VARCHAR, club VARCHAR) | what is the points against when the losing bonus is 0 and the club is banwen rfc? | SELECT points_against FROM table_name_32 WHERE losing_bonus = "0" AND club = "banwen rfc" |
CREATE TABLE table_name_84 (points INTEGER, attendance VARCHAR, home VARCHAR, date VARCHAR) | What is the sum of Points, when Home is "Pittsburgh", when Date is "December 21", and when Attendance is greater than 5,307? | SELECT SUM(points) FROM table_name_84 WHERE home = "pittsburgh" AND date = "december 21" AND attendance > 5 OFFSET 307 |
CREATE TABLE table_name_80 (drawn VARCHAR, club VARCHAR) | what is drawn when the club is hirwaun rfc? | SELECT drawn FROM table_name_80 WHERE club = "hirwaun rfc" |
CREATE TABLE table_name_42 (location_attendance VARCHAR, score VARCHAR) | what is the location attendance when the score is w 86–77 (ot)? | SELECT location_attendance FROM table_name_42 WHERE score = "w 86–77 (ot)" |
CREATE TABLE table_name_79 (republican VARCHAR, lead_margin VARCHAR, poll_source VARCHAR) | What percent is the lead margin of 25 that Republican: Jeff Beatty has according to poll source Rasmussen Reports? | SELECT republican AS :_jeff_beatty FROM table_name_79 WHERE lead_margin = 25 AND poll_source = "rasmussen reports" |
CREATE TABLE table_name_2 (poll_source VARCHAR, peg_luksik VARCHAR, dates_administered VARCHAR) | Which Poll source has a Peg Luksik of 9%, and Dates administered of may 12, 2010? | SELECT poll_source FROM table_name_2 WHERE peg_luksik = "9%" AND dates_administered = "may 12, 2010" |
CREATE TABLE table_name_35 (republican VARCHAR, lead_margin VARCHAR) | What is the percentage for Brown when the lead margin is 26? | SELECT republican AS :_roy_brown FROM table_name_35 WHERE lead_margin = 26 |
CREATE TABLE table_name_63 (bronze INTEGER, nation VARCHAR, gold VARCHAR) | What is the average number of bronze medals of the Philippines, which has more than 0 gold? | SELECT AVG(bronze) FROM table_name_63 WHERE nation = "philippines" AND gold > 0 |
CREATE TABLE table_name_10 (date VARCHAR, winning_score VARCHAR) | What was the date of the match with a winning score of –7 (67-72-69-69=277)? | SELECT date FROM table_name_10 WHERE winning_score = –7(67 - 72 - 69 - 69 = 277) |
CREATE TABLE table_name_8 (date VARCHAR, opponent VARCHAR) | When did indiana play? | SELECT date FROM table_name_8 WHERE opponent = "indiana" |
CREATE TABLE table_name_77 (location VARCHAR, date VARCHAR, winner VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR) | What is Location, when Fastest Lap is Ben Spies, when Pole Position is Ben Spies, when Winner is Ben Spies, and when Date is Tooele, Utah? | SELECT location FROM table_name_77 WHERE fastest_lap = "ben spies" AND pole_position = "ben spies" AND winner = "ben spies" AND date = "tooele, utah" |
CREATE TABLE table_name_16 (antiparticle_symbol VARCHAR, rest_mass___mev___c_2__ VARCHAR) | What is the antiparticle symbol with a rest mess (mev/c2) of .47 ± .33? | SELECT antiparticle_symbol FROM table_name_16 WHERE rest_mass___mev___c_2__ = ".47 ± .33" |
CREATE TABLE table_name_4 (championship INTEGER, league_cup VARCHAR, name VARCHAR) | What is the total championships of James Henry that has a league cup more than 1? | SELECT SUM(championship) FROM table_name_4 WHERE league_cup > 1 AND name = "james henry" |
CREATE TABLE table_name_40 (winning_score VARCHAR, tournament VARCHAR) | What is the winning score for the B.C. Open 1 tournament? | SELECT winning_score FROM table_name_40 WHERE tournament = "b.c. open 1" |
CREATE TABLE table_name_35 (to_par VARCHAR, place VARCHAR, player VARCHAR) | When Tom Watson placed t6, what was the 2 par? | SELECT to_par FROM table_name_35 WHERE place = "t6" AND player = "tom watson" |
CREATE TABLE table_name_50 (player VARCHAR, score VARCHAR) | Who had a score of 70-69-70=209? | SELECT player FROM table_name_50 WHERE score = 70 - 69 - 70 = 209 |
CREATE TABLE table_name_97 (f_laps VARCHAR, wins VARCHAR, position VARCHAR) | What was the F/Laps when the Wins were 0 and the Position was 4th? | SELECT f_laps FROM table_name_97 WHERE wins = "0" AND position = "4th" |
CREATE TABLE table_name_37 (shot_diameter__cm_ VARCHAR, shot_volume__cm_3__ INTEGER) | How many times is the shot volume (cm3) less than 172.76? | SELECT COUNT(shot_diameter__cm_) FROM table_name_37 WHERE shot_volume__cm_3__ < 172.76 |
CREATE TABLE table_name_56 (role VARCHAR, festival_organization VARCHAR) | What role was nominated at the Sydney Film Festival? | SELECT role FROM table_name_56 WHERE festival_organization = "sydney film festival" |
CREATE TABLE table_name_38 (tournament VARCHAR) | Which tournament has a 2013 of 1r, and a 2012 of 1r? | SELECT tournament FROM table_name_38 WHERE 2013 = "1r" AND 2012 = "1r" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.