answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT losing_bp FROM table_name_38 WHERE played = "22" AND lost = "5"
Can you tell me the Losing BP that has Played of 22, and the Lost of 5?
CREATE TABLE table_name_38 (losing_bp VARCHAR, played VARCHAR, lost VARCHAR)
SELECT area__acres__ FROM table_30120664_1 WHERE civil_parish = "Ballynoe" AND townland = "Killasseragh"
Name the area for civil parish ballynoe and killasseragh
CREATE TABLE table_30120664_1 (area__acres__ VARCHAR, civil_parish VARCHAR, townland VARCHAR)
SELECT COUNT(records) FROM table_15313204_1 WHERE _number = 2
How many teams are #2 on the list?
CREATE TABLE table_15313204_1 (records VARCHAR, _number VARCHAR)
SELECT MAX(february) FROM table_name_51 WHERE record = "34-14-4" AND game > 52
What is listed as the highest February with a Record of 34-14-4 and Game that's larger than 52?
CREATE TABLE table_name_51 (february INTEGER, record VARCHAR, game VARCHAR)
SELECT position FROM table_name_13 WHERE round > 3 AND nationality = "united states" AND player = "nick pryor"
what is the position when the round is higher than 3, the nationality is united states and the player is nick pryor?
CREATE TABLE table_name_13 (position VARCHAR, player VARCHAR, round VARCHAR, nationality VARCHAR)
SELECT highest_point FROM table_1416612_1 WHERE lowest_point = "Belle Fourche River at South Dakota border"
what's the highest point with lowest point being belle fourche river at south dakota border
CREATE TABLE table_1416612_1 (highest_point VARCHAR, lowest_point VARCHAR)
SELECT country FROM table_name_63 WHERE score = 66 - 70 - 69 - 71 = 276
What country has the score og 66-70-69-71=276?
CREATE TABLE table_name_63 (country VARCHAR, score VARCHAR)
SELECT hp__hr_gal FROM table_2224692_1 WHERE gge = "0.9000"
What's the HP -hr/gal of the fuel whose GGE is 0.9000?
CREATE TABLE table_2224692_1 (hp__hr_gal VARCHAR, gge VARCHAR)
SELECT COUNT(round) FROM table_name_92 WHERE pick = "242"
In which round is pick number 242?
CREATE TABLE table_name_92 (round VARCHAR, pick VARCHAR)
SELECT COUNT(first_elected) FROM table_1341865_20 WHERE district = "Louisiana 4"
How many candidates were elected in the Louisiana 4 district?
CREATE TABLE table_1341865_20 (first_elected VARCHAR, district VARCHAR)
SELECT program FROM table_12591022_2 WHERE focus = "Risk Management and Regulation"
What is the program where the focus is risk management and regulation?
CREATE TABLE table_12591022_2 (program VARCHAR, focus VARCHAR)
SELECT stadium FROM table_name_60 WHERE visiting_team = "denver broncos"
What stadium did the Denver Broncos visit?
CREATE TABLE table_name_60 (stadium VARCHAR, visiting_team VARCHAR)
SELECT T1.Continent, COUNT(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.continent JOIN car_makers AS T3 ON T2.CountryId = T3.Country GROUP BY T1.Continent
How many car makers are there in each continents? List the continent name and the count.
CREATE TABLE COUNTRIES (continent VARCHAR, CountryId VARCHAR); CREATE TABLE CONTINENTS (Continent VARCHAR, ContId VARCHAR); CREATE TABLE car_makers (Country VARCHAR)
SELECT AVG(round) FROM table_name_83 WHERE location = "auckland, new zealand" AND method = "tko" AND date = "1994-11-24"
Which Round has a Location of auckland, new zealand, and a Method of tko on 1994-11-24?
CREATE TABLE table_name_83 (round INTEGER, date VARCHAR, location VARCHAR, method VARCHAR)
SELECT country FROM table_name_32 WHERE stadium = "timsah arena"
Timsah arena is in what country?
CREATE TABLE table_name_32 (country VARCHAR, stadium VARCHAR)
SELECT week FROM table_17781886_1 WHERE opponent = "New York Jets"
The opponent was the New York Jets on what week?
CREATE TABLE table_17781886_1 (week VARCHAR, opponent VARCHAR)
SELECT category FROM table_name_54 WHERE result = "nominated" AND nominee = "gene barry"
Which category was Gene Barry nominated in?
CREATE TABLE table_name_54 (category VARCHAR, result VARCHAR, nominee VARCHAR)
SELECT class FROM table_name_10 WHERE wa = "0-8-0"
What class is associated with a W.A. of 0-8-0?
CREATE TABLE table_name_10 (class VARCHAR, wa VARCHAR)
SELECT total_seats FROM table_name_34 WHERE party = "christian democratic union (cdu)"
What is the total number of seats of the Christian Democratic Union (CDU) party?
CREATE TABLE table_name_34 (total_seats VARCHAR, party VARCHAR)
SELECT player FROM table_name_26 WHERE total = 287
WHAT IS THE PLAYER WITH 287?
CREATE TABLE table_name_26 (player VARCHAR, total VARCHAR)
SELECT city_or_town FROM table_name_71 WHERE longitude = "89°11′w"
What is the City or Town of the monument with a Longitude of 89°11′w?
CREATE TABLE table_name_71 (city_or_town VARCHAR, longitude VARCHAR)
SELECT SUM(poles) FROM table_name_73 WHERE series = "firestone indy lights series" AND season < 2009
What is the sum of poles of the firestone indy lights series before the 2009 season?
CREATE TABLE table_name_73 (poles INTEGER, series VARCHAR, season VARCHAR)
SELECT circuit FROM table_name_29 WHERE championship = "sprint cup series"
What circuit is the Sprint Cup series championship?
CREATE TABLE table_name_29 (circuit VARCHAR, championship VARCHAR)
SELECT COUNT(crew_chief) FROM table_1266602_1 WHERE team = "FAS Lane Racing"
What's the total number of crew chiefs of the Fas Lane Racing team?
CREATE TABLE table_1266602_1 (crew_chief VARCHAR, team VARCHAR)
SELECT 1976 FROM table_name_46 WHERE 1980 = "2.0"
what is 1976 when 1980 is 2.0?
CREATE TABLE table_name_46 (Id VARCHAR)
SELECT AVG(silver) FROM table_name_87 WHERE rank = 5 AND bronze < 1
What is the average Silver, when Rank is 5, and when Bronze is less than 1?
CREATE TABLE table_name_87 (silver INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT to_par FROM table_name_44 WHERE country = "united states" AND score = 69 - 68 - 65 = 202
What is the to par of the player from the United States with a score of 69-68-65=202?
CREATE TABLE table_name_44 (to_par VARCHAR, country VARCHAR, score VARCHAR)
SELECT lost FROM table_name_50 WHERE try_bp = "10" AND club = "uwic rfc"
Can you tell the Lost that has the Try BP of 10, and the Club of uwic rfc?
CREATE TABLE table_name_50 (lost VARCHAR, try_bp VARCHAR, club VARCHAR)
SELECT 2009 FROM table_name_40 WHERE 1999 = "3r" AND 2002 = "w"
What 2009 has 3r as the 1999, and w as 2002?
CREATE TABLE table_name_40 (Id VARCHAR)
SELECT cat_no FROM table_name_23 WHERE label_s_ = "mute" AND release_format = "standard cd"
What is the cat no for the label mute and the standard cd format?
CREATE TABLE table_name_23 (cat_no VARCHAR, label_s_ VARCHAR, release_format VARCHAR)
SELECT total FROM table_name_40 WHERE player = "mark o'meara"
What was Mark O'Meara's total?
CREATE TABLE table_name_40 (total VARCHAR, player VARCHAR)
SELECT home_team AS score FROM table_name_6 WHERE venue = "princes park"
What was the home team's score at Princes Park?
CREATE TABLE table_name_6 (home_team VARCHAR, venue VARCHAR)
SELECT firefox FROM table_name_8 WHERE netscape = "*0.77%"
What percentage of users were using Firefox during the period in which *0.77% were using Netscape?
CREATE TABLE table_name_8 (firefox VARCHAR, netscape VARCHAR)
SELECT channel FROM table_14523485_9 WHERE country = "New Zealand"
Where is the show aired in New Zealand?
CREATE TABLE table_14523485_9 (channel VARCHAR, country VARCHAR)
SELECT examples FROM table_17798093_20 WHERE australian = "et"
which examples are pronounced et in australian
CREATE TABLE table_17798093_20 (examples VARCHAR, australian VARCHAR)
SELECT MAX(first_elected) FROM table_name_48 WHERE party = "republican" AND district = "louisiana 7"
What is the highest First Elected, when Party is "Republican", and when District is "Louisiana 7"?
CREATE TABLE table_name_48 (first_elected INTEGER, party VARCHAR, district VARCHAR)
SELECT try_diff FROM table_name_34 WHERE tries_for = 12
Which Try diff has Tries for of 12?
CREATE TABLE table_name_34 (try_diff VARCHAR, tries_for VARCHAR)
SELECT MIN(bonus_pts) FROM table_name_36 WHERE rider = "bob jameson" AND rides < 15
What was Bob Jameson's lowest bonus where he had less than 15 rides?
CREATE TABLE table_name_36 (bonus_pts INTEGER, rider VARCHAR, rides VARCHAR)
SELECT COUNT(1969) FROM table_name_18 WHERE 1967 < 0.73 AND 1964 > 0.07
How much 1969 has a 1967 smaller than 0.73, and a 1964 larger than 0.07?
CREATE TABLE table_name_18 (Id VARCHAR)
SELECT opponent_in_the_final FROM table_name_49 WHERE date = "26 march 2006"
Who is the opponent in the final of the match on 26 March 2006?
CREATE TABLE table_name_49 (opponent_in_the_final VARCHAR, date VARCHAR)
SELECT T2.product_name FROM view_product_availability AS T1 JOIN products_for_hire AS T2 ON T1.product_id = T2.product_id WHERE T1.available_yn = 1
What are the names of products whose availability equals to 1?
CREATE TABLE view_product_availability (product_id VARCHAR, available_yn VARCHAR); CREATE TABLE products_for_hire (product_name VARCHAR, product_id VARCHAR)
SELECT game FROM table_name_41 WHERE opponents = "14"
In which game did the opponents score 14 points?
CREATE TABLE table_name_41 (game VARCHAR, opponents VARCHAR)
SELECT format FROM table_name_14 WHERE frequency = "99.5 fm"
What format is at frequency 99.5 FM?
CREATE TABLE table_name_14 (format VARCHAR, frequency VARCHAR)
SELECT season FROM table_name_25 WHERE runs = "310/9"
What season were the runs 310/9?
CREATE TABLE table_name_25 (season VARCHAR, runs VARCHAR)
SELECT mens_singles FROM table_12104319_1 WHERE year = 2008
What is the mens singles of 2008?
CREATE TABLE table_12104319_1 (mens_singles VARCHAR, year VARCHAR)
SELECT high_rebounds FROM table_27734769_9 WHERE team = "Minnesota"
Who did the high rebounds for the team Minnesota?
CREATE TABLE table_27734769_9 (high_rebounds VARCHAR, team VARCHAR)
SELECT inverse_subjunctive FROM table_name_8 WHERE indicative = "si måchan"
The indicative of si måchan has what as the inverse subjunctive?
CREATE TABLE table_name_8 (inverse_subjunctive VARCHAR, indicative VARCHAR)
SELECT company FROM table_name_74 WHERE author = "aristophanes" AND play = "plutus"
Which company has an author of Aristophanes and play of Plutus?
CREATE TABLE table_name_74 (company VARCHAR, author VARCHAR, play VARCHAR)
SELECT COUNT(hometown) FROM table_14966667_19 WHERE position = "FS"
how many hometowns use the position of fs?
CREATE TABLE table_14966667_19 (hometown VARCHAR, position VARCHAR)
SELECT position FROM table_14038363_1 WHERE player = "Roman Bragin"
What is Roman Bragin's position?
CREATE TABLE table_14038363_1 (position VARCHAR, player VARCHAR)
SELECT MIN(established) FROM table_1641054_2
Name the least established
CREATE TABLE table_1641054_2 (established INTEGER)
SELECT segment_d FROM table_15187735_18 WHERE segment_a = "s Cufflink"
Name the segment d for s cufflink
CREATE TABLE table_15187735_18 (segment_d VARCHAR, segment_a VARCHAR)
SELECT us_viewers__millions_ FROM table_26808178_1 WHERE series__number = 3
How many million viewers watched episode 3 in the series?
CREATE TABLE table_26808178_1 (us_viewers__millions_ VARCHAR, series__number VARCHAR)
SELECT COUNT(challenge_leader) FROM table_29535057_4 WHERE winner = "Virginia (87-79)"
How many challenge leaders were there of the games won by virginia (87-79)?
CREATE TABLE table_29535057_4 (challenge_leader VARCHAR, winner VARCHAR)
SELECT release_date FROM table_name_93 WHERE production_number < 1495 AND director = "robert mckimson" AND title = "mouse-placed kitten"
What is the release date of the episode named Mouse-Placed Kitten with an episode number less than 1495 directed by Robert McKimson?
CREATE TABLE table_name_93 (release_date VARCHAR, title VARCHAR, production_number VARCHAR, director VARCHAR)
SELECT T1.line_1 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.address_id INTERSECT SELECT T1.line_1 FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id
What are the line 1 of addresses shared by some students and some teachers?
CREATE TABLE Teachers (address_id VARCHAR); CREATE TABLE Students (address_id VARCHAR); CREATE TABLE Addresses (line_1 VARCHAR, address_id VARCHAR)
SELECT home_team AS score FROM table_name_89 WHERE venue = "brunswick street oval"
What did the home team at Brunswick Street Oval score?
CREATE TABLE table_name_89 (home_team VARCHAR, venue VARCHAR)
SELECT surface FROM table_name_90 WHERE score = "6-1 7-5"
What was the surface of the game that resulted in a final score of 6-1 7-5?
CREATE TABLE table_name_90 (surface VARCHAR, score VARCHAR)
SELECT attendance FROM table_name_99 WHERE date = "august 15"
What is the Attendance on august 15?
CREATE TABLE table_name_99 (attendance VARCHAR, date VARCHAR)
SELECT traffic_direction FROM table_name_94 WHERE street = "97th street"
What is the traffic direction of 97th street?
CREATE TABLE table_name_94 (traffic_direction VARCHAR, street VARCHAR)
SELECT proofs FROM table_name_88 WHERE software = "tabulae"
Are there proofs in the Tabulae software?
CREATE TABLE table_name_88 (proofs VARCHAR, software VARCHAR)
SELECT location FROM table_name_21 WHERE round = 1 AND time = "1:25"
What is the Location of the Event in Round 1 with a Time of 1:25?
CREATE TABLE table_name_21 (location VARCHAR, round VARCHAR, time VARCHAR)
SELECT MAX(rank) FROM table_name_6 WHERE team = "beirasar rosalía" AND games < 32
What was the ranking of Beirasar Rosalía, the year they played 32 games?
CREATE TABLE table_name_6 (rank INTEGER, team VARCHAR, games VARCHAR)
SELECT screen_pixels FROM table_name_66 WHERE maker = "amazon.com" AND weight = "221g (7.8oz)"
For Amazon.com's device with a weight of 221g (7.8oz) how many screen pixels does the device have?
CREATE TABLE table_name_66 (screen_pixels VARCHAR, maker VARCHAR, weight VARCHAR)
SELECT T1.name FROM physician AS T1 JOIN patient AS T2 ON T1.employeeid = T2.PCP GROUP BY T1.employeeid HAVING COUNT(*) > 1
Find the name of physicians who are in charge of more than one patient.
CREATE TABLE patient (PCP VARCHAR); CREATE TABLE physician (name VARCHAR, employeeid VARCHAR)
SELECT COUNT(route_via) FROM table_29770377_1 WHERE train_name = "Ernad Express"
How many route/via's are there for the ernad express?
CREATE TABLE table_29770377_1 (route_via VARCHAR, train_name VARCHAR)
SELECT laps FROM table_name_14 WHERE team = "primagaz competition"
How many Laps did Team Primagaz Competition have?
CREATE TABLE table_name_14 (laps VARCHAR, team VARCHAR)
SELECT AVG(year) FROM table_name_64 WHERE tournament = "international meeting & national championships"
What average year has international meeting & national championships as the tournament?
CREATE TABLE table_name_64 (year INTEGER, tournament VARCHAR)
SELECT college FROM table_name_62 WHERE pick > 101 AND position = "punter"
What school did the punter picked after 101 attend?
CREATE TABLE table_name_62 (college VARCHAR, pick VARCHAR, position VARCHAR)
SELECT Gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid JOIN Student AS T3 ON T3.Stuid = T1.Stuid WHERE T3.Lname = "Smith" AND T3.Fname = "Linda"
Show all game names played by Linda Smith
CREATE TABLE Student (Stuid VARCHAR, Lname VARCHAR, Fname VARCHAR); CREATE TABLE Plays_games (gameid VARCHAR, Stuid VARCHAR); CREATE TABLE Video_games (gameid VARCHAR)
SELECT ground FROM table_name_55 WHERE home_team = "carlton"
What was the Home team Carlton's Ground?
CREATE TABLE table_name_55 (ground VARCHAR, home_team VARCHAR)
SELECT money_list_rank FROM table_29499399_2 WHERE player = "Cameron Beckman"
Where is Cameron Beckman's rank on the money list?
CREATE TABLE table_29499399_2 (money_list_rank VARCHAR, player VARCHAR)
SELECT away_team AS score FROM table_16388439_2 WHERE crowd = 8642
When the crowd was 8642 what was the away team's score?
CREATE TABLE table_16388439_2 (away_team VARCHAR, crowd VARCHAR)
SELECT AVG(react) FROM table_name_11 WHERE time < 22.29 AND rank > 1
What is the average react of the athlete with a time less than 22.29 and a rank greater than 1?
CREATE TABLE table_name_11 (react INTEGER, time VARCHAR, rank VARCHAR)
SELECT place FROM table_25931938_1 WHERE aggregate = 35
What was the place for the celebrity whose aggregate was 35?
CREATE TABLE table_25931938_1 (place VARCHAR, aggregate VARCHAR)
SELECT state FROM table_name_58 WHERE royal_house = "ying"
What is the state for the royal house of ying?
CREATE TABLE table_name_58 (state VARCHAR, royal_house VARCHAR)
SELECT network FROM table_name_3 WHERE play_by_play = "jack edwards" AND year = 2000
What network has a Play-by-play by Jack Edwards in 2000?
CREATE TABLE table_name_3 (network VARCHAR, play_by_play VARCHAR, year VARCHAR)
SELECT second FROM table_name_6 WHERE lead = "ben hebert"
Which Second has a Lead of ben hebert?
CREATE TABLE table_name_6 (second VARCHAR, lead VARCHAR)
SELECT transaction_id FROM Financial_transactions WHERE transaction_amount > (SELECT AVG(transaction_amount) FROM Financial_transactions)
Show ids for all transactions whose amounts are greater than the average.
CREATE TABLE Financial_transactions (transaction_id VARCHAR, transaction_amount INTEGER)
SELECT country FROM table_name_80 WHERE player = "gene borek"
From what Country is Gene Borek?
CREATE TABLE table_name_80 (country VARCHAR, player VARCHAR)
SELECT directed_by FROM table_16384596_4 WHERE production_code = 209
Who directed the episode with the production code 209?
CREATE TABLE table_16384596_4 (directed_by VARCHAR, production_code VARCHAR)
SELECT COUNT(goals_for) FROM table_name_13 WHERE played > 44
Name the total number of goals which have played more than 44
CREATE TABLE table_name_13 (goals_for VARCHAR, played INTEGER)
SELECT prod_code FROM table_name_16 WHERE episode_title = "life's no fun anymore"
What is the production code fore the episode titled, life's no fun anymore?
CREATE TABLE table_name_16 (prod_code VARCHAR, episode_title VARCHAR)
SELECT f_laps FROM table_24587026_1 WHERE series = "GP2 series"
Name the f/laps for gp2 series
CREATE TABLE table_24587026_1 (f_laps VARCHAR, series VARCHAR)
SELECT team FROM table_17140608_11 WHERE date = "April 23"
What team(s) did they play on april 23?
CREATE TABLE table_17140608_11 (team VARCHAR, date VARCHAR)
SELECT team FROM table_17102076_9 WHERE date = "March 20"
What team played on March 20?
CREATE TABLE table_17102076_9 (team VARCHAR, date VARCHAR)
SELECT location FROM table_19210115_1 WHERE nickname = "Owls"
Where is the University that is also called Owls?
CREATE TABLE table_19210115_1 (location VARCHAR, nickname VARCHAR)
SELECT try_diff FROM table_name_42 WHERE points_against = "213"
What is Try Diff, when Points Against is 213?
CREATE TABLE table_name_42 (try_diff VARCHAR, points_against VARCHAR)
SELECT tikhak FROM table_name_77 WHERE yonguk = "wu¹ti¹"
Which Tikhak has a Yonguk of wu¹ti¹?
CREATE TABLE table_name_77 (tikhak VARCHAR, yonguk VARCHAR)
SELECT against FROM table_24074130_5 WHERE opponent = "Andreas Vinciguerra"
What is every entry for against with opponent Andreas Vinciguerra?
CREATE TABLE table_24074130_5 (against VARCHAR, opponent VARCHAR)
SELECT to_par FROM table_name_23 WHERE place = "t1" AND score = 66 - 71 - 66 = 203
What is the Top that has a 66-71-66=203 score and a place of t1?
CREATE TABLE table_name_23 (to_par VARCHAR, place VARCHAR, score VARCHAR)
SELECT MIN(clock_speed__mhz_) FROM table_name_75 WHERE introduced = "january 1986"
What is the least clock speed (MHz) with January 1986 as introduced?
CREATE TABLE table_name_75 (clock_speed__mhz_ INTEGER, introduced VARCHAR)
SELECT COUNT(points) FROM table_23346303_5 WHERE assists = 7
What is the points total number if the assists is 7?
CREATE TABLE table_23346303_5 (points VARCHAR, assists VARCHAR)
SELECT auckland FROM table_name_74 WHERE sydney = "yes" AND perth = "no" AND melbourne = "yes" AND gold_coast = "yes"
yes or no for the auckland with a yes for sydney, no for perth, yes for melbourne and yes for the gold coast?
CREATE TABLE table_name_74 (auckland VARCHAR, gold_coast VARCHAR, melbourne VARCHAR, sydney VARCHAR, perth VARCHAR)
SELECT total FROM table_name_80 WHERE set_2 = "17-25"
What is the total for set 2 17-25?
CREATE TABLE table_name_80 (total VARCHAR, set_2 VARCHAR)
SELECT record FROM table_name_57 WHERE time = "4:15"
What was the record after the bout lasting 4:15?
CREATE TABLE table_name_57 (record VARCHAR, time VARCHAR)
SELECT MAX(obama_number) FROM table_20750731_1 WHERE mccain_percentage = "64.4%"
What is the Obama# when McCain% is 64.4%?
CREATE TABLE table_20750731_1 (obama_number INTEGER, mccain_percentage VARCHAR)
SELECT T1.name FROM tracks AS T1 JOIN invoice_lines AS T2 ON T1.id = T2.track_id JOIN invoices AS T3 ON T3.id = T2.invoice_id JOIN customers AS T4 ON T4.id = T3.customer_id WHERE T4.first_name = "Daan" AND T4.last_name = "Peeters"
List all tracks bought by customer Daan Peeters.
CREATE TABLE invoices (id VARCHAR, customer_id VARCHAR); CREATE TABLE invoice_lines (track_id VARCHAR, invoice_id VARCHAR); CREATE TABLE tracks (name VARCHAR, id VARCHAR); CREATE TABLE customers (id VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT COUNT(serial_no) FROM table_20236726_2 WHERE wd_no = 24
Name the total number of serial number for 24 wd no
CREATE TABLE table_20236726_2 (serial_no VARCHAR, wd_no VARCHAR)
SELECT series_premiere FROM table_29487895_2 WHERE source_s_ = "American Disney XD Tron Uprising Site"
What is the premiere date of the american disney xd tron uprising site?
CREATE TABLE table_29487895_2 (series_premiere VARCHAR, source_s_ VARCHAR)