answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT class FROM table_name_2 WHERE call_sign = "k220cp"
Name the class with call sign of k220cp
CREATE TABLE table_name_2 (class VARCHAR, call_sign VARCHAR)
SELECT earpads FROM table_name_49 WHERE driver_matched_db > 0.05 AND us_msrp = "$79"
What earpads do the headphones with driver-matched dB over 0.05 and MSRP of $79 have?
CREATE TABLE table_name_49 (earpads VARCHAR, driver_matched_db VARCHAR, us_msrp VARCHAR)
SELECT MIN(grid) FROM table_name_15 WHERE rider = "sylvain guintoli" AND laps > 32
with more than 32 laps and sylvain guintoli as rider, what's the lowest grid ?
CREATE TABLE table_name_15 (grid INTEGER, rider VARCHAR, laps VARCHAR)
SELECT record FROM table_name_53 WHERE date = "april 8"
What was the record on April 8?
CREATE TABLE table_name_53 (record VARCHAR, date VARCHAR)
SELECT AVG(season) FROM table_name_64 WHERE venue = "circuit de nevers magny-cours" AND drivers > 30
What is the average Season when the venue was circuit de nevers magny-cours, and Drivers was more than 30?
CREATE TABLE table_name_64 (season INTEGER, venue VARCHAR, drivers VARCHAR)
SELECT date FROM table_name_38 WHERE away_team = "footscray"
When was the game when Footscray was the away team?
CREATE TABLE table_name_38 (date VARCHAR, away_team VARCHAR)
SELECT MAX(geo_id) FROM table_18600760_12 WHERE land___sqmi__ = "35.999"
What is the geo id of the land at 35.999?
CREATE TABLE table_18600760_12 (geo_id INTEGER, land___sqmi__ VARCHAR)
SELECT SUM(caps) FROM table_name_96 WHERE player = "stephen hoiles"
How many caps does stephen hoiles have?
CREATE TABLE table_name_96 (caps INTEGER, player VARCHAR)
SELECT MAX(capacity) FROM table_name_95 WHERE stadium = "tsentral stadium (batumi)"
What is the highest capacity of the tsentral stadium (batumi)?
CREATE TABLE table_name_95 (capacity INTEGER, stadium VARCHAR)
SELECT MAX(stories) FROM table_name_7 WHERE height = "42 m."
What is the highest number of stories in homes with a height of 42 m.?
CREATE TABLE table_name_7 (stories INTEGER, height VARCHAR)
SELECT COUNT(no) FROM table_20360535_3 WHERE directed_by = "Ben Jones" AND written_by = "Paul Dini"
How many episodes directed by ben jones and written by paul dini?
CREATE TABLE table_20360535_3 (no VARCHAR, directed_by VARCHAR, written_by VARCHAR)
SELECT division_record FROM table_name_63 WHERE school = "laurel"
What was Laurel's division record?
CREATE TABLE table_name_63 (division_record VARCHAR, school VARCHAR)
SELECT opponent FROM table_name_28 WHERE week < 3 AND date = "september 23, 1960"
Who was the opponent in a week below 3 on September 23, 1960?
CREATE TABLE table_name_28 (opponent VARCHAR, week VARCHAR, date VARCHAR)
SELECT COUNT(centerfold_model) FROM table_1566850_9 WHERE date = "9-98"
How many centerfolds were in the 9-98 issue?
CREATE TABLE table_1566850_9 (centerfold_model VARCHAR, date VARCHAR)
SELECT press FROM table_name_95 WHERE world_record = "olympic record" AND roger_françois = "jaan kikkas"
What was the press like for the world olympic record holder Roger Francois and Jaan Kikkas?
CREATE TABLE table_name_95 (press VARCHAR, world_record VARCHAR, roger_françois VARCHAR)
SELECT COUNT(crowd) FROM table_name_2 WHERE away_team = "footscray"
What was the crowd size for the game at Footscray?
CREATE TABLE table_name_2 (crowd VARCHAR, away_team VARCHAR)
SELECT condition FROM table_name_52 WHERE platelet_count = "unaffected" AND bleeding_time = "unaffected" AND prothrombin_time = "prolonged" AND partial_thromboplastin_time = "prolonged"
Name the condition with platelet count of unaffected and bleeding time of unaffected with prothrombin time of prolonged and partial thromboplastin time of prolonged
CREATE TABLE table_name_52 (condition VARCHAR, partial_thromboplastin_time VARCHAR, prothrombin_time VARCHAR, platelet_count VARCHAR, bleeding_time VARCHAR)
SELECT main_presenter FROM table_14345690_15 WHERE series = "Twelve (2012)"
Who is the main presenter of the series Twelve (2012)?
CREATE TABLE table_14345690_15 (main_presenter VARCHAR, series VARCHAR)
SELECT equipment FROM table_16941304_4 WHERE bike_no = 6
Name the equipment for bike number 6
CREATE TABLE table_16941304_4 (equipment VARCHAR, bike_no VARCHAR)
SELECT MIN(round) FROM table_name_95 WHERE record = "4-0"
What is the smallest round to have a record of 4-0?
CREATE TABLE table_name_95 (round INTEGER, record VARCHAR)
SELECT MIN(prom__m_) FROM table_name_62 WHERE class = "hewitt" AND peak = "cushat law" AND height__m_ > 615
Tell me the lowest prom for class of hewitt and peak of cushat law and height more than 615
CREATE TABLE table_name_62 (prom__m_ INTEGER, height__m_ VARCHAR, class VARCHAR, peak VARCHAR)
SELECT industry FROM table_1682026_7 WHERE sales__billion_$_ = "89.16"
In what industry was the company that had 89.16 billions of dollars in sales?
CREATE TABLE table_1682026_7 (industry VARCHAR, sales__billion_$_ VARCHAR)
SELECT strongs__number FROM table_1242447_2 WHERE hebrew_word = "יִרְמְיָה"
What is the strongs # for the hebrew word יִרְמְיָה?
CREATE TABLE table_1242447_2 (strongs__number VARCHAR, hebrew_word VARCHAR)
SELECT penalty FROM table_name_89 WHERE time = "29:17"
What was a penalty given for at time 29:17?
CREATE TABLE table_name_89 (penalty VARCHAR, time VARCHAR)
SELECT attendance FROM table_name_82 WHERE date = "december 11, 2005"
What was the attendance of the game on December 11, 2005?
CREATE TABLE table_name_82 (attendance VARCHAR, date VARCHAR)
SELECT SUM(draw) FROM table_name_45 WHERE season = "2001–02" AND points > 47
Which Draw has a Season of 2001–02, and Points larger than 47?
CREATE TABLE table_name_45 (draw INTEGER, season VARCHAR, points VARCHAR)
SELECT MAX(obama_number) FROM table_20468206_1 WHERE mccain_percentage = "38.86%"
Name the most obama number for mccain being 38.86%
CREATE TABLE table_20468206_1 (obama_number INTEGER, mccain_percentage VARCHAR)
SELECT release_date FROM table_name_16 WHERE director = "robert mckimson" AND series = "mm" AND production_number = "1665"
What is the Release date of the Filmography directed by Robert McKimson in MM Series with Production Number 1665?
CREATE TABLE table_name_16 (release_date VARCHAR, production_number VARCHAR, director VARCHAR, series VARCHAR)
SELECT bronze FROM table_name_59 WHERE place = "melbourne"
Who won the Bronze at Melbourne?
CREATE TABLE table_name_59 (bronze VARCHAR, place VARCHAR)
SELECT winning_driver FROM table_name_36 WHERE circuit = "monza"
Name the winning driver for circuit of monza
CREATE TABLE table_name_36 (winning_driver VARCHAR, circuit VARCHAR)
SELECT area FROM table_name_96 WHERE authority = "state" AND name = "cromwell primary school"
What is the area of Cromwell Primary school, which has a state authority?
CREATE TABLE table_name_96 (area VARCHAR, authority VARCHAR, name VARCHAR)
SELECT MIN(gold) FROM table_name_94 WHERE silver < 0
Which was the lowest gold when silver was smaller than 0?
CREATE TABLE table_name_94 (gold INTEGER, silver INTEGER)
SELECT name FROM table_name_3 WHERE total = "116 (22)"
Which player had a total of 116 (22)?
CREATE TABLE table_name_3 (name VARCHAR, total VARCHAR)
SELECT mm_×_mm FROM table_name_7 WHERE in_×_in = "11 × 17"
Which mm × mm has an in × in of 11 × 17?
CREATE TABLE table_name_7 (mm_×_mm VARCHAR, in_×_in VARCHAR)
SELECT AVG(attendance) FROM table_name_85 WHERE opponents = "dundalk"
What's the average attendance when the opponents are dundalk?
CREATE TABLE table_name_85 (attendance INTEGER, opponents VARCHAR)
SELECT COUNT(constructor) FROM table_1140114_5 WHERE winning_driver = "Paul Thiel"
How many different constructors had Paul Thiel as a winning driver?
CREATE TABLE table_1140114_5 (constructor VARCHAR, winning_driver VARCHAR)
SELECT competition FROM table_name_87 WHERE venue = "arles, france"
Which competition was held in Arles, France?
CREATE TABLE table_name_87 (competition VARCHAR, venue VARCHAR)
SELECT real_name FROM table_name_51 WHERE primary_military_speciality = "shock paratrooper"
What is the real name of the person whose primary military specialty is shock paratrooper?
CREATE TABLE table_name_51 (real_name VARCHAR, primary_military_speciality VARCHAR)
SELECT away_team FROM table_name_33 WHERE venue = "glenferrie oval"
What is the away team at glenferrie oval?
CREATE TABLE table_name_33 (away_team VARCHAR, venue VARCHAR)
SELECT drawn FROM table_name_95 WHERE tries_for = "42"
Name the drawn for tries for of 42
CREATE TABLE table_name_95 (drawn VARCHAR, tries_for VARCHAR)
SELECT COUNT(*) FROM cinema
How many cinema do we have?
CREATE TABLE cinema (Id VARCHAR)
SELECT runs_conceded FROM table_15700367_6 WHERE name = "Chaminda Vaas"
How many runs conceded for chaminda vaas?
CREATE TABLE table_15700367_6 (runs_conceded VARCHAR, name VARCHAR)
SELECT district FROM table_name_93 WHERE college_name = "thanjavur medical college"
What is the district where the thanjavur medical college is located?
CREATE TABLE table_name_93 (district VARCHAR, college_name VARCHAR)
SELECT region FROM table_25042332_16 WHERE below_50_percentage_of_median_income = "18.6%"
In what region do 18.6% of the people make less than 50% of the median income?
CREATE TABLE table_25042332_16 (region VARCHAR, below_50_percentage_of_median_income VARCHAR)
SELECT COUNT(pl_gp) FROM table_name_79 WHERE reg_gp > 3
What is the total PI GP that a Reg GP has larger than 3?
CREATE TABLE table_name_79 (pl_gp VARCHAR, reg_gp INTEGER)
SELECT Name FROM editor WHERE NOT editor_id IN (SELECT editor_id FROM journal_committee)
List the names of editors that are not on any journal committee.
CREATE TABLE editor (Name VARCHAR, editor_id VARCHAR); CREATE TABLE journal_committee (Name VARCHAR, editor_id VARCHAR)
SELECT episode_title FROM table_1272844_2 WHERE eliminated = "Jenn"
What is the name of the episode in which Jenn is eliminated?
CREATE TABLE table_1272844_2 (episode_title VARCHAR, eliminated VARCHAR)
SELECT COUNT(grid) FROM table_name_71 WHERE driver = "peter collins"
How many grids for peter collins?
CREATE TABLE table_name_71 (grid VARCHAR, driver VARCHAR)
SELECT gwr_nos FROM table_name_79 WHERE quantity < 2 AND m & swj_nos = "9"
Which GWR numbers had a quantity less than 2 when the M&SWJ number was 9?
CREATE TABLE table_name_79 (gwr_nos VARCHAR, quantity VARCHAR, m VARCHAR, swj_nos VARCHAR)
SELECT MAX(founded) FROM table_255188_1 WHERE nickname = "Avenging Angels"
When were the Avenging Angels founded?
CREATE TABLE table_255188_1 (founded INTEGER, nickname VARCHAR)
SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1
What is the name of the singer with the largest net worth?
CREATE TABLE singer (Name VARCHAR, Net_Worth_Millions VARCHAR)
SELECT COUNT(socialist) FROM table_1886589_1 WHERE lead = "12.6%"
How many socialist have a lead of 12.6%?
CREATE TABLE table_1886589_1 (socialist VARCHAR, lead VARCHAR)
SELECT first_elected FROM table_name_66 WHERE member = "hon ian causley"
When was the Hon Ian Causley first elected?
CREATE TABLE table_name_66 (first_elected VARCHAR, member VARCHAR)
SELECT MAX(year) FROM table_name_18 WHERE manufacturer = "ford" AND finish < 37
Smaller than 37, the highest year for Ford?
CREATE TABLE table_name_18 (year INTEGER, manufacturer VARCHAR, finish VARCHAR)
SELECT MIN(population) FROM table_name_37 WHERE median_family_income = "$74,905" AND number_of_households < 145 OFFSET 790
Which Population is the lowest one that has a Median family income of $74,905, and a Number of households smaller than 145,790?
CREATE TABLE table_name_37 (population INTEGER, median_family_income VARCHAR, number_of_households VARCHAR)
SELECT MIN(year) FROM table_name_21 WHERE country = "canada" AND position = "center" AND player = "mario lemieux"
What is the first year that Mario Lemieux from Canada won playing center?
CREATE TABLE table_name_21 (year INTEGER, player VARCHAR, country VARCHAR, position VARCHAR)
SELECT MIN(televotes) FROM table_name_59 WHERE performer = "biljana dodeva" AND draw > 10
WHich Televotes has a Performer of biljana dodeva, and a Draw larger than 10?
CREATE TABLE table_name_59 (televotes INTEGER, performer VARCHAR, draw VARCHAR)
SELECT position FROM table_name_52 WHERE height = "6-2" AND name = "martina wood"
What is 6-2 Martina Wood's Position?
CREATE TABLE table_name_52 (position VARCHAR, height VARCHAR, name VARCHAR)
SELECT record FROM table_name_61 WHERE score = "9-4"
Name the record for 9-4 score
CREATE TABLE table_name_61 (record VARCHAR, score VARCHAR)
SELECT score FROM table_name_3 WHERE game = 34
What is the score of game 34?
CREATE TABLE table_name_3 (score VARCHAR, game VARCHAR)
SELECT under_15 FROM table_26368963_2 WHERE under_11 = "Reeham Sedky"
Who is every Under-15 if Under-11 is Reeham Sedky?
CREATE TABLE table_26368963_2 (under_15 VARCHAR, under_11 VARCHAR)
SELECT match FROM table_name_8 WHERE year = "2009" AND runs = "100*"
In 2009 with 100* runs, what is the match?
CREATE TABLE table_name_8 (match VARCHAR, year VARCHAR, runs VARCHAR)
SELECT record FROM table_name_42 WHERE score = "7–5"
What was the record at the game with a score of 7–5?
CREATE TABLE table_name_42 (record VARCHAR, score VARCHAR)
SELECT report FROM table_22298383_1 WHERE day = "Sunday" AND average_speed__mph_ = "128.27"
What was the report for the Sunday race where the winner had an average speed of 128.27 mph?
CREATE TABLE table_22298383_1 (report VARCHAR, day VARCHAR, average_speed__mph_ VARCHAR)
SELECT laurel_mountain_channel FROM table_name_51 WHERE b_mountain_channel = "7"
What Laurel Mountain Channel is associated with B Mountain Channel of 7?
CREATE TABLE table_name_51 (laurel_mountain_channel VARCHAR, b_mountain_channel VARCHAR)
SELECT MAX(losses) FROM table_name_52 WHERE goals_for = 45 AND played < 38
What was the highest amount of losses when there were 45 goals and the play was smaller than 38?
CREATE TABLE table_name_52 (losses INTEGER, goals_for VARCHAR, played VARCHAR)
SELECT COUNT(attendance) FROM table_name_41 WHERE location = "west side grounds" AND date = "october 22"
For the game that was played on october 22 in west side grounds, what is the total attendance
CREATE TABLE table_name_41 (attendance VARCHAR, location VARCHAR, date VARCHAR)
SELECT release_date FROM table_name_31 WHERE title = "aladdin time"
What is Release Date, when Title is Aladdin Time?
CREATE TABLE table_name_31 (release_date VARCHAR, title VARCHAR)
SELECT class FROM table_name_31 WHERE peak = "fountains fell south top"
Which class has a peak named fountains fell south top?
CREATE TABLE table_name_31 (class VARCHAR, peak VARCHAR)
SELECT COUNT(votes) FROM table_name_72 WHERE _percentage_of_national_vote = 13.11 AND candidates_nominated > 39
How many votes were tallied with a % of national vote of 13.11, and over 39 candidates nominated?
CREATE TABLE table_name_72 (votes VARCHAR, _percentage_of_national_vote VARCHAR, candidates_nominated VARCHAR)
SELECT name FROM table_name_25 WHERE sport = "canoeing"
What is the names for the medalist in the sport of canoeing?
CREATE TABLE table_name_25 (name VARCHAR, sport VARCHAR)
SELECT venue FROM table_name_67 WHERE result = "draw"
In which venue was the result a draw?
CREATE TABLE table_name_67 (venue VARCHAR, result VARCHAR)
SELECT accreditation_level FROM table_name_7 WHERE hardware_model = "gt-i9100"
What is the Accreditation Level, when the Hardware Model is GT-I9100?
CREATE TABLE table_name_7 (accreditation_level VARCHAR, hardware_model VARCHAR)
SELECT SUM(silver) FROM table_name_82 WHERE bronze > 2
What is the sum of all silver medals with more than 2 bronze?
CREATE TABLE table_name_82 (silver INTEGER, bronze INTEGER)
SELECT category FROM table_name_28 WHERE team = "cannondale vredestein"
Which category has a team of Cannondale Vredestein?
CREATE TABLE table_name_28 (category VARCHAR, team VARCHAR)
SELECT water__sqmi_ FROM table_18600760_9 WHERE latitude = "48.064751"
How many square miles of water does the township at latitude 48.064751 have?
CREATE TABLE table_18600760_9 (water__sqmi_ VARCHAR, latitude VARCHAR)
SELECT 1 AS st_leg FROM table_name_14 WHERE team_1 = "lesotho"
What was the 1st leg score for the match with Lesotho as team 1?
CREATE TABLE table_name_14 (team_1 VARCHAR)
SELECT record FROM table_name_73 WHERE method = "tko (kick)"
With a method of tko (kick) what is the record of the match?
CREATE TABLE table_name_73 (record VARCHAR, method VARCHAR)
SELECT lap_by_lap FROM table_10716893_3 WHERE year = 2011
Who does the lap-by-lap in 2011?
CREATE TABLE table_10716893_3 (lap_by_lap VARCHAR, year VARCHAR)
SELECT driver FROM table_name_75 WHERE laps = 44
What driver has 44 laps?
CREATE TABLE table_name_75 (driver VARCHAR, laps VARCHAR)
SELECT winning_team FROM table_name_92 WHERE losing_team = "san francisco giants"
Who won the series when the San Francisco Giants lost?
CREATE TABLE table_name_92 (winning_team VARCHAR, losing_team VARCHAR)
SELECT MAX(wins) FROM table_name_51 WHERE club = "elche cf" AND goals_against > 43
Name the most wins which have clubbed of elche cf and goals against more than 43
CREATE TABLE table_name_51 (wins INTEGER, club VARCHAR, goals_against VARCHAR)
SELECT MIN(first_elected) FROM table_1341423_13 WHERE incumbent = "Luis Gutierrez"
What year was Luis Gutierrez election
CREATE TABLE table_1341423_13 (first_elected INTEGER, incumbent VARCHAR)
SELECT name, operating_system FROM web_client_accelerator WHERE CONNECTION <> 'Broadband'
What are the name and os of web client accelerators that do not work with only a 'Broadband' type connection?
CREATE TABLE web_client_accelerator (name VARCHAR, operating_system VARCHAR, CONNECTION VARCHAR)
SELECT DISTINCT city FROM branch WHERE membership_amount >= 100
Show all distinct city where branches with at least 100 memberships are located.
CREATE TABLE branch (city VARCHAR, membership_amount VARCHAR)
SELECT notes FROM table_name_78 WHERE competition = "venice marathon"
Which Notes has a Competition of venice marathon?
CREATE TABLE table_name_78 (notes VARCHAR, competition VARCHAR)
SELECT MAX(total) FROM table_name_86 WHERE country = "australia"
What is Australia's highest total?
CREATE TABLE table_name_86 (total INTEGER, country VARCHAR)
SELECT winning_party_2003 FROM table_name_26 WHERE swing_to_gain < 2.92 AND result = "ld hold"
Which party won in 2003, that had a swing to gain of less than 2.92 and which resulted in a ld hold?
CREATE TABLE table_name_26 (winning_party_2003 VARCHAR, swing_to_gain VARCHAR, result VARCHAR)
SELECT COUNT(points) AS won FROM table_24431264_16 WHERE player = "Victor Hănescu"
How many players named victor hănescu played?
CREATE TABLE table_24431264_16 (points VARCHAR, player VARCHAR)
SELECT period_active FROM table_name_42 WHERE artist = "enya"
Name the period active for enya
CREATE TABLE table_name_42 (period_active VARCHAR, artist VARCHAR)
SELECT _number_of_seats_won FROM table_123462_2 WHERE election = 1974
What is the # of seats one for the election in 1974?
CREATE TABLE table_123462_2 (_number_of_seats_won VARCHAR, election VARCHAR)
SELECT MAX(ansi_code) FROM table_name_63 WHERE water__sqmi_ = 0 AND township = "van meter" AND longitude > -98.444062
Van Meter has a water(sqmi) of 0 and a longitude larger than -98.444062, what was their highest ANSI code?
CREATE TABLE table_name_63 (ansi_code INTEGER, longitude VARCHAR, water__sqmi_ VARCHAR, township VARCHAR)
SELECT MIN(ansi_code) FROM table_18600760_13
What is the smallest ansi code?
CREATE TABLE table_18600760_13 (ansi_code INTEGER)
SELECT method FROM table_name_15 WHERE round > 3
Which method was used in a round greater than 3?
CREATE TABLE table_name_15 (method VARCHAR, round INTEGER)
SELECT MIN(gold) FROM table_name_60 WHERE nation = "united states" AND total > 5
Which Gold has a Nation of united states, and a Total larger than 5?
CREATE TABLE table_name_60 (gold INTEGER, nation VARCHAR, total VARCHAR)
SELECT year FROM table_name_77 WHERE nominee = "jack cole"
What year was jack cole nominated?
CREATE TABLE table_name_77 (year VARCHAR, nominee VARCHAR)
SELECT 1989 AS _90 FROM table_17968274_2 WHERE team = "Vélez Sársfield"
How many games were played by the Vélez Sársfield team from 1989-90?
CREATE TABLE table_17968274_2 (team VARCHAR)
SELECT nationality FROM table_name_37 WHERE lane > 4 AND rank > 5
What is the Nationality of the Swimmer in Lane 4 or larger with a Rank of 5 or more?
CREATE TABLE table_name_37 (nationality VARCHAR, lane VARCHAR, rank VARCHAR)
SELECT original_air_date FROM table_18012738_1 WHERE ai___percentage_ = 83
Name the original air date for ai% for 83
CREATE TABLE table_18012738_1 (original_air_date VARCHAR, ai___percentage_ VARCHAR)
SELECT SUM(average) FROM table_name_28 WHERE interview = 9.465 AND evening_gown < 9.454
What is the average when interview is 9.465 and evening gown is less than 9.454?
CREATE TABLE table_name_28 (average INTEGER, interview VARCHAR, evening_gown VARCHAR)