schema
stringlengths
20
14.6k
query
stringlengths
17
2.58k
question
stringlengths
8
1.06k
<table0>[CREATE] { <col0>[SCHEMA]:[gov_schema] } <table1>[gov_schema] { <col0>[budget_allocation]:[year] <col1>[INT]:[service] <col2>[VARCHAR]:[INT] }
SELECT SUM( amount ) FROM gov_schema.budget_allocation WHERE year = 2020 AND ( service = 'Healthcare' OR service = 'Education' );
What is the total budget allocated for healthcare and education services in 2020?
<table0>[table_name_40] { <col0>[rank]:[INTEGER] <col1>[nationality]:[VARCHAR] <col2>[time]:[VARCHAR] }
SELECT MIN( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "great britain" AND `<col2>` = "2:10.33"
What is the lowest rank from Great Britain with a time of 2:10.33?
<table0>[microbiologyevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[charttime]:[time] <col4>[spec_type_desc]:[text] <col5>[org_name]:[text] } <table1>[labevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[itemid]:[number] <col4>[...
SELECT `<table0>`.charttime FROM `<table0>` WHERE `<table0>`.hadm_id IN ( SELECT `<table7>`.hadm_id FROM `<table7>` WHERE `<table7>`.subject_id = 69895 ) AND DATETIME( `<table0>`.charttime ) >= DATETIME( CURRENT_TIME( ), '-177 month' ) ORDER BY `<table0>`.charttime LIMIT 1
when did patient 69895 receive a microbiology test since 177 months ago first time?
<table0>[table_44360] { <col0>[Tournament]:[text] <col1>[1992]:[text] <col2>[1993]:[text] <col3>[1994]:[text] <col4>[1995]:[text] <col5>[1996]:[text] <col6>[1997]:[text] <col7>[1998]:[text] <col8>[1999]:[text] <col9>[2000]:[text] <col10>[2001]:[text] <col11>[2002]:[text] <col12>[2003]:[text] <col13>[Career]:[text] <col...
SELECT "1999" FROM `<table0>` WHERE "2003" = 'a' AND "Career SR" = '0 / 4'
What is 1999, when 2003 is 'A', and when Career SR is '0 / 4'?
<table0>[table_name_55] { <col0>[round]:[INTEGER] <col1>[college]:[VARCHAR] <col2>[overall]:[VARCHAR] }
SELECT SUM( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "michigan" AND `<col2>` > 37
WHAT IS THE ROUND FROM MICHIGAN COLLEGE, AND OVERALL LARGER THAN 37?
<table0>[gsi] { <col0>[course_offering_id]:[int] <col1>[student_id]:[int] } <table1>[program_requirement] { <col0>[program_id]:[int] <col1>[category]:[varchar] <col2>[min_credit]:[int] <col3>[additional_req]:[varchar] } <table2>[offering_instructor] { <col0>[offering_instructor_id]:[int] <col1>[offering_id]:[int] <co...
SELECT DISTINCT course.department, course.name, course.number, `<table12>`.workload, `<table12>`.workload FROM course, `<table12>` WHERE `<table12>`.category LIKE '%MDE%' AND `<table12>`.course_id = course.course_id AND `<table12>`.workload = ( SELECT MIN( PROGRAM_COURSEalias1.workload ) FROM `<table12>` AS PROGRAM_COU...
Which class most easily fulfills the MDE requirement ?
<table0>[table_25597136_1] { <col0>[focal_plane_in_ft__m]:[VARCHAR] <col1>[location]:[VARCHAR] }
SELECT focal_plane_in_ft__m_ FROM `<table0>` WHERE `<col1>` = "Naidi Hills, Basco"
Location for focal plane in ft (m) is naidi hills, basco.
<table0>[demographic] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[name]:[text] <col3>[marital_status]:[text] <col4>[age]:[text] <col5>[dob]:[text] <col6>[gender]:[text] <col7>[language]:[text] <col8>[religion]:[text] <col9>[admission_type]:[text] <col10>[days_stay]:[text] <col11>[insurance]:[text] <col12>...
SELECT COUNT( DISTINCT `<table0>`.subject_id ) FROM `<table0>` INNER JOIN prescriptions ON `<table0>`.hadm_id = prescriptions.hadm_id WHERE `<table0>`.diagnosis = "RASH" AND prescriptions.route = "TP"
how many patients primarily diagnosed with rash had drug route as tp?
<table0>[movies] { <col0>[title]:[VARCHAR] <col1>[255]:[release_year] <col2>[INT]:[INSERT] }
SELECT MAX( release_year ) FROM movies;
What is the release year of the most recent movie in the database?
<table0>[allergy] { <col0>[allergyid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[text] <col3>[allergyname]:[text] <col4>[allergytime]:[time] } <table1>[lab] { <col0>[labid]:[number] <col1>[patientunitstayid]:[number] <col2>[labname]:[text] <col3>[labresult]:[number] <col4>[labresulttime]:[time] } <...
SELECT COUNT( DISTINCT `<table4>`.uniquepid ) FROM `<table4>` WHERE STRFTIME( '%y', `<table4>`.hospitaladmittime ) <= '2103'
calculate the number of patients who had been admitted to hospital until 2103.
<table0>[table_name_12] { <col0>[loss]:[VARCHAR] <col1>[name]:[VARCHAR] <col2>[long]:[VARCHAR] }
SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "leon patton" AND `<col2>` > 45
How many losses did leon patton have with the longest gain higher than 45?
<table0>[table_203_505] { <col0>[number]:[number] <col1>[number]:[event] <col2>[text]:[type] <col3>[text]:[matthew] <col4>[text]:[mark] <col5>[text]:[luke] <col6>[text]:[john] }
SELECT COUNT( "event" ) FROM `<table0>` WHERE NOT "john" IS NULL
how many events does john describe ?
<table0>[CountryEvents] { <col0>[EventID]:[INT] <col1>[Country]:[VARCHAR] <col2>[EventType]:[VARCHAR] }
SELECT Country, COUNT( * ) FROM `<table0>` WHERE `<col2>` = 'Esports' GROUP BY Country;
What is the total number of esports events in each country?
<table0>[table_name_23] { <col0>[record]:[VARCHAR] <col1>[date]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "june 24"
What is the Record of the game on June 24?
<table0>[table_43422] { <col0>[Week]:[real] <col1>[Date]:[text] <col2>[Opponent]:[text] <col3>[Result]:[text] <col4>[Attendance]:[text] }
SELECT "Attendance" FROM `<table0>` WHERE "Opponent" = 'carolina panthers'
Which Attendance has an Opponent of carolina panthers?
<table0>[salaries] { <col0>[INT]:[employee_id] <col1>[INT]:[job_title] <col2>[VARCHAR]:[annual_salary] <col3>[DECIMAL]:[INSERT] }
SELECT job_title, AVG( annual_salary ) as avg_salary FROM `<table0>` GROUP BY job_title ORDER BY avg_salary DESC LIMIT 3;
Show the top 3 roles with the highest average salary in the 'salaries' table.
<table0>[ContractNegotiations] { <col0>[ContractID]:[INT] <col1>[Company]:[VARCHAR] <col2>[Equipment]:[VARCHAR] <col3>[NegotiationDate]:[DATE] <col4>[ContractValue]:[DECIMAL] }
SELECT ContractID, Company, Equipment, NegotiationDate, ContractValue, RANK( ) OVER( PARTITION BY `<col2>` ORDER BY `<col4>` DESC ) AS HighestValueContract FROM `<table0>` WHERE `<col2>` = 'Drone Technology'
Which defense contractor has the highest contract value for drone technology?
<table0>[table_204_232] { <col0>[number]:[rank] <col1>[number]:[nation] <col2>[text]:[gold] <col3>[number]:[silver] <col4>[number]:[bronze] <col5>[number]:[total] }
SELECT "silver" FROM `<table0>` WHERE "nation" = 'chile'
what 's the number of silver medals did chile win ?
<table0>[mental_health_conditions] { <col0>[condition_id]:[INT] <col1>[name]:[VARCHAR] <col2>[255]:[description] <col3>[VARCHAR]:[255] } <table1>[patients] { <col0>[patient_id]:[INT] <col1>[age]:[INT] <col2>[gender]:[VARCHAR] <col3>[condition]:[VARCHAR] <col4>[255]:[ethnicity] <col5>[VARCHAR]:[255] } <table2>[therapy...
SELECT mental_health_conditions.name, AVG( `<table1>`.age ) FROM `<table1>` JOIN therapy_sessions ON `<table1>`.patient_id = therapy_sessions.patient_id JOIN mental_health_conditions ON `<table1>`.condition = mental_health_conditions.condition JOIN communities ON `<table1>`.community_id = communities.community_id WHERE...
What is the most common mental health condition treated in the last 12 months in Pacific Islander community and the average age of patients with this condition?
<table0>[table_63082] { <col0>[Rank]:[text] <col1>[text]:[Height] <col2>[text]:[Floors] <col3>[real]:[Year] }
SELECT MAX( "Year" ) FROM `<table0>` WHERE "Name" = '190 south lasalle street'
What year was the 190 South Lasalle Street?
<table0>[table_name_14] { <col0>[points]:[VARCHAR] <col1>[entrant]:[VARCHAR] <col2>[chassis]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "ats wheels" AND `<col2>` = "ats d2"
How many points did the ATS Wheels entrant with an ATS D2 chassis have?
<table0>[PostTypes] { <col0>[number]:[text] } <table1>[PostTags] { <col0>[PostId]:[number] <col1>[TagId]:[number] } <table2>[CloseAsOffTopicReasonTypes] { <col0>[number]:[IsUniversal] <col1>[boolean]:[InputTitle] <col2>[text]:[MarkdownInputGuidance] <col3>[text]:[MarkdownPostOwnerGuidance] <col4>[text]:[MarkdownPrivi...
SELECT Reputation, DisplayName, Location, AccountId FROM `<table7>` WHERE Reputation > 1540 AND Reputation < 1560 ORDER BY Reputation
Select those with similar reputation.
<table0>[locations] { <col0>[LOCATION_ID]:[decimal] <col1>[STREET_ADDRESS]:[varchar] <col2>[POSTAL_CODE]:[varchar] <col3>[CITY]:[varchar] <col4>[STATE_PROVINCE]:[varchar] <col5>[COUNTRY_ID]:[varchar] } <table1>[employees] { <col0>[EMPLOYEE_ID]:[decimal] <col1>[FIRST_NAME]:[varchar] <col2>[LAST_NAME]:[varchar] <col3>[E...
SELECT JOB_ID, SUM( `<col10>` ) FROM `<table1>` WHERE `<col1>` LIKE '%D%' OR `<col1>` LIKE '%S%' GROUP BY `<col6>` ORDER BY SUM( `<col10>` ) DESC
For all employees who have the letters D or S in their first name, draw a bar chart about the distribution of job_id and the sum of department_id , and group by attribute job_id, rank by the total number from high to low.
<table0>[RenewableEnergyProjects] { <col0>[INT]:[name] <col1>[TEXT]:[location] <col2>[TEXT]:[category] <col3>[TEXT]:[INSERT] }
SELECT COUNT( * ), category FROM `<table0>` WHERE category IN ( 'Solar', 'Wind' ) GROUP BY category;
Identify the number of renewable energy projects in 'Solar' and 'Wind' categories.
<table0>[table_13759592_2] { <col0>[location]:[VARCHAR] <col1>[institution]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "Interlake"
Where is Interlake located?
<table0>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table1>[demographic] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[name]:[text] <col3>[marital_status]:[text] <col4>[age]:[text] <col5>[dob]:[text] <col6>...
SELECT `<table1>`.marital_status, `<table1>`.days_stay FROM `<table1>` WHERE `<table1>`.subject_id = "6983"
what is the marital status and days of hospital stay of subject id 6983?
<table0>[table_20522228_2] { <col0>[rank__timeslot]:[VARCHAR] <col1>[rating]:[VARCHAR] }
SELECT rank__timeslot_ FROM `<table0>` WHERE `<col1>` = "4.1"
What are the rank timeslots where ratings are 4.1?
<table0>[table_1858574_2] { <col0>[state_country]:[VARCHAR] <col1>[position]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = 5
When 5 is the position what is the state or country?
<table0>[table_name_4] { <col0>[name]:[VARCHAR] <col1>[authors]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "tatarinov"
What is the name of the non-mammal who has tatarinov as the author?
<table0>[table_71441] { <col0>[Election]:[text] <col1>[1st]:[Member] <col2>[text]:[1st] <col3>[Party]:[text] <col4>[2nd]:[Member] <col5>[text]:[2nd] <col6>[Party]:[text] }
SELECT "2nd Party" FROM `<table0>` WHERE "1st Party" = 'conservative' AND "1st Member" = 'charles moody' AND "Election" = '1851 by-election'
What is the 2nd party for a conservative 1st party with a 1st member Charles Moody in the election of 1851 by-election?
<table0>[Organizations] { <col0>[organization_id]:[INTEGER] <col1>[parent_organization_id]:[INTEGER] <col2>[organization_details]:[VARCHAR] } <table1>[Customers] { <col0>[customer_id]:[INTEGER] <col1>[customer_details]:[VARCHAR] } <table2>[Services] { <col0>[service_id]:[INTEGER] <col1>[organization_id]:[INTEGER] <co...
SELECT date_moved_in, COUNT( date_moved_in ) FROM `<table1>` AS T1 JOIN Customer_Events AS T2 ON T1.customer_id = T2.customer_id ORDER BY COUNT( date_moved_in ) DESC
What is the proportion of each customer's move in date? You can show me a bar chart that bins move in date into Year interval, sort from high to low by the the number of date moved in.
<table0>[table_name_57] { <col0>[res]:[VARCHAR] <col1>[opponent]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "nate mohr"
What was the result of the event against Nate Mohr?
<table0>[table_name_48] { <col0>[date]:[VARCHAR] <col1>[record]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "33.952"
What is the Date that has a Record of 33.952?
<table0>[PostNoticeTypes] { <col0>[number]:[ClassId] <col1>[number]:[text] <col2>[Body]:[text] <col3>[IsHidden]:[boolean] <col4>[Predefined]:[boolean] <col5>[PostNoticeDurationId]:[number] } <table1>[Votes] { <col0>[number]:[PostId] <col1>[number]:[VoteTypeId] <col2>[number]:[UserId] <col3>[number]:[CreationDate] <col...
SELECT TagUsers.UserLink AS "user_link", TagUsers.Score AS Score, TagUsers.Count AS "count", ( TagUsers.Score + TagUsers.Count ) / 2.0 AS Total FROM ( SELECT a.OwnerUserId AS UserLink, SUM( a.Score ) / 10.0 AS Score, COUNT( a.Score ) AS "count" FROM `<table9>` AS a, `<table9>` AS q INNER JOIN PostTags AS pt ON q.Id = p...
Top users in a tag by score and answer count.
<table0>[table_1181375_1] { <col0>[builder]:[VARCHAR] <col1>[withdrawn]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "1954–1958"
what's the builder where withdrawn is 1954–1958
<table0>[song] { <col0>[f_id]:[VARCHAR] <col1>[genre_is]:[VARCHAR] <col2>[song_name]:[VARCHAR] } <table1>[files] { <col0>[duration]:[VARCHAR] <col1>[file_size]:[VARCHAR] <col2>[formats]:[VARCHAR] <col3>[f_id]:[VARCHAR] }
SELECT T1.duration, T1.file_size, T1.formats FROM `<table1>` AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T2.genre_is = "pop" ORDER BY T2.song_name
List the duration, file size and format of songs whose genre is pop, ordered by title?
<table0>[Tags] { <col0>[number]:[TagName] <col1>[text]:[Count] <col2>[number]:[ExcerptPostId] <col3>[number]:[WikiPostId] } <table1>[SuggestedEdits] { <col0>[number]:[PostId] <col1>[number]:[CreationDate] <col2>[time]:[ApprovalDate] <col3>[time]:[RejectionDate] <col4>[time]:[OwnerUserId] <col5>[number]:[Comment] <col6...
SELECT `<table24>`.Id AS "comment_link", `<table24>`.Score AS "comment_score", Posts.Score AS "post_score", `<table24>`.CreationDate AS "date", Posts.OwnerUserId FROM `<table24>` JOIN Posts ON Posts.Id = `<table24>`.PostId WHERE Text LIKE '-+1%' AND OwnerUserId = '##User##' ORDER BY Posts.Score DESC LIMIT 5000
Comments that start with +1 or -1 (most recent).
<table0>[diagnosis] { <col0>[diagnosisid]:[number] <col1>[patientunitstayid]:[number] <col2>[diagnosisname]:[text] <col3>[diagnosistime]:[time] <col4>[icd9code]:[text] } <table1>[patient] { <col0>[uniquepid]:[text] <col1>[patienthealthsystemstayid]:[number] <col2>[patientunitstayid]:[number] <col3>[gender]:[text] <col...
SELECT COUNT( * ) > 0 FROM `<table0>` WHERE `<table0>`.`<table1>`unitstayid IN ( SELECT `<table1>`.`<table1>`unitstayid FROM `<table1>` WHERE `<table1>`.`<table1>`healthsystemstayid IN ( SELECT `<table1>`.`<table1>`healthsystemstayid FROM `<table1>` WHERE `<table1>`.uniquepid = '030-34260' AND NOT `<table1>`.hospitaldi...
have diagnosed patient 030-34260 with s/p knee surgery - replacement during their first hospital encounter?
<table0>[table_1965650_11] { <col0>[college_junior_club_team]:[VARCHAR] <col1>[position]:[VARCHAR] <col2>[player]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "Centre" AND `<col2>` = "Russ Wiechnik"
What team did Russ Wiechnik, on the centre position, come from?
<table0>[cost] { <col0>[costid]:[number] <col1>[uniquepid]:[text] <col2>[patienthealthsystemstayid]:[number] <col3>[eventtype]:[text] <col4>[eventid]:[number] <col5>[chargetime]:[time] } <table1>[medication] { <col0>[medicationid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[text] <col3>[dosage]:[text...
SELECT 24 * ( STRFTIME( '%j', CURRENT_TIME( ) ) - STRFTIME( '%j', `<table8>`.`<table8>`time ) ) FROM `<table8>` WHERE `<table8>`.`<table5>`unitstayid IN ( SELECT `<table5>`.`<table5>`unitstayid FROM `<table5>` WHERE `<table5>`.`<table5>`healthsystemstayid IN ( SELECT `<table5>`.`<table5>`healthsystemstayid FROM `<table...
how many hours have passed since the first time patient 004-79017 was given a #2: intake on the current icu visit?
<table0>[table_23793770_1] { <col0>[production_code]:[INTEGER] <col1>[directed_by]:[VARCHAR] }
SELECT MIN( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "Michael Morris"
What was the production code for the episode directed by Michael Morris?
<table0>[table_203_281] { <col0>[number]:[season] <col1>[number]:[pitcher] <col2>[text]:[decision] <col3>[text]:[final] <col4>[nscore]:[text] <col5>[opponent]:[text] <col6>[location]:[text] }
SELECT "season" FROM `<table0>` WHERE "location" = 'petco park'
roy oswalt opened for the astros for eight years in a row , seven of which were in minute maid park , but in what year did he start the season opener in petco park ?
<table0>[Activity] { <col0>[actid]:[INTEGER] <col1>[activity_name]:[varchar] } <table1>[Faculty_Participates_in] { <col0>[FacID]:[INTEGER] <col1>[actid]:[INTEGER] } <table2>[Student] { <col0>[StuID]:[INTEGER] <col1>[LName]:[VARCHAR] <col2>[Fname]:[VARCHAR] <col3>[Age]:[INTEGER] <col4>[Sex]:[VARCHAR] <col5>[Major]:[IN...
SELECT Fname, COUNT( * ) FROM `<table3>` AS T1 JOIN `<table3>`_Participates_in AS T2 ON T1.FacID = T2.FacID GROUP BY T1.FacID ORDER BY `<col2>`
What is the first name of the faculty members who participated in at least one activity? For each of them, also show the number of activities they participated in with a bar chart, list in ascending by the X.
<table0>[Astronauts] { <col0>[INT]:[name] <col1>[VARCHAR]:[gender] <col2>[VARCHAR]:[missions] <col3>[VARCHAR]:[INSERT] }
SELECT name, missions FROM `<table0>` WHERE gender = 'Female';
Who are the female astronauts and their missions?
<table0>[table_26914759_3] { <col0>[team]:[VARCHAR] <col1>[incoming_manager]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "Dave Penney"
WHich team had dave penney as an incoming manager
<table0>[storm] { <col0>[Number_Deaths]:[INTEGER] }
SELECT COUNT( * ) FROM `<table0>` WHERE `<col0>` > 0
How many storms had death records?
<table0>[education] { <col0>[INT]:[PRIMARY] <col1>[KEY]:[program_name] <col2>[VARCHAR]:[location] <col3>[VARCHAR]:[start_date] <col4>[DATE]:[end_date] }
DELETE FROM `<table0>` WHERE id = 3;
Delete the community education program record with id 3 from the 'education' table
<table0>[table_900] { <col0>[Region]:[text] <col1>[Total]:[Population] <col2>[real]:[Hindus] <col3>[real]:[Hindus] <col4>[text]:[Hindu] <col5>[total]:[text] }
SELECT MAX( "Hindus" ) FROM `<table0>` WHERE "% of Hindus" = '0.163%'
What is the highest number where the portion of observers is 0.163%?
<table0>[prescriptions] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icustay_id]:[text] <col3>[drug_type]:[text] <col4>[drug]:[text] <col5>[formulary_drug_cd]:[text] <col6>[route]:[text] <col7>[drug_dose]:[text] } <table1>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3...
SELECT COUNT( DISTINCT `<table3>`.subject_id ) FROM `<table3>` INNER JOIN lab ON `<table3>`.hadm_id = lab.hadm_id WHERE `<table3>`.admityear < "2174" AND lab.label = "Lactate Dehydrogenase, Pleural"
give me the number of patients whose admission year is less than 2174 and lab test name is lactate dehydrogenase, pleural?
<table0>[Staff] { <col0>[staff_id]:[INTEGER] <col1>[staff_name]:[VARCHAR] <col2>[255]:[gender] <col3>[VARCHAR]:[other_staff_details] <col4>[VARCHAR]:[255] } <table1>[Skills] { <col0>[skill_id]:[INTEGER] <col1>[skill_code]:[VARCHAR] <col2>[skill_description]:[VARCHAR] } <table2>[Third_Party_Companies] { <col0>[company...
SELECT skill_description, COUNT( skill_description ) FROM `<table7>` AS T1 JOIN Skills_Required_To_Fix AS T2 ON T1.part_fault_id = T2.part_fault_id JOIN Skills AS T3 ON T2.skill_id = T3.skill_id GROUP BY skill_description ORDER BY COUNT( skill_description )
A bar chart listing the number of faults for different description of skills required to fix them, and sort in asc by the y axis.
<table0>[student_record] { <col0>[student_id]:[int] <col1>[course_id]:[int] <col2>[semester]:[int] <col3>[grade]:[varchar] <col4>[varchar]:[transfer_source] <col5>[varchar]:[earn_credit] <col6>[varchar]:[repeat_term] <col7>[varchar]:[test_id] } <table1>[gsi] { <col0>[course_offering_id]:[int] <col1>[student_id]:[int] ...
SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, instructor, offering_instructor, semester WHERE course.course_id = course_offering.course_id AND instructor.name LIKE '%Lindsey Lepley%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.of...
What will Prof. Lindsey Lepley be teaching next year ?
<table0>[autoshow] { <col0>[vehicle_type]:[VARCHAR] <col1>[safety_rating]:[DECIMAL] }
SELECT MIN( `<col1>` ) FROM `<table0>` WHERE `<col0>` = 'electric';
What is the minimum safety rating for electric vehicles in the 'autoshow' table?
<table0>[table_name_84] { <col0>[time]:[VARCHAR] <col1>[news_freq]:[VARCHAR] <col2>[show_name]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "1 hour" AND `<col2>` = "best mix overnight"
Which time has a news frequency of 1 hour and show name of Best Mix Overnight?
<table0>[INT] { <col0>[name]:[TEXT] <col1>[location]:[TEXT] } <table1>[accident] { <col0>[INT]:[mine_id] <col1>[INT]:[date] }
SELECT COUNT( `<table1>`.id ) FROM `<table1>` WHERE `<table1>`.mine_id = ( SELECT id FROM mine WHERE name = 'Silver' ) AND `<table1>`.date BETWEEN DATE_SUB( CURRENT_DATE, INTERVAL 1 YEAR ) AND CURRENT_DATE;
How many accidents occurred in the 'Silver' mine last year?
<table0>[requirement] { <col0>[requirement_id]:[int] } <table1>[offering_instructor] { <col0>[offering_instructor_id]:[int] <col1>[offering_id]:[int] <col2>[instructor_id]:[int] } <table2>[instructor] { <col0>[instructor_id]:[int] <col1>[name]:[varchar] <col2>[uniqname]:[varchar] } <table3>[course_offering] { <col0>...
SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program_course, semester WHERE course.course_id = course_offering.course_id AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND semester.semester = 'FA' AND semester.semester_id = course...
Any available ULCS next semester ?
<table0>[production_lines] { <col0>[INT]:[name] <col1>[TEXT]:[INSERT] } <table1>[shifts] { <col0>[line_id]:[INT] <col1>[shift_date]:[DATE] <col2>[shift_type]:[TEXT] } <table2>[incidents] { <col0>[shift_id]:[INT] <col1>[incident_type]:[TEXT] }
SELECT line_id, COUNT( * ) as incidents_last_30_nights FROM `<table1>` INNER JOIN incidents ON `<table1>`.id = incidents.shift_id WHERE `<col2>` = 'Night' AND `<col1>` BETWEEN DATE_SUB( NOW( ), INTERVAL 30 DAY ) AND NOW( ) GROUP BY line_id;
How many safety incidents occurred on each production line during night shifts in the last 30 days?
<table0>[salmon_farms] { <col0>[INT]:[name] <col1>[TEXT]:[country] <col2>[TEXT]:[water_temp] <col3>[FLOAT]:[INSERT] }
SELECT * FROM `<table0>` WHERE country = 'Canada' AND water_temp > 15;
List all salmon farms in Canada with water temperature above 15 degrees Celsius?
<table0>[producer] { <col0>[pid]:[int] <col1>[gender]:[text] <col2>[name]:[text] <col3>[nationality]:[text] <col4>[birth_city]:[text] <col5>[birth_year]:[int] } <table1>[classification] { <col0>[int]:[msid] <col1>[int]:[gid] } <table2>[movie] { <col0>[mid]:[int] <col1>[title]:[text] <col2>[release_year]:[int] <col3>[...
SELECT director.name FROM company, copyright, directed_by, director, movie WHERE company.name = 'NBCUniversal' AND copyright.cid = company.id AND director.did = directed_by.did AND director.gender = 'male' AND movie.mid = copyright.msid AND movie.mid = directed_by.msid
List all male directors who worked with the ' NBCUniversal ' company
<table0>[table_28866] { <col0>[District]:[text] <col1>[Incumbent]:[text] <col2>[Party]:[text] <col3>[elected]:[text] <col4>[Result]:[text] <col5>[Candidates]:[text] }
SELECT "Candidates" FROM `<table0>` WHERE "District" = 'South Carolina 6'
who were the 'candidate' of South Carolina 6?
<table0>[t_kc21] { <col0>[CLINIC_ID]:[text] <col1>[CLINIC_TYPE]:[text] <col2>[COMP_ID]:[text] <col3>[DATA_ID]:[text] <col4>[DIFF_PLACE_FLG]:[number] <col5>[FERTILITY_STS]:[number] <col6>[FLX_MED_ORG_ID]:[text] <col7>[HOSP_LEV]:[number] <col8>[HOSP_STS]:[number] <col9>[IDENTITY_CARD]:[text] <col10>[INPT_AREA_BED]:[text]...
SELECT COUNT( * ) FROM `<table0>` WHERE `<table0>`.PERSON_ID = '24242862' AND `<table0>`.IN_HOSP_DATE BETWEEN '2005-10-05' AND '2015-04-23' AND `<table0>`.CLINIC_TYPE = '住院'
自2005-10-05到2015-04-23,24242862患者一共住了多少次院
<table0>[vitalperiodic] { <col0>[vitalperiodicid]:[number] <col1>[patientunitstayid]:[number] <col2>[temperature]:[number] <col3>[sao2]:[number] <col4>[heartrate]:[number] <col5>[respiration]:[number] <col6>[systemicsystolic]:[number] <col7>[systemicdiastolic]:[number] <col8>[systemicmean]:[number] <col9>[observationti...
SELECT COUNT( DISTINCT `<table5>`.uniquepid ) FROM `<table5>` WHERE `<table5>`.`<table5>`unitstayid IN ( SELECT `<table1>`.`<table5>`unitstayid FROM `<table1>` WHERE `<table1>`.`<table1>`name = 'anticonvulsants - phenytoin' AND DATETIME( `<table1>`.`<table1>`time, 'start of year' ) = DATETIME( CURRENT_TIME( ), 'start o...
how many patients have undergone anticonvulsants - phenytoin this year?
<table0>[medication] { <col0>[medicationid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[text] <col3>[dosage]:[text] <col4>[routeadmin]:[text] <col5>[drugstarttime]:[time] <col6>[drugstoptime]:[time] } <table1>[vitalperiodic] { <col0>[vitalperiodicid]:[number] <col1>[patientunitstayid]:[number] <col2>...
SELECT `<table2>`.hospitaldischargetime FROM `<table2>` WHERE `<table2>`.uniquepid = '010-16168' AND STRFTIME( '%y', `<table2>`.hospitaldischargetime ) = '2102' ORDER BY `<table2>`.hospitaldischargetime DESC LIMIT 1
when did patient 010-16168 last come out of hospital in 2102?
<table0>[time_zone] { <col0>[time_zone_code]:[text] <col1>[time_zone_name]:[text] <col2>[hours_from_gmt]:[int] } <table1>[city] { <col0>[city_code]:[varchar] <col1>[city_name]:[varchar] <col2>[state_code]:[varchar] <col3>[country_name]:[varchar] <col4>[time_zone_code]:[varchar] } <table2>[flight] { <col0>[aircraft_co...
SELECT DISTINCT flight.flight_id FROM `<table20>` AS AIRPORT_SERVICE_0, `<table20>` AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE ( ( ( flight.departure_time BETWEEN 1800 AND 2200 ) AND date_day.day_number = 23 AND date_day.month_number = 4 AND date_day.year = 1991 AND days.day_name...
what flights leave PHOENIX on wednesday evening and arrive in MILWAUKEE
<table0>[table_24577] { <col0>[Round]:[real] <col1>[Pick]:[real] <col2>[Player]:[text] <col3>[Position]:[text] <col4>[Nationality]:[text] <col5>[College]:[junior] <col6>[club]:[team] }
SELECT MAX( "Pick #" ) FROM `<table0>` WHERE "Player" = 'David Grannis'
What is the pick # for player david grannis?
<table0>[diagnoses_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icd9_code]:[text] <col4>[charttime]:[time] } <table1>[icustays] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[first_careunit]:[text] <col5>[l...
SELECT 24 * ( STRFTIME( '%j', CURRENT_TIME( ) ) - STRFTIME( '%j', `<table16>`.intime ) ) FROM `<table16>` WHERE `<table16>`.hadm_id IN ( SELECT `<table15>`.hadm_id FROM `<table15>` WHERE `<table15>`.subject_id = 8888 AND `<table15>`.dischtime IS NULL ) AND `<table16>`.careunit = 'tsicu' ORDER BY `<table16>`.intime LIMI...
how many hours has been passed since the first time patient 8888 stayed in careunit tsicu in their current hospital encounter?
<table0>[table_42418] { <col0>[Season]:[text] <col1>[Series]:[text] <col2>[Team]:[text] <col3>[Races]:[real] <col4>[Wins]:[real] <col5>[Poles]:[real] <col6>[Podiums]:[real] <col7>[Points]:[text] <col8>[Position]:[text] }
SELECT "Series" FROM `<table0>` WHERE "Podiums" > '10'
What series had more than 10 Podiums?
<table0>[table_name_43] { <col0>[matches]:[VARCHAR] <col1>[wins]:[VARCHAR] <col2>[name]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "1" AND `<col2>` = "mohammad al-shamlan"
How many matches has Mohammad Al-Shamlan played when there is 1 win?
<table0>[table_name_81] { <col0>[score]:[VARCHAR] <col1>[date]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "february 23, 2005"
What is the score on February 23, 2005?
<table0>[table_name_28] { <col0>[tournament]:[VARCHAR] }
SELECT 1954 FROM `<table0>` WHERE 1969 = "a" AND `<col0>` = "australian championships"
What did the Tournament of Australian Championships, with an A in 1969, get in 1954?
<table0>[table_21061] { <col0>[text]:[Latitude] <col1>[text]:[Longitude] <col2>[text]:[Diameter] <col3>[text]:[Year] <col4>[named]:[real] <col5>[Namesake]:[text] }
SELECT "Namesake" FROM `<table0>` WHERE "Longitude" = '147.1W'
When the longitude is 147.1w what is the namesake of the feature?
<table0>[table_name_83] { <col0>[seats_in_hamburgische_b]:[rgerschaft] <col1>[VARCHAR]:[ideology] }
SELECT seats_in_hamburgische_bürgerschaft FROM `<table0>` WHERE ideology = "green politics"
WHAT IS THE SEATS IN Hamburgische Bürgerschaft THAT HAS GREEN POLITICS?
<table0>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table1>[demographic] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[name]:[text] <col3>[marital_status]:[text] <col4>[age]:[text] <col5>[dob]:[text] <col6>...
SELECT COUNT( DISTINCT `<table1>`.subject_id ) FROM `<table1>` WHERE `<table1>`.admission_type = "EMERGENCY" AND `<table1>`.diagnosis = "NEOPLASM OF UNCERTAIN BEHAVIOR OF OTHER LYMPHATIC AND HEMATOPOIETIC TISSUES\BONE MARROW TRANSPLANT"
what is the number of patients whose admission type is emergency and primary disease is neoplasm of uncertain behavior of other lymphatic and hematopoietic tissues\bone marrow transplant?
<table0>[table_204_265] { <col0>[number]:[number] <col1>[title]:[latin] <col2>[text]:[title] <col3>[english]:[translation] <col4>[text]:[subject] <col5>[text]:[date] }
SELECT COUNT( "subject" ) FROM `<table0>`
how many subjects are there ?
<table0>[articles] { <col0>[INT]:[title] <col1>[TEXT]:[publication_day] <col2>[TEXT]:[publisher] }
SELECT DISTINCT publisher FROM `<table0>` WHERE publication_day NOT IN ( 'Monday', 'Tuesday' );
Get the names of publishers who have never published an article on 'Monday' or 'Tuesday'.
<table0>[AISafetyIncidents] { <col0>[incident_id]:[INTEGER] <col1>[confidence]:[FLOAT] <col2>[incident_date]:[DATE] <col3>[region]:[TEXT] }
SELECT * FROM `<table0>` WHERE `<col3>` = 'South America' AND `<col1>` < 0.8 ORDER BY incident_date;
Find AI safety incidents in South America with a confidence score below 0.8, ordered by incident date.
<table0>[table_name_93] { <col0>[fourth]:[VARCHAR] <col1>[event]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "2008 telstra men's pro"
Who was Fourth in the 2008 Telstra Men's Pro Event?
<table0>[table_24108789_6] { <col0>[events]:[INTEGER] <col1>[number]:[VARCHAR] }
SELECT MIN( `<col0>` ) FROM `<table0>` WHERE _number = 7
Name the least events for number 7
<table0>[chartevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[itemid]:[number] <col5>[charttime]:[time] <col6>[valuenum]:[number] <col7>[valueuom]:[text] } <table1>[labevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]...
SELECT `<table4>`.drug FROM `<table4>` WHERE `<table4>`.hadm_id IN ( SELECT `<table3>`.hadm_id FROM `<table3>` WHERE `<table3>`.subject_id = 94229 ) AND DATETIME( `<table4>`.startdate, 'start of day' ) = DATETIME( CURRENT_TIME( ), 'start of day', '-0 day' ) EXCEPT SELECT `<table4>`.drug FROM `<table4>` WHERE `<table4>`...
what were the drugs added to patient 94229 today versus yesterday?
<table0>[media_contents] { <col0>[content_id]:[INTEGER] <col1>[release_year]:[INTEGER] }
SELECT release_year, COUNT( * ) FROM `<table0>` GROUP BY release_year;
How many media contents were produced in each year?
<table0>[news_report] { <col0>[journalist_ID]:[int] <col1>[Event_ID]:[int] <col2>[Work_Type]:[text] } <table1>[event] { <col0>[Event_ID]:[int] <col1>[Date]:[text] <col2>[Venue]:[text] <col3>[text]:[Event_Attendance] } <table2>[journalist] { <col0>[journalist_ID]:[int] <col1>[text]:[Nationality] <col2>[text]:[Age] <co...
SELECT Nationality, SUM( Age ) FROM `<table2>` GROUP BY Nationality ORDER BY SUM( Age ) DESC
Show me a bar chart for what are the nationalities and total ages of journalists?, and list Y-axis in descending order.
<table0>[people] { <col0>[People_ID]:[int] <col1>[text]:[Height] <col2>[real]:[Weight] <col3>[real]:[Birth_Date] <col4>[text]:[Birth_Place] } <table1>[body_builder] { <col0>[Body_Builder_ID]:[int] <col1>[People_ID]:[int] <col2>[Snatch]:[real] <col3>[Clean_Jerk]:[real] <col4>[Total]:[real] }
SELECT Body_Builder_ID, `<col4>` FROM `<table1>`
Draw a scatter chart about the correlation between Body_Builder_ID and Total .
<table0>[vitalperiodic] { <col0>[vitalperiodicid]:[number] <col1>[patientunitstayid]:[number] <col2>[temperature]:[number] <col3>[sao2]:[number] <col4>[heartrate]:[number] <col5>[respiration]:[number] <col6>[systemicsystolic]:[number] <col7>[systemicdiastolic]:[number] <col8>[systemicmean]:[number] <col9>[observationti...
SELECT SUM( CASE WHEN patient.hospitaldischargestatus = 'alive' THEN 1 WHEN STRFTIME( '%j', patient.hospitaldischargetime ) - STRFTIME( '%j', t4.`<table8>`time ) > 5 * 365 THEN 1 ELSE 0 END ) * 100 / COUNT( * ) FROM ( SELECT t2.uniquepid, t2.`<table8>`time FROM ( SELECT t1.uniquepid, t1.`<table8>`time FROM ( SELECT pat...
calculate the five year survival probability of patients to whom albuterol sulf was prescribed after they were diagnosed with pneumonia - community-acquired.
<table0>[table_name_23] { <col0>[quantity_made]:[VARCHAR] <col1>[quantity_preserved]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "4-4-0 — oooo — american"
What is Quantitiy Made, when Quantity Preserved is "4-4-0 — oooo — american"?
<table0>[paperdataset] { <col0>[paperid]:[int] <col1>[datasetid]:[int] } <table1>[venue] { <col0>[venueid]:[int] <col1>[venuename]:[varchar] } <table2>[paperfield] { <col0>[fieldid]:[int] <col1>[paperid]:[int] } <table3>[dataset] { <col0>[datasetid]:[int] <col1>[datasetname]:[varchar] } <table4>[journal] { <col0>[j...
SELECT DISTINCT paper.paperid FROM keyphrase, paper, paperkeyphrase, venue WHERE keyphrase.keyphrasename = 'Liquid' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid AND venue.venueid = paper.venueid AND venue.venuename = 'Automatica'
papers on Liquid Automatica
<table0>[jobs] { <col0>[job_id]:[int] <col1>[job_title]:[varchar] <col2>[description]:[varchar] <col3>[requirement]:[varchar] <col4>[city]:[varchar] <col5>[state]:[varchar] <col6>[country]:[varchar] <col7>[zip]:[int] } <table1>[campus_job_id] { <col0>[int]:[student_id] <col1>[int]:[location] } <table2>[course_prerequ...
SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program_course, semester WHERE course.course_id = course_offering.course_id AND course.department = 'PATH' AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND semester.semester = 'Spring...
What high-level PATH courses are given this Spring-Summer ?
<table0>[table_46900] { <col0>[Game]:[text] <col1>[Date]:[text] <col2>[Home]:[Team] <col3>[text]:[Result] <col4>[text]:[Road] <col5>[Team]:[text] }
SELECT "Game" FROM `<table0>` WHERE "Road Team" = 'st. louis' AND "Date" = 'april 13'
What is the Game on April 13 with Road Team St. Louis?
<table0>[d_items] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] <col3>[linksto]:[text] } <table1>[outputevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[charttime]:[time] <col5>[itemid]:[number] <col6>[value]:[number] } ...
SELECT 1 * ( STRFTIME( '%j', CURRENT_TIME( ) ) - STRFTIME( '%j', `<table5>`.intime ) ) FROM `<table5>` WHERE `<table5>`.hadm_id IN ( SELECT `<table15>`.hadm_id FROM `<table15>` WHERE `<table15>`.subject_id = 26057 AND `<table15>`.dischtime IS NULL ) AND `<table5>`.careunit = 'sicu' ORDER BY `<table5>`.intime DESC LIMIT...
how many days was it since patient 26057 stayed in careunit sicu for the last time during this hospital encounter?
<table0>[PostHistory] { <col0>[number]:[PostHistoryTypeId] <col1>[number]:[PostId] <col2>[number]:[RevisionGUID] <col3>[CreationDate]:[time] <col4>[UserId]:[number] <col5>[UserDisplayName]:[text] <col6>[Comment]:[text] <col7>[Text]:[text] <col8>[ContentLicense]:[text] } <table1>[ReviewTasks] { <col0>[number]:[ReviewTa...
SELECT ( CASE WHEN p.PostTypeId = 1 THEN 'Question' WHEN p.PostTypeId = 2 THEN 'Answer' END ) AS "post_type", ( CASE WHEN v.VoteTypeId = 2 THEN 'Up Vote' WHEN v.VoteTypeId = 3 THEN 'Down Vote' END ) AS "vote_type", COUNT( * ) AS `<table26>` FROM `<table26>` AS v JOIN Posts AS p ON v.PostId = p.Id WHERE v.VoteTypeId IN ...
Answer and Question Up and Down Votes. Find the total number of question and answer up and down votes on SO.
<table0>[table_name_62] { <col0>[nature_of_incident]:[VARCHAR] <col1>[location]:[VARCHAR] <col2>[date]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "kabul" AND `<col2>` = "2004-01-28"
What is the nature of the incident in Kabul on 2004-01-28?
<table0>[chartevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[itemid]:[number] <col5>[charttime]:[time] <col6>[valuenum]:[number] <col7>[valueuom]:[text] } <table1>[diagnoses_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm...
SELECT `<table9>`.label FROM `<table9>` WHERE `<table9>`.itemid IN ( SELECT t3.itemid FROM ( SELECT t2.itemid, DENSE_RANK( ) OVER ( ORDER BY COUNT( * ) DESC ) AS c1 FROM ( SELECT admissions.subject_id, `<table8>`.charttime FROM `<table8>` JOIN admissions ON `<table8>`.hadm_id = admissions.hadm_id WHERE `<table8>`.icd9_...
what are the four most frequent lab tests that a patient had within 2 months after receiving percu abdominal drainage in the last year?
<table0>[vulnerabilities] { <col0>[INT]:[vulnerability] <col1>[VARCHAR]:[255] <col2>[date]:[DATE] }
SELECT vulnerability, COUNT( * ) as total FROM `<table0>` WHERE `<col2>` >= DATEADD( month, -6, GETDATE( ) ) GROUP BY vulnerability ORDER BY total DESC LIMIT 5;
What are the top 5 most common vulnerabilities found in the last 6 months, across all systems and devices?
<table0>[basketball_match] { <col0>[Team_ID]:[int] <col1>[School_ID]:[int] <col2>[Team_Name]:[text] <col3>[ACC_Regular_Season]:[text] <col4>[ACC_Percent]:[text] <col5>[ACC_Home]:[text] <col6>[ACC_Road]:[text] <col7>[All_Games]:[text] <col8>[All_Games_Percent]:[int] <col9>[All_Home]:[text] <col10>[All_Road]:[text] <col1...
SELECT ACC_Road, `<col1>` FROM `<table0>` GROUP BY ACC_Home, `<col6>` ORDER BY `<col6>`
Show me about the distribution of ACC_Road and School_ID , and group by attribute ACC_Home in a bar chart, and show x axis in ascending order.
<table0>[table_name_20] { <col0>[outcome]:[VARCHAR] <col1>[score]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "6–2, 6–2"
Which Outcome has a Score of 6 2, 6 2?
<table0>[class_of_service] { <col0>[booking_class]:[varchar] <col1>[rank]:[int] <col2>[class_description]:[text] } <table1>[airport] { <col0>[airport_code]:[varchar] <col1>[airport_name]:[text] <col2>[airport_location]:[text] <col3>[state_code]:[varchar] <col4>[country_name]:[varchar] <col5>[time_zone_code]:[varchar] ...
SELECT DISTINCT fare.fare_id FROM `<table9>` AS AIRPORT_SERVICE_0, `<table9>` AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, fare_basis, flight, flight_fare WHERE ( CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'LOS ANGELES' AND flight.departure_time > 1500 AND flight.to_airport = A...
what are the COACH fares for flights from NEWARK to LOS ANGELES leaving after 1500
<table0>[table_name_43] { <col0>[release_date]:[VARCHAR] <col1>[socket]:[VARCHAR] <col2>[voltage]:[VARCHAR] <col3>[mult]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col2>` = "1.65–1.7 v" AND `<col3>` = "4.5×" AND `<col1>` = "slot 1"
When was the microprocessor with 1.65–1.7 v, a mult of 4.5×, and a slot 1 socket released?
<table0>[prescriptions] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icustay_id]:[text] <col3>[drug_type]:[text] <col4>[drug]:[text] <col5>[formulary_drug_cd]:[text] <col6>[route]:[text] <col7>[drug_dose]:[text] } <table1>[demographic] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[name]:[text]...
SELECT COUNT( DISTINCT `<table1>`.subject_id ) FROM `<table1>` INNER JOIN lab ON `<table1>`.hadm_id = lab.hadm_id WHERE `<table1>`.gender = "F" AND lab.itemid = "51355"
how many patients whose gender is f and item id is 51355?
<table0>[table_67249] { <col0>[Date]:[text] <col1>[Opponent]:[text] <col2>[Score]:[text] <col3>[Loss]:[text] <col4>[Attendance]:[text] <col5>[Record]:[text] }
SELECT "Opponent" FROM `<table0>` WHERE "Attendance" = '38,150'
Who was the Opponent when the Attendance was 38,150?
<table0>[table_203_204] { <col0>[number]:[year] <col1>[number]:[film] <col2>[text]:[language] <col3>[text]:[actors] <col4>[text]:[music] <col5>[text]:[banner] <col6>[text]:[note] }
SELECT COUNT( "film" ) FROM `<table0>` WHERE "year" >= 1960 AND "year" <= 1970
how many movies did c.v. sridhar direct between 1960 to 1970 ?
<table0>[Product_Launch] { <col0>[INT]:[product_id] <col1>[INT]:[launch_date] <col2>[DATE]:[INSERT] }
SELECT DATE_TRUNC( 'quarter', launch_date ) as quarter, COUNT( * ) as products_launched FROM `<table0>` WHERE launch_date >= '2021-01-01' AND launch_date < '2022-01-01' GROUP BY quarter ORDER BY quarter;
How many products were launched per quarter in 2021?
<table0>[renewable_energy_projects] { <col0>[INT]:[PRIMARY] <col1>[KEY]:[project_type] <col2>[VARCHAR]:[status] }
UPDATE renewable_energy_projects SET status = 'completed' WHERE project_type = 'wind energy';
Update the 'status' column to 'completed' for all wind energy projects in the 'renewable_energy_projects' table