answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT winner FROM table_name_30 WHERE surface = "hard" AND week = "november 13"
Who was the winner on a hard surface on the week of November 13?
CREATE TABLE table_name_30 (winner VARCHAR, surface VARCHAR, week VARCHAR)
SELECT country FROM table_1333612_1 WHERE es_mulatto = "3.5%"
what's the country with es mulatto being 3.5%
CREATE TABLE table_1333612_1 (country VARCHAR, es_mulatto VARCHAR)
SELECT date FROM table_name_60 WHERE location = "vilnius, lithuania"
What is the date of the match in Vilnius, Lithuania?
CREATE TABLE table_name_60 (date VARCHAR, location VARCHAR)
SELECT department FROM table_17118006_2 WHERE irrigated_ha = 2170
What department irrigated 2170 Ha?
CREATE TABLE table_17118006_2 (department VARCHAR, irrigated_ha VARCHAR)
SELECT subj_pres FROM table_name_78 WHERE plur_pret = "u" AND sing_pret = "ou" AND sing_pres = "û"
What is the subjunctive present that is associated with a plural preterite of u, a singular preterite of ou, and a singular present of û?
CREATE TABLE table_name_78 (subj_pres VARCHAR, sing_pres VARCHAR, plur_pret VARCHAR, sing_pret VARCHAR)
SELECT segment_a FROM table_15187735_21 WHERE series_ep = "21-12"
What are the titles of segment a for series episode 21-12?
CREATE TABLE table_15187735_21 (segment_a VARCHAR, series_ep VARCHAR)
SELECT date FROM table_name_48 WHERE away_team = "melbourne"
what is the date when the away team is melbourne?
CREATE TABLE table_name_48 (date VARCHAR, away_team VARCHAR)
SELECT AVG(byes) FROM table_name_5 WHERE against > 1479 AND wins > 5 AND draws < 0
What are the average byes that are greater than 1479, wins greater than 5 and 0 draws?
CREATE TABLE table_name_5 (byes INTEGER, draws VARCHAR, against VARCHAR, wins VARCHAR)
SELECT visitor FROM table_name_98 WHERE record = "11–49–7"
What is the Visitor in the game with a Record of 11–49–7?
CREATE TABLE table_name_98 (visitor VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_14 WHERE date = "september 14, 2003"
Which opponent has September 14, 2003 as the date?
CREATE TABLE table_name_14 (opponent VARCHAR, date VARCHAR)
SELECT COUNT(driver) FROM table_17319931_1 WHERE time_retired = "+3 laps" AND points = "24"
How many drivers where there when the time/retired +3 laps and points were 24?
CREATE TABLE table_17319931_1 (driver VARCHAR, time_retired VARCHAR, points VARCHAR)
SELECT venue FROM table_name_7 WHERE losing_team = "newcastle knights"
Name the Venue which has a Losing Team of newcastle knights?
CREATE TABLE table_name_7 (venue VARCHAR, losing_team VARCHAR)
SELECT catalog FROM table_name_1 WHERE label = "columbia" AND date = "december 11, 2007" AND region = "canada"
What's the catalog number for a December 11, 2007 record from columbia formatted in a that's from Canada?
CREATE TABLE table_name_1 (catalog VARCHAR, region VARCHAR, label VARCHAR, date VARCHAR)
SELECT release_date FROM table_name_48 WHERE l2_cache = "2x 512 kb" AND multi_1 = "11x" AND fpu_width = "128-bit"
What is the release date of the 2x 512 kb L2 cache with a 11x multi 1, and a FPU width of 128-bit?
CREATE TABLE table_name_48 (release_date VARCHAR, fpu_width VARCHAR, l2_cache VARCHAR, multi_1 VARCHAR)
SELECT SUM(money___) AS £__ FROM table_name_90 WHERE player = "payne stewart"
What is the total amount of money that Payne Stewart has?
CREATE TABLE table_name_90 (money___ INTEGER, player VARCHAR)
SELECT frequency FROM table_name_49 WHERE owner = "canadian broadcasting corporation" AND branding = "cbc radio one"
What is the frequency of the station owned by the Canadian Broadcasting Corporation and branded as CBC Radio One?
CREATE TABLE table_name_49 (frequency VARCHAR, owner VARCHAR, branding VARCHAR)
SELECT focal_plane_in_ft__m_ FROM table_25597136_1 WHERE tower_height_in_ft__m_ = "46ft (14.0m)"
Where tower height in ft (m) is 46ft (14.0m) the focal plane is ft (m).
CREATE TABLE table_25597136_1 (focal_plane_in_ft__m_ VARCHAR, tower_height_in_ft__m_ VARCHAR)
SELECT webkit_version FROM table_24257833_4 WHERE minor_version = "3.1.2"
What is the webkit version when the minor version was 3.1.2.?
CREATE TABLE table_24257833_4 (webkit_version VARCHAR, minor_version VARCHAR)
SELECT back FROM table_name_88 WHERE supplier = "kooga" AND year = "2006-2008"
Which Back has a Supplier of Kooga and a Year of 2006-2008?
CREATE TABLE table_name_88 (back VARCHAR, supplier VARCHAR, year VARCHAR)
SELECT party FROM table_1342198_18 WHERE incumbent = "Overton Brooks"
What is the party where the incumbent is overton brooks?
CREATE TABLE table_1342198_18 (party VARCHAR, incumbent VARCHAR)
SELECT MAX(draw) FROM table_name_77 WHERE rank = 14 AND televotes > 908
Name the highest Draw which has a Rank of 14, and a Televotes larger than 908?
CREATE TABLE table_name_77 (draw INTEGER, rank VARCHAR, televotes VARCHAR)
SELECT date FROM table_20928649_1 WHERE record = "1-2"
What game date had the record of 1-2?
CREATE TABLE table_20928649_1 (date VARCHAR, record VARCHAR)
SELECT name FROM table_name_13 WHERE sport = "tennis" AND notes = "b"
Which name has notes b and the game of tennis?
CREATE TABLE table_name_13 (name VARCHAR, sport VARCHAR, notes VARCHAR)
SELECT T1.employee_id FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = "Human Resource" OR T2.role_name = "Manager"
Show the employee ids for all employees with role name "Human Resource" or "Manager".
CREATE TABLE Employees (employee_id VARCHAR, role_code VARCHAR); CREATE TABLE ROLES (role_code VARCHAR, role_name VARCHAR)
SELECT MIN(against) FROM table_name_35 WHERE wins > 11 AND geelong_fl = "st josephs"
Which Against has more than 11 wins, and a Geelong FL of st josephs?
CREATE TABLE table_name_35 (against INTEGER, wins VARCHAR, geelong_fl VARCHAR)
SELECT time FROM table_name_15 WHERE wrestler = "jimmy rave"
What time is listed against the Wrestler Jimmy Rave?
CREATE TABLE table_name_15 (time VARCHAR, wrestler VARCHAR)
SELECT COUNT(total) FROM table_name_1 WHERE host_city = "mexico city" AND gold < 4 AND bronze < 2
What's the Total for a Mexico City game with a Gold of less than 4 and a Bronze of less than 2?
CREATE TABLE table_name_1 (total VARCHAR, bronze VARCHAR, host_city VARCHAR, gold VARCHAR)
SELECT SUM(played) FROM table_name_13 WHERE lost > 5 AND position < 8 AND drawn > 1
What is the sum of the number played with more than 5 losses, more than 1 draw, and a position under 8?
CREATE TABLE table_name_13 (played INTEGER, drawn VARCHAR, lost VARCHAR, position VARCHAR)
SELECT chassis FROM table_name_43 WHERE points = 147 AND engine = "ford cosworth dfx"
Name the chassis of 147 points and engine of ford cosworth dfx
CREATE TABLE table_name_43 (chassis VARCHAR, points VARCHAR, engine VARCHAR)
SELECT points FROM table_13940275_5 WHERE played = "22" AND points_against = "319"
what's the points with played being 22 and points against being 319
CREATE TABLE table_13940275_5 (points VARCHAR, played VARCHAR, points_against VARCHAR)
SELECT AVG(yards) FROM table_name_94 WHERE long < 18 AND avg > 13
How many yards were averaged by the player that had a higher than 13 average with less than 18 long?
CREATE TABLE table_name_94 (yards INTEGER, long VARCHAR, avg VARCHAR)
SELECT away_team FROM table_name_99 WHERE venue = "kardinia park"
Who was the away team at the game at Kardinia Park?
CREATE TABLE table_name_99 (away_team VARCHAR, venue VARCHAR)
SELECT AVG(round) FROM table_name_37 WHERE winner = "rafael cavalcante"
What is the average number of rounds for winner Rafael Cavalcante?
CREATE TABLE table_name_37 (round INTEGER, winner VARCHAR)
SELECT season FROM table_name_46 WHERE champion = "manresa"
Which season was Manresa the champion?
CREATE TABLE table_name_46 (season VARCHAR, champion VARCHAR)
SELECT season FROM table_16446652_1 WHERE president = "Jonny Leadbeater"
When was Jonny Leadbeater President?
CREATE TABLE table_16446652_1 (season VARCHAR, president VARCHAR)
SELECT date FROM table_name_48 WHERE score = "6–4, 6–3"
Which date has a Score of 6–4, 6–3?
CREATE TABLE table_name_48 (date VARCHAR, score VARCHAR)
SELECT Amount_Settled, Amount_Claimed FROM Claims ORDER BY Amount_Settled LIMIT 1
Among all the claims, what is the amount claimed in the claim with the least amount settled? List both the settlement amount and claim amount.
CREATE TABLE Claims (Amount_Settled VARCHAR, Amount_Claimed VARCHAR)
SELECT incumbent FROM table_name_95 WHERE district = "colorado 4"
Who is the incumbent for the Colorado 4 district?
CREATE TABLE table_name_95 (incumbent VARCHAR, district VARCHAR)
SELECT original_artist FROM table_29756040_1 WHERE order__number = "6"
Which artists have order number 6?
CREATE TABLE table_29756040_1 (original_artist VARCHAR, order__number VARCHAR)
SELECT score FROM table_name_49 WHERE player = "wally armstrong"
What was the score of Wally Armstrong?
CREATE TABLE table_name_49 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_19 WHERE partner = "lorenzo manta"
What was the score when Mark parterned with lorenzo manta?
CREATE TABLE table_name_19 (score VARCHAR, partner VARCHAR)
SELECT drawn FROM table_20396710_1 WHERE "points_against" = "points_against"
when points against is points again, which are the drawn?
CREATE TABLE table_20396710_1 (drawn VARCHAR)
SELECT candidate FROM table_name_50 WHERE election = "2012"
Who is the candidate in the 2012 election?
CREATE TABLE table_name_50 (candidate VARCHAR, election VARCHAR)
SELECT date FROM table_name_82 WHERE attendance = "16,212"
On what Date was the Attendance 16,212?
CREATE TABLE table_name_82 (date VARCHAR, attendance VARCHAR)
SELECT AVG(miles_)[one_way] FROM table_name_89 WHERE fans_took = "340"
What shows for miles [One Way] when the fans took 340?
CREATE TABLE table_name_89 (one_way VARCHAR, miles_ INTEGER, fans_took VARCHAR)
SELECT to_par FROM table_name_59 WHERE player = "leland gibson"
Name the To par for leland gibson
CREATE TABLE table_name_59 (to_par VARCHAR, player VARCHAR)
SELECT success FROM table_12078626_1 WHERE date_of_completion = "September 28, 2007"
what's the success where date of completion is september 28, 2007
CREATE TABLE table_12078626_1 (success VARCHAR, date_of_completion VARCHAR)
SELECT record FROM table_name_24 WHERE opponent = "anna barone"
What is the record for opponent Anna Barone?
CREATE TABLE table_name_24 (record VARCHAR, opponent VARCHAR)
SELECT english_translation FROM table_name_61 WHERE artist = "camillo felgen"
Can you tell me the English translation that has the Artist of camillo felgen?
CREATE TABLE table_name_61 (english_translation VARCHAR, artist VARCHAR)
SELECT venue FROM table_name_33 WHERE tournament = "olympic games" AND result = "4th"
Which Venue has a Tournament of olympic games with a Result of 4th?
CREATE TABLE table_name_33 (venue VARCHAR, tournament VARCHAR, result VARCHAR)
SELECT name FROM table_name_42 WHERE height__cm_ = 175 AND birthplace = "detroit, michigan"
Which Name has a Height (cm) of 175 and a Birthplace of detroit, michigan
CREATE TABLE table_name_42 (name VARCHAR, height__cm_ VARCHAR, birthplace VARCHAR)
SELECT record FROM table_name_78 WHERE visitor = "new jersey devils" AND date = "may 7"
Which record had a visitor of New Jersey Devils on May 7?
CREATE TABLE table_name_78 (record VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT event FROM table_name_31 WHERE total = "29"
What event did the shooter, who had 29 total points, compete in?
CREATE TABLE table_name_31 (event VARCHAR, total VARCHAR)
SELECT ground FROM table_name_98 WHERE opponent = "portsmouth reserves"
What ground had Portsmouth reserves as an opponent?
CREATE TABLE table_name_98 (ground VARCHAR, opponent VARCHAR)
SELECT interview FROM table_12094300_1 WHERE preliminaries = "8.400"
What is the interview score when the preliminaries score is 8.400?
CREATE TABLE table_12094300_1 (interview VARCHAR, preliminaries VARCHAR)
SELECT event_2 FROM table_17257687_1 WHERE event_4 = "Whiplash"
When event 4 was Whiplash, what was event 2?
CREATE TABLE table_17257687_1 (event_2 VARCHAR, event_4 VARCHAR)
SELECT result FROM table_name_38 WHERE date = "february 27, 2000"
What was the result of the game that was played on february 27, 2000?
CREATE TABLE table_name_38 (result VARCHAR, date VARCHAR)
SELECT MIN(first_elected) FROM table_1342198_18 WHERE district = "Louisiana 5"
what is the minimum number first elected to district louisiana 5?
CREATE TABLE table_1342198_18 (first_elected INTEGER, district VARCHAR)
SELECT location FROM table_24195232_1 WHERE team_name = "Eagles"
What is the location for the team name of eagles?
CREATE TABLE table_24195232_1 (location VARCHAR, team_name VARCHAR)
SELECT directed_by FROM table_20942925_1 WHERE production_code = "NABF13"
What is every director with production code of NABF13?
CREATE TABLE table_20942925_1 (directed_by VARCHAR, production_code VARCHAR)
SELECT AVG(capacity) FROM table_name_28 WHERE club = "bandırma banvit"
What is the capacity of Bandırma Banvit?
CREATE TABLE table_name_28 (capacity INTEGER, club VARCHAR)
SELECT distance FROM table_2923917_4 WHERE brisbane = "$5.20"
What is the distance when brisbane is $5.20?
CREATE TABLE table_2923917_4 (distance VARCHAR, brisbane VARCHAR)
SELECT MAX(points) FROM table_name_83 WHERE engine = "mugen v8" AND year = 1991
What are the highest points that have a Mugen V8 engine and happened in 1991?
CREATE TABLE table_name_83 (points INTEGER, engine VARCHAR, year VARCHAR)
SELECT COUNT(stellar_classification) FROM table_2296507_1 WHERE system = "3 Neptune planets < 1 AU"
Name number of stellar classification for 3 neptune planets < 1 au
CREATE TABLE table_2296507_1 (stellar_classification VARCHAR, system VARCHAR)
SELECT platform_s_ FROM table_name_5 WHERE year = 2010 AND director = "shuichiro nishiya"
What is the platform of the 2010 game with Shuichiro Nishiya as director?
CREATE TABLE table_name_5 (platform_s_ VARCHAR, year VARCHAR, director VARCHAR)
SELECT pos FROM table_name_31 WHERE driver = "stacy compton"
What was Stacy Compton's position?
CREATE TABLE table_name_31 (pos VARCHAR, driver VARCHAR)
SELECT swimsuit FROM table_17088705_2 WHERE preliminary = "8.847"
Give swimsuit scores of participants 8.847 in preliminary
CREATE TABLE table_17088705_2 (swimsuit VARCHAR, preliminary VARCHAR)
SELECT nhl_team FROM table_name_81 WHERE college_junior_club_team = "toronto marlboros (oha)" AND pick__number = "32"
Which team picked the player from the Toronto Marlboros (OHA) as Pick #32?
CREATE TABLE table_name_81 (nhl_team VARCHAR, college_junior_club_team VARCHAR, pick__number VARCHAR)
SELECT tries_against FROM table_13564637_5 WHERE points_against = "287"
What are the tries against when points against 287?
CREATE TABLE table_13564637_5 (tries_against VARCHAR, points_against VARCHAR)
SELECT county FROM table_name_72 WHERE name = "howard street tunnel"
What is the County of Howard Street Tunnel?
CREATE TABLE table_name_72 (county VARCHAR, name VARCHAR)
SELECT COUNT(pos) FROM table_name_49 WHERE driver = "todd bodine" AND car__number > 30
How many Pos have a Driver of todd bodine, and a Car # larger than 30?
CREATE TABLE table_name_49 (pos VARCHAR, driver VARCHAR, car__number VARCHAR)
SELECT AVG(took_office) FROM table_name_8 WHERE district = 29
Which Took Office has a District of 29?
CREATE TABLE table_name_8 (took_office INTEGER, district VARCHAR)
SELECT date FROM table_name_18 WHERE loss = "bush (1–5)"
What was the date of the game with a loss of Bush (1–5)?
CREATE TABLE table_name_18 (date VARCHAR, loss VARCHAR)
SELECT city_of_license FROM table_name_34 WHERE call_sign = "wriq"
Which city of license has a wriq Call sign?
CREATE TABLE table_name_34 (city_of_license VARCHAR, call_sign VARCHAR)
SELECT TIME, train_number FROM train WHERE destination = 'Chennai' ORDER BY TIME
Give me the times and numbers of all trains that go to Chennai, ordered by time.
CREATE TABLE train (TIME VARCHAR, train_number VARCHAR, destination VARCHAR)
SELECT result FROM table_1341577_43 WHERE candidates = "Bart Gordon (D) 76.5% Wallace Embry (R) 23.5%"
What was the results for the candidates listed as bart gordon (d) 76.5% wallace embry (r) 23.5%?
CREATE TABLE table_1341577_43 (result VARCHAR, candidates VARCHAR)
SELECT MIN(quantity) FROM table_name_50 WHERE type = "1b n2" AND retired = "1907-12"
What is the lowest quantity of the 1b n2 type, which was retired in 1907-12?
CREATE TABLE table_name_50 (quantity INTEGER, type VARCHAR, retired VARCHAR)
SELECT district FROM table_27021001_1 WHERE result = "Mac Collins (R) unopposed"
What is the district with the result mac collins (r) unopposed?
CREATE TABLE table_27021001_1 (district VARCHAR, result VARCHAR)
SELECT hk_viewers FROM table_29633639_1 WHERE english_title = "A Great Way to Care"
how many milion of viewers where in the episode called in english "is a great way to care"
CREATE TABLE table_29633639_1 (hk_viewers VARCHAR, english_title VARCHAR)
SELECT COUNT(gp_gs) FROM table_name_41 WHERE effic = "121.70" AND avg_g < 218.7
How many gp-gs have 121.70 as an effic and an avg/g less than 218.7?
CREATE TABLE table_name_41 (gp_gs VARCHAR, effic VARCHAR, avg_g VARCHAR)
SELECT AVG(capacity), MIN(capacity), MAX(capacity) FROM cinema WHERE openning_year >= 2011
Show the average, minimum, and maximum capacity for all the cinemas opened in year 2011 or later.
CREATE TABLE cinema (capacity INTEGER, openning_year VARCHAR)
SELECT stadium FROM table_28668784_1 WHERE home_team = "FK Jedinstvo"
What stadium does FK Jedinstvo play in?
CREATE TABLE table_28668784_1 (stadium VARCHAR, home_team VARCHAR)
SELECT loan_club FROM table_name_61 WHERE name = "dennehy"
What is the loan club named dennehy?
CREATE TABLE table_name_61 (loan_club VARCHAR, name VARCHAR)
SELECT years FROM table_name_54 WHERE character = "dr trevor stewart"
Which Years have a Character of dr trevor stewart?
CREATE TABLE table_name_54 (years VARCHAR, character VARCHAR)
SELECT T1.first_name, T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY T2.invoice_date DESC LIMIT 5
Find out 5 customers who most recently purchased something. List customers' first and last name.
CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, id VARCHAR); CREATE TABLE invoices (customer_id VARCHAR, invoice_date VARCHAR)
SELECT country FROM table_name_27 WHERE course = "merion golf club" AND to_par_[a_] = "e"
What is the country with a course of merion golf club, and a to par [1] of e?
CREATE TABLE table_name_27 (country VARCHAR, course VARCHAR, to_par_ VARCHAR, a_ VARCHAR)
SELECT icao FROM table_name_7 WHERE country = "denmark" AND iata = "bll"
What is the ICAO for Denmark, and the IATA is bll?
CREATE TABLE table_name_7 (icao VARCHAR, country VARCHAR, iata VARCHAR)
SELECT premiere_air_dates FROM table_1949994_7 WHERE country = "The Netherlands"
When did the season located in the Netherlands premier?
CREATE TABLE table_1949994_7 (premiere_air_dates VARCHAR, country VARCHAR)
SELECT city FROM table_name_93 WHERE stadium = "estádio cidade de barcelos"
What city is the Stadium estádio cidade de barcelos in?
CREATE TABLE table_name_93 (city VARCHAR, stadium VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_69 WHERE nationality = "canada" AND position = "goalie"
What is the School/Junior/Club Group (Class) that has a Nationality of canada, and a Place of goalie?
CREATE TABLE table_name_69 (college_junior_club_team__league_ VARCHAR, nationality VARCHAR, position VARCHAR)
SELECT SUM(round) FROM table_name_21 WHERE method = "submission (choke)"
How many total rounds used the submission (choke) method?
CREATE TABLE table_name_21 (round INTEGER, method VARCHAR)
SELECT player FROM table_name_20 WHERE finish = "t20"
Who had a finish of t20?
CREATE TABLE table_name_20 (player VARCHAR, finish VARCHAR)
SELECT MIN(races) FROM table_25421463_1 WHERE points = "38"
How many races were there when Sigachev had 38 points?
CREATE TABLE table_25421463_1 (races INTEGER, points VARCHAR)
SELECT COUNT(interview) FROM table_name_23 WHERE state = "iowa" AND evening_gown < 9.625
What is the total interviews of Iowa, and with an evening gown smaller than 9.625?
CREATE TABLE table_name_23 (interview VARCHAR, state VARCHAR, evening_gown VARCHAR)
SELECT SUM(grid) FROM table_name_58 WHERE driver = "peter gethin"
What is the total number of grids for peter gethin?
CREATE TABLE table_name_58 (grid INTEGER, driver VARCHAR)
SELECT format FROM table_name_56 WHERE notes = "french" AND call_sign = "ckrl-fm"
What is the Format of the French Frequency with a Call sign of CKRL-FM?
CREATE TABLE table_name_56 (format VARCHAR, notes VARCHAR, call_sign VARCHAR)
SELECT europe FROM table_name_72 WHERE japan = "january 28, 2010"
Tell me europe for japan of january 28, 2010
CREATE TABLE table_name_72 (europe VARCHAR, japan VARCHAR)
SELECT race FROM table_1140085_2 WHERE fastest_lap = "Jean-Pierre Jarier"
what is the race where the fastest lap is by jean-pierre jarier?
CREATE TABLE table_1140085_2 (race VARCHAR, fastest_lap VARCHAR)
SELECT country FROM table_name_87 WHERE killed = 100.9 AND year > 1939.9
What is Country, when Killed is "100.9", and when Year is greater than 1939.9?
CREATE TABLE table_name_87 (country VARCHAR, killed VARCHAR, year VARCHAR)
SELECT surface FROM table_name_60 WHERE score = "akgul amanmuradova chuang chia-jung"
What was the surface of the match when the score was akgul amanmuradova chuang chia-jung?
CREATE TABLE table_name_60 (surface VARCHAR, score VARCHAR)