schema
stringlengths
20
14.6k
query
stringlengths
17
2.58k
question
stringlengths
8
1.06k
<table0>[customer] { <col0>[c_custkey]:[integer] <col1>[c_mktsegment]:[text] <col2>[c_nationkey]:[integer] <col3>[c_name]:[text] <col4>[c_address]:[text] <col5>[c_phone]:[text] <col6>[c_acctbal]:[real] <col7>[c_comment]:[text] } <table1>[lineitem] { <col0>[l_shipdate]:[date] <col1>[l_orderkey]:[integer] <col2>[l_disco...
SELECT T2.n_name FROM `<table7>` AS T1 INNER JOIN nation AS T2 ON T1.s_nationkey = T2.n_nationkey WHERE T1.s_suppkey = 1
What is the nationality of supplier number 1?
<table0>[table_15306124_1] { <col0>[league_of_communists]:[INTEGER] <col1>[municipality]:[VARCHAR] }
SELECT MIN( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "Mojkovac"
What is the least amount of league of communists where municipality is mojkovac
<table0>[table_name_42] { <col0>[points]:[INTEGER] <col1>[artist]:[VARCHAR] <col2>[place]:[VARCHAR] }
SELECT AVG( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "kamil mikulčík and nela" AND `<col2>` > 18
What is the average Points when the artist is kamil mikul k and nela, and the Place is larger than 18?
<table0>[t_kc24] { <col0>[ACCOUNT_DASH_DATE]:[time] <col1>[ACCOUNT_DASH_FLG]:[number] <col2>[CASH_PAY]:[number] <col3>[CIVIL_SUBSIDY]:[number] <col4>[CKC102]:[number] <col5>[CLINIC_ID]:[text] <col6>[CLINIC_SLT_DATE]:[time] <col7>[COMP_ID]:[text] <col8>[COM_ACC_PAY]:[number] <col9>[COM_PAY]:[number] <col10>[DATA_ID]:[te...
SELECT `<table3>`.MED_CLINIC_ID FROM `<table3>` WHERE `<table3>`.PERSON_NM = '秦鸿德' AND `<table3>`.MED_SER_ORG_NO = '6682741' AND NOT `<table3>`.OUT_DIAG_DIS_NM LIKE '%脑瘫%' UNION SELECT `<table2>`.MED_CLINIC_ID FROM `<table2>` WHERE `<table2>`.PERSON_NM = '秦鸿德' AND `<table2>`.MED_SER_ORG_NO = '6682741' AND NOT `<table2>...
在编码为6682741的医院患者秦鸿德出院诊断疾病名称不包含脑瘫的医疗就诊记录是多少号码?
<table0>[state] { <col0>[StateCode]:[text] <col1>[State]:[text] <col2>[Region]:[text] } <table1>[callcenterlogs] { <col0>[Date]:[received] <col1>[date]:[Complaint] <col2>[text]:[rand] <col3>[client]:[text] <col4>[phonefinal]:[text] <col5>[vru]:[line] <col6>[text]:[call_id] <col7>[integer]:[priority] <col8>[integer]:[t...
SELECT T2.division FROM `<table2>` AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.first = 'Diesel' AND T1.last = 'Galloway'
Which division is Diesel Galloway in?
<table0>[menu] { <col0>[menu_id]:[INT] <col1>[menu_name]:[TEXT] <col2>[menu_type]:[TEXT] <col3>[price]:[DECIMAL] <col4>[daily_sales]:[INT] <col5>[region]:[TEXT] }
SELECT SUM( `<col4>` ) FROM `<table0>` WHERE `<col5>` = 'Hawaii';
What is the total number of menu items sold in the Hawaii region?
<table0>[Regions] { <col0>[INT]:[name] <col1>[VARCHAR]:[INSERT] } <table1>[Healthcare_Budget] { <col0>[region_id]:[INT] <col1>[year]:[INT] <col2>[INT]:[INSERT] }
SELECT R.name, SUM( HB.amount ) as Total_Budget FROM `<table1>` HB JOIN Regions R ON HB.region_id = R.id WHERE HB.year = 2021 GROUP BY R.name;
What is the total budget allocated for healthcare services in each region for the year 2021?
<table0>[Apartment_Bookings] { <col0>[apt_booking_id]:[INTEGER] <col1>[apt_id]:[INTEGER] <col2>[guest_id]:[INTEGER] <col3>[booking_status_code]:[CHAR] <col4>[booking_start_date]:[DATETIME] <col5>[booking_end_date]:[DATETIME] } <table1>[Apartments] { <col0>[apt_id]:[INTEGER] <col1>[building_id]:[INTEGER] <col2>[apt_typ...
SELECT booking_start_date, COUNT( `<col4>` ) FROM `<table0>` AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.bedroom_count > 2 ORDER BY COUNT( `<col4>` )
Find the number of booking start date for the apartments that have more than two bedrooms for each weekday with a bar chart, and order total number in asc order.
<table0>[contracts] { <col0>[INT]:[category] <col1>[VARCHAR]:[255] <col2>[value]:[DECIMAL] }
SELECT SUM( `<col2>` ) as total_value FROM `<table0>` WHERE category = 'Aircraft';
What is the total value of all aircraft contracts?
<table0>[paper] { <col0>[paperid]:[int] <col1>[title]:[varchar] <col2>[venueid]:[int] <col3>[year]:[int] <col4>[numciting]:[int] <col5>[numcitedby]:[int] <col6>[journalid]:[int] } <table1>[keyphrase] { <col0>[keyphraseid]:[int] <col1>[keyphrasename]:[varchar] } <table2>[cite] { <col0>[citingpaperid]:[int] <col1>[cite...
SELECT DISTINCT paper.paperid FROM author, paper, writes WHERE author.authorname = 'emina torlak' AND paper.year = 2010 AND writes.authorid = author.authorid AND writes.paperid = paper.paperid
papers by emina torlak from 2010
<table0>[table_name_43] { <col0>[artist]:[VARCHAR] <col1>[issue_date_s]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE issue_date_s_ = "23 february"
What is the name of the artist that issued the single on 23 February?
<table0>[table_dev_29] { <col0>[int]:[gender] <col1>[string]:[white_blood_cell_count_wbc] <col2>[int]:[systolic_blood_pressure_sbp] <col3>[int]:[hemoglobin_a1c_hba1c] <col4>[float]:[renal_disease] <col5>[bool]:[creatinine_clearance_cl] <col6>[float]:[post_load_glucose] <col7>[int]:[platelet_count] <col8>[float]:[fastin...
SELECT * FROM `<table0>` WHERE ( serum_creatinine >= 1.5 AND gender = 'male' ) OR ( serum_creatinine >= 1.4 AND gender = 'female' )
serum creatinine >= 1.5 mg / dl for male , or >= 1.4 mg / dl for female .
<table0>[table_72691] { <col0>[Date]:[text] <col1>[Cover]:[model] <col2>[text]:[Centerfold] <col3>[model]:[text] <col4>[Interview]:[subject] <col5>[text]:[Questions] <col6>[text]:[Pictorials] }
SELECT "Cover model" FROM `<table0>` WHERE "20 Questions" = 'Bob Vila'
Who was the on the cover when Bob Vila did the 20 Questions?
<table0>[jobs] { <col0>[JOB_ID]:[varchar] <col1>[JOB_TITLE]:[varchar] <col2>[MIN_SALARY]:[decimal] <col3>[MAX_SALARY]:[decimal] } <table1>[job_history] { <col0>[EMPLOYEE_ID]:[decimal] <col1>[START_DATE]:[date] <col2>[END_DATE]:[date] <col3>[JOB_ID]:[varchar] <col4>[DEPARTMENT_ID]:[decimal] } <table2>[locations] { <co...
SELECT HIRE_DATE, `<col9>` FROM `<table6>` WHERE `<col7>` BETWEEN 8000 AND 12000 AND `<col8>` <> "null" OR `<col10>` <> 40 ORDER BY `<col5>`
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, return a line chart about the change of manager_id over hire_date , and show from low to high by the HIRE_DATE.
<table0>[table_name_82] { <col0>[opponent]:[VARCHAR] <col1>[score]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "6–5 13"
Who is the opponent with a score of 6 5 13?
<table0>[table_name_94] { <col0>[player]:[VARCHAR] <col1>[country]:[VARCHAR] <col2>[score]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "united states" AND `<col2>` = 75 - 70 - 68 = 211
Who is the player from the United States with a 75-70-68=211 score?
<table0>[restriction] { <col0>[restriction_code]:[text] <col1>[advance_purchase]:[int] <col2>[stopovers]:[text] <col3>[saturday_stay_required]:[text] <col4>[minimum_stay]:[int] <col5>[maximum_stay]:[int] <col6>[application]:[text] <col7>[no_discounts]:[text] } <table1>[aircraft] { <col0>[aircraft_code]:[varchar] <col1...
SELECT DISTINCT flight.flight_id FROM `<table22>` AS AIRPORT_SERVICE_0, `<table22>` 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 = 'PITTSBURGH' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PHILADELPHI...
all flights from PITTSBURGH to PHILADELPHIA
<table0>[Transactions] { <col0>[transaction_id]:[INT] <col1>[transaction_date]:[DATE] <col2>[gender]:[VARCHAR] <col3>[transaction_amount]:[DECIMAL] }
SELECT transaction_date, `<col3>` FROM `<table0>` WHERE `<col2>` = 'Non-binary';
What are the transaction dates and amounts for transactions with a gender of 'Non-binary'?
<table0>[table_name_41] { <col0>[population]:[VARCHAR] <col1>[altitude__mslm]:[VARCHAR] <col2>[area__km_2]:[VARCHAR] }
SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE altitude__mslm_ > 302 AND area__km_2__ = 29.2
How many people have an Altitude (mslm) larger than 302, and an Area (km 2) of 29.2?
<table0>[table_name_73] { <col0>[gold]:[INTEGER] <col1>[bronze]:[VARCHAR] <col2>[silver]:[VARCHAR] }
SELECT AVG( `<col0>` ) FROM `<table0>` WHERE `<col1>` > 6 AND `<col2>` > 18
How many Gold medals for the Nations with 6 or more Bronze medals and 18 or more Silver?
<table0>[table_name_21] { <col0>[acronym]:[VARCHAR] <col1>[name_in_english]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "northern management and technological institute"
What is the acronym for the English name Northern management and technological institute?
<table0>[table_name_80] { <col0>[olympics_so_far]:[INTEGER] <col1>[class]:[VARCHAR] <col2>[sailors]:[VARCHAR] <col3>[first_og]:[VARCHAR] }
SELECT MIN( `<col0>` ) FROM `<table0>` WHERE `<col2>` > 1 AND `<col3>` > 1948 AND `<col1>` = "flying dutchman"
What is the lowest value for Olympics, when Sailors is greater than 1, when First OG is after 1948, and when Class is 'Flying Dutchman'?
<table0>[table_name_69] { <col0>[away_team]:[VARCHAR] <col1>[crowd]:[INTEGER] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` > 27 OFFSET 463
What away team played when the crowd was over 27,463 people?
<table0>[regions] { <col0>[region_id]:[INT] <col1>[region_name]:[TEXT] } <table1>[workers] { <col0>[worker_id]:[INT] <col1>[worker_name]:[TEXT] <col2>[salary]:[INT] <col3>[region_id]:[INT] <col4>[industry_id]:[INT] } <table2>[industries] { <col0>[industry_id]:[INT] <col1>[industry_name]:[TEXT] <col2>[INSERT]:[regions...
SELECT MIN( `<col2>` ) FROM `<table1>` INNER JOIN regions ON `<table1>`.region_id = regions.region_id INNER JOIN industries ON `<table1>`.industry_id = industries.industry_id WHERE regions.region_name = 'East' AND industries.industry_name = 'finance';
What is the minimum salary of workers in the 'finance' industry in the 'East' region?
<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>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[te...
SELECT COUNT( DISTINCT `<table3>`.subject_id ) FROM `<table3>` WHERE `<table3>`.marital_status = "WIDOWED" AND `<table3>`.age < "89"
how many patients less than age 89 years are widowed?
<table0>[podcast_episodes] { <col0>[INT]:[title] <col1>[VARCHAR]:[255] <col2>[language]:[VARCHAR] <col3>[duration]:[INT] <col4>[release_date]:[DATE] }
SELECT COUNT( * ) FROM `<table0>` WHERE `<col2>` = 'Spanish';
What is the total number of podcast episodes published in Spanish?
<table0>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table1>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table2>[lab] {...
SELECT `<table3>`.insurance, `<table3>`.expire_flag FROM `<table3>` WHERE `<table3>`.subject_id = "8990"
what is insurance and death status of subject id 8990?
<table0>[table_29690363_3] { <col0>[race]:[VARCHAR] <col1>[fastest_lap]:[VARCHAR] <col2>[most_laps_led]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "Josef Newgarden" AND `<col2>` = "Josef Newgarden"
What race did josef newgarden have the fastest lap and lead the most laps?
<table0>[products] { <col0>[product_id]:[INT] <col1>[transparency_score]:[DECIMAL] <col2>[product_origin]:[VARCHAR] }
SELECT AVG( `<col1>` ) AS avg_score FROM `<table0>` WHERE `<col2>` = 'Americas';
What is the average transparency score for products made in the Americas?
<table0>[table_name_38] { <col0>[regular_season]:[VARCHAR] <col1>[year]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "2012"
What was the regular season for 2012?
<table0>[Projects] { <col0>[project_id]:[INTEGER] <col1>[organisation_id]:[INTEGER] <col2>[project_details]:[VARCHAR] } <table1>[Staff_Roles] { <col0>[role_code]:[VARCHAR] <col1>[role_description]:[VARCHAR] } <table2>[Grants] { <col0>[grant_id]:[INTEGER] <col1>[organisation_id]:[INTEGER] <col2>[grant_amount]:[DECIMAL...
SELECT SUM( `<col2>` ), `<col1>` FROM `<table2>` GROUP BY `<col1>`
plot scatter on what is the total amount of grant money given to each organization and what is its id?
<table0>[table_name_58] { <col0>[crowd]:[VARCHAR] <col1>[venue]:[VARCHAR] }
SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "glenferrie oval"
How many people watched a Glenferrie Oval?
<table0>[table_26983] { <col0>[Spacecraft]:[text] <col1>[Spacewalker]:[text] <col2>[Start]:[u2013] <col3>[UTC]:[text] <col4>[End]:[u2013] <col5>[UTC]:[text] <col6>[Duration]:[text] <col7>[Comments]:[text] }
SELECT "Duration" FROM `<table0>` WHERE "Spacecraft" = 'Salyut 7 – VE-4 – EVA 1'
When salyut 7 ve-4 eva 1 is the spacecraft, what is the duration?
<table0>[accounts] { <col0>[INT]:[account_number] <col1>[INT]:[balance] <col2>[DECIMAL]:[INSERT] }
SELECT account_number, MIN( balance ) as min_balance FROM `<table0>` WHERE balance > 100000 GROUP BY account_number;
Identify any accounts that have had a balance greater than $100000 and calculate the minimum balance for each account?
<table0>[code_description] { <col0>[code]:[varchar] <col1>[description]:[text] } <table1>[food_service] { <col0>[meal_code]:[text] <col1>[meal_number]:[int] <col2>[compartment]:[text] <col3>[meal_description]:[varchar] } <table2>[fare_basis] { <col0>[fare_basis_code]:[text] <col1>[booking_class]:[text] <col2>[class_t...
SELECT DISTINCT flight.flight_id FROM `<table5>` AS AIRPORT_SERVICE_0, `<table5>` 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 = 'PHOENIX' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER' AND flig...
i would like flight information from PHOENIX to DENVER
<table0>[life_expectancy] { <col0>[INT]:[expectancy] <col1>[INT]:[location] <col2>[TEXT]:[INSERT] }
SELECT AVG( expectancy ) FROM `<table0>` WHERE location LIKE 'Rural%';
What is the average life expectancy in rural areas of the United States?
<table0>[table_55333] { <col0>[Serial]:[real] <col1>[Airborne]:[Unit] <col2>[text]:[Troop] <col3>[carrier]:[Group] <col4>[text]:[47s] <col5>[real]:[Base] <col6>[text]:[Drop] <col7>[Zone]:[text] <col8>[Drop]:[Zone] <col9>[Time]:[real] }
SELECT "UK Base" FROM `<table0>` WHERE "Airborne Unit" = 'pathfinders'
Which UK Base has an airborne unit of Pathfinders?
<table0>[CityTransport] { <col0>[city]:[VARCHAR] <col1>[users]:[INT] <col2>[year]:[INT] }
SELECT SUM( `<col1>` ) FROM `<table0>` WHERE `<col0>` IN ( 'New York', 'London', 'Paris' ) AND `<col2>` = 2020;
What is the total number of public transportation users in New York, London, and Paris in 2020?
<table0>[table_42790] { <col0>[text]:[Innings] <col1>[real]:[Runs] <col2>[Scored]:[real] <col3>[Balls]:[Faced] <col4>[real]:[Average] <col5>[real]:[real] }
SELECT "Name" FROM `<table0>` WHERE "Average" = '48.83'
Which Name has an Average of 48.83?
<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 `<table3>`.drugname FROM `<table3>` WHERE `<table3>`.`<table7>`unitstayid IN ( SELECT `<table7>`.`<table7>`unitstayid FROM `<table7>` WHERE `<table7>`.`<table7>`healthsystemstayid IN ( SELECT `<table7>`.`<table7>`healthsystemstayid FROM `<table7>` WHERE `<table7>`.uniquepid = '013-28507' AND `<table7>`.hospitald...
what is the name of the drug patient 013-28507 was last prescribed in this hospital encounter?
<table0>[seeds] { <col0>[INT]:[PRIMARY] <col1>[KEY]:[name] <col2>[VARCHAR]:[255] <col3>[price]:[DECIMAL] <col4>[crop]:[VARCHAR] <col5>[255]:[farm_id] <col6>[INT]:[FOREIGN] <col7>[KEY]:[farm_id] <col8>[REFERENCES]:[farmers] }
SELECT f.name, AVG( s.price ) FROM `<table0>` s JOIN farmers f ON s.farm_id = f.id GROUP BY f.id HAVING COUNT( DISTINCT s.crop ) > 2;
What is the average price of seeds for farmers who use more than two types of seeds?
<table0>[games] { <col0>[game_id]:[INT] <col1>[PRIMARY]:[KEY] <col2>[name]:[VARCHAR] <col3>[genre]:[VARCHAR] <col4>[rating]:[DECIMAL] }
INSERT INTO games ( game_id, name, genre, rating ) VALUES ( 1, 'Apex Legends', 'Battle Royale', 8.5 ), ( 2, 'Valorant', 'First Person Shooter', 8.3 ), ( 3, 'Among Us', 'Party Game', 8.8 );
Populate the games table with new data
<table0>[Games] { <col0>[GameID]:[INT] <col1>[Game]:[VARCHAR] <col2>[Genre]:[VARCHAR] } <table1>[Players] { <col0>[PlayerID]:[INT] <col1>[VARCHAR]:[Age] <col2>[INT]:[Country] <col3>[VARCHAR]:[INSERT] } <table2>[Transactions] { <col0>[TransactionID]:[INT] <col1>[PlayerID]:[INT] <col2>[GameID]:[INT] <col3>[DECIMAL]:[Tr...
SELECT Games.Game, SUM( `<table2>`.Amount ) FROM `<table2>` INNER JOIN Players ON `<table2>`.PlayerID = Players.PlayerID INNER JOIN Games ON `<table2>`.GameID = Games.GameID WHERE Players.Country = 'Japan' AND Games.Genre = 'Virtual Reality' AND `<table2>`.TransactionDate >= DATEADD( year, -1, GETDATE( ) ) GROUP BY Gam...
What is the total amount spent by players from Japan on games in the "Virtual Reality" genre in the last year, broken down by game?
<table0>[TagSynonyms] { <col0>[number]:[SourceTagName] <col1>[text]:[TargetTagName] <col2>[text]:[CreationDate] <col3>[time]:[OwnerUserId] <col4>[number]:[AutoRenameCount] <col5>[number]:[LastAutoRename] <col6>[time]:[Score] <col7>[number]:[ApprovedByUserId] <col8>[number]:[ApprovalDate] } <table1>[Users] { <col0>[num...
WITH Population( Total`<table1>`, `<table1>`BelowMe ) AS ( SELECT SUM( CASE WHEN uAll.Reputation > '##MinReputation##' THEN 1 ELSE 0 END ) AS Total`<table1>`, SUM( CASE WHEN uAll.Reputation < uMe.Reputation AND uAll.Reputation > '##MinReputation##' THEN 1 ELSE 0 END ) AS `<table1>`BelowMe FROM `<table1>` AS uMe CROSS J...
What is my reputation's percentile?. Computes what percentage of users have lower reputation than the given user ID. A minimum reputation can be specified to cut off one-time users and other such outliers. (use a large negative number to consider all users)
<table0>[table_203_573] { <col0>[number]:[name] <col1>[text]:[rank] <col2>[2000]:[number] <col3>[number]:[number] <col4>[country]:[origin] <col5>[text]:[england] <col6>[2001]:[text] }
SELECT "name" FROM `<table0>` ORDER BY "number" DESC LIMIT 1
which name had the highest number ?
<table0>[MissionStatus] { <col0>[INT]:[mission] <col1>[VARCHAR]:[agency] <col2>[VARCHAR]:[status] <col3>[VARCHAR]:[INSERT] }
SELECT COUNT( * ) * 100.0 / ( SELECT COUNT( * ) FROM `<table0>` WHERE agency = 'ISA' ) FROM `<table0>` WHERE agency = 'ISA' AND status = 'success';
What is the success rate of 'ISA' missions?
<table0>[university] { <col0>[School_ID]:[int] <col1>[School]:[text] <col2>[Location]:[text] <col3>[Founded]:[real] <col4>[Affiliation]:[text] <col5>[Enrollment]:[real] <col6>[Nickname]:[text] <col7>[Primary_conference]:[text] } <table1>[basketball_match] { <col0>[Team_ID]:[int] <col1>[School_ID]:[int] <col2>[Team_Nam...
SELECT Team_ID, `<col8>` FROM `<table1>` GROUP BY `<col3>`
A scatter chart shows the correlation between Team_ID and All_Games_Percent , and group by attribute ACC_Regular_Season.
<table0>[PendingFlags] { <col0>[number]:[FlagTypeId] <col1>[number]:[PostId] <col2>[number]:[CreationDate] <col3>[time]:[CloseReasonTypeId] <col4>[number]:[CloseAsOffTopicReasonTypeId] <col5>[number]:[DuplicateOfQuestionId] <col6>[number]:[BelongsOnBaseHostAddress] } <table1>[CloseReasonTypes] { <col0>[number]:[text] ...
SELECT * FROM `<table18>` WHERE Id = '1'
SELECT * FROM Users WHERE id = '1'.
<table0>[table_202_15] { <col0>[number]:[year] <col1>[number]:[title] <col2>[text]:[role] <col3>[text]:[notes] }
SELECT "title" FROM `<table0>` WHERE "year" = 1998
what films did mandy patinkin star in in 1998 ?
<table0>[table_train_255] { <col0>[int]:[ldl_cholesterol] <col1>[int]:[hemoglobin_a1c_hba1c] <col2>[float]:[body_weight] <col3>[float]:[urine_albumin_to_creatinine_ratio_uacr] <col4>[int]:[hba1c] <col5>[float]:[body_mass_index_bmi] <col6>[float]:[triglyceride_tg] <col7>[float]:[age] <col8>[float]:[NOUSE] }
SELECT * FROM `<table0>` WHERE hba1c >= 6.5 AND hemoglobin_a1c_hba1c <= 10
hba1c 6.5 % _ _ 10 %
<table0>[Categories] { <col0>[CategoryID]:[integer] <col1>[CategoryName]:[text] <col2>[Description]:[text] } <table1>[Customers] { <col0>[CustomerID]:[integer] <col1>[CustomerName]:[text] <col2>[ContactName]:[text] <col3>[Address]:[text] <col4>[City]:[text] <col5>[PostalCode]:[text] <col6>[Country]:[text] } <table2>[...
SELECT COUNT( T1.ProductID ) FROM `<table5>` AS T1 INNER JOIN `Order Details` AS T2 ON T1.ProductID = T2.ProductID INNER JOIN Categories AS T3 ON T1.CategoryID = T3.CategoryID WHERE T3.CategoryName = 'Seafood' AND T2.Quantity > 50
Among the seafoods, how many of them have an order quantity of more than 50?
<table0>[GameDesigners] { <col0>[DesignerID]:[INT] <col1>[DesignerName]:[VARCHAR] <col2>[Gender]:[VARCHAR] <col3>[NumberOfGames]:[INT] }
SELECT AVG( `<col3>` ) FROM `<table0>` WHERE `<col2>` = 'Male';
What is the average number of games designed by male game designers?
<table0>[forest_management] { <col0>[INT]:[name] <col1>[VARCHAR]:[region] <col2>[VARCHAR]:[country] }
SELECT COUNT( * ) FROM `<table0>` WHERE country = 'Mexico';
How many forest management records are there for Mexico?
<table0>[campus_job_id] { <col0>[int]:[student_id] <col1>[int]:[location] } <table1>[gsi] { <col0>[course_offering_id]:[int] <col1>[student_id]:[int] } <table2>[semester] { <col0>[semester_id]:[int] } <table3>[instructor] { <col0>[instructor_id]:[int] <col1>[name]:[varchar] <col2>[uniqname]:[varchar] } <table4>[cou...
SELECT DISTINCT `<table5>`.department, `<table5>`.name, `<table5>`.number FROM `<table5>` INNER JOIN `<table5>`_offering ON `<table5>`.`<table5>`_id = `<table5>`_offering.`<table5>`_id INNER JOIN semester ON semester.semester_id = `<table5>`_offering.semester INNER JOIN program_`<table5>` ON program_`<table5>`.`<table5...
Which Other classes are offered during the Winter semester ?
<table0>[table_name_74] { <col0>[goals_for]:[INTEGER] <col1>[goals_against]:[VARCHAR] <col2>[team]:[VARCHAR] <col3>[position]:[VARCHAR] <col4>[lost]:[VARCHAR] }
SELECT MAX( `<col0>` ) FROM `<table0>` WHERE `<col3>` > 2 AND `<col4>` > 18 AND `<col2>` = "matlock town" AND `<col1>` > 79
Which Goals For has a Position larger than 2, a Lost larger than 18, a Team of matlock town, and a Goals Against larger than 79?
<table0>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3>[charttime]:[text] <col4>[flag]:[text] <col5>[value_unit]:[text] <col6>[label]:[text] <col7>[fluid]:[text] } <table1>[demographic] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[name]:[text] <col3>[marital_status]:[...
SELECT MAX( `<table1>`.age ) FROM `<table1>` WHERE `<table1>`.admission_location = "TRSF WITHIN THIS FACILITY" AND `<table1>`.diagnosis = "LEFT COLON CANCER"
mention the maximum age of patients with left colon cancer primary disease and have been transferred within their facility.
<table0>[table_204_948] { <col0>[number]:[year] <col1>[number]:[award] <col2>[text]:[category] <col3>[text]:[film] <col4>[text]:[result] }
SELECT COUNT( "result" ) FROM `<table0>` WHERE "result" = 'won'
how many results are indicated as won ?
<table0>[table_name_38] { <col0>[name]:[VARCHAR] <col1>[decile]:[INTEGER] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` > 7
Which Names have Deciles larger than 7?
<table0>[Training] { <col0>[TrainingID]:[INT] <col1>[TrainingName]:[VARCHAR] <col2>[Department]:[VARCHAR] }
INSERT INTO Training ( TrainingID, TrainingName, Department ) VALUES ( 1, 'IT Skills Bootcamp', 'IT' );
Add new training program for the IT department
<table0>[table_name_95] { <col0>[lane]:[INTEGER] <col1>[reaction_time]:[VARCHAR] <col2>[country]:[VARCHAR] <col3>[time]:[VARCHAR] }
SELECT MIN( `<col0>` ) FROM `<table0>` WHERE `<col2>` = "united states" AND `<col3>` < 22.01 AND `<col1>` < 0.193
Which Lane has a Country of united states, and a Time smaller than 22.01, and a Reaction Time smaller than 0.193?
<table0>[Attorneys] { <col0>[AttorneyID]:[INT] <col1>[VARCHAR]:[INSERT] } <table1>[Cases] { <col0>[CaseID]:[INT] <col1>[AttorneyID]:[INT] <col2>[BillingAmount]:[DECIMAL] }
SELECT SUM( `<col2>` ) FROM `<table1>` WHERE `<col1>` = 3;
What is the total billing amount for cases handled by the attorney with the ID 3?
<table0>[hotel_virtual_tour] { <col0>[hotel_id]:[INT] <col1>[hotel_name]:[TEXT] <col2>[country]:[TEXT] <col3>[virtual_tour]:[TEXT] <col4>[engagement_time]:[INT] }
SELECT country, COUNT( `<col0>` ) AS total_hotels, AVG( `<col4>` ) AS avg_engagement_time, STDDEV( `<col4>` ) AS stddev_engagement_time FROM `<table0>` WHERE `<col2>` = 'Caribbean' AND `<col3>` = 'yes' GROUP BY `<col2>`
What is the distribution of virtual tour engagement times for hotels in the Caribbean?
<table0>[GameDesigners] { <col0>[DesignerID]:[INT] <col1>[DesignerName]:[VARCHAR] <col2>[Gender]:[VARCHAR] <col3>[NumberOfGames]:[INT] }
UPDATE GameDesigners SET NumberOfGames = 5 WHERE DesignerName = 'Charlie';
Update the number of games designed by 'Charlie' to 5.
<table0>[admissions] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[admittime]:[time] <col4>[dischtime]:[time] <col5>[admission_type]:[text] <col6>[admission_location]:[text] <col7>[discharge_location]:[text] <col8>[insurance]:[text] <col9>[language]:[text] <col10>[marital_status]...
SELECT t1.drug FROM ( SELECT `<table6>`.drug, COUNT( `<table6>`.startdate ) AS c1 FROM `<table6>` WHERE `<table6>`.hadm_id IN ( SELECT `<table0>`.hadm_id FROM `<table0>` WHERE `<table0>`.subject_id = 49036 ) AND DATETIME( `<table6>`.startdate, 'start of year' ) = DATETIME( CURRENT_TIME( ), 'start of year', '-1 year' ) ...
what's the name of the drug that patient 49036's been prescribed two times in 09/last year?
<table0>[table_201_5] { <col0>[number]:[year] <col1>[number]:[title] <col2>[text]:[chart] <col3>[positions]:[nnor] <col4>[number]:[chart] <col5>[positions]:[naus] <col6>[number]:[chart] <col7>[positions]:[naut] <col8>[number]:[chart] <col9>[positions]:[nbel] <col10>[number]:[chart] <col11>[positions]:[nger] <col12>[num...
SELECT "year" FROM `<table0>` WHERE "year" = 'hallelujah - live volume 2'
when did the album hallelujah - live volume 2 come out ?
<table0>[vessel] { <col0>[INT]:[type] <col1>[VARCHAR]:[name] } <table1>[incident] { <col0>[INT]:[vessel_id] <col1>[INT]:[incident_date] <col2>[DATE]:[incident_type] }
SELECT v.name, COUNT( i.id ) as collision_count FROM `<table0>` v INNER JOIN incident i ON v.id = i.`<table0>`_id WHERE v.type = 'container' AND i.incident_type = 'collision' AND i.incident_date >= DATE( NOW( ), INTERVAL -3 YEAR ) GROUP BY v.name ORDER BY collision_count DESC;
Which container vessels have had the most collisions in the past 3 years?
<table0>[table_6953] { <col0>[Nation]:[text] <col1>[Skip]:[text] <col2>[text]:[Second] <col3>[text]:[Lead] <col4>[text]:[Alternate] <col5>[text]:[Club] }
SELECT "Nation" FROM `<table0>` WHERE "Second" = 'glenys bakker'
Glenys Bakker was second for which nation?
<table0>[employee] { <col0>[employee_id]:[integer] <col1>[first_name]:[text] <col2>[last_name]:[text] <col3>[address]:[text] <col4>[city]:[text] <col5>[state]:[text] <col6>[zip]:[integer] <col7>[phone]:[text] <col8>[title]:[text] <col9>[salary]:[integer] <col10>[supervisor]:[integer] } <table1>[establishment] { <col0>...
SELECT DISTINCT T1.dba_name FROM `<table1>` AS T1 INNER JOIN inspection AS T2 ON T1.license_no = T2.license_no INNER JOIN violation AS T3 ON T2.inspection_id = T3.inspection_id INNER JOIN inspection_point AS T4 ON T3.point_id = T4.point_id WHERE T4.category = 'No Smoking Regulations'
What is the establishment's name with an inspection category of No Smoking Regulations?
<table0>[table_204_84] { <col0>[number]:[number] <col1>[peak]:[text] <col2>[location]:[text] <col3>[elevation]:[number] <col4>[prominence]:[number] <col5>[col]:[height] <col6>[number]:[col] <col7>[location]:[text] <col8>[parent]:[text] }
SELECT COUNT( "prominence ( m )" ) FROM `<table0>`
what is the total number of peaks listed on the list of alpine peaks by prominence ?
<table0>[table_name_12] { <col0>[attendance]:[VARCHAR] <col1>[loss]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "mercker ( 3-1 )"
What was the attendance at the game that had a loss of Mercker (3-1)?
<table0>[table_name_9] { <col0>[date]:[VARCHAR] <col1>[performance]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "8.22.72"
On which date is there a performance of more than 8.22.72?
<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>[jobs] { <col0>[JOB_ID]:[varchar] <col1>[JOB_TITLE]:[varchar] <col2>[MIN_SALARY]:[decimal] <col3>[MAX_SALARY]...
SELECT JOB_ID, COUNT( `<col6>` ) FROM `<table5>` WHERE `<col5>` < '2002-06-21' GROUP BY `<col6>` ORDER BY `<col6>` DESC
For those employees who was hired before 2002-06-21, a bar chart shows the distribution of job_id and the amount of job_id , and group by attribute job_id, display in descending by the bars please.
<table0>[table_12228] { <col0>[Draw]:[real] <col1>[Artist]:[text] <col2>[Song]:[text] <col3>[Jury]:[real] <col4>[Televote]:[real] <col5>[Total]:[real] <col6>[Place]:[real] }
SELECT COUNT( "Jury" ) FROM `<table0>` WHERE "Artist" = 'chalice & maagiline kuues' AND "Draw" < '5'
How much Jury has an Artist of chalice & maagiline kuues, and a Draw smaller than 5?
<table0>[mental_health_parity] { <col0>[INT]:[regulation] <col1>[VARCHAR]:[100] <col2>[effective_date]:[DATE] }
SELECT AVG( effective_date ) FROM mental_health_parity;
What is the average effective date of mental health parity regulations?
<table0>[table_48107] { <col0>[Rank]:[real] <col1>[Title]:[text] <col2>[Studio]:[text] <col3>[Director]:[text] <col4>[Worldwide]:[Gross] }
SELECT AVG( "Rank" ) FROM `<table0>` WHERE "Studio" = '20th century fox' AND "Director" = 'roland emmerich'
What was the average rank for the film directed by roland emmerich under the studio of 20th century fox?
<table0>[table_2562572_43] { <col0>[type]:[VARCHAR] <col1>[population__2011]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE population__2011_ = 1004
What is the type for the population in 2011 of 1004?
<table0>[diagnoses] { <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 MAX( `<table1>`.days_stay ) FROM `<table1>` WHERE `<table1>`.diagnosis = "STEMI"
what is maximum days of hospital stay of patients whose primary disease is stemi?
<table0>[Neighborhoods] { <col0>[NeighborhoodID]:[INT] <col1>[NeighborhoodName]:[VARCHAR] } <table1>[Properties] { <col0>[PropertyID]:[INT] <col1>[NeighborhoodID]:[INT] <col2>[Size]:[INT] <col3>[Sustainable]:[BOOLEAN] }
SELECT NeighborhoodName, COUNT( * ) AS Sustainable`<table1>`Count FROM `<table1>` JOIN Neighborhoods ON `<table1>`.NeighborhoodID = Neighborhoods.NeighborhoodID WHERE `<col3>` = 1 GROUP BY NeighborhoodName ORDER BY Sustainable`<table1>`Count ASC;
Find the number of sustainable properties in each neighborhood, ordered from lowest to highest.
<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>[jobs] { <col0>[JOB_ID]:[varchar] <col1>[JOB_TITLE]:[varchar] <col2>[MIN_SALARY]:[decimal] <col3>[MAX_SALARY]...
SELECT LAST_NAME, LOCATION_ID FROM `<table3>` AS T1 JOIN departments AS T2 ON T1.DEPARTMENT_ID = T2.DEPARTMENT_ID WHERE T1.EMPLOYEE_ID = T2.MANAGER_ID ORDER BY `<col2>` DESC
Show me a bar chart, that simply displays the last name of the employee and the corresponding department's location id, and display by the x axis in descending please.
<table0>[equipment_sequence] { <col0>[aircraft_code_sequence]:[varchar] <col1>[aircraft_code]:[varchar] } <table1>[flight] { <col0>[aircraft_code_sequence]:[text] <col1>[airline_code]:[varchar] } <table2>[flight_fare] { <col0>[flight_id]:[int] <col1>[fare_id]:[int] } <table3>[date_day] { <col0>[month_number]:[int] <...
SELECT DISTINCT flight.flight_id FROM `<table11>` AS AIRPORT_SERVICE_0, `<table11>` AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE ( ( CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'MONTREAL' AND date_day.day_number = 25 AND date_day.month_number = 6 AND date_...
i want a flight from TORONTO to MONTREAL that leaves early friday morning
<table0>[Lots] { <col0>[lot_id]:[INTEGER] <col1>[investor_id]:[INTEGER] <col2>[lot_details]:[VARCHAR] } <table1>[Transactions_Lots] { <col0>[transaction_id]:[INTEGER] <col1>[lot_id]:[INTEGER] } <table2>[Transactions] { <col0>[transaction_id]:[INTEGER] <col1>[investor_id]:[INTEGER] <col2>[transaction_type_code]:[VARCH...
SELECT date_of_transaction, COUNT( `<col3>` ) FROM `<table2>` WHERE `<col5>` >= 100 OR `<col4>` >= 100 ORDER BY COUNT( `<col3>` ) DESC
A bar chart for what are the number of the dates of transactions with at least 100 share count or amount bigger than 100?, and sort by the Y from high to low.
<table0>[table_name_35] { <col0>[week]:[VARCHAR] <col1>[attendance]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "63,447"
Which Week has an Attendance of 63,447?
<table0>[table_name_46] { <col0>[date]:[VARCHAR] <col1>[outcome]:[VARCHAR] <col2>[opponents]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "winner" AND `<col2>` = "dinah pfizenmaier anna zaja"
Tell me the date for dinah pfizenmaier anna zaja and winner
<table0>[table_23916539_3] { <col0>[record]:[VARCHAR] <col1>[location]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "Clarke Stadium"
What is the record if the location is Clarke Stadium?
<table0>[city] { <col0>[city_id]:[integer] <col1>[city_name]:[text] <col2>[state]:[text] <col3>[population]:[integer] <col4>[area]:[real] } <table1>[customer] { <col0>[cust_id]:[integer] <col1>[cust_name]:[text] <col2>[annual_revenue]:[integer] <col3>[cust_type]:[text] <col4>[address]:[text] <col5>[city]:[text] <col6>...
SELECT COUNT( T2.ship_id ) FROM `<table3>` AS T1 INNER JOIN shipment AS T2 ON T1.`<table3>`_id = T2.`<table3>`_id WHERE T1.make = 'Mack' ORDER BY T2.weight DESC LIMIT 1
Among the top 5 heaviest shipments, how many shipments were transported via Mack?
<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>` WHERE `<table1>`.age < "20" AND `<table1>`.days_stay > "20"
provide the number of patients whose age is less than 20 and days of hospital stay is greater than 20?
<table0>[Manufacturers] { <col0>[Code]:[INTEGER] <col1>[VARCHAR]:[255] <col2>[Headquarter]:[VARCHAR] <col3>[255]:[Founder] <col4>[VARCHAR]:[255] <col5>[Revenue]:[REAL] } <table1>[Products] { <col0>[Code]:[INTEGER] <col1>[VARCHAR]:[255] <col2>[Price]:[DECIMAL] <col3>[Manufacturer]:[INTEGER] }
SELECT T2.Name, MAX( T1.Price ) FROM `<table1>` AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY Name
For each manufacturer's name, what are the prices of their most expensive product?, order in asc by the bars.
<table0>[table_203_253] { <col0>[number]:[model] <col1>[text]:[frame] <col2>[text]:[years] <col3>[mfg]:[text] <col4>[caliber]:[text] <col5>[production]:[text] <col6>[barrel]:[text] <col7>[notes]:[text] }
SELECT "model" FROM `<table0>` WHERE "model" <> 'remington-beals navy model revolver' AND "caliber( s )" = ( SELECT "caliber( s )" FROM `<table0>` WHERE "model" = 'remington-beals navy model revolver' )
name the models that had the same caliber as the remington beals navy model revolver .
<table0>[smart_city_projects] { <col0>[project_id]:[INT] <col1>[city]:[VARCHAR] <col2>[annual_budget]:[FLOAT] }
SELECT AVG( `<col2>` ) FROM ( SELECT DISTINCT `<col2>` FROM `<table0>` WHERE `<col1>` IN ( 'Tokyo', 'Seoul', 'Hong Kong', 'Shanghai' ) ORDER BY `<col2>` )
What is the average smart city technology adoption budget per city in Asia?
<table0>[table_name_64] { <col0>[score]:[VARCHAR] <col1>[to_par]:[VARCHAR] <col2>[country]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "+1" AND `<col2>` = "united states"
What was the score for the player from the United states that was +1 to par?
<table0>[table_name_89] { <col0>[player]:[VARCHAR] <col1>[nhl_team]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "mighty ducks of anaheim"
I want the player for NHL team for mighty ducks of anaheim
<table0>[players] { <col0>[INT]:[name] <col1>[VARCHAR]:[age] <col2>[INT]:[country] <col3>[VARCHAR]:[INSERT] } <table1>[events] { <col0>[INT]:[name] <col1>[VARCHAR]:[date] <col2>[DATE]:[INSERT] }
SELECT AVG( `<table0>`.age ) FROM `<table0>` INNER JOIN events ON `<table0>`.country = 'USA' AND events.date >= DATEADD( month, -3, GETDATE( ) ) AND `<table0>`.id = events.id;
What is the average age of players who have participated in esports events, in the last 3 months, in the United States?
<table0>[people] { <col0>[People_ID]:[int] <col1>[Age]:[int] <col2>[text]:[Nationality] <col3>[text]:[Graduation_College] } <table1>[company] { <col0>[Company_ID]:[real] <col1>[text]:[Headquarters] <col2>[text]:[Industry] <col3>[text]:[Sales_in_Billion] <col4>[real]:[Profits_in_Billion] <col5>[real]:[Assets_in_Billion...
SELECT Headquarters, COUNT( Headquarters ) FROM `<table1>` GROUP BY Industry, Headquarters ORDER BY Headquarters
How many companies are there in each headquarters? Return a stacked bar chart to group by industry and headquearters, and count by headquarters, show by the bar in ascending.
<table0>[d_items] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] <col3>[linksto]:[text] } <table1>[diagnoses_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icd9_code]:[text] <col4>[charttime]:[time] } <table2>[chartevents] { <col0>[row_id]:[number] <...
SELECT `<table4>`.label FROM `<table4>` WHERE `<table4>`.itemid IN ( SELECT t3.itemid FROM ( SELECT t2.itemid, DENSE_RANK( ) OVER ( ORDER BY COUNT( * ) DESC ) AS c1 FROM ( SELECT admissions.subject_id, `<table11>`.charttime FROM `<table11>` JOIN admissions ON `<table11>`.hadm_id = admissions.hadm_id WHERE `<table11>`.i...
what were the three most commonly ordered lab tests for patients who had received open liver biopsy before in the same month since 2103?
<table0>[table_22824312_1] { <col0>[hometown]:[VARCHAR] <col1>[player]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "Jim Dutcher"
What is jim dutcher's hometown?
<table0>[ReviewRejectionReasons] { <col0>[number]:[text] <col1>[Description]:[text] <col2>[PostTypeId]:[number] } <table1>[VoteTypes] { <col0>[number]:[text] } <table2>[PostTypes] { <col0>[number]:[text] } <table3>[TagSynonyms] { <col0>[number]:[SourceTagName] <col1>[text]:[TargetTagName] <col2>[text]:[CreationDate]...
SELECT p.LastActivityDate AS "post_link", p.CreationDate, p.Title, p.Id, p.Score, p.ViewCount, p.AnswerCount, p.Tags, u.Reputation FROM `<table27>` AS p, Users AS u WHERE p.OwnerUserId = u.Id AND u.Reputation >= 100 AND p.DeletionDate IS NULL ORDER BY p.CreationDate DESC LIMIT 100
Unanswered questions from users with reputation >= 100.
<table0>[employees] { <col0>[EMPLOYEE_ID]:[decimal] <col1>[FIRST_NAME]:[varchar] <col2>[LAST_NAME]:[varchar] <col3>[EMAIL]:[varchar] <col4>[PHONE_NUMBER]:[varchar] <col5>[HIRE_DATE]:[date] <col6>[JOB_ID]:[varchar] <col7>[SALARY]:[decimal] <col8>[COMMISSION_PCT]:[decimal] <col9>[MANAGER_ID]:[decimal] <col10>[DEPARTMENT_...
SELECT COMMISSION_PCT, `<col9>` FROM `<table0>` WHERE `<col1>` LIKE '%D%' OR `<col1>` LIKE '%S%'
For all employees who have the letters D or S in their first name, show me about the correlation between commission_pct and manager_id in a scatter chart.
<table0>[table_25401_2] { <col0>[romanian]:[VARCHAR] <col1>[nuorese_sardinian]:[VARCHAR] }
SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "[ˈkantata]"
what is romanian when nuorese sardinian is [ˈkantata]?
<table0>[intakeoutput] { <col0>[intakeoutputid]:[number] <col1>[patientunitstayid]:[number] <col2>[cellpath]:[text] <col3>[celllabel]:[text] <col4>[cellvaluenumeric]:[number] <col5>[intakeoutputtime]:[time] } <table1>[patient] { <col0>[uniquepid]:[text] <col1>[patienthealthsystemstayid]:[number] <col2>[patientunitstay...
SELECT t1.drugname FROM ( SELECT `<table4>`.drugname, DENSE_RANK( ) OVER ( ORDER BY COUNT( * ) DESC ) AS c1 FROM `<table4>` WHERE STRFTIME( '%y', `<table4>`.drugstarttime ) = '2102' GROUP BY `<table4>`.drugname ) AS t1 WHERE t1.c1 <= 3
tell me, what were the top three most commonly prescribed drugs in 2102?
<table0>[menu_items] { <col0>[item_id]:[INT] <col1>[item_name]:[VARCHAR] <col2>[uses_local]:[BOOLEAN] }
SELECT COUNT( * ) * 100.0 / ( SELECT COUNT( * ) FROM `<table0>` ) AS percentage FROM `<table0>` WHERE `<col2>` = true;
What is the percentage of locally sourced ingredients used in menu items?