answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT athlete FROM table_21276428_21 WHERE place = 3 | Name the athlete for 3 | CREATE TABLE table_21276428_21 (athlete VARCHAR, place VARCHAR) |
SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', inputevents_cv.charttime)) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 12726) AND icustays.outtime IS NULL)... | how many hours have elapsed since patient 12726 first received an intake of lipids 20% on the current icu visit? | CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
d... |
SELECT home_team FROM table_name_52 WHERE venue = "western oval" | What team owns the Venue of western oval? | CREATE TABLE table_name_52 (home_team VARCHAR, venue VARCHAR) |
SELECT result FROM table_21269143_1 WHERE round = "13" | Name the result for round 13 | CREATE TABLE table_21269143_1 (result VARCHAR, round VARCHAR) |
SELECT AVG("Points") FROM table_54820 WHERE "FGM - FGA" = '11-28' AND "Number" < '7' | What is the point average for the game that has FGM-FGA of 11-28 and a number smaller than 7? | CREATE TABLE table_54820 (
"Number" real,
"Opponent" text,
"Box Score" text,
"Points" real,
"FGM - FGA" text,
"3PM - 3PA" text,
"FTM - FTA" text,
"Assists" real,
"Rebounds" real,
"Steals" real,
"Blocks" real
) |
SELECT home_team AS score FROM table_name_1 WHERE venue = "victoria park" | What did the Victoria park home team score? | CREATE TABLE table_name_1 (home_team VARCHAR, venue VARCHAR) |
SELECT attendance FROM table_21269143_1 WHERE result = "Loss" AND opponent = "Salford City Reds" | Name the attendance for loss result and salford city reds | CREATE TABLE table_21269143_1 (attendance VARCHAR, result VARCHAR, opponent VARCHAR) |
SELECT DISTINCT instructor.name FROM instructor INNER JOIN offering_instructor ON offering_instructor.instructor_id = instructor.instructor_id INNER JOIN student_record ON student_record.offering_id = offering_instructor.offering_id INNER JOIN student ON student.student_id = student_record.student_id INNER JOIN course_... | What teacher taught Pamela Campbell when he took PAT 513 ? | CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
start_time time,
end_time time,
monday varchar,
tuesday varchar,
wednesday v... |
SELECT COUNT(crowd) FROM table_name_98 WHERE home_team = "geelong" | What was the crowd size when geelong played home? | CREATE TABLE table_name_98 (crowd VARCHAR, home_team VARCHAR) |
SELECT COUNT(date) FROM table_21269143_1 WHERE round = "26" | Name the total number of date for round 26 | CREATE TABLE table_21269143_1 (date VARCHAR, round VARCHAR) |
SELECT "Music" FROM table_32612 WHERE "Score" = '25 (9, 8, 8)' AND "Result" = 'bottom 2' | What is the Music for the Dance that Scored 25 (9, 8, 8) and a Result of bottom 2? | CREATE TABLE table_32612 (
"Couple" text,
"Score" text,
"Dance" text,
"Music" text,
"Result" text
) |
SELECT MAX(attendance) FROM table_name_99 WHERE venue = "td banknorth garden" AND series = "montreal leads 3-1" | Name the most that attendend when the venue was td banknorth garden and the series of montreal leads 3-1 | CREATE TABLE table_name_99 (attendance INTEGER, venue VARCHAR, series VARCHAR) |
SELECT attendance FROM table_21269143_1 WHERE round = "23" | Name the attendace for 23 round | CREATE TABLE table_21269143_1 (attendance VARCHAR, round VARCHAR) |
SELECT league AS Cup FROM table_22357065_1 WHERE nation = "Northern Ireland" | Name the league cup for northern ireland | CREATE TABLE table_22357065_1 (
league VARCHAR,
nation VARCHAR
) |
SELECT decision FROM table_name_14 WHERE visitor = "boston bruins" | Name the decision for boston bruins visitor | CREATE TABLE table_name_14 (decision VARCHAR, visitor VARCHAR) |
SELECT COUNT(opponent) FROM table_21269143_1 WHERE date = "05/09/2009" | Name the total number of opponets for 05/09/2009 | CREATE TABLE table_21269143_1 (opponent VARCHAR, date VARCHAR) |
SELECT "team" FROM table_203_258 GROUP BY "team" ORDER BY SUM("games") DESC LIMIT 1 | team he played most games with . | CREATE TABLE table_203_258 (
id number,
"year" number,
"team" text,
"games" number,
"combined tackles" number,
"tackles" number,
"assisted tackles" number,
"sacks" number,
"forced fumbles" number,
"fumble recoveries" number,
"fumble return yards" number,
"interceptions" n... |
SELECT AVG(total) FROM table_name_67 WHERE nation = "egypt" AND gold < 2 | What is the average total medals Egypt, who has less than 2 gold, has? | CREATE TABLE table_name_67 (total INTEGER, nation VARCHAR, gold VARCHAR) |
SELECT name FROM table_21284653_1 WHERE population_density = "200" | What is the only city name with a population density of 200? | CREATE TABLE table_21284653_1 (name VARCHAR, population_density VARCHAR) |
SELECT MIN("Bypass Ports") FROM table_1520 | What is the minimum number of bypass ports listed? | CREATE TABLE table_1520 (
"Engine" text,
"Exhaust Ports" text,
"Bypass Ports" real,
"Bypass Boosters" text,
"SPI" text,
"Tapered Grind" text,
"Number on cyl." text
) |
SELECT COUNT(gold) FROM table_name_49 WHERE nation = "egypt" AND silver < 0 | What is the total number of gold medals Egypt, who has less than 0 silver, has? | CREATE TABLE table_name_49 (gold VARCHAR, nation VARCHAR, silver VARCHAR) |
SELECT census_division FROM table_21284653_1 WHERE name = "Stratford" | What is the census division for the name Stratford? | CREATE TABLE table_21284653_1 (census_division VARCHAR, name VARCHAR) |
SELECT "Competition" FROM table_45038 WHERE "Event" = '4x100 m relay' AND "Time" = '38.89' | What Competition has an Event of 4x100 m relay and has the Time of 38.89? | CREATE TABLE table_45038 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Event" text,
"Time" text
) |
SELECT MAX(gold) FROM table_name_76 WHERE silver < 3 AND bronze > 5 | What is the highest gold a team with less than 3 silver and more than 5 bronze medals has? | CREATE TABLE table_name_76 (gold INTEGER, silver VARCHAR, bronze VARCHAR) |
SELECT change___percentage_ FROM table_21284653_1 WHERE area__km²_ = "247.21" | What is the change (%) when the area size (km2) is 247.21? | CREATE TABLE table_21284653_1 (change___percentage_ VARCHAR, area__km²_ VARCHAR) |
SELECT "Displacement" FROM table_37030 WHERE "Engine" = 'iveco f1ce3481e' | What is the Displacement of the Iveco F1CE3481E Engine? | CREATE TABLE table_37030 (
"Model" text,
"Engine" text,
"Displacement" text,
"Valvetrain" text,
"Fuel system" text,
"Max. power at rpm" text,
"Max. torque at rpm" text
) |
SELECT rank FROM table_name_2 WHERE bronze = 1 AND gold = 0 | What is the rank of the team with 1 bronze and 0 gold medals? | CREATE TABLE table_name_2 (rank VARCHAR, bronze VARCHAR, gold VARCHAR) |
SELECT municipal_status FROM table_21284653_1 WHERE population_density = "895.5" | What is the municipal status where the population density is 895.5? | CREATE TABLE table_21284653_1 (municipal_status VARCHAR, population_density VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.drug = "Levetiracetam" | how many patients whose drug name is levetiracetam? | 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
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... |
SELECT AVG(_percentage_of_pop) FROM table_name_17 WHERE country__or_dependent_territory_ = "tunisia" AND average_relative_annual_growth___percentage_ < 1.03 | What is the average % of population Tunisia, which has an average relative annual growth smaller than 1.03? | CREATE TABLE table_name_17 (_percentage_of_pop INTEGER, country__or_dependent_territory_ VARCHAR, average_relative_annual_growth___percentage_ VARCHAR) |
SELECT census_division FROM table_21284653_1 WHERE name = "Kenora" | What is the census division for the city named Kenora? | CREATE TABLE table_21284653_1 (census_division VARCHAR, name VARCHAR) |
SELECT "Score" FROM table_31449 WHERE "Date" = 'March 8' | Name the score for march 8 | CREATE TABLE table_31449 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) |
SELECT home_team FROM table_name_45 WHERE venue = "kardinia park" | Who was the home team at Kardinia Park? | CREATE TABLE table_name_45 (home_team VARCHAR, venue VARCHAR) |
SELECT MIN(area___ha__) FROM table_21302_1 WHERE no_of_villages = 18 | If there are 18 villages, what is the minimum area ? | CREATE TABLE table_21302_1 (area___ha__ INTEGER, no_of_villages VARCHAR) |
SELECT COUNT("Gold") FROM table_36059 WHERE "Bronze" < '5' AND "Silver" > '1' AND "Rank" > '8' | How many golds does the nation having a rank of 8, fewer than 5 bronzes and more than 1 silver have? | CREATE TABLE table_36059 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) |
SELECT home_team AS score FROM table_name_15 WHERE home_team = "footscray" | What was Footscray's score as the home team? | CREATE TABLE table_name_15 (home_team VARCHAR) |
SELECT former_name FROM table_21302_1 WHERE population__2005_ = 572 | With the population in 2005 of 572, what is the former name? | CREATE TABLE table_21302_1 (former_name VARCHAR, population__2005_ VARCHAR) |
SELECT AVG(amount_of_transaction) FROM transactions WHERE transaction_type_code = "SALE" | Show the average amount of transactions with type code 'SALE'. | CREATE TABLE purchases (
purchase_transaction_id number,
purchase_details text
)
CREATE TABLE sales (
sales_transaction_id number,
sales_details text
)
CREATE TABLE ref_transaction_types (
transaction_type_code text,
transaction_type_description text
)
CREATE TABLE transactions_lots (
tra... |
SELECT date FROM table_name_17 WHERE home = "suns" | On what date was there a competition in which the home team was the Suns? | CREATE TABLE table_name_17 (date VARCHAR, home VARCHAR) |
SELECT COUNT(no_of_villages) FROM table_21302_1 WHERE density_persons___ha = "5.5" | How many villages have a density persons/ha of 5.5? | CREATE TABLE table_21302_1 (no_of_villages VARCHAR, density_persons___ha VARCHAR) |
SELECT "opponent" FROM table_204_774 WHERE id = 1 | what opponent is listed in the top of the table ? | CREATE TABLE table_204_774 (
id number,
"#" number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
) |
SELECT leading_scorer FROM table_name_41 WHERE visitor = "suns" | In the competition in which the visiting team was the Suns, who was the leading scorer? | CREATE TABLE table_name_41 (leading_scorer VARCHAR, visitor VARCHAR) |
SELECT score FROM table_2127933_3 WHERE opponents = "Irving Wright Hazel Hotchkiss Wightman" | What were the scores for matches with irving wright hazel hotchkiss wightman? | CREATE TABLE table_2127933_3 (score VARCHAR, opponents VARCHAR) |
SELECT position FROM table_name_58 WHERE points > 4 AND tries < 12 AND squad_no > 1 AND player = "ali lauitiiti" | Which position has more than 4 points, less than 12 tries, a squad number of more than 1, and where Ali Lauitiiti is a player? | CREATE TABLE table_name_58 (
position VARCHAR,
player VARCHAR,
squad_no VARCHAR,
points VARCHAR,
tries VARCHAR
) |
SELECT record FROM table_name_11 WHERE home = "mavericks" | What was the record in the competition in which the home team was the Mavericks? | CREATE TABLE table_name_11 (record VARCHAR, home VARCHAR) |
SELECT COUNT(year) FROM table_2127933_3 WHERE score = "10–12, 6–1, 6–3" | How many years had scores of 10–12, 6–1, 6–3? | CREATE TABLE table_2127933_3 (year VARCHAR, score VARCHAR) |
SELECT "Years" FROM table_52279 WHERE "Runners-Up" = 'odd grenland' | What was the year of the competition in which Odd Grenland was the runner-up? | CREATE TABLE table_52279 (
"Years" text,
"Winners" text,
"Runners-Up" text,
"Score" text,
"Third" text
) |
SELECT AVG(year) FROM table_name_33 WHERE movie = "rangam" | What's the average year a Rangam movie came out? | CREATE TABLE table_name_33 (year INTEGER, movie VARCHAR) |
SELECT partner FROM table_2127933_3 WHERE opponents = "Harry Johnson Hazel Hotchkiss Wightman" | Who were the partners during times that harry johnson hazel hotchkiss wightman was the opponent? | CREATE TABLE table_2127933_3 (partner VARCHAR, opponents VARCHAR) |
SELECT "Host" FROM table_4671 WHERE "Venue" = 'hammons student center' | What was the host of the round at Hammons Student Center? | CREATE TABLE table_4671 (
"Region" text,
"Host" text,
"Venue" text,
"City" text,
"State" text
) |
SELECT song_title FROM table_name_84 WHERE movie = "amma cheppindi" | What was the name of the song in Amma Cheppindi? | CREATE TABLE table_name_84 (song_title VARCHAR, movie VARCHAR) |
SELECT outcome FROM table_2127933_3 WHERE opponents = "Bill Tilden Florence Ballin" | What were the outcomes of matches with bill tilden florence ballin as opponents? | CREATE TABLE table_2127933_3 (outcome VARCHAR, opponents VARCHAR) |
SELECT c.PostId AS "post_link", c.Text FROM Comments AS c WHERE c.Text LIKE '%http%plagiari%e%http%' OR c.Text LIKE '%http%cop%http%' OR c.Text LIKE '%http%stole%http%' | Users accusing other users of plagiarism (double-sigh). | CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number... |
SELECT AVG(year) FROM table_name_12 WHERE movie = "thuppakki" | What was the average year that Thuppakki movies came out? | CREATE TABLE table_name_12 (year INTEGER, movie VARCHAR) |
SELECT MIN(year) FROM table_2127933_3 | What is the earliest year? | CREATE TABLE table_2127933_3 (year INTEGER) |
SELECT high_rebounds FROM table_27700375_10 WHERE game = 69 | who had high rebounds at game 69? | CREATE TABLE table_27700375_10 (
high_rebounds VARCHAR,
game VARCHAR
) |
SELECT SUM(games_played) FROM table_name_89 WHERE goals_scored = "2" | How many games had 2 goals scored? | CREATE TABLE table_name_89 (games_played INTEGER, goals_scored VARCHAR) |
SELECT survivor_count FROM table_21304131_2 WHERE directed_by = "Gwyneth Horder-Payton" | What was the survivor count for the episode directed by Gwyneth Horder-Payton? | CREATE TABLE table_21304131_2 (survivor_count VARCHAR, directed_by VARCHAR) |
SELECT t1.email_address FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_id ORDER BY COUNT(*) LIMIT 1 | Find the emails of customers who has filed a complaints of the product with the most complaints. | CREATE TABLE customers (
email_address VARCHAR,
customer_id VARCHAR
)
CREATE TABLE complaints (
customer_id VARCHAR
) |
SELECT result FROM table_name_74 WHERE week = 11 | What was the result week 11? | CREATE TABLE table_name_74 (result VARCHAR, week VARCHAR) |
SELECT original_air_date FROM table_21304131_2 WHERE no_in_series = 65 | When did series number 65 originally air? | CREATE TABLE table_21304131_2 (original_air_date VARCHAR, no_in_series VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "HOME" AND demographic.age < "62" | how many patients are discharged to home with age below 62? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions... |
SELECT COUNT(democratic_votes) FROM table_name_21 WHERE other_votes < 18 AND _percentage_of_r_votes = "52.63% ANd_votes_since_1856 < 38" | Name the total number of democratic votes when the other votes are less than 18 and the percentage of R votes are 52.63% and votes since 1856 less than 38 | CREATE TABLE table_name_21 (democratic_votes VARCHAR, other_votes VARCHAR, _percentage_of_r_votes VARCHAR) |
SELECT production_code FROM table_21304155_1 WHERE directed_by = "David Solomon" | What is the production code of the episode directed by David Solomon? | CREATE TABLE table_21304155_1 (production_code VARCHAR, directed_by VARCHAR) |
SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', inputevents_cv.charttime)) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 31854) AND icustays.outtime IS NULL)... | how many hours is it since the last time patient 31854 had a criticare hn intake on the current icu visit? | CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime t... |
SELECT date FROM table_name_14 WHERE opponent = "panathinaikos" | On what Date was the Opponent Panathinaikos? | CREATE TABLE table_name_14 (date VARCHAR, opponent VARCHAR) |
SELECT written_by FROM table_21304155_1 WHERE production_code = "BN103" | Who wrote the episode with the production code of BN103? | CREATE TABLE table_21304155_1 (written_by VARCHAR, production_code VARCHAR) |
SELECT order_in_office FROM table_2026548_1 WHERE vice_president = "Spiro Agnew" | Name the order in office for spiro agnew | CREATE TABLE table_2026548_1 (
order_in_office VARCHAR,
vice_president VARCHAR
) |
SELECT SUM(crowd) FROM table_name_57 WHERE home_team = "st kilda" | How many people attended games with st kilda as the home side? | CREATE TABLE table_name_57 (crowd INTEGER, home_team VARCHAR) |
SELECT original_air_date FROM table_21304155_1 WHERE us_viewers__millions_ = "4.08" | What was the original air date of the episode that had 4.08 million U.S. viewers? | CREATE TABLE table_21304155_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT venue FROM table_name_68 WHERE position = "1st" AND year = 2011 | What was the venue of the competition that held the 1st position in 2011? | CREATE TABLE table_name_68 (
venue VARCHAR,
position VARCHAR,
year VARCHAR
) |
SELECT home_team FROM table_name_32 WHERE crowd > 32 OFFSET 485 | Who is the home team when the crowd is over 32,485? | CREATE TABLE table_name_32 (home_team VARCHAR, crowd INTEGER) |
SELECT location_chernobyl_1_chernobyl_2_chernobyl_3_chernobyl_4_chernobyl_5_ignalina_1_ignalina_2_ignalina_3_kursk_1_kursk_2_kursk_3_kursk_4_kursk_5_kursk_6_leningrad_1_leningrad_2_leningrad_3_leningrad_4_smolensk_1_smolensk_2_smolensk_3_smolensk_4_directorate_for_construction_of_kostoma_npp__for_kostroma_1_and_2__tabl... | List all the locations where net capacity is 950? | CREATE TABLE table_213088_1 (location_chernobyl_1_chernobyl_2_chernobyl_3_chernobyl_4_chernobyl_5_ignalina_1_ignalina_2_ignalina_3_kursk_1_kursk_2_kursk_3_kursk_4_kursk_5_kursk_6_leningrad_1_leningrad_2_leningrad_3_leningrad_4_smolensk_1_smolensk_2_smolensk_3_smolensk_4_directorate_for_construction_of_kostoma_npp__for_... |
SELECT ACC_Road, Team_ID FROM basketball_match GROUP BY All_Home, ACC_Road ORDER BY ACC_Road | Give me the comparison about Team_ID over the ACC_Road , and group by attribute All_Home, and display in ascending by the x-axis. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... |
SELECT AVG(floors) FROM table_name_40 WHERE city = "mecca" AND rank < 12 | What is the average number of floors for buildings in mecca ranked above 12? | CREATE TABLE table_name_40 (floors INTEGER, city VARCHAR, rank VARCHAR) |
SELECT location_chernobyl_1_chernobyl_2_chernobyl_3_chernobyl_4_chernobyl_5_ignalina_1_ignalina_2_ignalina_3_kursk_1_kursk_2_kursk_3_kursk_4_kursk_5_kursk_6_leningrad_1_leningrad_2_leningrad_3_leningrad_4_smolensk_1_smolensk_2_smolensk_3_smolensk_4_directorate_for_construction_of_kostoma_npp__for_kostroma_1_and_2__tabl... | List all the locations with a RBMK-1000 reactor. | CREATE TABLE table_213088_1 (location_chernobyl_1_chernobyl_2_chernobyl_3_chernobyl_4_chernobyl_5_ignalina_1_ignalina_2_ignalina_3_kursk_1_kursk_2_kursk_3_kursk_4_kursk_5_kursk_6_leningrad_1_leningrad_2_leningrad_3_leningrad_4_smolensk_1_smolensk_2_smolensk_3_smolensk_4_directorate_for_construction_of_kostoma_npp__for_... |
SELECT DISTINCT '<' + CAST(Tags.TagName AS TEXT) + '>' AS "tags", Ans.Id AS "post_link", Ans.Score FROM (((SELECT Posts.* FROM Posts JOIN PostTypes ON Posts.PostTypeId = PostTypes.Id WHERE Posts.OwnerUserId = @userId AND PostTypes.Name = 'Answer' AND Posts.Score > 5) AS Ans JOIN Posts ON Ans.ParentId = Posts.Id) JOIN P... | Tags where I have an answer with score 5 or more. | CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
... |
SELECT city FROM table_name_87 WHERE rank < 5 AND name = "lamar tower 1" | What city is the lamar tower 1, ranked above 5? | CREATE TABLE table_name_87 (city VARCHAR, rank VARCHAR, name VARCHAR) |
SELECT MIN(gross_capacity__mw_) FROM table_213088_1 WHERE net_capacity__mw_ = 1380 | What is the gross capacity where the net capacity is 1380? | CREATE TABLE table_213088_1 (gross_capacity__mw_ INTEGER, net_capacity__mw_ VARCHAR) |
SELECT Date_Payment_Made, COUNT(Date_Payment_Made) FROM Payments GROUP BY Payment_Method_Code ORDER BY Date_Payment_Made | Give me a bar chart that bins the payment date into the day of the week interval and then shows the amount of each payment categorized by the payment method code, and then sort the bars in ascending order of date. | CREATE TABLE Settlements (
Settlement_ID INTEGER,
Claim_ID INTEGER,
Date_Claim_Made DATE,
Date_Claim_Settled DATE,
Amount_Claimed INTEGER,
Amount_Settled INTEGER,
Customer_Policy_ID INTEGER
)
CREATE TABLE Payments (
Payment_ID INTEGER,
Settlement_ID INTEGER,
Payment_Method_Code ... |
SELECT city FROM table_name_33 WHERE floors > 57 | What city has a building with over 57 floors? | CREATE TABLE table_name_33 (city VARCHAR, floors INTEGER) |
SELECT original_air_date FROM table_21313498_1 WHERE us_viewers__millions_ = "3.3" AND written_by = "Rob Wright" | when was the premiere when a 3.3 millions of North American watched the episode whose writer was Rob Wright? | CREATE TABLE table_21313498_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR, written_by VARCHAR) |
SELECT district FROM table_1342149_3 WHERE incumbent = "Albert Rains" | What district has Albert Rains as their representative? | CREATE TABLE table_1342149_3 (
district VARCHAR,
incumbent VARCHAR
) |
SELECT COUNT(laps) FROM table_name_32 WHERE driver = "antônio pizzonia" | How many laps did antônio pizzonia do? | CREATE TABLE table_name_32 (laps VARCHAR, driver VARCHAR) |
SELECT title FROM table_21313498_1 WHERE production_code = "62015-08-162" | what is the name of the episode which the production code is 62015-08-162 | CREATE TABLE table_21313498_1 (title VARCHAR, production_code VARCHAR) |
SELECT COUNT("title") FROM table_202_279 WHERE "year" > 2010 | how many movies has morrison acted in after 2010 ? | CREATE TABLE table_202_279 (
id number,
"year" number,
"title" text,
"role" text,
"notes" text
) |
SELECT constructor FROM table_name_99 WHERE time_retired = "handling" | What is the constructor for time/retired of handling? | CREATE TABLE table_name_99 (constructor VARCHAR, time_retired VARCHAR) |
SELECT written_by FROM table_21313498_1 WHERE no_in_season = 11 | in the number of episode in season is 11, who was the writer? | CREATE TABLE table_21313498_1 (written_by VARCHAR, no_in_season VARCHAR) |
SELECT MIN("Draft") FROM table_12484 WHERE "Nationality" = 'canada' AND "Player" = 'shane doan category:articles with hcards' AND "Round" < '1' | What is the lowest Draft, when Nationality is 'Canada', when Player is 'Shane Doan Category:Articles with hCards', and when Round is less than 1? | CREATE TABLE table_12484 (
"Draft" real,
"Round" real,
"Pick" real,
"Player" text,
"Nationality" text
) |
SELECT away_team AS score FROM table_name_71 WHERE venue = "windy hill" | What was the away team's score at windy hill? | CREATE TABLE table_name_71 (away_team VARCHAR, venue VARCHAR) |
SELECT COUNT(no_in_season) FROM table_21312959_1 WHERE us_viewers__millions_ = "5.0" | How many episodes had the us viewers (millions) figure of 5.0? | CREATE TABLE table_21312959_1 (no_in_season VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT team_classification FROM table_name_47 WHERE stage = "6" | Name the team classification for stage of 6 | CREATE TABLE table_name_47 (
team_classification VARCHAR,
stage VARCHAR
) |
SELECT MAX(round) FROM table_name_59 WHERE nationality = "sweden" AND position = "right wing" | What is the highest round of a player from Sweden who plays right wing? | CREATE TABLE table_name_59 (round INTEGER, nationality VARCHAR, position VARCHAR) |
SELECT written_by FROM table_21312959_1 WHERE no_in_series = 129 | Who are the writers for the episode number in series 129? | CREATE TABLE table_21312959_1 (written_by VARCHAR, no_in_series VARCHAR) |
SELECT points_1 FROM table_name_88 WHERE lost = 22 | WHAT POINTS 1 HAD A 22 LOST? | CREATE TABLE table_name_88 (
points_1 VARCHAR,
lost VARCHAR
) |
SELECT position FROM table_name_81 WHERE round < 4 AND overall = "17" | What is the position of a player from a round less than 4 and an overall of 17? | CREATE TABLE table_name_81 (position VARCHAR, round VARCHAR, overall VARCHAR) |
SELECT MAX(no_in_season) FROM table_21312845_1 WHERE directed_by = "Chris Long" | What is the latest episode in the season directed by Chris Long? | CREATE TABLE table_21312845_1 (no_in_season INTEGER, directed_by VARCHAR) |
SELECT COUNT("school name") FROM table_203_40 WHERE "building status" = 'demolished' | what is the total number of schools that were demolished ? | CREATE TABLE table_203_40 (
id number,
"p.s. #" number,
"school name" text,
"neighborhood" text,
"low grade" text,
"high grade" number,
"year closed" text,
"building status" text
) |
SELECT AVG(round) FROM table_name_23 WHERE overall = "138" | What is the average round of a player with an overall of 138? | CREATE TABLE table_name_23 (round INTEGER, overall VARCHAR) |
SELECT written_by FROM table_21312845_1 WHERE directed_by = "David Straiton" | Who wrote the episodes directed by David Straiton? | CREATE TABLE table_21312845_1 (written_by VARCHAR, directed_by VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.