answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT shot__percentage FROM table_1644876_2 WHERE locale = Switzerland
What are the shot percentages for teams that played in switzerland?
CREATE TABLE table_1644876_2 (shot__percentage VARCHAR, locale VARCHAR, Switzerland VARCHAR)
SELECT grade, COUNT(DISTINCT classroom), COUNT(*) FROM list GROUP BY grade
For each grade, report the grade, the number of classrooms in which it is taught and the total number of students in the grade.
CREATE TABLE list (grade VARCHAR, classroom VARCHAR)
SELECT "Team classification" FROM table_6000 WHERE "Combination classification" = 'egoi martínez' AND "Winner" = 'tom boonen'
Which Team classification has a Combination classification of egoi mart nez, and a Winner of tom boonen?
CREATE TABLE table_6000 ( "Stage" text, "Winner" text, "General classification" text, "Points classification" text, "Mountains classification" text, "Combination classification" text, "Team classification" text )
SELECT MIN(60 AS _to_64) FROM table_16457934_4
what is the minimum of 60 -64?
CREATE TABLE table_16457934_4 (Id VARCHAR)
SELECT classroom, COUNT(DISTINCT grade) FROM list GROUP BY classroom
For each classroom, report the classroom number and the number of grades using it.
CREATE TABLE list (classroom VARCHAR, grade VARCHAR)
SELECT MAX("Episodes") FROM table_11144 WHERE "Season Premiere" = 'january 3, 2007'
Which series has a season premiere on January 3, 2007 with the most episodes?
CREATE TABLE table_11144 ( "Season" real, "Episodes" real, "Originally aired" text, "Season Premiere" text, "Season Finale" text, "DVD release date" text )
SELECT COUNT(province) FROM table_16489766_2 WHERE chinese = "重庆"
What province has the Chinese translation 重庆?
CREATE TABLE table_16489766_2 (province VARCHAR, chinese VARCHAR)
SELECT classroom FROM list GROUP BY classroom ORDER BY COUNT(*) DESC LIMIT 1
Which classroom has the most students?
CREATE TABLE list (classroom VARCHAR)
SELECT opposition FROM table_name_39 WHERE stadium = "11,682 excl. exhibition match"
Who was the opposition at 11,682 excl. exhibition match?
CREATE TABLE table_name_39 ( opposition VARCHAR, stadium VARCHAR )
SELECT COUNT(administrative_population__2010_) FROM table_16489766_2 WHERE city = "Shanghai"
What is the total administrative population of Shanghai?
CREATE TABLE table_16489766_2 (administrative_population__2010_ VARCHAR, city VARCHAR)
SELECT classroom, COUNT(*) FROM list GROUP BY classroom
Report the number of students in each classroom.
CREATE TABLE list (classroom VARCHAR)
SELECT "Time" FROM table_32293 WHERE "Epicenter" = 'bam'
What is the Time when the Epicenter was Bam?
CREATE TABLE table_32293 ( "Date" text, "Time" text, "Epicenter" text, "Magnitude" text, "Fatalities" text, "Name" text )
SELECT MAX(administrative_population__2010_) FROM table_16489766_2 WHERE chinese = "昆明"
What is the maximum administrative population of the city with Chinese translation 昆明?
CREATE TABLE table_16489766_2 (administrative_population__2010_ INTEGER, chinese VARCHAR)
SELECT classroom, COUNT(*) FROM list WHERE grade = "0" GROUP BY classroom
For each grade 0 classroom, report the total number of students.
CREATE TABLE list (classroom VARCHAR, grade VARCHAR)
SELECT COUNT(interview) FROM table_name_19 WHERE country = "louisiana" AND swimsuit > 9.1
What is the interview number in Louisiana, and the swimsuit number is more than 9.1?
CREATE TABLE table_name_19 ( interview VARCHAR, country VARCHAR, swimsuit VARCHAR )
SELECT COUNT(urban_population__2010_) FROM table_16489766_2 WHERE pinyin = "Chángchūn"
What is the total urban population of the city with the pinyin translation chángchūn?
CREATE TABLE table_16489766_2 (urban_population__2010_ VARCHAR, pinyin VARCHAR)
SELECT classroom, COUNT(*) FROM list WHERE grade = "4" GROUP BY classroom
Report the total number of students for each fourth-grade classroom.
CREATE TABLE list (classroom VARCHAR, grade VARCHAR)
SELECT "Away team" FROM table_41721 WHERE "Home team" = 'bolton wanderers'
Where Bolton Wanderers is the home team, who is the away team?
CREATE TABLE table_41721 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Date" text, "Attendance" text )
SELECT player FROM table_16494599_1 WHERE years_for_grizzlies = "2009-2013"
What player was on the Grizzlies from 2009-2013?
CREATE TABLE table_16494599_1 (player VARCHAR, years_for_grizzlies VARCHAR)
SELECT T2.firstname, T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom GROUP BY T2.firstname, T2.lastname ORDER BY COUNT(*) DESC LIMIT 1
Find the name of the teacher who teaches the largest number of students.
CREATE TABLE list (classroom VARCHAR); CREATE TABLE teachers (firstname VARCHAR, lastname VARCHAR, classroom VARCHAR)
SELECT demographic.days_stay, demographic.expire_flag FROM demographic WHERE demographic.name = "Elizabeth Bateman"
what is days of hospital stay and death status of subject name elizabeth bateman?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ...
SELECT nationality FROM table_16494599_1 WHERE school_club_team = "South Florida"
What nationality is the player who went to school at South Florida?
CREATE TABLE table_16494599_1 (nationality VARCHAR, school_club_team VARCHAR)
SELECT COUNT(*), classroom FROM list GROUP BY classroom
Find the number of students in one classroom.
CREATE TABLE list (classroom VARCHAR)
SELECT demographic.name, demographic.diagnosis FROM demographic WHERE demographic.subject_id = "7578"
let me know the primary disease and name of the patient with patient id 7578.
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, ...
SELECT position FROM table_16494599_1 WHERE years_for_grizzlies = "1995-1996"
What position is the player who was on the Grizzlies from 1995-1996?
CREATE TABLE table_16494599_1 (position VARCHAR, years_for_grizzlies VARCHAR)
SELECT COUNT(*) FROM company WHERE Headquarters = 'USA'
How many companies are headquartered in the US?
CREATE TABLE company (Headquarters VARCHAR)
SELECT "1989" FROM table_41090 WHERE "1999" = 'f' AND "1994" = '2r'
What is 1989, when 1999 is F, and when 1994 is 2R?
CREATE TABLE table_41090 ( "Tournament" text, "1987" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text...
SELECT COUNT(no) FROM table_16494599_1 WHERE years_for_grizzlies = "2000-2002"
How may players played for the Grizzlies from 2000-2002?
CREATE TABLE table_16494599_1 (no VARCHAR, years_for_grizzlies VARCHAR)
SELECT Name FROM company ORDER BY Sales_in_Billion
List the names of companies by ascending number of sales.
CREATE TABLE company (Name VARCHAR, Sales_in_Billion VARCHAR)
SELECT winning_score FROM table_name_4 WHERE date = "7 jun 1976"
What was the winning score on 7 jun 1976?
CREATE TABLE table_name_4 ( winning_score VARCHAR, date VARCHAR )
SELECT miles__km_ FROM table_16493961_1 WHERE date = "June 7"
Name the miles for june 7
CREATE TABLE table_16493961_1 (miles__km_ VARCHAR, date VARCHAR)
SELECT Headquarters, Industry FROM company
What are the headquarters and industries of all companies?
CREATE TABLE company (Headquarters VARCHAR, Industry VARCHAR)
SELECT "Obama%" FROM table_23747 WHERE "McCain#" = '3648'
What percentage of the votes did Obama get in the county where McCain got 3648 votes?
CREATE TABLE table_23747 ( "County" text, "Obama%" text, "Obama#" real, "McCain%" text, "McCain#" real, "Total" real )
SELECT driver FROM table_16493961_1 WHERE race_time = "2:34:21"
Name the driver for race time being 2:34:21
CREATE TABLE table_16493961_1 (driver VARCHAR, race_time VARCHAR)
SELECT Name FROM company WHERE Industry = "Banking" OR Industry = "Retailing"
Show the names of companies in the banking or retailing industry?
CREATE TABLE company (Name VARCHAR, Industry VARCHAR)
SELECT DISTINCT course.department, course.name, course.number, program_course.workload FROM course INNER JOIN student_record ON student_record.course_id = course.course_id INNER JOIN program_course ON program_course.course_id = course.course_id WHERE course.department = 'NERS' AND program_course.workload = (SELECT MAX(...
Have I taken any courses that are among the most difficult in the NERS department ?
CREATE TABLE semester ( semester_id int, semester varchar, year int ) CREATE TABLE requirement ( requirement_id int, requirement varchar, college varchar ) CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE ta ( campus_job_id int, student_id int...
SELECT driver FROM table_16493961_1 WHERE date = "June 23" AND team = "Penske Racing"
Name the driver for june 23 and team of penske racing
CREATE TABLE table_16493961_1 (driver VARCHAR, date VARCHAR, team VARCHAR)
SELECT MAX(Market_Value_in_Billion), MIN(Market_Value_in_Billion) FROM company
What is the maximum and minimum market value of companies?
CREATE TABLE company (Market_Value_in_Billion INTEGER)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Neonatal hypoglycemia" AND lab."CATEGORY" = "Chemistry"
how many patients whose diagnoses long title is neonatal hypoglycemia and lab test category is chemistry?
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) C...
SELECT directed_by FROM table_16471432_4 WHERE series__number = 50
Who was the director for the episode in season #50?
CREATE TABLE table_16471432_4 (directed_by VARCHAR, series__number VARCHAR)
SELECT Headquarters FROM company ORDER BY Sales_in_Billion DESC LIMIT 1
What is the headquarter of the company with the largest sales?
CREATE TABLE company (Headquarters VARCHAR, Sales_in_Billion VARCHAR)
SELECT STRFTIME('%j', admissions.dischtime) - STRFTIME('%j', admissions.admittime) FROM admissions WHERE admissions.subject_id = 15135 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1
what was the length of stay of patient 15135's last hospital stay?
CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id numbe...
SELECT COUNT(directed_by) FROM table_16471432_4 WHERE series__number = 62
How many directors were there in total for the episode with series #62?
CREATE TABLE table_16471432_4 (directed_by VARCHAR, series__number VARCHAR)
SELECT Headquarters, COUNT(*) FROM company GROUP BY Headquarters
Show the different headquarters and number of companies at each headquarter.
CREATE TABLE company (Headquarters VARCHAR)
SELECT closed FROM table_name_6 WHERE opened < 1877 AND distance_from_wellington = "2.44km"
Opened prior to 1877 only 2.44km from Wellington, when did this station close?
CREATE TABLE table_name_6 ( closed VARCHAR, opened VARCHAR, distance_from_wellington VARCHAR )
SELECT COUNT(nationality) FROM table_16494599_10 WHERE school_club_team = "Duke"
What are the nationalities of players who attended duke?
CREATE TABLE table_16494599_10 (nationality VARCHAR, school_club_team VARCHAR)
SELECT Headquarters FROM company GROUP BY Headquarters ORDER BY COUNT(*) DESC LIMIT 1
Show the most common headquarter for companies.
CREATE TABLE company (Headquarters VARCHAR)
SELECT "Dennis Kucinich" FROM table_59428 WHERE "Classification" = 'democrat'
What is Dennis Kucinich, when Classification is 'Democrat'?
CREATE TABLE table_59428 ( "Classification" text, "% of all" text, "John Kerry" text, "John Edwards" text, "Dennis Kucinich" text )
SELECT COUNT(nationality) FROM table_16494599_10 WHERE player = "Casey Jacobsen"
How many nationalities does athlete Casey Jacobsen have?
CREATE TABLE table_16494599_10 (nationality VARCHAR, player VARCHAR)
SELECT Headquarters FROM company GROUP BY Headquarters HAVING COUNT(*) >= 2
Show the headquarters that have at least two companies.
CREATE TABLE company (Headquarters VARCHAR)
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, city AS CITY_0, city AS CITY_1, city AS CITY_2, flight, flight_stop WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER' AND CITY_2.cit...
in the month of december are there any flights from ATLANTA to DENVER that stop in BOSTON
CREATE TABLE flight_leg ( flight_id int, leg_number int, leg_flight int ) CREATE TABLE flight_stop ( flight_id int, stop_number int, stop_days text, stop_airport text, arrival_time int, arrival_airline text, arrival_flight_number int, departure_time int, departure_airlin...
SELECT player FROM table_16494599_10 WHERE school_club_team = "Stanford"
Who are the players that have attended Stanford?
CREATE TABLE table_16494599_10 (player VARCHAR, school_club_team VARCHAR)
SELECT Headquarters FROM company WHERE Industry = "Banking" INTERSECT SELECT Headquarters FROM company WHERE Industry = "Oil and gas"
Show the headquarters that have both companies in banking industry and companies in oil and gas industry.
CREATE TABLE company (Headquarters VARCHAR, Industry VARCHAR)
SELECT architecture FROM table_name_73 WHERE original_vehicle = "ford escort wagon"
What architecture type does the Ford Escort Wagon have?
CREATE TABLE table_name_73 ( architecture VARCHAR, original_vehicle VARCHAR )
SELECT COUNT(player) FROM table_16494599_10 WHERE position = "Guard"
How many athletes play the position of guard?
CREATE TABLE table_16494599_10 (player VARCHAR, position VARCHAR)
SELECT T3.Name, T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID
Show the names of companies and of employees.
CREATE TABLE company (Name VARCHAR, Company_ID VARCHAR); CREATE TABLE employment (People_ID VARCHAR, Company_ID VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR)
SELECT intakeoutput.intakeoutputtime FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-4471')) AND intakeoutput.cellpath LIKE '%output%'...
when did patient 005-4471 first had the tube feeding residual discarded (ml) output since 08/08/2102?
CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, ...
SELECT years_for_grizzlies FROM table_16494599_10 WHERE school_club_team = "Minnesota"
During what years did athletes who attended school in Minnesota play for the Grizzlies?
CREATE TABLE table_16494599_10 (years_for_grizzlies VARCHAR, school_club_team VARCHAR)
SELECT T3.Name, T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID ORDER BY T1.Year_working
Show names of companies and that of employees in descending order of number of years working for that employee.
CREATE TABLE people (Name VARCHAR, People_ID VARCHAR); CREATE TABLE company (Name VARCHAR, Company_ID VARCHAR); CREATE TABLE employment (People_ID VARCHAR, Company_ID VARCHAR, Year_working VARCHAR)
SELECT q.Id AS "post_link", h.Text AS "edited_tags", q.OwnerUserId AS "user_link", q.CreationDate AS "post_date", h.UserId AS "user_link", h.CreationDate AS "edit_date" FROM PostHistory AS h, Posts AS q WHERE h.PostId = q.Id AND h.PostHistoryTypeId = 6 AND h.Text LIKE '%<' + '##Tag##' + '>%' AND h.UserId != q.OwnerUser...
Questions where a given tag was added not by its author.
CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE PostsWithDeleted ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, OwnerDis...
SELECT COUNT(player) FROM table_16494599_2 WHERE school_club_team = "DePaul"
How many players went to depaul?
CREATE TABLE table_16494599_2 (player VARCHAR, school_club_team VARCHAR)
SELECT T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID WHERE T3.Sales_in_Billion > 200
Show the names of employees that work for companies with sales bigger than 200.
CREATE TABLE employment (People_ID VARCHAR, Company_ID VARCHAR); CREATE TABLE company (Company_ID VARCHAR, Sales_in_Billion INTEGER); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR)
SELECT common_of FROM table_1449176_1 WHERE rank = "9th"
What is the name of the 9th ranked common?
CREATE TABLE table_1449176_1 ( common_of VARCHAR, rank VARCHAR )
SELECT school_club_team FROM table_16494599_3 WHERE years_for_grizzlies = "2011"
What school did the player who was with the grizzles in 2011 attend?
CREATE TABLE table_16494599_3 (school_club_team VARCHAR, years_for_grizzlies VARCHAR)
SELECT T3.Name, COUNT(*) FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID GROUP BY T3.Name
Show the names of companies and the number of employees they have
CREATE TABLE company (Name VARCHAR, Company_ID VARCHAR); CREATE TABLE people (People_ID VARCHAR); CREATE TABLE employment (People_ID VARCHAR, Company_ID VARCHAR)
SELECT speed FROM table_name_65 WHERE rank > 8 AND rider = "ryan mccay"
What is Ryan McCay's speed that has a rank better than 8?
CREATE TABLE table_name_65 ( speed VARCHAR, rank VARCHAR, rider VARCHAR )
SELECT player FROM table_16494599_3 WHERE school_club_team = "Missouri"
What players attended missouri?
CREATE TABLE table_16494599_3 (player VARCHAR, school_club_team VARCHAR)
SELECT Name FROM people WHERE NOT People_ID IN (SELECT People_ID FROM employment)
List the names of people that are not employed by any company
CREATE TABLE employment (Name VARCHAR, People_ID VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR)
SELECT call_sign FROM table_name_95 WHERE city_of_license = "higgston, ga"
What Call sign has a City of license of higgston, ga?
CREATE TABLE table_name_95 ( call_sign VARCHAR, city_of_license VARCHAR )
SELECT position FROM table_16494599_4 WHERE school_club_team = "Seton Hall"
What position(s) does the player from seton hall play?
CREATE TABLE table_16494599_4 (position VARCHAR, school_club_team VARCHAR)
SELECT name FROM company WHERE Sales_in_Billion > 200 ORDER BY Sales_in_Billion, Profits_in_Billion DESC
list the names of the companies with more than 200 sales in the descending order of sales and profits.
CREATE TABLE company (name VARCHAR, Sales_in_Billion INTEGER, Profits_in_Billion VARCHAR)
SELECT (SELECT "date" FROM table_203_855 WHERE "city" = 'stockholm') - 3
how many days after september 3rd did brian perform in stockholm ?
CREATE TABLE table_203_855 ( id number, "date" text, "city" text, "venue" text, "member" text, "performance" text, "notes" text )
SELECT MIN(no) FROM table_16494599_4 WHERE years_for_grizzlies = "1999"
What number does the player who was with the grizzles in 1999 wear?
CREATE TABLE table_16494599_4 (no INTEGER, years_for_grizzlies VARCHAR)
SELECT COUNT(*) FROM film
How many film are there?
CREATE TABLE film (Id VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "SHORT TERM HOSPITAL" AND demographic.dob_year < "1821"
what is the number of patients born before 1821 who were discharged to skilled nursing facility?
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, ...
SELECT player FROM table_16494599_4 WHERE position = "Guard"
What players play guard?
CREATE TABLE table_16494599_4 (player VARCHAR, position VARCHAR)
SELECT DISTINCT Director FROM film
List the distinct director of all films.
CREATE TABLE film (Director VARCHAR)
SELECT "Date" FROM table_57405 WHERE "Away team score" = '11.22 (88)'
What was the date that an away team score 11.22 (88)?
CREATE TABLE table_57405 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT position FROM table_16494599_4 WHERE school_club_team = "Bowling Green"
What position(s) do players from bowling green play?
CREATE TABLE table_16494599_4 (position VARCHAR, school_club_team VARCHAR)
SELECT AVG(Gross_in_dollar) FROM film
What is the average ticket sales gross in dollars of films?
CREATE TABLE film (Gross_in_dollar INTEGER)
SELECT "years participated" FROM table_203_502 WHERE "team" = 'maine'
what are the number of years maine has participated ?
CREATE TABLE table_203_502 ( id number, "team" text, "titles" number, "runner-up" number, "third place" number, "fourth place" number, "years participated" number )
SELECT MAX(losses) FROM table_16512618_1 WHERE manager = "Leslie Mann"
Name the most losses for leslie mann
CREATE TABLE table_16512618_1 (losses INTEGER, manager VARCHAR)
SELECT Low_Estimate, High_Estimate FROM film_market_estimation
What are the low and high estimates of film markets?
CREATE TABLE film_market_estimation (Low_Estimate VARCHAR, High_Estimate VARCHAR)
SELECT COUNT("Vehicle") FROM table_27011 WHERE "Clean electric grid California (San Francisco)" = '100 g/mi (62 g/km)'
When 100 g/mi (62 g/km) is the clean electric grid california (san francisco) how many vehicles are there?
CREATE TABLE table_27011 ( "Vehicle" text, "Operating mode" text, "EPA rated All-electric range" text, "EPA rated combined fuel economy" text, "Clean electric grid California (San Francisco)" text, "U.S. national average electric mix" text, "Dirty electric grid Rocky Mountains (Denver)" text...
SELECT vacator FROM table_1651764_3 WHERE district = "New Jersey 2nd"
who is the vacator whre the district is new jersey 2nd?
CREATE TABLE table_1651764_3 (vacator VARCHAR, district VARCHAR)
SELECT TYPE FROM film_market_estimation WHERE YEAR = 1995
What are the types of film market estimations in year 1995?
CREATE TABLE film_market_estimation (TYPE VARCHAR, YEAR VARCHAR)
SELECT date_of_transaction, COUNT(date_of_transaction) FROM Transactions WHERE transaction_type_code = "SALE" ORDER BY date_of_transaction DESC
Show all dates of transactions whose type code is 'SALE', and count them by a line chart, and list x axis from high to low order.
CREATE TABLE Lots ( lot_id INTEGER, investor_id INTEGER, lot_details VARCHAR(255) ) CREATE TABLE Transactions_Lots ( transaction_id INTEGER, lot_id INTEGER ) CREATE TABLE Purchases ( purchase_transaction_id INTEGER, purchase_details VARCHAR(255) ) CREATE TABLE Transactions ( transacti...
SELECT date_successor_seated FROM table_1652224_5 WHERE reason_for_change = "Died August 17, 1954"
what is the date the successor seated because the person died august 17, 1954?
CREATE TABLE table_1652224_5 (date_successor_seated VARCHAR, reason_for_change VARCHAR)
SELECT MAX(Number_cities), MIN(Number_cities) FROM market
What are the maximum and minimum number of cities in all markets.
CREATE TABLE market (Number_cities INTEGER)
SELECT gender, COUNT(*) FROM Customers GROUP BY gender
Show the number of customers for each gender. Show scatter chart.
CREATE TABLE Financial_Transactions ( transaction_id INTEGER, account_id INTEGER, invoice_number INTEGER, transaction_type VARCHAR(15), transaction_date DATETIME, transaction_amount DECIMAL(19,4), transaction_comment VARCHAR(255), other_transaction_details VARCHAR(255) ) CREATE TABLE Or...
SELECT successor FROM table_1652224_5 WHERE district = "Ohio 15th"
who was the successor for district ohio 15th?
CREATE TABLE table_1652224_5 (successor VARCHAR, district VARCHAR)
SELECT COUNT(*) FROM market WHERE Number_cities < 300
How many markets have number of cities smaller than 300?
CREATE TABLE market (Number_cities INTEGER)
SELECT quantity_made FROM table_name_3 WHERE manufacturer = "baldwin"
What is Quantity Made, when Manufacturer is 'Baldwin'?
CREATE TABLE table_name_3 ( quantity_made VARCHAR, manufacturer VARCHAR )
SELECT COUNT(reason_for_change) FROM table_1652224_5 WHERE district = "Michigan 3rd"
what is the total number for reason for change is district michigan 3rd?
CREATE TABLE table_1652224_5 (reason_for_change VARCHAR, district VARCHAR)
SELECT Country FROM market ORDER BY Country
List all countries of markets in ascending alphabetical order.
CREATE TABLE market (Country VARCHAR)
SELECT position, COUNT(*) FROM match_season GROUP BY position
Show the position of players and the corresponding number of players.
CREATE TABLE player ( player_id number, player text, years_played text, total_wl text, singles_wl text, doubles_wl text, team number ) CREATE TABLE match_season ( season number, player text, position text, country number, team number, draft_pick_number number, dr...
SELECT date_of_death FROM table_16527640_3 WHERE player = "Archie Roberts"
What day did ARchie Roberts die?
CREATE TABLE table_16527640_3 (date_of_death VARCHAR, player VARCHAR)
SELECT Country FROM market ORDER BY Number_cities DESC
List all countries of markets in descending order of number of cities.
CREATE TABLE market (Country VARCHAR, Number_cities VARCHAR)
SELECT "Reason" FROM table_43486 WHERE "Closed" = '1990s'
What were the reasons that venues closed in the 1990s?
CREATE TABLE table_43486 ( "Venue" text, "Location" text, "Environment" text, "Closed" text, "Reason" text )
SELECT location FROM table_16527640_3 WHERE vfl_games = 9
What location had a VFL Game number of 9?
CREATE TABLE table_16527640_3 (location VARCHAR, vfl_games VARCHAR)