answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT Class, COUNT(Class) FROM Ship WHERE NOT Ship_ID IN (SELECT Ship_ID FROM captain) GROUP BY Class
For those ships that do not have a captain, tell me the total number of their classes using a pie chart.
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 away_team AS score FROM table_name_79 WHERE away_team = "north melbourne"
What is the score for the away team of north melbourne?
CREATE TABLE table_name_79 (away_team VARCHAR)
SELECT score FROM table_1547951_3 WHERE opponents = "Rick Leach Zina Garrison"
Name the score for rick leach zina garrison
CREATE TABLE table_1547951_3 (score VARCHAR, opponents VARCHAR)
SELECT "College" FROM table_11643 WHERE "Team" = 'chicago stags' AND "Position" = 'g'
What college has the Chicago stags and position is G?
CREATE TABLE table_11643 ( "Round" text, "Player" text, "Position" text, "Team" text, "College" text )
SELECT home_team FROM table_name_46 WHERE venue = "victoria park"
Which home team plays at victoria park?
CREATE TABLE table_name_46 (home_team VARCHAR, venue VARCHAR)
SELECT swimsuit FROM table_15532342_2 WHERE state = "Arizona"
Name the swimsuit for arizona
CREATE TABLE table_15532342_2 (swimsuit VARCHAR, state VARCHAR)
SELECT MIN("Three Pointers") FROM table_25397 WHERE "Rebounds" = '178'
What is the lowest number of three pointers in games where the number of rebounds was 178?
CREATE TABLE table_25397 ( "Player" text, "Games Played" real, "Field Goals" real, "Three Pointers" real, "Free Throws" real, "Rebounds" real, "Assists" real, "Blocks" real, "Steals" real, "Points" real )
SELECT competition FROM table_name_38 WHERE event = "team all-round" AND year < 1913
what is the competition for the event team all-round in the year before 1913?
CREATE TABLE table_name_38 (competition VARCHAR, event VARCHAR, year VARCHAR)
SELECT driver FROM table_15530244_5 WHERE race_2 = "7"
Name the driver for race 2 7
CREATE TABLE table_15530244_5 (driver VARCHAR, race_2 VARCHAR)
SELECT type FROM table_name_2 WHERE nat = "ger" AND name = "marcell jansen"
Marcell Jansen of the nation GER has what for the type?
CREATE TABLE table_name_2 ( type VARCHAR, nat VARCHAR, name VARCHAR )
SELECT event FROM table_name_60 WHERE year < 1913 AND position = "2nd"
what is the event for the year less than 1913 with the position of 2nd?
CREATE TABLE table_name_60 (event VARCHAR, year VARCHAR, position VARCHAR)
SELECT COUNT(qualifying) FROM table_15530244_5 WHERE race_3 = "3"
Name the total number of qualifiying for race 3 being 3
CREATE TABLE table_15530244_5 (qualifying VARCHAR, race_3 VARCHAR)
SELECT SUM(grid) FROM table_name_91 WHERE rider = "ryuichi kiyonari"
How many Grid has a Rider of ryuichi kiyonari?
CREATE TABLE table_name_91 ( grid INTEGER, rider VARCHAR )
SELECT competition FROM table_name_8 WHERE venue = "paris" AND position = "1st" AND event = "parallel bars"
what is the competition in paris for the parallel bars with a position of 1st?
CREATE TABLE table_name_8 (competition VARCHAR, event VARCHAR, venue VARCHAR, position VARCHAR)
SELECT driver FROM table_15530244_5 WHERE race_2 = "2"
Name the driver for race 2 2
CREATE TABLE table_15530244_5 (driver VARCHAR, race_2 VARCHAR)
SELECT tournament FROM table_name_41 WHERE outcome = "runner-up" AND score = "4–6, 3–6"
What Tournament has an Outcome of runner-up, and a Score of 4 6, 3 6?
CREATE TABLE table_name_41 ( tournament VARCHAR, outcome VARCHAR, score VARCHAR )
SELECT competition FROM table_name_78 WHERE year > 1911 AND position = "1st" AND event = "rings"
what is the competition in a year after 1911 with the position of 1st for the rings?
CREATE TABLE table_name_78 (competition VARCHAR, event VARCHAR, year VARCHAR, position VARCHAR)
SELECT race_1 FROM table_15530244_5 WHERE race_3 = "8"
Name the race 1 when race 3 is 8
CREATE TABLE table_15530244_5 (race_1 VARCHAR, race_3 VARCHAR)
SELECT lab.labresulttime FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-99708')) AND DATETIME(lab.labresulttime, 'start of year') = DATETIME(CURRENT_TI...
when did patient 006-99708 first receive a lab test in 02/this year?
CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid numb...
SELECT year FROM table_name_26 WHERE position = "1st" AND venue = "paris"
what is the year that the position was 1st in paris?
CREATE TABLE table_name_26 (year VARCHAR, position VARCHAR, venue VARCHAR)
SELECT race_2 FROM table_15530244_5 WHERE driver = "James Winslow"
Name the race 2 for james winslow
CREATE TABLE table_15530244_5 (race_2 VARCHAR, driver VARCHAR)
SELECT AVG(chartevents.valuenum) FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 3663)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'admit...
what was patient 3663's monthly average value of body weight since 5 years ago?
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 home_team FROM table_name_16 WHERE venue = "mcg"
Which team plays their home matches at the mcg Venue?
CREATE TABLE table_name_16 (home_team VARCHAR, venue VARCHAR)
SELECT COUNT(pos) FROM table_15530244_5 WHERE race_1 = "2"
Name the total number of positions for race 1 being 2
CREATE TABLE table_15530244_5 (pos VARCHAR, race_1 VARCHAR)
SELECT JOB_ID, AVG(DEPARTMENT_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID
For those employees who did not have any job in the past, give me the comparison about the average of department_id over the job_id , and group by attribute job_id by a bar chart.
CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) 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...
SELECT host FROM table_name_11 WHERE original_airdate = "june 11, 2007"
What host has an original air date of june 11, 2007?
CREATE TABLE table_name_11 (host VARCHAR, original_airdate VARCHAR)
SELECT report FROM table_15511178_3 WHERE pole_position = "Carl Skerlong" AND winning_team = "Newman Wachs Racing"
Did the race get reported where the winning team was Newman Wachs racing and the pole belonged to Carl Skerlong
CREATE TABLE table_15511178_3 (report VARCHAR, pole_position VARCHAR, winning_team VARCHAR)
SELECT MIN("Established") FROM table_1450
Name the least established
CREATE TABLE table_1450 ( "University" text, "Location" text, "Established" real, "Endowment as of 2008" text, "Campus Area (acres)" real, "Kiplingers Top 100 Values" text, "Enrollment as of 2008" real )
SELECT location FROM table_name_96 WHERE record = "3-2"
Where is the location of a team with a 3-2 record?
CREATE TABLE table_name_96 (location VARCHAR, record VARCHAR)
SELECT report FROM table_15511178_3 WHERE rd = 8
Did the round 8 race get reported
CREATE TABLE table_15511178_3 (report VARCHAR, rd VARCHAR)
SELECT "Date" FROM table_10762 WHERE "Result F\u2013A" = '1–2' AND "Opponent" = 'bolton wanderers'
What day did they play the bolton wanderers with a result F A of 1 2?
CREATE TABLE table_10762 ( "Game" real, "Date" text, "Venue" text, "Opponent" text, "Result F\u2013A" text, "Attendance" real )
SELECT res FROM table_name_67 WHERE record = "4-2"
What is the result of the team with the 4-2 record?
CREATE TABLE table_name_67 (res VARCHAR, record VARCHAR)
SELECT race FROM table_15511178_3 WHERE winning_team = "Mathiasen Motorsports" AND pole_position = "Jonathan Bomarito"
Which race was the winning team mathiasen motorsports and the pole belonged to jonathan bomarito
CREATE TABLE table_15511178_3 (race VARCHAR, winning_team VARCHAR, pole_position VARCHAR)
SELECT COUNT(1) FROM Badges AS b
How many tag badges have been awarded?.
CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) CREATE TABLE PostsWithDeleted ( Id number, PostTypeId number, ...
SELECT away_team AS score FROM table_name_30 WHERE home_team = "st kilda"
What was St Kilda's away team score?
CREATE TABLE table_name_30 (away_team VARCHAR, home_team VARCHAR)
SELECT COUNT(winning_driver) FROM table_15511178_3 WHERE rd = 8
how many winners were in round 8
CREATE TABLE table_15511178_3 (winning_driver VARCHAR, rd VARCHAR)
SELECT T1.Participant_Type_Code, AVG(COUNT(*)) FROM Participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID = T2.Participant_ID GROUP BY T1.Participant_Type_Code ORDER BY T1.Participant_Type_Code
How many events have each participants attended? Show their average number by each participant type code using a bar chart, sort from low to high by the names.
CREATE TABLE Services ( Service_ID INTEGER, Service_Type_Code CHAR(15) ) CREATE TABLE Events ( Event_ID INTEGER, Service_ID INTEGER, Event_Details VARCHAR(255) ) CREATE TABLE Participants_in_Events ( Event_ID INTEGER, Participant_ID INTEGER ) CREATE TABLE Participants ( Participant_ID...
SELECT AVG(crowd) FROM table_name_41 WHERE venue = "moorabbin oval"
What was the attendance at Moorabbin Oval?
CREATE TABLE table_name_41 (crowd INTEGER, venue VARCHAR)
SELECT channel_tv___dt__ FROM table_1553485_1 WHERE station = "KPIX"
What channel tv (dt) plays the KPIX station?
CREATE TABLE table_1553485_1 (channel_tv___dt__ VARCHAR, station 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, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DENVER' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PITTSBU...
i would like a flight from DENVER to PITTSBURGH
CREATE TABLE flight ( aircraft_code_sequence text, airline_code varchar, airline_flight text, arrival_time int, connections int, departure_time int, dual_carrier text, flight_days text, flight_id int, flight_number int, from_airport varchar, meal_code text, stops int,...
SELECT away_team FROM table_name_48 WHERE home_team = "melbourne"
Who was Melbourne's away team opponent?
CREATE TABLE table_name_48 (away_team VARCHAR, home_team VARCHAR)
SELECT city_of_license__market FROM table_1553485_1 WHERE channel_tv___dt__ = "3 (26)"
Which city of license/market has 3 (26) as their channel tv (dt)?
CREATE TABLE table_1553485_1 (city_of_license__market VARCHAR, channel_tv___dt__ VARCHAR)
SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'cont inv me...
how many patients in this year were prescribed with methylprednisolone sodium succ in the same month after the cont inv mec ven 96+ hrs procedure?
CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time, drug text, dose_val_rx text, dose_unit_rx text, route text ) CREATE TABLE icustays ( row_id number, subject_id number, hadm_id number, icustay_id number, ...
SELECT crowd FROM table_name_19 WHERE away_team = "footscray"
What was the attendance at the Footscray away game?
CREATE TABLE table_name_19 (crowd VARCHAR, away_team VARCHAR)
SELECT channel_tv___dt__ FROM table_1553485_1 WHERE city_of_license__market = "San Francisco - Oakland - San Jose"
Which channel tv (dt) plays in San Francisco - Oakland - San Jose?
CREATE TABLE table_1553485_1 (channel_tv___dt__ VARCHAR, city_of_license__market VARCHAR)
SELECT MIN(Posts.Tags) AS "minimum_#_of_answers", AVG(CAST(Posts.AnswerCount AS FLOAT)) AS "average_#_of_answers", MAX(Posts.AnswerCount) AS "maximum_#_of_answers" FROM Posts WHERE Posts.PostTypeId = 1
Average Number of Tags per Post.
CREATE TABLE TagSynonyms ( Id number, SourceTagName text, TargetTagName text, CreationDate time, OwnerUserId number, AutoRenameCount number, LastAutoRename time, Score number, ApprovedByUserId number, ApprovalDate time ) CREATE TABLE PostsWithDeleted ( Id number, PostTyp...
SELECT competition FROM table_name_54 WHERE date = "14 june 2008"
Tell me the competition that happened on 14 june 2008
CREATE TABLE table_name_54 (competition VARCHAR, date VARCHAR)
SELECT COUNT(years_owned) FROM table_1553485_1 WHERE station = "KPIX"
How many years has station KPIX been owned?
CREATE TABLE table_1553485_1 (years_owned VARCHAR, station VARCHAR)
SELECT "Production code" FROM table_27832 WHERE "Directed by" = 'Sam Weisman'
What is the production code for the episode directed by Sam weisman?
CREATE TABLE table_27832 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text )
SELECT score FROM table_name_43 WHERE venue = "tanteen recreation ground, st. george's"
Tell me the score for Venue of tanteen recreation ground, st. george's
CREATE TABLE table_name_43 (score VARCHAR, venue VARCHAR)
SELECT current_affiliation FROM table_1553485_1 WHERE city_of_license__market = "San Francisco - Oakland - San Jose"
Who currently affiliates in San Francisco - Oakland - San Jose?
CREATE TABLE table_1553485_1 (current_affiliation VARCHAR, city_of_license__market VARCHAR)
SELECT "Loss" FROM table_80175 WHERE "Date" = 'may 22'
Name the loss on may 22
CREATE TABLE table_80175 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Record" text )
SELECT COUNT(_number_of_weeks) FROM table_name_74 WHERE season = "3 – spring 2008"
How many weeks are associated with Season 3 – spring 2008?
CREATE TABLE table_name_74 (_number_of_weeks VARCHAR, season VARCHAR)
SELECT condition FROM table_1555308_1 WHERE bleeding_time = "Prolonged" AND prothrombin_time = "Unaffected"
In which condition(s) is bleeding time prolonged and prothrombin time unaffected?
CREATE TABLE table_1555308_1 (condition VARCHAR, bleeding_time VARCHAR, prothrombin_time VARCHAR)
SELECT 2 AS __f_ FROM table_name_7 WHERE verb = "chena"
What is the 2nd verb for chena?
CREATE TABLE table_name_7 ( verb VARCHAR )
SELECT winner FROM table_name_89 WHERE _number_of_weeks < 13 AND third_place = "robert kudelski"
Who won when robert kudelski finished with under 13 weeks?
CREATE TABLE table_name_89 (winner VARCHAR, _number_of_weeks VARCHAR, third_place VARCHAR)
SELECT COUNT(prothrombin_time) FROM table_1555308_1 WHERE platelet_count = "Decreased or unaffected"
How many entries for prothrombin time are there where platelet count is "decreased or unaffected"?
CREATE TABLE table_1555308_1 (prothrombin_time VARCHAR, platelet_count VARCHAR)
SELECT average FROM table_28846752_4 WHERE highest_score = "151"
What is the average when the highest score is 151?
CREATE TABLE table_28846752_4 ( average VARCHAR, highest_score VARCHAR )
SELECT AVG(attendance) FROM table_name_68 WHERE opponent = "brewers" AND score = "6–3"
What is the average attendance when Brewers are the opponent with a score of 6–3?
CREATE TABLE table_name_68 (attendance INTEGER, opponent VARCHAR, score VARCHAR)
SELECT bleeding_time FROM table_1555308_1 WHERE platelet_count = "Decreased" AND prothrombin_time = "Unaffected"
How is the bleeding time wherein platelet count is decreased and prothrombin time is unaffected?
CREATE TABLE table_1555308_1 (bleeding_time VARCHAR, platelet_count VARCHAR, prothrombin_time VARCHAR)
SELECT season FROM table_name_13 WHERE winner = "stoke city"
What season did Stoke City win?
CREATE TABLE table_name_13 ( season VARCHAR, winner VARCHAR )
SELECT loss FROM table_name_81 WHERE date = "june 10"
What loss occurred on June 10?
CREATE TABLE table_name_81 (loss VARCHAR, date VARCHAR)
SELECT bleeding_time FROM table_1555308_1 WHERE prothrombin_time = "Unaffected" AND platelet_count = "Unaffected"
What are all the possible bleeding time results where prothrombin time and platelet count are both unaffected?
CREATE TABLE table_1555308_1 (bleeding_time VARCHAR, prothrombin_time VARCHAR, platelet_count VARCHAR)
SELECT "Series#" FROM table_1000 WHERE "Writer" = 'Julian Unthank'
What number from the total number of episodes is the episode written by Julian Unthank?
CREATE TABLE table_1000 ( "Total#" real, "Series#" real, "Title" text, "Writer" text, "Director" text, "Original air date" text )
SELECT opponent FROM table_name_36 WHERE score = "5–4"
Who is the opponent with a score of 5–4?
CREATE TABLE table_name_36 (opponent VARCHAR, score VARCHAR)
SELECT percentage_of_land_area FROM table_15555661_2 WHERE percentage_protected = "7.96"
What is the percentage of land area in the ecozone that the percentage protected is 7.96?
CREATE TABLE table_15555661_2 (percentage_of_land_area VARCHAR, percentage_protected VARCHAR)
SELECT COUNT(singles_w_l) FROM table_10294071_1 WHERE doubles_w_l = "11–14"
what is the total number of singles w l where doubles w l is 11 14
CREATE TABLE table_10294071_1 ( singles_w_l VARCHAR, doubles_w_l VARCHAR )
SELECT week FROM table_name_70 WHERE result = "w 28-17"
What is the week for Result of w 28-17?
CREATE TABLE table_name_70 (week VARCHAR, result VARCHAR)
SELECT percentage_of_total_area FROM table_15555661_2 WHERE percentage_of_land_area = "2.2"
What is the percentage of total area in the ecozone that the percentage of land area is 2.2?
CREATE TABLE table_15555661_2 (percentage_of_total_area VARCHAR, percentage_of_land_area VARCHAR)
SELECT SUM("Attendance") FROM table_35920 WHERE "Date" = 'november 29, 1953'
What was the Attendance on November 29, 1953?
CREATE TABLE table_35920 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real )
SELECT AVG(attendance) FROM table_name_45 WHERE date = "october 26, 1947"
What is the avarage Attendance for the Date of october 26, 1947?
CREATE TABLE table_name_45 (attendance INTEGER, date VARCHAR)
SELECT percentage_of_total_area FROM table_15555661_2 WHERE percentage_protected = "8.06"
What is the percentage of total area in the ecozone that the percentage protected is 8.06?
CREATE TABLE table_15555661_2 (percentage_of_total_area VARCHAR, percentage_protected VARCHAR)
SELECT "Pitch" FROM table_78004 WHERE "Location" = 'isle of man'
What Pitch is located at Isle of Man?
CREATE TABLE table_78004 ( "Name (Irish)" text, "Name (English)" text, "Sport" text, "Teams" text, "Location" text, "Pitch" text )
SELECT years FROM table_name_70 WHERE name = "arapohue school"
Can you tell me the Years that has the Name of arapohue school?
CREATE TABLE table_name_70 (years VARCHAR, name VARCHAR)
SELECT percentage_of_land_area FROM table_15555661_2 WHERE percentage_protected = "15.28"
What is the percentage of land area in the ecozone that the percentage protected is 15.28?
CREATE TABLE table_15555661_2 (percentage_of_land_area VARCHAR, percentage_protected VARCHAR)
SELECT COUNT("title") FROM table_203_489 WHERE "year" = 1990
how many ghostbusters games were released in 1990 ?
CREATE TABLE table_203_489 ( id number, "year" number, "title" text, "system" text, "developer" text, "publisher" text )
SELECT MIN(decile) FROM table_name_52 WHERE area = "matakohe" AND roll > 86
Can you tell me the lowest Decile that has the Area of matakohe, and the Roll larger than 86?
CREATE TABLE table_name_52 (decile INTEGER, area VARCHAR, roll VARCHAR)
SELECT COUNT(area__km²_) FROM table_15555661_2 WHERE ecozone = "Boreal Shield"
How large is the Boreal Shield in km2?
CREATE TABLE table_15555661_2 (area__km²_ VARCHAR, ecozone VARCHAR)
SELECT outcome FROM table_name_59 WHERE surface = "grass"
What was Olga Govortsova's outcome when she played on a grass surface?
CREATE TABLE table_name_59 ( outcome VARCHAR, surface VARCHAR )
SELECT COUNT(roll) FROM table_name_95 WHERE area = "aranga"
Can you tell me the total number of Roll that has the Area of aranga?
CREATE TABLE table_name_95 (roll VARCHAR, area VARCHAR)
SELECT percentage_of_total_area FROM table_15555661_2 WHERE area__km²_ = 1782252
What is the percentage of total area in the ecozone that the area is 1782252 km2?
CREATE TABLE table_15555661_2 (percentage_of_total_area VARCHAR, area__km²_ VARCHAR)
SELECT altitude__km_ FROM table_148578_1 WHERE yield__approximate_ = "1.4 megatons"
What was the altitude of the yield of 1.4 megatons?
CREATE TABLE table_148578_1 ( altitude__km_ VARCHAR, yield__approximate_ VARCHAR )
SELECT name FROM table_name_95 WHERE roll > 419
Can you tell me the Name that has the Roll larger than 419?
CREATE TABLE table_name_95 (name VARCHAR, roll INTEGER)
SELECT platelet_count FROM table_1557752_1 WHERE condition = "Hemophilia"
What is the condition of the platelet counts in hemophilia?
CREATE TABLE table_1557752_1 (platelet_count VARCHAR, condition VARCHAR)
SELECT "Mascot" FROM table_35550 WHERE "School" = 'shelbyville'
Name the mascot for shelbyville
CREATE TABLE table_35550 ( "School" text, "Location" text, "Mascot" text, "Enrollment" real, "IHSAA Class" text, "IHSAA Football Class" text, "# / County" text )
SELECT COUNT(week) FROM table_name_17 WHERE opponent = "at new orleans saints" AND attendance > 53 OFFSET 448
Which total number of Week has an Opponent of at new orleans saints, and an Attendance larger than 53,448?
CREATE TABLE table_name_17 (week VARCHAR, opponent VARCHAR, attendance VARCHAR)
SELECT prothrombin_time FROM table_1557752_1 WHERE condition = "Von Willebrand disease"
What is the prothrombin time in Von willebrand disease?
CREATE TABLE table_1557752_1 (prothrombin_time VARCHAR, condition VARCHAR)
SELECT Team_Name, School_ID FROM basketball_match
School_ID across team name in a pie chart.
CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Percent text, ACC_Home text, ACC_Road text, All_Games text, All_Games_Percent int, All_Home text, All_Road text, All_Neutral text ) CREATE TABLE university ( Scho...
SELECT attendance FROM table_name_70 WHERE result = "w 51-21"
Which Attendance has a Result of w 51-21?
CREATE TABLE table_name_70 (attendance VARCHAR, result VARCHAR)
SELECT prothrombin_time FROM table_1557752_1 WHERE partial_thromboplastin_time = "Prolonged" AND bleeding_time = "Prolonged"
If the partial thromboplastin and bleeding time is prolonged, what is the prothrombin time?
CREATE TABLE table_1557752_1 (prothrombin_time VARCHAR, partial_thromboplastin_time VARCHAR, bleeding_time VARCHAR)
SELECT time_retired FROM table_name_74 WHERE laps = 42 AND grid = 4
Tell me the time/retired for Laps of 42 and Grids of 4
CREATE TABLE table_name_74 ( time_retired VARCHAR, laps VARCHAR, grid VARCHAR )
SELECT away_team FROM table_name_98 WHERE venue = "arden street oval"
Who was the Away team at Arden Street Oval?
CREATE TABLE table_name_98 (away_team VARCHAR, venue VARCHAR)
SELECT bleeding_time FROM table_1557752_1 WHERE condition = "Bernard-Soulier syndrome"
What is the bleeding time in Bernard-soulier syndrome?
CREATE TABLE table_1557752_1 (bleeding_time VARCHAR, condition VARCHAR)
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT prescriptions.hadm_id FROM prescriptions WHERE prescriptions.drug = 'vancomycin desensitization')
how many patients had been prescribed vancomycin desensitization?
CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number...
SELECT AVG(top_25) FROM table_name_27 WHERE wins > 0
What is the average top-25 value for majors that have more than 0 wins?
CREATE TABLE table_name_27 (top_25 INTEGER, wins INTEGER)
SELECT ring_name FROM table_1557974_1 WHERE current_rank = "f0 Jūryō 3 West"
Which ring names are currently ranked f0 jūryō 3 west?
CREATE TABLE table_1557974_1 (ring_name VARCHAR, current_rank VARCHAR)
SELECT COUNT(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE type = "shared"
How many songs have a shared vocal?
CREATE TABLE instruments ( songid number, bandmateid number, instrument text ) CREATE TABLE band ( id number, firstname text, lastname text ) CREATE TABLE vocals ( songid number, bandmate number, type text ) CREATE TABLE songs ( songid number, title text ) CREATE TABLE tr...
SELECT MAX(cuts_made) FROM table_name_18 WHERE events = 7 AND top_25 > 2
What is the most number of cuts made that had more than 7 events played and more than 2 top-25s?
CREATE TABLE table_name_18 (cuts_made INTEGER, events VARCHAR, top_25 VARCHAR)
SELECT COUNT(career_and_other_notes) FROM table_1557974_1 WHERE birthplace = "Nara"
How many wrestlers were born in nara, and have a completed 'career and other notes' section?
CREATE TABLE table_1557974_1 (career_and_other_notes VARCHAR, birthplace VARCHAR)
SELECT DATEADD(mm, (YEAR(Posts.CreationDate) - 1900) * 12 + MONTH(Posts.CreationDate) - 1, 0) AS Month, Tags.TagName, COUNT(*) AS Questions FROM Tags LEFT JOIN PostTags ON PostTags.TagId = Tags.Id LEFT JOIN Posts ON Posts.Id = PostTags.PostId LEFT JOIN PostTypes ON PostTypes.Id = Posts.PostTypeId WHERE Tags.TagName IN ...
R, Python and C++ Trends (# Questions per Tag per Month).
CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description...