answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT player FROM table_name_83 WHERE rating > 2746 AND prev < 4 AND chng = "+4"
What player has a rating greater than 2746, with a prev less than 4, and +4 as the chng?
CREATE TABLE table_name_83 (player VARCHAR, chng VARCHAR, rating VARCHAR, prev VARCHAR)
SELECT attendance FROM table_name_97 WHERE record = "20-11"
What is the attendance of the match with a record 20-11?
CREATE TABLE table_name_97 (attendance VARCHAR, record VARCHAR)
SELECT genre FROM table_name_92 WHERE release_year_of_first_charted_record < 1980 AND country_of_origin = "jamaica"
Name the genre for release-year of firsst charted less than 1980 and origin of jamaica
CREATE TABLE table_name_92 (genre VARCHAR, release_year_of_first_charted_record VARCHAR, country_of_origin VARCHAR)
SELECT date FROM table_name_99 WHERE record = "3-3"
When was the record 3-3?
CREATE TABLE table_name_99 (date VARCHAR, record VARCHAR)
SELECT acronym FROM table_name_21 WHERE name_in_english = "northern management and technological institute"
What is the acronym for the English name Northern management and technological institute?
CREATE TABLE table_name_21 (acronym VARCHAR, name_in_english VARCHAR)
SELECT COUNT(grid) FROM table_name_39 WHERE time_retired = "+1:21.239" AND laps > 25
How many grids have a time of +1:21.239 and more than 25 laps?
CREATE TABLE table_name_39 (grid VARCHAR, time_retired VARCHAR, laps VARCHAR)
SELECT weight__st, _lb_ FROM table_20095300_1 WHERE name = "Point Barrow"
How much does Point Barrow weight?
CREATE TABLE table_20095300_1 (weight__st VARCHAR, _lb_ VARCHAR, name VARCHAR)
SELECT SUM(rank) FROM table_name_26 WHERE notes = "fa" AND time = "6:41.45"
What is the rank for the team that had a time of 6:41.45 and note FA?
CREATE TABLE table_name_26 (rank INTEGER, notes VARCHAR, time VARCHAR)
SELECT episode__number FROM table_name_34 WHERE original_airdate = "july 23, 2000"
Name the episode number that aired on july 23, 2000
CREATE TABLE table_name_34 (episode__number VARCHAR, original_airdate VARCHAR)
SELECT loss FROM table_name_20 WHERE score = "6–5"
Which Loss has a Score of 6–5?
CREATE TABLE table_name_20 (loss VARCHAR, score VARCHAR)
SELECT release_date FROM table_name_61 WHERE director = "robert mckimson" AND title = "wet hare"
What date was Wet Hare, directed by Robert McKimson, released?
CREATE TABLE table_name_61 (release_date VARCHAR, director VARCHAR, title VARCHAR)
SELECT opponent FROM table_16864968_9 WHERE location = "Prudential Center"
Nam the opponent for prudential center
CREATE TABLE table_16864968_9 (opponent VARCHAR, location VARCHAR)
SELECT player FROM table_name_93 WHERE place = "t9" AND score = 70 - 74 - 69 - 70 = 283
What T9 Player had a Score of 70-74-69-70=283?
CREATE TABLE table_name_93 (player VARCHAR, place VARCHAR, score VARCHAR)
SELECT thursday_guru__jupiter_ FROM table_1277350_3 WHERE wednesday_budha__mercury_ = "বুধবার Budhbar"
In language where Wednesday is বুধবার budhbar, what is Thursday?
CREATE TABLE table_1277350_3 (thursday_guru__jupiter_ VARCHAR, wednesday_budha__mercury_ VARCHAR)
SELECT tennessee FROM table_name_27 WHERE georgia = "kevin butler"
What is the Tennessee that Georgia of kevin butler is in?
CREATE TABLE table_name_27 (tennessee VARCHAR, georgia VARCHAR)
SELECT total_time_hours AS :minutes FROM table_14125006_1 WHERE number = 17
How long was the walk numbered at 17?
CREATE TABLE table_14125006_1 (total_time_hours VARCHAR, number VARCHAR)
SELECT hometown FROM table_name_47 WHERE name = "kyle love"
What hometown is Kyle love from?
CREATE TABLE table_name_47 (hometown VARCHAR, name VARCHAR)
SELECT role FROM table_name_97 WHERE year < 1942 AND director = "dorothy arzner"
What role does she play before 1942 with dorothy arzner directing?
CREATE TABLE table_name_97 (role VARCHAR, year VARCHAR, director VARCHAR)
SELECT score FROM table_name_27 WHERE set_2 = "25-20" AND total = "75 - 49"
What is the Score when Set 2 shows 25-20, and a Total of 75 - 49?
CREATE TABLE table_name_27 (score VARCHAR, set_2 VARCHAR, total VARCHAR)
SELECT MAX(play_offs) FROM table_name_64 WHERE club = "stevenage borough" AND total > 21
What is the highest play-offs that have stevenage borough as the club, and a total greater than 21?
CREATE TABLE table_name_64 (play_offs INTEGER, club VARCHAR, total VARCHAR)
SELECT COUNT(first_elected) FROM table_2668378_5 WHERE district = "Kentucky 3"
Name the number of first elected for kentucky 3
CREATE TABLE table_2668378_5 (first_elected VARCHAR, district VARCHAR)
SELECT Sponsor_name FROM player WHERE Residence = "Brandon" OR Residence = "Birtle"
Show the names of sponsors of players whose residence is either "Brandon" or "Birtle".
CREATE TABLE player (Sponsor_name VARCHAR, Residence VARCHAR)
SELECT partner FROM table_1547951_3 WHERE opponents = "Mark Woodforde Martina Navratilova"
Name the partner for mark woodforde martina navratilova
CREATE TABLE table_1547951_3 (partner VARCHAR, opponents VARCHAR)
SELECT type FROM table_name_81 WHERE themed_land = "wild asia" AND opened_in = 2000
What type ride is Wild Asia that opened in 2000?
CREATE TABLE table_name_81 (type VARCHAR, themed_land VARCHAR, opened_in VARCHAR)
SELECT AVG(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Hopkins Student Enterprises"
Find the average age of members of the club "Hopkins Student Enterprises".
CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (age INTEGER, stuid VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR)
SELECT MAX(silver) FROM table_name_43 WHERE rank = "5" AND total > 6
What is the most number of silvers for teams in rank 5 with more than 6 total medals?
CREATE TABLE table_name_43 (silver INTEGER, rank VARCHAR, total VARCHAR)
SELECT first_broadcast_denmark___dr1__ FROM table_26591309_3 WHERE official_barb_ratings = "999,000"
When was the episode with a 999,000 BARB rating first aired in Denmark?
CREATE TABLE table_26591309_3 (first_broadcast_denmark___dr1__ VARCHAR, official_barb_ratings VARCHAR)
SELECT margin_of_victory FROM table_name_2 WHERE winning_score = −14(63 - 67 - 73 - 67 = 270)
What was the margin of victory when the winning score was −14 (63-67-73-67=270)?
CREATE TABLE table_name_2 (margin_of_victory VARCHAR, winning_score VARCHAR)
SELECT MIN(tries_for) FROM table_name_48 WHERE team = "pau" AND points_against > 103
WHich Tries has a Team of pau and Points against larger than 103?
CREATE TABLE table_name_48 (tries_for INTEGER, team VARCHAR, points_against VARCHAR)
SELECT SUM(rank) FROM table_name_87 WHERE lane < 2
What is the total rank for the lane before 2?
CREATE TABLE table_name_87 (rank INTEGER, lane INTEGER)
SELECT ergative FROM table_name_33 WHERE dative = "chven"
What is the ergative for the dative chven?
CREATE TABLE table_name_33 (ergative VARCHAR, dative VARCHAR)
SELECT name, date FROM battle
List the name, date and result of each battle.
CREATE TABLE battle (name VARCHAR, date VARCHAR)
SELECT t2.team_name, t2.ACC_Regular_Season FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t1.founded LIMIT 1
What is the team name and acc regular season score of the school that was founded for the longest time?
CREATE TABLE university (school_id VARCHAR, founded VARCHAR); CREATE TABLE basketball_match (team_name VARCHAR, ACC_Regular_Season VARCHAR, school_id VARCHAR)
SELECT date FROM table_name_8 WHERE opponent = "indiana"
When did indiana play?
CREATE TABLE table_name_8 (date VARCHAR, opponent VARCHAR)
SELECT school_club_team FROM table_10015132_9 WHERE player = "Amir Johnson"
What school/club team is Amir Johnson on?
CREATE TABLE table_10015132_9 (school_club_team VARCHAR, player VARCHAR)
SELECT COUNT(finish) FROM table_name_6 WHERE start < 20 AND year = 1969
WHAT WAS THE FINISH NUMBER WITH A START SMALLER THAN 20 IN 1969?
CREATE TABLE table_name_6 (finish VARCHAR, start VARCHAR, year VARCHAR)
SELECT city_of_license FROM table_name_20 WHERE class = "a"
What city has the A Class licence?
CREATE TABLE table_name_20 (city_of_license VARCHAR, class VARCHAR)
SELECT headquarters FROM table_2168295_1 WHERE population__2011_ = 3685681
If the 2011 population is 3685681, what is the name of the headquarters?
CREATE TABLE table_2168295_1 (headquarters VARCHAR, population__2011_ VARCHAR)
SELECT COUNT(overall_nt_points) FROM table_14407512_24 WHERE points = "248.9"
Name the number of overall nt points for 248.9
CREATE TABLE table_14407512_24 (overall_nt_points VARCHAR, points VARCHAR)
SELECT MAX(Price), MAX(Score), YEAR FROM WINE GROUP BY YEAR
What are the maximum price and score of wines in each year?
CREATE TABLE WINE (YEAR VARCHAR, Price INTEGER, Score INTEGER)
SELECT name FROM table_name_19 WHERE listed = "03/31/1989" AND county = "spartanburg"
What name has a listed of 03/31/1989 in spartanburg county?
CREATE TABLE table_name_19 (name VARCHAR, listed VARCHAR, county VARCHAR)
SELECT WINNING_SONG(English AS Title) FROM table_name_7 WHERE winner = "aris runtuwene"
Which English winning song had the winner aris runtuwene?
CREATE TABLE table_name_7 (English VARCHAR, winner VARCHAR)
SELECT MIN(week) FROM table_name_80 WHERE opponent = "new england patriots"
When was the earliest that New England Patriots played?
CREATE TABLE table_name_80 (week INTEGER, opponent VARCHAR)
SELECT home_team AS score FROM table_16388478_4 WHERE home_team = "Fremantle"
What is the home team score where the home team is Fremantle?
CREATE TABLE table_16388478_4 (home_team VARCHAR)
SELECT location FROM table_name_9 WHERE round < 3 AND opponent = "matt horwich"
Which location had a round of 3, and an Opponent of matt horwich?
CREATE TABLE table_name_9 (location VARCHAR, round VARCHAR, opponent VARCHAR)
SELECT frequency FROM table_name_23 WHERE branding = "your cure for corporate radio"
What Frequency's Branding is Your Cure for Corporate Radio?
CREATE TABLE table_name_23 (frequency VARCHAR, branding VARCHAR)
SELECT september FROM table_15945862_1 WHERE november = "10.35"
What september has 10.35 in November?
CREATE TABLE table_15945862_1 (september VARCHAR, november VARCHAR)
SELECT MIN(gold) FROM table_name_47 WHERE bronze = 14 AND total > 42
Which Gold is the lowest one that has a Bronze of 14, and a Total larger than 42?
CREATE TABLE table_name_47 (gold INTEGER, bronze VARCHAR, total VARCHAR)
SELECT rider FROM table_25220821_3 WHERE thurs_3_june = "20' 27.93 110.615mph"
If Thursday 3 June is 20' 27.93 110.615mph, what are the names of the riders?
CREATE TABLE table_25220821_3 (rider VARCHAR, thurs_3_june VARCHAR)
SELECT COUNT(number_of_dances) FROM table_1354805_6 WHERE average = "34.0"
how many turns were completed to make a mean of 34.0
CREATE TABLE table_1354805_6 (number_of_dances VARCHAR, average VARCHAR)
SELECT COUNT(year) FROM table_name_19 WHERE country = "united arab emirates"
What is the year for the United Arab Emirates?
CREATE TABLE table_name_19 (year VARCHAR, country VARCHAR)
SELECT COUNT(position) FROM table_name_73 WHERE points = "30-8" AND goals_for > 25
How many positions have Points of 30-8 and more than 25 goals?
CREATE TABLE table_name_73 (position VARCHAR, points VARCHAR, goals_for VARCHAR)
SELECT rider FROM table_name_94 WHERE team = "399cc kawasaki"
Who is the rider with a 399cc Kawasaki?
CREATE TABLE table_name_94 (rider VARCHAR, team VARCHAR)
SELECT invoice_number, COUNT(*) FROM Financial_transactions GROUP BY invoice_number
Show the invoice number and the number of transactions for each invoice.
CREATE TABLE Financial_transactions (invoice_number VARCHAR)
SELECT player FROM table_name_13 WHERE pick__number = 27
Name The Player who has a Pick # of 27?
CREATE TABLE table_name_13 (player VARCHAR, pick__number VARCHAR)
SELECT form_factor FROM table_27615520_1 WHERE product_name = "RamSan-630"
List the range distroration for the ramsan-630
CREATE TABLE table_27615520_1 (form_factor VARCHAR, product_name VARCHAR)
SELECT losing_hand FROM table_12454156_1 WHERE winning_hand = "7h 7s"
What was the losing hand where the winning hand was 7h 7s?
CREATE TABLE table_12454156_1 (losing_hand VARCHAR, winning_hand VARCHAR)
SELECT secondary_military_speciality FROM table_name_21 WHERE real_name = "gareth morgan"
What is Gareth Morgan's Secondary Military Specialty?
CREATE TABLE table_name_21 (secondary_military_speciality VARCHAR, real_name VARCHAR)
SELECT AVG(year) FROM table_name_65 WHERE sideline_reporters = "sara orlesky and farhan lalji"
What's the average year that sara orlesky and farhan lalji are the sideline reporters?
CREATE TABLE table_name_65 (year INTEGER, sideline_reporters VARCHAR)
SELECT COUNT(high_rebounds) FROM table_27723228_8 WHERE game = 30
How many people are listed for high rebounds on game 30?
CREATE TABLE table_27723228_8 (high_rebounds VARCHAR, game VARCHAR)
SELECT MAX(total) FROM table_name_65 WHERE bronze < 1 AND gold > 0
What is the highest total when bronze is less than 1 and gold more than 0?
CREATE TABLE table_name_65 (total INTEGER, bronze VARCHAR, gold VARCHAR)
SELECT chassis FROM table_28578594_1 WHERE driver = "Ludwig Fischer"
Name the chassis for ludwig fischer
CREATE TABLE table_28578594_1 (chassis VARCHAR, driver VARCHAR)
SELECT home_team AS score FROM table_name_11 WHERE away_team = "north melbourne"
What was the home team score at North Melbourne's away game?
CREATE TABLE table_name_11 (home_team VARCHAR, away_team VARCHAR)
SELECT height FROM table_name_99 WHERE locale = "nepean sea road" AND floors > 30 AND sr_no = 58
what is the height when the locale is nepean sea road, floors is more than 30 and sr no is 58?
CREATE TABLE table_name_99 (height VARCHAR, sr_no VARCHAR, locale VARCHAR, floors VARCHAR)
SELECT SUM(january) FROM table_name_37 WHERE record = "26–12–6" AND points < 58
How much January has a Record of 26–12–6, and Points smaller than 58?
CREATE TABLE table_name_37 (january INTEGER, record VARCHAR, points VARCHAR)
SELECT AVG(wins) FROM table_name_40 WHERE player = "bruce fleisher"
How many average wins does bruce fleisher have?
CREATE TABLE table_name_40 (wins INTEGER, player VARCHAR)
SELECT record FROM table_27713030_11 WHERE location_attendance = "American Airlines Arena 19,825"
What was the record for the location and attendance of american airlines arena 19,825?
CREATE TABLE table_27713030_11 (record VARCHAR, location_attendance VARCHAR)
SELECT opponent FROM table_name_64 WHERE score = "116-106"
Who were the opponents in the game that ended in a score of 116-106?
CREATE TABLE table_name_64 (opponent VARCHAR, score VARCHAR)
SELECT attendance FROM table_name_31 WHERE away_team = "dynamo kyiv" AND home_team = "torpedo zaporizhia"
How many people attended the game when the away team was dynamo kyiv, and a Home team of torpedo zaporizhia?
CREATE TABLE table_name_31 (attendance VARCHAR, away_team VARCHAR, home_team VARCHAR)
SELECT SUM(points) FROM table_name_76 WHERE tyres = "p" AND year > 1986
What is the total points listed that includes P listed Tyres after 1986?
CREATE TABLE table_name_76 (points INTEGER, tyres VARCHAR, year VARCHAR)
SELECT result FROM table_name_3 WHERE film_title_used_in_nomination = "firedancer"
WHAT IS THE RESULT WITH A FILM TITLE FIREDANCER?
CREATE TABLE table_name_3 (result VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT losing_bonus FROM table_name_61 WHERE points = "43"
What is the Losing bonus, when the value for Points is 43?
CREATE TABLE table_name_61 (losing_bonus VARCHAR, points VARCHAR)
SELECT MAX(against) FROM table_name_50 WHERE draws > 0 AND losses < 16 AND wins < 4
Which Against has a Draws larger than 0, a Losses smaller than 16, and a Wins smaller than 4?
CREATE TABLE table_name_50 (against INTEGER, wins VARCHAR, draws VARCHAR, losses VARCHAR)
SELECT road_team FROM table_name_64 WHERE game = "game 3"
What is the Road Team of Game 3?
CREATE TABLE table_name_64 (road_team VARCHAR, game VARCHAR)
SELECT score FROM table_name_62 WHERE opponents = "misa eguchi eri hozumi"
Tell me the score of misa eguchi eri hozumi
CREATE TABLE table_name_62 (score VARCHAR, opponents VARCHAR)
SELECT MAX(founded) FROM table_27378582_1 WHERE nickname = "Bison"
Name the most founded for bison
CREATE TABLE table_27378582_1 (founded INTEGER, nickname VARCHAR)
SELECT county FROM table_name_34 WHERE bush_number = 566
Which county had a Bush number of votes of 566?
CREATE TABLE table_name_34 (county VARCHAR, bush_number VARCHAR)
SELECT attendance FROM table_name_82 WHERE away_team = "rosso kumamoto"
What is the attendance of the match with rosso kumamoto as the away team?
CREATE TABLE table_name_82 (attendance VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_14 WHERE opponent = "new jersey nets"
What was the score for the game against the New Jersey Nets?
CREATE TABLE table_name_14 (score VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_46 WHERE record = "62-67"
What was the score of the game when their record was 62-67
CREATE TABLE table_name_46 (score VARCHAR, record VARCHAR)
SELECT august_21_22 FROM table_25286976_2 WHERE march_27_29 = "139"
When 139 is on March 27th to 29th what is August 21st to 22nd?
CREATE TABLE table_25286976_2 (august_21_22 VARCHAR, march_27_29 VARCHAR)
SELECT date FROM table_name_74 WHERE loss = "rojas (9–8)"
What was the date of the game that had a loss of Rojas (9–8)?
CREATE TABLE table_name_74 (date VARCHAR, loss VARCHAR)
SELECT MAX(year) FROM table_name_4 WHERE championship = "us open"
What is the highest year for the US Open?
CREATE TABLE table_name_4 (year INTEGER, championship VARCHAR)
SELECT MIN(scored) FROM table_name_82 WHERE points = 19 AND played < 18
What is the lowest score of the team with 19 points and less than 18 played?
CREATE TABLE table_name_82 (scored INTEGER, points VARCHAR, played VARCHAR)
SELECT incorporated_in FROM table_name_73 WHERE principal_activities = "travel agency"
Name the incorporated for principal activites of travel agency
CREATE TABLE table_name_73 (incorporated_in VARCHAR, principal_activities VARCHAR)
SELECT distance FROM table_name_69 WHERE date = "1930-01-11"
Which Distance has a Date of 1930-01-11?
CREATE TABLE table_name_69 (distance VARCHAR, date VARCHAR)
SELECT country FROM table_name_33 WHERE place = "t6"
What is the country of the player with a t6 place?
CREATE TABLE table_name_33 (country VARCHAR, place VARCHAR)
SELECT town_city FROM table_name_45 WHERE name = "nana museum of the arctic"
In what Town/City is Nana Museum of The Arctic located?
CREATE TABLE table_name_45 (town_city VARCHAR, name VARCHAR)
SELECT SUM(points) FROM table_name_98 WHERE goals = "29–30"
What is the number of points when goals were 29–30?
CREATE TABLE table_name_98 (points INTEGER, goals VARCHAR)
SELECT alternate__2_ FROM table_name_7 WHERE coach = "andy brown" AND captain = "nick grady"
Who is the alternate for Andy Brown, and Nick Grady?
CREATE TABLE table_name_7 (alternate__2_ VARCHAR, coach VARCHAR, captain VARCHAR)
SELECT party FROM table_1341930_18 WHERE incumbent = "Edwin E. Willis"
which affiliation does edwin e. willis affiliate with
CREATE TABLE table_1341930_18 (party VARCHAR, incumbent VARCHAR)
SELECT Software_Platform, COUNT(*) FROM device GROUP BY Software_Platform
Please show different software platforms and the corresponding number of devices using each.
CREATE TABLE device (Software_Platform VARCHAR)
SELECT finish FROM table_name_29 WHERE player = "jerry pate"
Where did Jerry Pate finish?
CREATE TABLE table_name_29 (finish VARCHAR, player VARCHAR)
SELECT location___state FROM table_name_19 WHERE circuit = "eastern creek raceway"
Where is the Eastern Creek Raceway located?
CREATE TABLE table_name_19 (location___state VARCHAR, circuit VARCHAR)
SELECT potential_prize_money FROM table_name_70 WHERE mole = "petrina edge"
When the Mole was Petrina Edge, what was the potential prize money?
CREATE TABLE table_name_70 (potential_prize_money VARCHAR, mole VARCHAR)
SELECT date_aired FROM table_name_90 WHERE network = "rtl televizija"
Which date was the show aired on the RTL Televizija network?
CREATE TABLE table_name_90 (date_aired VARCHAR, network VARCHAR)
SELECT AVG(gross_debt_in_) AS $billions_undeflated_treas FROM table_name_1 WHERE end_of_fiscal_year > 1980 AND as__percentage_of_gdp_low_high = "83.4-84.4" AND debt_held_by_public__$billions_ < 7 OFFSET 552
For End of Fiscal Years past 1980 that also have as % of GDP Low-High of 83.4-84.4, and a Debt Held By Public ($Billions) smaller than 7,552 what would be the average Gross Debt in $Billions undeflated Treas. in said years?
CREATE TABLE table_name_1 (gross_debt_in_ INTEGER, debt_held_by_public__$billions_ VARCHAR, end_of_fiscal_year VARCHAR, as__percentage_of_gdp_low_high VARCHAR)
SELECT player FROM table_name_22 WHERE total = 295
Which player had a total of 295?
CREATE TABLE table_name_22 (player VARCHAR, total VARCHAR)
SELECT AVG(grid) FROM table_name_61 WHERE laps > 8 AND time_retired = "+2 laps" AND driver = "peter gethin"
What is the average grid that has over 8 laps, a Time/Retired of +2 laps, and peter gethin driving?
CREATE TABLE table_name_61 (grid INTEGER, driver VARCHAR, laps VARCHAR, time_retired VARCHAR)
SELECT m809_series FROM table_name_76 WHERE wheelbase = "short" AND m939_series = "m931/932"
Name the M809 series for short wheelbase and M939 series of M931/932
CREATE TABLE table_name_76 (m809_series VARCHAR, wheelbase VARCHAR, m939_series VARCHAR)