context
stringlengths
27
484
question
stringlengths
12
244
answer
stringlengths
32
484
CREATE TABLE table_name_68 (year INTEGER, position VARCHAR, competition VARCHAR)
What is the sum of Year(s), when Postion is 6th, and when Competition is Commonwealth Games?
SELECT SUM(year) FROM table_name_68 WHERE position = "6th" AND competition = "commonwealth games"
CREATE TABLE table_name_99 (balls_faced INTEGER, average VARCHAR, sr VARCHAR, innings VARCHAR)
What is the sum of balls faced associated with a strike rate over 48.28, 3 innings, and an average under 5?
SELECT SUM(balls_faced) FROM table_name_99 WHERE sr > 48.28 AND innings = 3 AND average < 5
CREATE TABLE table_14962316_9 (recopa_sudamericana_1998 VARCHAR, team VARCHAR)
Did Flamengo play in the Recopa Sudamericana in 1998
SELECT recopa_sudamericana_1998 FROM table_14962316_9 WHERE team = "Flamengo"
CREATE TABLE table_name_95 (value__ INTEGER, revenue__$m_ VARCHAR, country VARCHAR, operating_income_$m_ VARCHAR)
What was the average Value ($M) when the Country was England, the Operating income($m) was greater than -5, and the Revenue ($M) was smaller than 103?
SELECT AVG(value__) AS $m_ FROM table_name_95 WHERE country = "england" AND operating_income_$m_ > -5 AND revenue__$m_ < 103
CREATE TABLE table_name_60 (year VARCHAR)
what shows for 3rd place in 1990?
SELECT 3 AS rd_place FROM table_name_60 WHERE year = "1990"
CREATE TABLE table_name_69 (team VARCHAR, stadium VARCHAR, top_division_titles VARCHAR, founded VARCHAR)
Which team has Top division titles larger than 0, a Founded larger than 1927, and a Stadium of miguel grau?
SELECT team FROM table_name_69 WHERE top_division_titles > 0 AND founded > 1927 AND stadium = "miguel grau"
CREATE TABLE table_name_32 (winner VARCHAR, date VARCHAR)
who won on 29 may?
SELECT winner FROM table_name_32 WHERE date = "29 may"
CREATE TABLE table_name_86 (record VARCHAR, method VARCHAR, location VARCHAR)
What is the record when the method is decision and the location is Martigues, France?
SELECT record FROM table_name_86 WHERE method = "decision" AND location = "martigues, france"
CREATE TABLE table_name_73 (date VARCHAR, game VARCHAR, score VARCHAR)
What date has a game smaller than 4, and a score of 116-114?
SELECT date FROM table_name_73 WHERE game < 4 AND score = "116-114"
CREATE TABLE table_name_17 (game VARCHAR, result VARCHAR, record VARCHAR)
How many games have a Result of l, and a Record of 2-6?
SELECT COUNT(game) FROM table_name_17 WHERE result = "l" AND record = "2-6"
CREATE TABLE table_name_21 (home_team VARCHAR, crowd INTEGER)
Who played as the home team when the attendance was more than 30,080?
SELECT home_team FROM table_name_21 WHERE crowd > 30 OFFSET 080
CREATE TABLE table_name_47 (position VARCHAR, overall VARCHAR, college VARCHAR)
What is the position of the player from the college of North Carolina with an overall less than 100?
SELECT position FROM table_name_47 WHERE overall < 100 AND college = "north carolina"
CREATE TABLE table_name_31 (method VARCHAR, record VARCHAR)
What was the method of resolution when Katsuhisa Fujii's record was 0-1?
SELECT method FROM table_name_31 WHERE record = "0-1"
CREATE TABLE table_name_59 (margin_of_victory VARCHAR, winning_score VARCHAR)
What was the margin of victory when the winning score was –14 (70-68-67=205)?
SELECT margin_of_victory FROM table_name_59 WHERE winning_score = –14(70 - 68 - 67 = 205)
CREATE TABLE table_15555661_2 (percentage_of_total_area VARCHAR, percentage_of_land_area VARCHAR)
What is the percentage of total area in the ecozone that the percentage of land area is 2.2?
SELECT percentage_of_total_area FROM table_15555661_2 WHERE percentage_of_land_area = "2.2"
CREATE TABLE table_name_50 (qual_1 VARCHAR, best VARCHAR, qual_2 VARCHAR)
Which qualifying 1 time has a best under 58.669 and a qualifying 2 time under 57.897?
SELECT qual_1 FROM table_name_50 WHERE best < 58.669 AND qual_2 < 57.897
CREATE TABLE table_name_54 (Id VARCHAR)
What is 2007, when 2003 is 1R?
SELECT 2007 FROM table_name_54 WHERE 2003 = "1r"
CREATE TABLE table_name_41 (d_42 VARCHAR, r_51 VARCHAR)
I want the D 42 with R 51 of r 11
SELECT d_42 FROM table_name_41 WHERE r_51 = "r 11"
CREATE TABLE table_name_62 (rank VARCHAR, time VARCHAR)
What rank did the time of 7:31.90 receive?
SELECT COUNT(rank) FROM table_name_62 WHERE time = "7:31.90"
CREATE TABLE table_name_30 (time VARCHAR, rider VARCHAR)
What is Loris Capirossi's time?
SELECT time FROM table_name_30 WHERE rider = "loris capirossi"
CREATE TABLE table_name_66 (date VARCHAR, home_team VARCHAR)
When did South Melbourne play as the home team?
SELECT date FROM table_name_66 WHERE home_team = "south melbourne"
CREATE TABLE table_name_38 (transfer_window VARCHAR, moving_from VARCHAR)
Which transfer window was moving from borussia dortmund?
SELECT transfer_window FROM table_name_38 WHERE moving_from = "borussia dortmund"
CREATE TABLE table_15162479_8 (nominee VARCHAR, net_vote VARCHAR)
What nominees had a net vote of 34.46%?
SELECT nominee FROM table_15162479_8 WHERE net_vote = "34.46%"
CREATE TABLE table_15187735_12 (segment_b VARCHAR, series_ep VARCHAR)
What is Segment B for series episode 12-08?
SELECT segment_b FROM table_15187735_12 WHERE series_ep = "12-08"
CREATE TABLE table_name_11 (competition VARCHAR, date VARCHAR)
What competition took place on 28/04/1906?
SELECT competition FROM table_name_11 WHERE date = "28/04/1906"
CREATE TABLE table_name_74 (name VARCHAR, province VARCHAR, term_expires VARCHAR)
Whose term expired in 1996 and was from the province of Central Highlands?
SELECT name FROM table_name_74 WHERE province = "central highlands" AND term_expires = 1996
CREATE TABLE table_name_86 (south_asians_2001 INTEGER, province VARCHAR, south_asians_2011 VARCHAR)
How many South Asians on average were in Alberta in 2001 and in 2011 had 159,055?
SELECT AVG(south_asians_2001) FROM table_name_86 WHERE province = "alberta" AND south_asians_2011 > 159 OFFSET 055
CREATE TABLE table_name_34 (best INTEGER, qual_2 VARCHAR, team VARCHAR, name VARCHAR)
Graham rahal for n/h/l racing has a qual 2 greater than 59.384 and how much lowest best?
SELECT MIN(best) FROM table_name_34 WHERE team = "n/h/l racing" AND name = "graham rahal" AND qual_2 > 59.384
CREATE TABLE table_name_82 (against INTEGER, date VARCHAR)
What is the total against on 08/12/1992?
SELECT SUM(against) FROM table_name_82 WHERE date = "08/12/1992"
CREATE TABLE table_name_57 (defenses INTEGER, days_held VARCHAR, reign VARCHAR)
What is the average defenses a champion with 404 days held and a reign larger than 1 has?
SELECT AVG(defenses) FROM table_name_57 WHERE days_held = "404" AND reign > 1
CREATE TABLE table_name_5 (away VARCHAR, club VARCHAR)
What is the Away when the Club is Neath?
SELECT away FROM table_name_5 WHERE club = "neath"
CREATE TABLE table_30062172_3 (gt3_winner VARCHAR, pole_position VARCHAR)
When tim bridgman gregor fisken is the pole position who is the gt3 winner?
SELECT gt3_winner FROM table_30062172_3 WHERE pole_position = "Tim Bridgman Gregor Fisken"
CREATE TABLE table_name_19 (result VARCHAR, competition VARCHAR)
What is the result of the 2007 AFC asian cup?
SELECT result FROM table_name_19 WHERE competition = "2007 afc asian cup"
CREATE TABLE table_15405904_1 (played INTEGER)
How many games are played?
SELECT MIN(played) FROM table_15405904_1
CREATE TABLE table_name_50 (pba_team VARCHAR, college VARCHAR)
What is the pba team for the player who went to santo tomas college?
SELECT pba_team FROM table_name_50 WHERE college = "santo tomas"
CREATE TABLE table_1977630_2 (nosotros___nosotras VARCHAR, él___ella___usted VARCHAR)
What are all the conjugated forms of the verb where the el/ ella/usted verb is piense?
SELECT nosotros___nosotras FROM table_1977630_2 WHERE él___ella___usted = "piense"
CREATE TABLE table_2430014_8 (title VARCHAR, episode_no VARCHAR)
What is the title of episode 2?
SELECT title FROM table_2430014_8 WHERE episode_no = 2
CREATE TABLE table_16575609_4 (pick__number INTEGER, cfl_team VARCHAR)
Name the most pick number for cfl team being edmonton eskimos
SELECT MAX(pick__number) FROM table_16575609_4 WHERE cfl_team = "Edmonton Eskimos"
CREATE TABLE table_name_12 (opponent VARCHAR, method VARCHAR, record VARCHAR)
What opponent used the Ko method, and a 6-0 record?
SELECT opponent FROM table_name_12 WHERE method = "ko" AND record = "6-0"
CREATE TABLE table_name_46 (year VARCHAR, category VARCHAR)
What year had the supernova award?
SELECT year FROM table_name_46 WHERE category = "supernova award"
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_81 (opponent VARCHAR, attendance VARCHAR)
Who was the opponent at the game attended by 70,012?
SELECT opponent FROM table_name_81 WHERE attendance = "70,012"
CREATE TABLE table_name_51 (nfl_club VARCHAR, player VARCHAR)
What club is robert gallery a part of
SELECT nfl_club FROM table_name_51 WHERE player = "robert gallery"
CREATE TABLE table_name_89 (competition VARCHAR, club VARCHAR)
What competition has the club villareal?
SELECT competition FROM table_name_89 WHERE club = "villareal"
CREATE TABLE table_name_82 (pts_ VARCHAR, b_ VARCHAR, reb_ VARCHAR, no_ VARCHAR, a_ VARCHAR)
What is the points that is more than 636 and has a value of 50?
SELECT pts_[b_] FROM table_name_82 WHERE reb_[b_] > 636 AND no_[a_] = "50"
CREATE TABLE table_1926240_1 (informational_cvbs_lines VARCHAR, max_characters__per_page_row_ VARCHAR, standard VARCHAR)
What was the informational CVBS Lines of the encoding with max character of 32 and has B (global) standard?
SELECT informational_cvbs_lines FROM table_1926240_1 WHERE max_characters__per_page_row_ = 32 AND standard = "B (global)"
CREATE TABLE table_name_81 (year_won INTEGER, total INTEGER)
What is the earliest year won with a total bigger than 156?
SELECT MIN(year_won) FROM table_name_81 WHERE total > 156
CREATE TABLE table_name_61 (qual VARCHAR, year VARCHAR)
What was Tony Bettenhausen's qualifying time in 1947?
SELECT qual FROM table_name_61 WHERE year = "1947"
CREATE TABLE table_1644857_2 (Ends INTEGER, pf VARCHAR)
How many ends were lost by the country whose points for (PF) was 87?
SELECT MAX(Ends) AS lost FROM table_1644857_2 WHERE pf = 87
CREATE TABLE table_name_59 (attendance VARCHAR, record VARCHAR)
How many attended the game with a record of 43-34?
SELECT COUNT(attendance) FROM table_name_59 WHERE record = "43-34"
CREATE TABLE table_name_84 (city VARCHAR, school VARCHAR, ihsaa_football_class VARCHAR, enrollment VARCHAR)
Which city is Lawrenceburg school, with an IHSAA football class of aaa and less than 676 enrollments, located in?
SELECT city FROM table_name_84 WHERE ihsaa_football_class = "aaa" AND enrollment < 676 AND school = "lawrenceburg"
CREATE TABLE table_name_92 (points VARCHAR, series VARCHAR, podiums VARCHAR)
What are the points for the GP3 series with 2 podiums?
SELECT points FROM table_name_92 WHERE series = "gp3 series" AND podiums = "2"
CREATE TABLE table_name_32 (whenbuilt VARCHAR, name VARCHAR)
When was moray firth built?
SELECT whenbuilt FROM table_name_32 WHERE name = "moray firth"
CREATE TABLE table_name_77 (year VARCHAR, national_champion VARCHAR)
In what Year was Rhode Island the National Champion?
SELECT year FROM table_name_77 WHERE national_champion = "rhode island"
CREATE TABLE table_name_4 (Id VARCHAR)
What is the 2009 average when the 2007 average is more than 0,18?
SELECT AVG(2009) FROM table_name_4 WHERE 2007 > 0 OFFSET 18
CREATE TABLE table_name_95 (grid INTEGER, constructor VARCHAR, driver VARCHAR)
I want the highest Grid for Toyota and jarno trulli
SELECT MAX(grid) FROM table_name_95 WHERE constructor = "toyota" AND driver = "jarno trulli"
CREATE TABLE table_name_46 (rider VARCHAR, time VARCHAR)
What Rider had a Time of 1:01.50.57?
SELECT rider FROM table_name_46 WHERE time = "1:01.50.57"
CREATE TABLE table_name_70 (time_retired VARCHAR, grid VARCHAR)
What is the time for the racer on grid 19?
SELECT time_retired FROM table_name_70 WHERE grid = 19
CREATE TABLE table_name_5 (qual VARCHAR, rank VARCHAR)
What is the qual for rank 20?
SELECT qual FROM table_name_5 WHERE rank = "20"
CREATE TABLE table_name_31 (season VARCHAR, score VARCHAR)
Which Season has a Score of 3 – 3 aet , 4–3 pen
SELECT season FROM table_name_31 WHERE score = "3 – 3 aet , 4–3 pen"
CREATE TABLE table_name_20 (name VARCHAR, country VARCHAR, transfer_fee VARCHAR)
What is the name when the country is ESP and the transfer fee is € 7m?
SELECT name FROM table_name_20 WHERE country = "esp" AND transfer_fee = "€ 7m"
CREATE TABLE table_name_12 (whitten VARCHAR, stuart VARCHAR, paul_mccartney VARCHAR)
Which Whitten has a Stuart of bass, and a Paul McCartney of electric guitar?
SELECT whitten FROM table_name_12 WHERE stuart = "bass" AND paul_mccartney = "electric guitar"
CREATE TABLE table_name_65 (last_year VARCHAR, first_year VARCHAR, publisher VARCHAR)
When did the DC Comics title that debuted in 1937 end?
SELECT last_year FROM table_name_65 WHERE first_year = "1937" AND publisher = "dc comics"
CREATE TABLE table_name_51 (year VARCHAR, team VARCHAR)
What is the year when Scuderia Lancia Corse competed?
SELECT COUNT(year) FROM table_name_51 WHERE team = "scuderia lancia corse"
CREATE TABLE table_name_24 (attendance VARCHAR, game_site VARCHAR, week VARCHAR)
What is the attendance that has fedex field as the game site with 3 as the week?
SELECT attendance FROM table_name_24 WHERE game_site = "fedex field" AND week = 3
CREATE TABLE table_1566852_3 (cover_model VARCHAR, centerfold_model VARCHAR)
WHO WAS THE COVER MODEL OF PLAYBOY WHERE THE CENTERFOLD MODEL WAS SHALLAN MEIERS?
SELECT cover_model FROM table_1566852_3 WHERE centerfold_model = "Shallan Meiers"
CREATE TABLE table_26160007_1 (total_trade VARCHAR, exports VARCHAR)
Where the number of exports are 6,099.06, what is the total trade?
SELECT total_trade FROM table_26160007_1 WHERE exports = "6,099.06"
CREATE TABLE table_22839669_1 (opponent_in_the_final VARCHAR, score_in_the_final VARCHAR)
Who is the opponent in the match with final score 3–6, 4–6, 7–5, 4–6?
SELECT opponent_in_the_final FROM table_22839669_1 WHERE score_in_the_final = "3–6, 4–6, 7–5, 4–6"
CREATE TABLE table_name_16 (country VARCHAR, place VARCHAR)
What country placed 3?
SELECT country FROM table_name_16 WHERE place = "3"
CREATE TABLE table_name_12 (tie_no VARCHAR, home_team VARCHAR)
When the home team was Woking, what was the tie no?
SELECT tie_no FROM table_name_12 WHERE home_team = "woking"
CREATE TABLE table_name_43 (name VARCHAR, pos VARCHAR)
What's the name of the person in the CF Pos?
SELECT name FROM table_name_43 WHERE pos = "cf"
CREATE TABLE table_name_49 (bumping_blocking VARCHAR, ankle_tap VARCHAR, steal_intercept_ball VARCHAR)
Which bumping/blocking has a yes for both the ankle tap and steal/intercept ball?
SELECT bumping_blocking FROM table_name_49 WHERE ankle_tap = "yes" AND steal_intercept_ball = "yes"
CREATE TABLE table_name_10 (date VARCHAR, home_team VARCHAR)
On what date is Hawthorn the home team?
SELECT date FROM table_name_10 WHERE home_team = "hawthorn"
CREATE TABLE table_name_95 (floors VARCHAR, name VARCHAR)
How many floors does the Custom House Tower have?
SELECT COUNT(floors) FROM table_name_95 WHERE name = "custom house tower"
CREATE TABLE table_1671401_2 (winnings VARCHAR, year VARCHAR)
Name the total number of winnings for 1995
SELECT COUNT(winnings) FROM table_1671401_2 WHERE year = 1995
CREATE TABLE table_name_23 (venue VARCHAR, year VARCHAR, notes VARCHAR)
What is the venue of the team race that was after 2008?
SELECT venue FROM table_name_23 WHERE year > 2008 AND notes = "team"
CREATE TABLE table_name_91 (record VARCHAR, time VARCHAR)
Which record has 2:57 as the time?
SELECT record FROM table_name_91 WHERE time = "2:57"
CREATE TABLE table_name_24 (position VARCHAR, points VARCHAR, drawn VARCHAR, lost VARCHAR)
What is the total number for the position that has less than 2 draws, less than 9 losses and more than 24?
SELECT COUNT(position) FROM table_name_24 WHERE drawn < 2 AND lost < 9 AND points > 24
CREATE TABLE table_name_19 (_percentage_gdp VARCHAR, surplus_deficit_ VARCHAR, income VARCHAR, year VARCHAR, expenditure VARCHAR)
Which % GDP has a Year smaller than 2011, and an Expenditure larger than 41.3, and an Income smaller than 48, and a Surplus(Deficit) of (24.6)?
SELECT _percentage_gdp FROM table_name_19 WHERE year < 2011 AND expenditure > 41.3 AND income < 48 AND surplus_deficit_ = "(24.6)"
CREATE TABLE table_name_45 (country VARCHAR, place VARCHAR)
Name the country for t3 place
SELECT country FROM table_name_45 WHERE place = "t3"
CREATE TABLE table_name_42 (attendance INTEGER, opponent VARCHAR, record VARCHAR)
What is the attendance of the game that has the opponent of The Nationals with a record of 68-51?
SELECT SUM(attendance) FROM table_name_42 WHERE opponent = "nationals" AND record = "68-51"
CREATE TABLE table_name_35 (city VARCHAR, _region VARCHAR, arena VARCHAR)
What is the city and region of the team in the dalhús arena?
SELECT city, _region FROM table_name_35 WHERE arena = "dalhús"
CREATE TABLE table_name_75 (canada_singles VARCHAR, year VARCHAR, us_ac VARCHAR)
What is the Canada singles in 1979 with a US A.C. of 24?
SELECT canada_singles FROM table_name_75 WHERE year = 1979 AND us_ac = "24"
CREATE TABLE table_name_50 (director VARCHAR, title VARCHAR)
Who directed Tequila?
SELECT director FROM table_name_50 WHERE title = "tequila"
CREATE TABLE table_name_57 (number_of_households INTEGER, per_capita_income VARCHAR, population VARCHAR)
What is the highest Number of Households, when Per Capita Income is "$25,557", and when Population is less than "22,330"?
SELECT MAX(number_of_households) FROM table_name_57 WHERE per_capita_income = "$25,557" AND population < 22 OFFSET 330
CREATE TABLE table_name_19 (party VARCHAR, first_elected VARCHAR)
Which party was first elected in 1898?
SELECT party FROM table_name_19 WHERE first_elected = "1898"
CREATE TABLE table_name_65 (runner_s__up VARCHAR, winning_score VARCHAR)
Who is the runner(s)-up for a winning score of −3 (71-74-66-66=277)?
SELECT runner_s__up FROM table_name_65 WHERE winning_score = −3(71 - 74 - 66 - 66 = 277)
CREATE TABLE table_name_24 (romaji_title VARCHAR, average_ratings VARCHAR, episodes VARCHAR, tv_station VARCHAR)
Which Romaji Title has 11 Episodes, and a TV Station of fuji tv, and Average Ratings of 14.9%?
SELECT romaji_title FROM table_name_24 WHERE episodes = 11 AND tv_station = "fuji tv" AND average_ratings = "14.9%"
CREATE TABLE table_name_63 (team VARCHAR, pos VARCHAR, player VARCHAR)
What team does F Trey Gilder play for?
SELECT team FROM table_name_63 WHERE pos = "f" AND player = "trey gilder"
CREATE TABLE table_name_62 (winning_party_2003 VARCHAR, constituency VARCHAR)
Can you tell me the Winning party of 2003 that has the Constituency of aberdeen north?
SELECT winning_party_2003 FROM table_name_62 WHERE constituency = "aberdeen north"
CREATE TABLE table_name_20 (current_code VARCHAR, type VARCHAR, years VARCHAR)
What is the current code for the club trophy, in 1867 only?
SELECT current_code FROM table_name_20 WHERE type = "club trophy" AND years = "1867 only"
CREATE TABLE table_name_54 (games VARCHAR, medal VARCHAR, event VARCHAR)
At what Games did the competitor win a Silver medal in the light heavyweight event?
SELECT games FROM table_name_54 WHERE medal = "silver" AND event = "light heavyweight"
CREATE TABLE table_19061741_3 (duration VARCHAR, name VARCHAR)
WHen joaqui mendoza is the name how long is the duration?
SELECT duration FROM table_19061741_3 WHERE name = "Joaqui Mendoza"
CREATE TABLE table_name_51 (ngc_number INTEGER, declination___j2000__ VARCHAR)
what is the highest ngc number when the declination (j2000) is °25′26″?
SELECT MAX(ngc_number) FROM table_name_51 WHERE declination___j2000__ = "°25′26″"
CREATE TABLE table_name_66 (score VARCHAR, loss VARCHAR)
Which score has a Loss of gubicza (0-1)?
SELECT score FROM table_name_66 WHERE loss = "gubicza (0-1)"
CREATE TABLE table_18159601_1 (collegiate_institution VARCHAR, city VARCHAR)
what is the collegiate institution in queens
SELECT collegiate_institution FROM table_18159601_1 WHERE city = "Queens"
CREATE TABLE table_name_11 (home VARCHAR, date VARCHAR)
Name the home for 16 april 2008
SELECT home FROM table_name_11 WHERE date = "16 april 2008"
CREATE TABLE table_name_92 (date VARCHAR, time VARCHAR, set_1 VARCHAR)
When was there a Time of 18:00, and a Set 1 of 22–25?
SELECT date FROM table_name_92 WHERE time = "18:00" AND set_1 = "22–25"
CREATE TABLE table_17801022_1 (race_time VARCHAR, average_speed__mph_ VARCHAR)
For races with an average speed of 113.835 mph, what are the winning race times?
SELECT race_time FROM table_17801022_1 WHERE average_speed__mph_ = "113.835"
CREATE TABLE table_name_90 (output VARCHAR, ir_leds VARCHAR)
What was the output with no IR LEDs?
SELECT output FROM table_name_90 WHERE ir_leds = "no"