answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT score FROM table_27715173_6 WHERE game = 3
What was the score for game 3?
CREATE TABLE table_27715173_6 (score VARCHAR, game VARCHAR)
SELECT MAX(silver) FROM table_name_85 WHERE bronze < 0
What is the highest number of silver medals of the team with less than 0 bronzes?
CREATE TABLE table_name_85 (silver INTEGER, bronze INTEGER)
SELECT part_4 FROM table_1745843_2 WHERE part_2 = "*lauk"
For part 2 *lauk, what is listed for part 4?
CREATE TABLE table_1745843_2 ( part_4 VARCHAR, part_2 VARCHAR )
SELECT COUNT(record) FROM table_27715173_6 WHERE date = "November 24"
How many records are there for the game on november 24?
CREATE TABLE table_27715173_6 (record VARCHAR, date VARCHAR)
SELECT COUNT(silver) FROM table_name_59 WHERE rank = "7" AND total > 1
What is the total number of silver medals of the team ranked 7 with more than 1 total medal?
CREATE TABLE table_name_59 (silver VARCHAR, rank VARCHAR, total VARCHAR)
SELECT COUNT(lites_2_race_one_winning_team) FROM table_26638600_3 WHERE lites_1_race_two_winning_team = "Gary Gibson"
How many different circuits had Gary Gibson has the Lites 1 race two winning team?
CREATE TABLE table_26638600_3 ( lites_2_race_one_winning_team VARCHAR, lites_1_race_two_winning_team VARCHAR )
SELECT date FROM table_27715173_6 WHERE score = "W 116–93 (OT)"
What date was the game with a score of w 116–93 (ot)?
CREATE TABLE table_27715173_6 (date VARCHAR, score VARCHAR)
SELECT AVG(bronze) FROM table_name_52 WHERE silver = 0 AND rank = "3" AND total < 1
What is the average number of bronze medals of the team with 0 silvers, ranked 3, and less than 1 total medal?
CREATE TABLE table_name_52 (bronze INTEGER, total VARCHAR, silver VARCHAR, rank VARCHAR)
SELECT segment_b FROM table_15187735_13 WHERE episode = 167
Name the segment b for 167
CREATE TABLE table_15187735_13 ( segment_b VARCHAR, episode VARCHAR )
SELECT high_assists FROM table_27715173_6 WHERE score = "W 107–95 (OT)"
Who had the high assists when the score was w 107–95 (ot)?
CREATE TABLE table_27715173_6 (high_assists VARCHAR, score VARCHAR)
SELECT SUM(silver) FROM table_name_84 WHERE gold = 0 AND rank = "5" AND bronze > 0
What is the number of silver medals of the team with 0 gold, ranked 5, and more than 0 bronze medals?
CREATE TABLE table_name_84 (silver INTEGER, bronze VARCHAR, gold VARCHAR, rank VARCHAR)
SELECT MIN(no_in_season) FROM table_2226817_9 WHERE no_in_series = 158
How many seasons had episode 158?
CREATE TABLE table_2226817_9 ( no_in_season INTEGER, no_in_series VARCHAR )
SELECT directed_by FROM table_27716091_1 WHERE production_code = 227412
who put on the show where the numbers were 227412
CREATE TABLE table_27716091_1 (directed_by VARCHAR, production_code VARCHAR)
SELECT SUM(top_10) FROM table_name_83 WHERE tournament = "u.s. open" AND top_25 > 0
What was the sum for a top-10 U.S. open that had a top-25 bigger than 0?
CREATE TABLE table_name_83 (top_10 INTEGER, tournament VARCHAR, top_25 VARCHAR)
SELECT "Tournament" FROM table_34846 WHERE "1987" = 'a'
Which Tournament has A in 1987?
CREATE TABLE table_34846 ( "Tournament" text, "1981" text, "1982" text, "1983" text, "1984" text, "1985" text, "1986" text, "1987" text, "1988" text, "1989" text )
SELECT directed_by FROM table_27716091_1 WHERE production_code = 227424
who put on the show where the numbers were 227424
CREATE TABLE table_27716091_1 (directed_by VARCHAR, production_code VARCHAR)
SELECT COUNT(cuts_made) FROM table_name_17 WHERE events > 4 AND top_10 < 4
What were the total number of cuts made in an event larger than 4 and a top-10 smaller than 4?
CREATE TABLE table_name_17 (cuts_made VARCHAR, events VARCHAR, top_10 VARCHAR)
SELECT "Safari" FROM table_79523 WHERE "Opera" = '2.4%' AND "Internet Explorer" = '29.9%'
What is the safari value with a 2.4% opera and 29.9% internet explorer?
CREATE TABLE table_79523 ( "Date" text, "Internet Explorer" text, "Firefox" text, "Safari" text, "Opera" text )
SELECT high_rebounds FROM table_27721131_10 WHERE team = "@ Detroit"
Who was the high rebounds of team @ Detroit?
CREATE TABLE table_27721131_10 (high_rebounds VARCHAR, team VARCHAR)
SELECT COUNT(top_25) FROM table_name_95 WHERE top_10 < 4 AND cuts_made > 0
What is the total number of top-25 that has a top-10 smaller than 4 with 0 cuts?
CREATE TABLE table_name_95 (top_25 VARCHAR, top_10 VARCHAR, cuts_made VARCHAR)
SELECT "Replaced by" FROM table_29232 WHERE "Date of vacancy" = '27 December 2010'
Who is the replaced by when the date of vacancy is 27 december 2010?
CREATE TABLE table_29232 ( "Team" text, "Outgoing manager" text, "Manner of departure" text, "Date of vacancy" text, "Replaced by" text, "Date of appointment" text )
SELECT location_attendance FROM table_27721131_10 WHERE high_rebounds = "Andray Blatche (9)"
What was the location attendance when Andray Blatche (9) got high rebounds?
CREATE TABLE table_27721131_10 (location_attendance VARCHAR, high_rebounds VARCHAR)
SELECT AVG(cuts_made) FROM table_name_62 WHERE tournament = "totals" AND events > 24
What was the cuts average in tournament totals in an event larger than 24?
CREATE TABLE table_name_62 (cuts_made INTEGER, tournament VARCHAR, events VARCHAR)
SELECT pick FROM table_name_12 WHERE nhl_team = "pittsburgh penguins"
Tell me the pick for pittsburgh penguins
CREATE TABLE table_name_12 ( pick VARCHAR, nhl_team VARCHAR )
SELECT record FROM table_27721131_10 WHERE date = "March 6"
What was the game record on March 6?
CREATE TABLE table_27721131_10 (record VARCHAR, date VARCHAR)
SELECT COUNT(top_10) FROM table_name_52 WHERE tournament = "masters tournament" AND events < 4
What is the total for a top-10 in a masters tournament in an event smaller than 4?
CREATE TABLE table_name_52 (top_10 VARCHAR, tournament VARCHAR, events VARCHAR)
SELECT date FROM table_name_89 WHERE record = "53–104"
What was the date of the game when the record was 53 104?
CREATE TABLE table_name_89 ( date VARCHAR, record VARCHAR )
SELECT high_rebounds FROM table_27721131_10 WHERE high_points = "Jordan Crawford (27)"
Who got high rebounds when Jordan Crawford (27) got high points?
CREATE TABLE table_27721131_10 (high_rebounds VARCHAR, high_points VARCHAR)
SELECT MAX(against) FROM table_name_95 WHERE team = "flamengo" AND lost < 1
Which Against is the highest one that has a Team of flamengo, and a Lost smaller than 1?
CREATE TABLE table_name_95 (against INTEGER, team VARCHAR, lost VARCHAR)
SELECT "year" FROM table_204_983 WHERE "year" <> 2011 AND "2nd venue" = (SELECT "2nd venue" FROM table_204_983 WHERE "year" = 2011)
name a year whose second venue was the same as 2011 .
CREATE TABLE table_204_983 ( id number, "year" number, "1st venue" text, "2nd venue" text, "3rd venue" text, "4th venue" text, "5th venue" text, "6th venue" text )
SELECT high_assists FROM table_27721131_2 WHERE score = "W 97–94 (OT)"
Who's in the high assists with a w 97–94 (ot) score?
CREATE TABLE table_27721131_2 (high_assists VARCHAR, score VARCHAR)
SELECT COUNT(lost) FROM table_name_92 WHERE team = "flamengo" AND against < 5
How many Lost have a Team of flamengo, and an Against smaller than 5?
CREATE TABLE table_name_92 (lost VARCHAR, team VARCHAR, against VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2194" AND lab.itemid = "50817"
how many patients are with admission year before 2194 and with lab test item id 50817?
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 ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) 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 )
SELECT MAX(game) FROM table_27721131_2 WHERE high_rebounds = "JaVale McGee (5)"
What's the maximum game in the javale mcgee (5) high rebounds?
CREATE TABLE table_27721131_2 (game INTEGER, high_rebounds VARCHAR)
SELECT MAX(played) FROM table_name_94 WHERE points = 5 AND drawn < 1
Which Played is the highest one that has Points of 5, and a Drawn smaller than 1?
CREATE TABLE table_name_94 (played INTEGER, points VARCHAR, drawn VARCHAR)
SELECT "Attendance" FROM table_34513 WHERE "Record" = '6–8'
Record of 6 8 had what attendance?
CREATE TABLE table_34513 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Record" text, "Game Site" text, "Attendance" text )
SELECT COUNT(score) FROM table_27721131_2 WHERE high_points = "Andray Blatche (17)"
What's the score in andray blatche (17) high points?
CREATE TABLE table_27721131_2 (score VARCHAR, high_points VARCHAR)
SELECT nationality FROM table_name_11 WHERE round = 1
What was the nationality for the player in Round 1?
CREATE TABLE table_name_11 (nationality VARCHAR, round VARCHAR)
SELECT COUNT(rank) FROM table_name_86 WHERE ΓΈ_pts > 1.26 AND games = 1458
What was the rank for 1.26 -Pts in game 1458?
CREATE TABLE table_name_86 ( rank VARCHAR, ΓΈ_pts VARCHAR, games VARCHAR )
SELECT high_rebounds FROM table_27721131_2 WHERE location_attendance = "Verizon Center 9,263"
Who's in the high rebounds in the verizon center 9,263 location attendance?
CREATE TABLE table_27721131_2 (high_rebounds VARCHAR, location_attendance VARCHAR)
SELECT player FROM table_name_66 WHERE position = "right wing"
Who plays the right wing position?
CREATE TABLE table_name_66 (player VARCHAR, position VARCHAR)
SELECT "time" FROM table_204_932 WHERE "title" = 'i love you jesus'
how long is the song i love you jesus ?
CREATE TABLE table_204_932 ( id number, "#" number, "title" text, "time" text, "lead vocals" text, "notes" text )
SELECT location_attendance FROM table_27721131_2 WHERE team = "Milwaukee"
What's the location attendance of the milwaukee team?
CREATE TABLE table_27721131_2 (location_attendance VARCHAR, team VARCHAR)
SELECT celebrity FROM table_name_79 WHERE finished = "6th"
What celebrity finished 6th?
CREATE TABLE table_name_79 (celebrity VARCHAR, finished VARCHAR)
SELECT COUNT(rebounds) FROM table_name_89 WHERE name = "ann wauters"
How many rebounds does Ann Wauters have?
CREATE TABLE table_name_89 ( rebounds VARCHAR, name VARCHAR )
SELECT COUNT(team) FROM table_27721131_2 WHERE high_assists = "John Wall (9)" AND score = "W 97–83 (OT)"
What's the team number with John Wall (9) in high assists and a w 97–83 (ot) score?
CREATE TABLE table_27721131_2 (team VARCHAR, high_assists VARCHAR, score VARCHAR)
SELECT entered FROM table_name_96 WHERE finished = "4th"
What day did the celebrity who finished 4th enter?
CREATE TABLE table_name_96 (entered VARCHAR, finished VARCHAR)
SELECT COUNT("Lowest mark") FROM table_31361 WHERE "% Pass" = '76'
How many lowest mark entries are there when % passed is 76?
CREATE TABLE table_31361 ( "Subject" text, "No. Sat" real, "No. Passed" real, "% Pass" real, "Highest mark" real, "Lowest mark" real, "Mean" real )
SELECT high_assists FROM table_27721131_11 WHERE game = 78
Who had the highest assists during game 78?
CREATE TABLE table_27721131_11 (high_assists VARCHAR, game VARCHAR)
SELECT celebrity FROM table_name_53 WHERE exited = "day 19" AND famous_for = "ex busted member and tv presenter"
Which celebrity who was famous for being the ex busted member and TV presenter exited on day 19?
CREATE TABLE table_name_53 (celebrity VARCHAR, exited VARCHAR, famous_for VARCHAR)
SELECT engine FROM table_name_17 WHERE tyre = "d" AND constructor = "era" AND driver = "bob gerard"
what is the engine when the tyre is d, the constructor is era and the driver is bob gerard?
CREATE TABLE table_name_17 ( engine VARCHAR, driver VARCHAR, tyre VARCHAR, constructor VARCHAR )
SELECT date FROM table_27721131_6 WHERE high_assists = "John Wall (11)"
What is the date where john wall (11) had the high assists?
CREATE TABLE table_27721131_6 (date VARCHAR, high_assists VARCHAR)
SELECT famous_for FROM table_name_52 WHERE finished = "9th"
Which celebrity was famous for finishing 9th?
CREATE TABLE table_name_52 (famous_for VARCHAR, finished VARCHAR)
SELECT MIN("Crowd") FROM table_32809 WHERE "Home team" = 'footscray'
What was the smallest crowd size at a home game for Footscray?
CREATE TABLE table_32809 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT team FROM table_27721131_6 WHERE date = "November 25"
What is the team they played on november 25?
CREATE TABLE table_27721131_6 (team VARCHAR, date VARCHAR)
SELECT finished FROM table_name_77 WHERE celebrity = "myleene klass"
What rank did Myleene Klass finish?
CREATE TABLE table_name_77 (finished VARCHAR, celebrity VARCHAR)
SELECT AVG(T2.weeks_on_top) FROM artist AS T1 JOIN volume AS T2 ON T1.artist_id = T2.artist_id WHERE T1.age <= 25
What is the average weeks on top of volumes associated with the artist aged 25 or younger?
CREATE TABLE music_festival ( id number, music_festival text, date_of_ceremony text, category text, volume number, result text ) CREATE TABLE artist ( artist_id number, artist text, age number, famous_title text, famous_release_date text ) CREATE TABLE volume ( volume_id number, volume_issue text, issue_date text, weeks_on_top number, song text, artist_id number )
SELECT record FROM table_27721131_6 WHERE date = "November 25"
What is the record for the game on november 25?
CREATE TABLE table_27721131_6 (record VARCHAR, date VARCHAR)
SELECT venue FROM table_name_24 WHERE opponent = "kilmarnock" AND result = "1–1"
Opponent of kilmarnock, and a Result of 1–1 happened in what venue?
CREATE TABLE table_name_24 (venue VARCHAR, opponent VARCHAR, result VARCHAR)
SELECT COUNT("No. in series") FROM table_31145 WHERE "Written by" = 'Gregg Mettler'
How many episodes were written by Gregg Mettler?
CREATE TABLE table_31145 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" real )
SELECT team FROM table_27721131_6 WHERE high_points = "Andray Blatche , JaVale McGee (20)"
Which team played them when andray blatche , javale mcgee (20) had the high points?
CREATE TABLE table_27721131_6 (team VARCHAR, high_points VARCHAR)
SELECT weight_of_shot FROM table_name_51 WHERE designation__bore_ = "xx-inch"
what is the weight of a shot that is xx-inch?
CREATE TABLE table_name_51 (weight_of_shot VARCHAR, designation__bore_ VARCHAR)
SELECT "Team guest captain" FROM table_28132 WHERE "Episode" = '2'
Who was the team guest captain for episode 2?
CREATE TABLE table_28132 ( "Episode" real, "Air Date" text, "Team Swash" text, "Team guest captain" text, "Team Coxy" text )
SELECT score FROM table_27721131_6 WHERE high_points = "Andray Blatche , Al Thornton (20)"
What was the score when andray blatche , al thornton (20) had the high points?
CREATE TABLE table_27721131_6 (score VARCHAR, high_points VARCHAR)
SELECT length FROM table_name_30 WHERE character_name = "burleigh sullivan"
What is the length of the film with Burleigh Sullivan as the character?
CREATE TABLE table_name_30 (length VARCHAR, character_name VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.religion = "PROTESTANT QUAKER" AND lab.label = "Thyroid Stimulating Hormone"
what is the number of patients whose religion is protestant quaker and lab test name is thyroid stimulating hormone?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid 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 ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) 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 )
SELECT COUNT(game) FROM table_27721131_6 WHERE team = "Houston"
How many games are shown against Houston?
CREATE TABLE table_27721131_6 (game VARCHAR, team VARCHAR)
SELECT length FROM table_name_31 WHERE character_type = "milkman turned prizefighter"
What is the length of the film with the character type being a milkman turned prizefighter?
CREATE TABLE table_name_31 (length VARCHAR, character_type VARCHAR)
SELECT Class, COUNT(Class) FROM Ship WHERE NOT Ship_ID IN (SELECT Ship_ID FROM captain) GROUP BY Class ORDER BY Class
For those ships that do not have a captain, tell me the total number of their classes using a pie chart, display from low to high by the bars please.
CREATE TABLE captain ( Captain_ID int, Name text, Ship_ID int, age text, Class text, Rank text ) CREATE TABLE Ship ( Ship_ID int, Name text, Type text, Built_Year real, Class text, Flag text )
SELECT COUNT(team) FROM table_27721131_8 WHERE game = 45
How many teams listed for game 45?
CREATE TABLE table_27721131_8 (team VARCHAR, game VARCHAR)
SELECT character_name FROM table_name_97 WHERE leading_lady = "phyllis welch"
What is the character name that has phyllis welch as the leading lady?
CREATE TABLE table_name_97 (character_name VARCHAR, leading_lady VARCHAR)
SELECT song FROM table_name_41 WHERE draw < 2
What song has draw number less than 2?
CREATE TABLE table_name_41 ( song VARCHAR, draw INTEGER )
SELECT score FROM table_27722408_11 WHERE team = "Washington"
What was the score when the Celtics played Washington at home?
CREATE TABLE table_27722408_11 (score VARCHAR, team VARCHAR)
SELECT director_s_ FROM table_name_74 WHERE leading_lady = "phyllis welch"
Who directed the film that had phyllis welch as the leading lady?
CREATE TABLE table_name_74 (director_s_ VARCHAR, leading_lady VARCHAR)
SELECT "Producer(s)" FROM table_15049 WHERE "Film" = 'strange little girls'
Who was the producer for the film 'Strange Little Girls'?
CREATE TABLE table_15049 ( "Film" text, "Director(s)" text, "Producer(s)" text, "Writer(s)" text, "Recipient" text, "Date" text, "Award" text )
SELECT high_assists FROM table_27722408_11 WHERE date = "April 8"
Who had the most assists and how many did they have on April 8?
CREATE TABLE table_27722408_11 (high_assists VARCHAR, date VARCHAR)
SELECT character_name FROM table_name_72 WHERE release_date = "july 29, 1938"
What was the character name for the film with a release date of July 29, 1938?
CREATE TABLE table_name_72 (character_name VARCHAR, release_date VARCHAR)
SELECT visitor FROM table_name_55 WHERE home = "detroit" AND date = "february 24"
Name the visitor for detroit on february 24
CREATE TABLE table_name_55 ( visitor VARCHAR, home VARCHAR, date VARCHAR )
SELECT COUNT(record) FROM table_27722408_10 WHERE game = 61
Name the total number of record for 61
CREATE TABLE table_27722408_10 (record VARCHAR, game VARCHAR)
SELECT locomotive FROM table_name_2 WHERE delivered_as = "t414"
What Locomotive was Delivered as T414?
CREATE TABLE table_name_2 (locomotive VARCHAR, delivered_as VARCHAR)
SELECT AVG(demographic.age) FROM demographic WHERE demographic.discharge_location = "DISCH-TRAN TO PSYCH HOSP" AND demographic.diagnosis = "LEFT FEMUR FRACTURE"
what is average age of patients whose discharge location is disch-tran to psych hosp and primary disease is left femur fracture?
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 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 demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text )
SELECT location_attendance FROM table_27722408_8 WHERE team = "San Antonio"
What was location and attendance for the game where the Celtics played San Antonio?
CREATE TABLE table_27722408_8 (location_attendance VARCHAR, team VARCHAR)
SELECT owner FROM table_name_70 WHERE delivered_as = "t415"
What Owner Delivered the T415?
CREATE TABLE table_name_70 (owner VARCHAR, delivered_as VARCHAR)
SELECT "Preliminary Average" FROM table_20674 WHERE "Semifinal Average" = '8.966 (3)'
What was the preliminary average for the one who had a semifinal average of 8.966 (3)?
CREATE TABLE table_20674 ( "State" text, "Preliminary Average" text, "Interview" text, "Swimsuit" text, "Evening Gown" text, "Semifinal Average" text )
SELECT score FROM table_27722734_11 WHERE team = "Denver"
Name the score for denver
CREATE TABLE table_27722734_11 (score VARCHAR, team VARCHAR)
SELECT entered_service FROM table_name_32 WHERE delivered_as = "t413"
What is the Entered service date of the T413?
CREATE TABLE table_name_32 (entered_service VARCHAR, delivered_as VARCHAR)
SELECT card_type_code, COUNT(*) FROM Financial_Transactions AS T1 JOIN Customers_Cards AS T2 ON T1.card_id = T2.card_id GROUP BY T2.card_type_code
What are the different card types, and how many transactions have been made with each. Visualize by bar chart.
CREATE TABLE Customers ( customer_id INTEGER, customer_first_name VARCHAR(20), customer_last_name VARCHAR(20), customer_address VARCHAR(255), customer_phone VARCHAR(255), customer_email VARCHAR(255), other_customer_details VARCHAR(255) ) CREATE TABLE Financial_Transactions ( transaction_id INTEGER, previous_transaction_id INTEGER, account_id INTEGER, card_id INTEGER, transaction_type VARCHAR(15), transaction_date DATETIME, transaction_amount DOUBLE, transaction_comment VARCHAR(255), other_transaction_details VARCHAR(255) ) CREATE TABLE Customers_Cards ( card_id INTEGER, customer_id INTEGER, card_type_code VARCHAR(15), card_number VARCHAR(80), date_valid_from DATETIME, date_valid_to DATETIME, other_card_details VARCHAR(255) ) CREATE TABLE Accounts ( account_id INTEGER, customer_id INTEGER, account_name VARCHAR(50), other_account_details VARCHAR(255) )
SELECT high_points FROM table_27722734_11 WHERE date = "April 8"
Name the high points for april 8
CREATE TABLE table_27722734_11 (high_points VARCHAR, date VARCHAR)
SELECT delivered_as FROM table_name_64 WHERE locomotive = "h3"
What is the Delivered as name of the H3 Locomotive?
CREATE TABLE table_name_64 (delivered_as VARCHAR, locomotive VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Private" AND procedures.short_title = "Ventricl shunt tube punc"
what is the number of patients whose insurance is private and procedure short title is ventricl shunt tube punc?
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid 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 ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT location_attendance FROM table_27722734_10 WHERE team = "Charlotte"
what was the location for charlotte?
CREATE TABLE table_27722734_10 (location_attendance VARCHAR, team VARCHAR)
SELECT entered_service FROM table_name_54 WHERE locomotive = "h1"
What is the Entered service date of the H1 Locomotive?
CREATE TABLE table_name_54 (entered_service VARCHAR, locomotive VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.long_title = "Incisional ventral hernia with obstruction"
what is the number of patients whose diagnoses long title is incisional ventral hernia with obstruction?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) 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, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear 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 ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT high_points FROM table_27722734_10 WHERE date = "March 27"
who had high points on march 27?
CREATE TABLE table_27722734_10 (high_points VARCHAR, date VARCHAR)
SELECT MAX(week) FROM table_name_53 WHERE result = "l 16–12"
What was the highest week with a result of l 16–12?
CREATE TABLE table_name_53 (week INTEGER, result VARCHAR)
SELECT Name, Age FROM artist ORDER BY Age DESC
What are the names and ages of artists? Show the result in a bar graph, list y axis in descending order.
CREATE TABLE artist ( Artist_ID int, Name text, Country text, Year_Join int, Age int ) CREATE TABLE exhibition_record ( Exhibition_ID int, Date text, Attendance int ) CREATE TABLE exhibition ( Exhibition_ID int, Year int, Theme text, Artist_ID int, Ticket_Price real )
SELECT MIN(game) FROM table_27722734_12
What number was the first game?
CREATE TABLE table_27722734_12 (game INTEGER)
SELECT opponent FROM table_name_52 WHERE result = "l 27–3"
Who was the opponent at the game with a result of l 27–3?
CREATE TABLE table_name_52 (opponent VARCHAR, result VARCHAR)
SELECT "Player" FROM table_70165 WHERE "Score" = '68-68-75-74=285'
Name the player for 68-68-75-74=285
CREATE TABLE table_70165 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ( $ )" text )
SELECT record FROM table_27723228_12 WHERE score = "W 101–93 (OT)"
Name the record for w 101–93 (ot)
CREATE TABLE table_27723228_12 (record VARCHAR, score VARCHAR)