answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT AVG(cuts_made) FROM table_name_54 WHERE top_25 < 2
For top-25 values under 2, what is the average number of cuts made?
CREATE TABLE table_name_54 (cuts_made INTEGER, top_25 INTEGER)
SELECT debut FROM table_1557974_1 WHERE birthplace = "Nara"
What are the debut year for wrestlers born in Nara?
CREATE TABLE table_1557974_1 (debut VARCHAR, birthplace VARCHAR)
SELECT T2.roomname FROM reservations AS T1 JOIN rooms AS T2 ON T1.room = T2.roomid GROUP BY T1.room HAVING COUNT(*) > 60
Find the names of rooms that have been reserved for more than 60 times.
CREATE TABLE rooms ( roomid text, roomname text, beds number, bedtype text, maxoccupancy number, baseprice number, decor text ) CREATE TABLE reservations ( code number, room text, checkin text, checkout text, rate number, lastname text, firstname text, adults...
SELECT election FROM table_name_26 WHERE seats > 57 AND dáil = "24th"
With a dail of 24th and more than 57 seats, what is the election?
CREATE TABLE table_name_26 (election VARCHAR, seats VARCHAR, dáil VARCHAR)
SELECT birthplace FROM table_1557974_1 WHERE debut = "2002-7"
Where were the wrestlers born who debuted in 2002-7?
CREATE TABLE table_1557974_1 (birthplace VARCHAR, debut VARCHAR)
SELECT "Week" FROM table_14551 WHERE "Attendance" = '90,138'
Which week's game had an attendance of 90,138?
CREATE TABLE table_14551 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Game site" text, "NFL Recap" text, "Record" text, "Attendance" text )
SELECT MAX(seats) FROM table_name_61 WHERE share_of_votes = "45.3%" AND total_seats < 166
with shares of 45.3% and total seats less than 166. what is the greatest number of seat?
CREATE TABLE table_name_61 (seats INTEGER, share_of_votes VARCHAR, total_seats VARCHAR)
SELECT career_and_other_notes FROM table_1557974_1 WHERE stable = "Oguruma"
What are the career and other notes for wrestlers whose stable is oguruma?
CREATE TABLE table_1557974_1 (career_and_other_notes VARCHAR, stable VARCHAR)
SELECT COUNT("Operating Expenditures") FROM table_54364 WHERE "All Receipts" = '44,259,386'
How many Operating Expenditures have Receipts of 44,259,386?
CREATE TABLE table_54364 ( "Candidate" text, "Contributions" real, "Loans Received" real, "All Receipts" real, "Operating Expenditures" real, "All Disbursements" real )
SELECT MAX(total_seats) FROM table_name_82 WHERE seats = 77 AND share_of_votes = "44.2%"
with a share of 44.2% and 77 seats, what is the greatest seat total?
CREATE TABLE table_name_82 (total_seats INTEGER, seats VARCHAR, share_of_votes VARCHAR)
SELECT kinship FROM table_15568886_14 WHERE proto_malayo_polynesian = "*t-ina"
Name the kinship for *t-ina
CREATE TABLE table_15568886_14 (kinship VARCHAR, proto_malayo_polynesian VARCHAR)
SELECT Name, COUNT(Name) FROM train GROUP BY Name ORDER BY Name
Give me a bar chart for how many name of each name, could you show x-axis from low to high order please?
CREATE TABLE train ( Train_ID int, Train_Num text, Name text, From text, Arrival text, Railway_ID int ) CREATE TABLE manager ( Manager_ID int, Name text, Country text, Working_year_starts text, Age int, Level int ) CREATE TABLE railway_manage ( Railway_ID int, M...
SELECT long FROM table_name_60 WHERE year = "1994"
What is the long in 1994?
CREATE TABLE table_name_60 (long VARCHAR, year VARCHAR)
SELECT COUNT(proto_austronesian) FROM table_15568886_14 WHERE proto_oceanic = "*natu"
Name the number of proto austronesian for *natu
CREATE TABLE table_15568886_14 (proto_austronesian VARCHAR, proto_oceanic VARCHAR)
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (((flight.departure_time BETWEEN 0 AND 1200) AND date_day.day_number = 7 AND date_day.month_number = 7 AND date_day.year = 1991 AND days.day_name...
yes i would like to find what flights are available from ATLANTA to BOSTON on the morning of 7 7
CREATE TABLE city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, time_zone_code varchar ) CREATE TABLE date_day ( month_number int, day_number int, year int, day_name varchar ) CREATE TABLE restriction ( restriction_code text, advance_purc...
SELECT team FROM table_name_6 WHERE long = "67"
Which team has a long of 67?
CREATE TABLE table_name_6 (team VARCHAR, long VARCHAR)
SELECT proto_austronesian FROM table_15568886_14 WHERE kinship = "father"
Name the ptor-austronesian for father
CREATE TABLE table_15568886_14 (proto_austronesian VARCHAR, kinship VARCHAR)
SELECT prescriptions.startdate FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 94293) AND prescriptions.route = 'ivpca' AND STRFTIME('%y-%m', prescriptions.startdate) = '2104-01' ORDER BY prescriptions.startdate LIMIT 1
when the first time patient 94293 was prescribed a medication in 01/2104 via the ivpca route?
CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit text, wardid number, intime time, ...
SELECT ravg FROM table_name_27 WHERE ratt = "9"
What is the RAvg of the year with Ratt of 9?
CREATE TABLE table_name_27 (ravg VARCHAR, ratt VARCHAR)
SELECT proto_oceanic FROM table_15568886_14 WHERE proto_polynesian = "*fafine"
Name the proto oceanic for *fafine
CREATE TABLE table_15568886_14 (proto_oceanic VARCHAR, proto_polynesian VARCHAR)
SELECT T2.country FROM city AS T1 JOIN country AS T2 ON T1.country_id = T2.country_id GROUP BY T2.country_id HAVING COUNT(*) >= 3
What are the countries that contain 3 or more cities?
CREATE TABLE staff ( staff_id number, first_name text, last_name text, address_id number, picture others, email text, store_id number, active boolean, username text, password text, last_update time ) CREATE TABLE actor ( actor_id number, first_name text, last_nam...
SELECT ratt FROM table_name_97 WHERE long = "78"
What is the Ratt of the year with a 78 long?
CREATE TABLE table_name_97 (ratt VARCHAR, long VARCHAR)
SELECT proto_austronesian FROM table_15568886_14 WHERE proto_oceanic = "*pine, *papine"
Name the proto-austrronesian for *pine, *papine
CREATE TABLE table_15568886_14 (proto_austronesian VARCHAR, proto_oceanic VARCHAR)
SELECT "U.S. viewers (million)" FROM table_74354 WHERE "Title" = 'Fake Me Home Tonight'
How many million U.S. viewers saw 'Fake Me Home Tonight'?
CREATE TABLE table_74354 ( "No." real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text, "U.S. viewers (million)" text )
SELECT team FROM table_name_64 WHERE ravg = "1.3"
Which team has a Ravg of 1.3?
CREATE TABLE table_name_64 (team VARCHAR, ravg VARCHAR)
SELECT written_by FROM table_15584067_4 WHERE no_in_series = 47
Name who wrote number 47
CREATE TABLE table_15584067_4 (written_by VARCHAR, no_in_series VARCHAR)
SELECT state, acc_type, credit_score FROM customer WHERE no_of_loans = 0
Find the state, account type, and credit score of the customer whose number of loan is 0.
CREATE TABLE bank ( branch_id number, bname text, no_of_customers number, city text, state text ) CREATE TABLE customer ( cust_id text, cust_name text, acc_type text, acc_bal number, no_of_loans number, credit_score number, branch_id number, state text ) CREATE TABL...
SELECT rate FROM table_name_55 WHERE year = "17 years"
What is the rate of 17 years?
CREATE TABLE table_name_55 (rate VARCHAR, year VARCHAR)
SELECT MAX(mass__kg_) FROM table_1558077_2
What is the largest mass(kg)?
CREATE TABLE table_1558077_2 (mass__kg_ INTEGER)
SELECT revenues FROM table_name_43 WHERE tenure = "1854-1855"
What is the Revenues during Tenure 1854-1855?
CREATE TABLE table_name_43 ( revenues VARCHAR, tenure VARCHAR )
SELECT samurai FROM table_name_97 WHERE stampede = "t. mask"
Name the samurai for stampede of t. mask
CREATE TABLE table_name_97 (samurai VARCHAR, stampede VARCHAR)
SELECT college FROM table_15582870_1 WHERE choice = 143
Which college did draft pick #143 attend?
CREATE TABLE table_15582870_1 (college VARCHAR, choice VARCHAR)
SELECT poles FROM table_name_94 WHERE wins > 0 AND podiums < 17 AND fastest_laps = 0
Which Poles has a Wins larger than 0, and a Podiums smaller than 17?
CREATE TABLE table_name_94 ( poles VARCHAR, fastest_laps VARCHAR, wins VARCHAR, podiums VARCHAR )
SELECT series FROM table_name_3 WHERE home = "toronto" AND date = "may 18"
Which series is based in Toronto on may 18?
CREATE TABLE table_name_3 (series VARCHAR, home VARCHAR, date VARCHAR)
SELECT weight FROM table_15582870_1 WHERE college = "Arkansas"
How heavy were the players who attended Arkansas?
CREATE TABLE table_15582870_1 (weight VARCHAR, college VARCHAR)
SELECT opponent FROM table_name_71 WHERE time = "2:01"
Who was the opponent when the fight had a time of 2:01?
CREATE TABLE table_name_71 ( opponent VARCHAR, time VARCHAR )
SELECT SUM(attendance) FROM table_name_43 WHERE home = "vancouver" AND date = "may 22"
What is the combined crowd in Vancouver on may 22?
CREATE TABLE table_name_43 (attendance INTEGER, home VARCHAR, date VARCHAR)
SELECT college FROM table_15582870_1 WHERE weight = 207
Which college did the player weighing 207 pounds attend?
CREATE TABLE table_15582870_1 (college VARCHAR, weight VARCHAR)
SELECT DISTINCT flight.flight_id FROM airport, airport_service, city, flight WHERE (airport.airport_code = 'JFK' AND city.city_code = airport_service.city_code AND city.city_name = 'MIAMI' AND flight.from_airport = airport.airport_code AND flight.to_airport = airport_service.airport_code) AND flight.airline_code = 'DL'
show DL flights from JFK to MIAMI
CREATE TABLE restriction ( restriction_code text, advance_purchase int, stopovers text, saturday_stay_required text, minimum_stay int, maximum_stay int, application text, no_discounts text ) CREATE TABLE flight_stop ( flight_id int, stop_number int, stop_days text, stop_...
SELECT 2012 FROM table_name_82 WHERE 2005 = "314"
Tell me the 2012 when 2005 is 314
CREATE TABLE table_name_82 (Id VARCHAR)
SELECT written_by FROM table_15584067_7 WHERE us_viewers__million_ = "1.81"
Name who wrote the episode when the viewers was 1.81
CREATE TABLE table_15584067_7 (written_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT asset_make, COUNT(asset_make) FROM Assets GROUP BY asset_make ORDER BY asset_make
Show the number of assets and group by asset make in a bar chart, and could you display in ascending by the X-axis?
CREATE TABLE Engineer_Skills ( engineer_id INTEGER, skill_id INTEGER ) CREATE TABLE Engineer_Visits ( engineer_visit_id INTEGER, contact_staff_id INTEGER, engineer_id INTEGER, fault_log_entry_id INTEGER, fault_status VARCHAR(10), visit_start_datetime DATETIME, visit_end_datetime DAT...
SELECT position FROM table_name_85 WHERE caps = 13
What position does the player with 13 caps play?
CREATE TABLE table_name_85 (position VARCHAR, caps VARCHAR)
SELECT directed_by FROM table_15584067_7 WHERE no_in_series = "114"
Name who directed the 114 episode in the series
CREATE TABLE table_15584067_7 (directed_by VARCHAR, no_in_series VARCHAR)
SELECT "Time" FROM table_42554 WHERE "Method" = 'tko (strikes)'
What was the time of the bout that ended in a TKO (strikes)?
CREATE TABLE table_42554 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Time" text, "Location" text )
SELECT SUM(caps) FROM table_name_30 WHERE player = "mike macdonald"
How many caps for mike macdonald?
CREATE TABLE table_name_30 (caps INTEGER, player VARCHAR)
SELECT COUNT(original_air_date) FROM table_15584067_7 WHERE no_in_series = "102"
Name the total number of air dates for 102 episode
CREATE TABLE table_15584067_7 (original_air_date VARCHAR, no_in_series VARCHAR)
SELECT COUNT(player) FROM table_24549777_1 WHERE high_checkout = 84
How man players checked out at 84?
CREATE TABLE table_24549777_1 ( player VARCHAR, high_checkout VARCHAR )
SELECT position FROM table_name_1 WHERE round < 3
Tell me the position for round less than 3
CREATE TABLE table_name_1 (position VARCHAR, round INTEGER)
SELECT written_by FROM table_15584067_7 WHERE no_in_season = "11"
Name who wrote the 11 number in the season
CREATE TABLE table_15584067_7 (written_by VARCHAR, no_in_season VARCHAR)
SELECT SUM("Founded") FROM table_48357 WHERE "Stadium" = 'hiram bithorn stadium' AND "Club" = 'atlético de san juan fc'
What year was the team Club of atl tico de san juan fc who plays at hiram bithorn stadium founded.
CREATE TABLE table_48357 ( "Club" text, "Home city" text, "Stadium" text, "Founded" real, "Seasons in PRSL" text )
SELECT nationality FROM table_name_19 WHERE position = "d"
Name the nationality for d
CREATE TABLE table_name_19 (nationality VARCHAR, position VARCHAR)
SELECT award_name FROM table_15584199_3 WHERE team_name = "BLACK OCEAN CURRENT"
Name the award name for black ocean current
CREATE TABLE table_15584199_3 (award_name VARCHAR, team_name VARCHAR)
SELECT "Record" FROM table_47342 WHERE "Game" < '24' AND "Location" = 'miami arena'
What was the record when they played in the Miami Arena, before game 24?
CREATE TABLE table_47342 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "Location" text, "Record" text )
SELECT fuel__trans FROM table_name_15 WHERE colour = "grey & red"
What sort of Fuel/Trans does the Grey & Red locomotive have?
CREATE TABLE table_name_15 (fuel__trans VARCHAR, colour VARCHAR)
SELECT position FROM table_15592941_1 WHERE college = "Florida State"
What position(s) do players from florida state play?
CREATE TABLE table_15592941_1 (position VARCHAR, college VARCHAR)
SELECT AVG(total) FROM table_name_96 WHERE lecturers = 6 AND professors < 48
What is the total in the case where theere are 6 lecturers and fewer than 48 professors?
CREATE TABLE table_name_96 ( total INTEGER, lecturers VARCHAR, professors VARCHAR )
SELECT status FROM table_name_34 WHERE name = "the cub/john"
What is the status of the Cub/John locomotive?
CREATE TABLE table_name_34 (status VARCHAR, name VARCHAR)
SELECT weight FROM table_15592941_1 WHERE player_name = "Geno Hayes"
How much does geno hayes weigh?
CREATE TABLE table_15592941_1 (weight VARCHAR, player_name VARCHAR)
SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_...
since 2100, what are the three most frequently prescribed drugs to female patients aged 30s within the same hospital visit after they have been diagnosed with atrial fibrillation?
CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code te...
SELECT built FROM table_name_22 WHERE fuel__trans = "diesel-electric"
What is the manufacturer, found under the Built column, that made locomotives with a Fuel/Trans of diesel-electric?
CREATE TABLE table_name_22 (built VARCHAR, fuel__trans VARCHAR)
SELECT college FROM table_15592941_1 WHERE player_name = "Jeremy Zuttah"
What college did jeremy zuttah attend?
CREATE TABLE table_15592941_1 (college VARCHAR, player_name VARCHAR)
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%kazakhstan%' OR UPPER(Location) LIKE '%KZ' ORDER BY Reputation DESC
Top SO Users from KZ.
CREATE TABLE Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Location text, AboutMe text, Views number, UpVotes number, DownVotes number, ProfileImageUrl text, EmailHash text, AccountId number ) CRE...
SELECT built FROM table_name_8 WHERE wheels = "0-4-0" AND status = "in service"
What is found in the Built column of the locomotive with 0-4-0 wheels that is still in service?
CREATE TABLE table_name_8 (built VARCHAR, wheels VARCHAR, status VARCHAR)
SELECT MAX(pa) FROM table_15597975_2 WHERE stolen_ends = 5
When the stolen ends equal 5 whats the amount of pa?
CREATE TABLE table_15597975_2 (pa INTEGER, stolen_ends VARCHAR)
SELECT treatment.treatmenttime FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-25994' AND NOT patient.hospitaldischargetime IS NULL ORDER BY...
when was the first time during their first hospital encounter that patient 027-25994 had a surgical drains - jackson-pratt procedure?
CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE treatment ( treatmentid number...
SELECT colour FROM table_name_42 WHERE built = "minirail 1954"
What is the color of the locomotive built by Minirail 1954?
CREATE TABLE table_name_42 (colour VARCHAR, built VARCHAR)
SELECT position_in_2013 FROM table_1560673_1 WHERE first_season = 2014
What position is the player whose first year is 2014
CREATE TABLE table_1560673_1 (position_in_2013 VARCHAR, first_season VARCHAR)
SELECT population FROM table_name_65 WHERE former_local_authority = "audenshaw urban district"
What was the population of the area that was formerly under the authority of the Audenshaw Urban District?
CREATE TABLE table_name_65 ( population VARCHAR, former_local_authority VARCHAR )
SELECT COUNT(round) FROM table_name_65 WHERE res = "win" AND event = "sf 5: stadium"
What's the total number of rounds with a win result at the sf 5: stadium event?
CREATE TABLE table_name_65 (round VARCHAR, res VARCHAR, event VARCHAR)
SELECT position_in_2013 FROM table_1560673_1 WHERE number_of_seasons_in_second_tier = "29"
What was the players position in 2013 who had 29 seasons in the second tier
CREATE TABLE table_1560673_1 (position_in_2013 VARCHAR, number_of_seasons_in_second_tier VARCHAR)
SELECT labevents.charttime FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 65401) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'chloride') AND DATETIME(labevents.charttime, 'start of year') = DATETIME(CURREN...
when was the first time that patient 65401 has the minimum chloride in 10/this year?
CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE admissions ( row_id number, subject_id number, ...
SELECT location FROM table_name_26 WHERE opponent = "fábio maldonado"
What location was fábio maldonado the opponent at?
CREATE TABLE table_name_26 (location VARCHAR, opponent VARCHAR)
SELECT first_season FROM table_1560673_1 WHERE club = "Syrianska FC"
What was the first season for Syrianska FC
CREATE TABLE table_1560673_1 (first_season VARCHAR, club VARCHAR)
SELECT EMPLOYEE_ID, COMMISSION_PCT FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, return a scatter chart about the correlation between employee_id and commission_pct .
CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25...
SELECT COUNT(final_rank) FROM table_name_37 WHERE rank_in_fs = 3 AND rank_in_sp > 4
How many skaters have a Rank in FS of 3, and a Rank in SP larger than 4?
CREATE TABLE table_name_37 (final_rank VARCHAR, rank_in_fs VARCHAR, rank_in_sp VARCHAR)
SELECT MIN(first_season) FROM table_1560673_1
What was the earliest season recorded for any team
CREATE TABLE table_1560673_1 (first_season INTEGER)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "S/P FALL" AND lab.flag = "delta"
Find out the number of patients with s/p fall as their primary disease who had delta abnormal lab test status.
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, ...
SELECT AVG(rank_in_sp) FROM table_name_92 WHERE rank_in_fs > 2 AND final_rank > 5
What is the average SP rank for skaters with a Rank in FS larger than 2, and a Final Rank larger than 5?
CREATE TABLE table_name_92 (rank_in_sp INTEGER, rank_in_fs VARCHAR, final_rank VARCHAR)
SELECT MAX(points_for) FROM table_15607589_2 WHERE date = "October 11"
Name the number of points for october 11
CREATE TABLE table_15607589_2 (points_for INTEGER, date VARCHAR)
SELECT AVG("Week") FROM table_64794 WHERE "Opponent" = 'green bay packers'
What is the Week of the game against Green Bay Packers?
CREATE TABLE table_64794 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" text )
SELECT tournament FROM table_name_69 WHERE 1972 = "a" AND 1975 = "2r"
What tournament is listed as A in 1972 and 2R in 1975?
CREATE TABLE table_name_69 (tournament VARCHAR)
SELECT date FROM table_15607589_2 WHERE week = 9
Name the date for week 9
CREATE TABLE table_15607589_2 (date VARCHAR, week VARCHAR)
SELECT COUNT(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = "lead"
How many songs have a lead vocal?
CREATE TABLE vocals ( songid VARCHAR ) CREATE TABLE songs ( songid VARCHAR )
SELECT career_w_l FROM table_name_82 WHERE 1976 = "a"
What is theW-L of the tournament listed as A for 1976?
CREATE TABLE table_name_82 (career_w_l VARCHAR)
SELECT points_against FROM table_15607589_2 WHERE date = "November 7"
Name the points against for november 7
CREATE TABLE table_15607589_2 (points_against VARCHAR, date VARCHAR)
SELECT boat_builder FROM table_name_42 WHERE year_built = "1910/11" AND number = 39
What is the boat builder for a boat built in 1910/11 and a number of 39?
CREATE TABLE table_name_42 ( boat_builder VARCHAR, year_built VARCHAR, number VARCHAR )
SELECT 1977 FROM table_name_12 WHERE tournament = "us open"
What is the listing for the US Open in 1977?
CREATE TABLE table_name_12 (tournament VARCHAR)
SELECT points_against FROM table_15607589_2 WHERE date = "November 14"
Name the points against for november 14
CREATE TABLE table_15607589_2 (points_against VARCHAR, date VARCHAR)
SELECT city, COUNT(*) FROM station GROUP BY city ORDER BY city DESC
List the name and the number of stations for all the cities that have at least 15 stations Show bar chart, and order by the x axis in desc.
CREATE TABLE weather ( date TEXT, max_temperature_f INTEGER, mean_temperature_f INTEGER, min_temperature_f INTEGER, max_dew_point_f INTEGER, mean_dew_point_f INTEGER, min_dew_point_f INTEGER, max_humidity INTEGER, mean_humidity INTEGER, min_humidity INTEGER, max_sea_level_pre...
SELECT career_w_l FROM table_name_23 WHERE 1968 = "a" AND 1974 = "4r"
What is the career W-L of the tournament that is listed as A in 1968 and 4R in 1974?
CREATE TABLE table_name_23 (career_w_l VARCHAR)
SELECT first_downs FROM table_15607589_2 WHERE points_against = 0
Name the first downs for points against being 0
CREATE TABLE table_15607589_2 (first_downs VARCHAR, points_against VARCHAR)
SELECT MAX(overall) FROM table_name_71 WHERE college = "kansas state" AND pick > 35
When Kansas State had a pick of over 35, what's the highest Overall pick found?
CREATE TABLE table_name_71 ( overall INTEGER, college VARCHAR, pick VARCHAR )
SELECT combined_consumption FROM table_name_60 WHERE name = "1.6 16v"
What is the combined consumption of 1.6 16v?
CREATE TABLE table_name_60 (combined_consumption VARCHAR, name VARCHAR)
SELECT record FROM table_15607589_2 WHERE opponent = "New York Giants"
Name the record for new york giants
CREATE TABLE table_15607589_2 (record VARCHAR, opponent VARCHAR)
SELECT LAST_NAME, MANAGER_ID FROM employees
Create a bar chart showing manager_id across last name
CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE locations ( LOCAT...
SELECT power FROM table_name_76 WHERE combined_consumption = "(gas/ethanol)" AND code = "k7m hi-torque"
What is the power of the engine with a combined consumption of (gas/ethanol) and the k7m hi-torque code?
CREATE TABLE table_name_76 (power VARCHAR, combined_consumption VARCHAR, code VARCHAR)
SELECT MIN(purse___us) AS $__ FROM table_15618241_1 WHERE year = 2011
Name the least purse for 2011
CREATE TABLE table_15618241_1 (purse___us INTEGER, year VARCHAR)
SELECT catalog_entry_name, COUNT(catalog_entry_name) FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.catalog_level_number = "8" GROUP BY catalog_entry_name
What are the names of catalog entries with level number 8, and count them by a bar chart
CREATE TABLE Catalogs ( catalog_id INTEGER, catalog_name VARCHAR(50), catalog_publisher VARCHAR(80), date_of_publication DATETIME, date_of_latest_revision DATETIME ) CREATE TABLE Attribute_Definitions ( attribute_id INTEGER, attribute_name VARCHAR(30), attribute_data_type VARCHAR(10) ) ...
SELECT combined_consumption FROM table_name_85 WHERE code = "k9k 796"
What is the combined consumption of the engine with the code k9k 796?
CREATE TABLE table_name_85 (combined_consumption VARCHAR, code VARCHAR)