schema stringlengths 20 14.6k | query stringlengths 17 2.58k | question stringlengths 8 1.06k |
|---|---|---|
<table0>[table_name_97] { <col0>[pure_tamil]:[VARCHAR] <col1>[how_other_iyers_say_it]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "enga athilae" | Name the pure tamil for enga athilae |
<table0>[diagnosis] { <col0>[diagnosisid]:[number] <col1>[patientunitstayid]:[number] <col2>[diagnosisname]:[text] <col3>[diagnosistime]:[time] <col4>[icd9code]:[text] } <table1>[microlab] { <col0>[microlabid]:[number] <col1>[patientunitstayid]:[number] <col2>[culturesite]:[text] <col3>[organism]:[text] <col4>[culture... | SELECT DISTINCT `<table4>`.`<table4>` FROM `<table4>` WHERE `<table4>`.eventtype = '`<table3>`' AND `<table4>`.eventid IN ( SELECT `<table3>`.`<table3>`id FROM `<table3>` WHERE `<table3>`.drugname = 'dextrose 50 % in water ( d50w ) iv syringe' ) | what is the cost of a medication named dextrose 50 % in water (d50w) iv syringe? |
<table0>[maritime_laws] { <col0>[INT]:[law] <col1>[VARCHAR]:[region] <col2>[VARCHAR]:[speed_limit] <col3>[INT]:[INSERT] } | SELECT speed_limit FROM `<table0>` WHERE region = 'Caribbean Sea'; | Show legal speed limits for ships in the Caribbean Sea. |
<table0>[candidate] { <col0>[Candidate_ID]:[int] <col1>[People_ID]:[int] <col2>[Poll_Source]:[text] <col3>[Date]:[text] <col4>[Support_rate]:[real] <col5>[Consider_rate]:[real] <col6>[Oppose_rate]:[real] <col7>[Unsure_rate]:[real] } <table1>[people] { <col0>[People_ID]:[int] <col1>[Sex]:[text] <col2>[text]:[Date_of_Bi... | SELECT Name, Height FROM `<table1>` ORDER BY Height DESC | Return a bar chart about the distribution of Name and Height , and show Y-axis in descending order.
|
<table0>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table1>[prescriptions] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icustay_id]:[text] <col3>[drug_type]:[text] <col4>[drug]:[text] <col5>[formulary_drug_... | SELECT COUNT( DISTINCT `<table3>`.subject_id ) FROM `<table3>` INNER JOIN lab ON `<table3>`.hadm_id = lab.hadm_id WHERE `<table3>`.gender = "F" AND lab.itemid = "50831" | how many of the female patients had item id 50831? |
<table0>[table_name_47] { <col0>[year]:[INTEGER] <col1>[engine]:[VARCHAR] <col2>[points]:[VARCHAR] } | SELECT MIN( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "ford zetec-r v8" AND `<col2>` > 0 | What is the lowest year for an engine of ford zetec-r v8, and points greater than 0? |
<table0>[defense_projects] { <col0>[INT]:[PRIMARY] <col1>[KEY]:[project_name] <col2>[VARCHAR]:[255] <col3>[status]:[VARCHAR] <col4>[255]:[planned_start_date] } | SELECT project_name, planned_start_date FROM `<table0>` WHERE `<col3>` != 'In Progress' AND `<col3>` != 'Completed' ORDER BY planned_start_date ASC; | List all defense projects that have not started yet and their planned start dates, ordered by the planned start date in ascending order. |
<table0>[daily_production] { <col0>[well_id]:[INT] <col1>[date]:[DATE] <col2>[type]:[VARCHAR] <col3>[quantity]:[INT] } | SELECT well_id, date, type, `<col3>` FROM `<table0>` WHERE region = 'Northern'; | Show the daily production quantity per well in the Northern region |
<table0>[table_name_53] { <col0>[attendance]:[INTEGER] <col1>[opponent]:[VARCHAR] <col2>[points_against]:[VARCHAR] } | SELECT MIN( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "tampa bay buccaneers" AND `<col2>` < 7 | What is the lowest Attendance against the tampa bay buccaneers, with Points Against of less than 7?
|
<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>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[... | SELECT COUNT( DISTINCT `<table2>`.subject_id ) FROM `<table2>` INNER JOIN lab ON `<table2>`.hadm_id = lab.hadm_id WHERE `<table2>`.admission_type = "EMERGENCY" AND lab."CATEGORY" = "Hematology" | give me the number of patients whose admission type is emergency and lab test category is hematology?
|
<table0>[hosting_city] { <col0>[host_city]:[VARCHAR] <col1>[YEAR]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` ORDER BY `<col1>` DESC LIMIT 1 | What is id of the city that hosted events in the most recent year?
|
<table0>[table_19534874_2] { <col0>[indoor]:[VARCHAR] <col1>[wing]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "NJ" | What is the indoor number for the NJ wing/ |
<table0>[Museums] { <col0>[INT]:[name] <col1>[VARCHAR]:[city] } <table1>[Events] { <col0>[INT]:[museum_id] <col1>[INT]:[name] <col2>[VARCHAR]:[year] <col3>[INT]:[attendees] <col4>[INT]:[INSERT] <col5>[Museums]:[name] <col6>[city]:[VALUES] <col7>[Metropolitan]:[Museum] <col8>[Art]:[New] <col9>[York]:[INSERT] } | SELECT AVG( attendees ) FROM `<table1>` WHERE museum_id = 1; | What is the average number of attendees for events held at the Metropolitan Museum of Art? |
<table0>[table_24446718_7] { <col0>[name_of_award]:[VARCHAR] <col1>[awardee_s]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE awardee_s_ = "Zubeen Garg" | Name the name of award for zubeen garg |
<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 Headquarter, SUM( `<col2>` ) FROM `<table1>` AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY Headquarter DESC | For those records from the products and each product's manufacturer, a bar chart shows the distribution of headquarter and the sum of price , and group by attribute headquarter, and I want to list in desc by the x axis. |
<table0>[table_23157997_13] { <col0>[youth_classification]:[VARCHAR] <col1>[mountains_classification]:[VARCHAR] <col2>[winner]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "Kenneth Hanson" AND `<col2>` = "Lucas Sebastian Haedo" | Who was the Youth Classification in the race with Kenneth Hanson as Mountains Classification and Lucas Sebastian Haedo as winner? |
<table0>[table_name_96] { <col0>[cyclist]:[VARCHAR] <col1>[uci_protour_points]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = 40 | Which cyclist has UCI ProTour points of 40? |
<table0>[wine] { <col0>[INTEGER]:[Grape] <col1>[TEXT]:[Winery] <col2>[TEXT]:[Appelation] <col3>[TEXT]:[State] <col4>[TEXT]:[TEXT] <col5>[Year]:[INTEGER] <col6>[Price]:[INTEGER] <col7>[Score]:[INTEGER] <col8>[Cases]:[INTEGER] <col9>[Drink]:[TEXT] } <table1>[appellations] { <col0>[INTEGER]:[Appelation] <col1>[TEXT]:[Cou... | SELECT Year, MAX( `<col6>` ) FROM `<table0>` GROUP BY `<col5>` ORDER BY `<col5>` | Show me the trend about the maximum price of wines for each year, order by the x-axis in ascending.
|
<table0>[table_16285] { <col0>[Rnd]:[text] <col1>[Race]:[text] <col2>[Circuit]:[text] <col3>[City]:[Location] <col4>[text]:[Date] <col5>[text]:[Pole] <col6>[position]:[text] <col7>[Fastest]:[lap] <col8>[text]:[Winning] <col9>[driver]:[text] <col10>[Winning]:[team] <col11>[text]:[Report] } | SELECT COUNT( "Rnd" ) FROM `<table0>` WHERE "Race Name" = 'Bosch Spark Plug Grand Prix' | How many rounds were there of the Bosch Spark Plug Grand Prix?
|
<table0>[SuggestedEdits] { <col0>[number]:[PostId] <col1>[number]:[CreationDate] <col2>[time]:[ApprovalDate] <col3>[time]:[RejectionDate] <col4>[time]:[OwnerUserId] <col5>[number]:[Comment] <col6>[text]:[Text] <col7>[text]:[Title] <col8>[text]:[Tags] <col9>[text]:[RevisionGUID] } <table1>[PostNoticeTypes] { <col0>[num... | SELECT PostNotices.Id, Posts.PostTypeId, PostNotices.CreationDate, PostNotices.DeletionDate, Posts.Score, PostNotices.OwnerUserId, PostNotices.DeletionUserId FROM Posts, PostNotices WHERE NOT PostNotices.DeletionDate IS NULL AND DeletionUserId != PostNotices.OwnerUserId AND YEAR( PostNotices.CreationDate ) >= 2012 AND ... | Satisfaction with moderators and system: Amount of new posts deleted by moderators or the system.
|
<table0>[time_interval] { <col0>[period]:[text] <col1>[begin_time]:[int] <col2>[end_time]:[int] } <table1>[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>[applicatio... | SELECT DISTINCT `<table17>`_code FROM `<table17>` WHERE `<table17>`_code = '733' | what is the seating capacity of the 733
|
<table0>[PostNoticeTypes] { <col0>[number]:[ClassId] <col1>[number]:[text] <col2>[Body]:[text] <col3>[IsHidden]:[boolean] <col4>[Predefined]:[boolean] <col5>[PostNoticeDurationId]:[number] } <table1>[SuggestedEdits] { <col0>[number]:[PostId] <col1>[number]:[CreationDate] <col2>[time]:[ApprovalDate] <col3>[time]:[Rejec... | SELECT YEAR( CreationDate ), TIME_TO_STR( CreationDate, '%W' ), TIME_TO_STR( CreationDate, '%A' ) AS "day_of_week", TagName, COUNT( PostId ) AS "count" FROM Tags, PostTags, Posts WHERE Tags.Id = PostTags.TagId AND Posts.Id = PostId AND Count > 1000 GROUP BY YEAR( CreationDate ), TIME_TO_STR( CreationDate, '%W' ), TIME_... | question tags by DOW and Year.
|
<table0>[course_prerequisite] { <col0>[pre_course_id]:[int] <col1>[course_id]:[int] } <table1>[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] } <table2>[comm... | SELECT DISTINCT `<col5>` FROM `<table13>` WHERE `<col2>` = 'GTBOOKS' AND `<col3>` = 331 | Before taking GTBOOKS 331 , what are some useful courses to take ?
|
<table0>[Products] { <col0>[product_id]:[INTEGER] <col1>[product_category]:[VARCHAR] <col2>[product_name]:[VARCHAR] } <table1>[Mailshot_Campaigns] { <col0>[mailshot_id]:[INTEGER] <col1>[product_category]:[VARCHAR] <col2>[mailshot_name]:[VARCHAR] <col3>[mailshot_start_date]:[DATETIME] <col4>[mailshot_end_date]:[DATETIM... | SELECT product_category, COUNT( * ) FROM `<table1>` GROUP BY `<col1>` ORDER BY COUNT( * ) DESC | Show me the total number by product category in a histogram, I want to show from high to low by the Y. |
<table0>[table_69167] { <col0>[Start]:[text] <col1>[Qual]:[text] <col2>[Rank]:[text] <col3>[Finish]:[text] <col4>[Laps]:[real] } | SELECT COUNT( "Laps" ) FROM `<table0>` WHERE "Rank" = '3' | What is the sum of all laps with rank 3?
|
<table0>[table_46022] { <col0>[Pick]:[real] <col1>[CFL]:[Team] <col2>[text]:[Player] <col3>[text]:[Position] <col4>[text]:[College] } | SELECT "CFL Team" FROM `<table0>` WHERE "Pick #" > '34' AND "College" = 'boise state' | What is CFL Team, when Pick # is greater than 34, and when College is Boise State?
|
<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( `<col3>` * `<col4>` ) AS total_revenue FROM `<table0>` WHERE `<col5>` = 'Southern'; | What is the total revenue generated from menu items sold in the Southern region? |
<table0>[date_day] { <col0>[month_number]:[int] <col1>[day_number]:[int] <col2>[year]:[int] <col3>[day_name]:[varchar] } <table1>[ground_service] { <col0>[city_code]:[text] <col1>[airport_code]:[text] <col2>[transport_type]:[text] <col3>[ground_fare]:[int] } <table2>[airport_service] { <col0>[city_code]:[varchar] <co... | SELECT DISTINCT fare.fare_id FROM `<table2>` AS AIRPORT_SERVICE_0, `<table2>` AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day AS DATE_DAY_0, date_day AS DATE_DAY_1, days AS DAYS_0, days AS DAYS_1, fare, fare_basis, flight, flight_fare WHERE ( ( CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.ci... | can you show me what fares are available from OAKLAND to DALLAS on 12 16 one way only |
<table0>[MenuEngineering] { <col0>[meal_type]:[VARCHAR] <col1>[sustainable]:[BOOLEAN] <col2>[revenue]:[INT] } | SELECT AVG( `<col2>` ) FROM `<table0>` WHERE `<col1>` = TRUE; | What is the average revenue per sustainable meal? |
<table0>[EcoHousing] { <col0>[property_id]:[INT] <col1>[coowner_name]:[TEXT] <col2>[units_owned]:[INT] } <table1>[Property] { <col0>[property_id]:[INT] <col1>[development_name]:[TEXT] } | SELECT `<col1>` FROM `<table0>` JOIN Property ON `<table0>`.property_id = Property.property_id WHERE development_name = '`<table0>`'; | Find the co-owners of a property in the EcoHousing development. |
<table0>[Products] { <col0>[Code]:[INTEGER] <col1>[VARCHAR]:[255] <col2>[Price]:[DECIMAL] <col3>[Manufacturer]:[INTEGER] } <table1>[Manufacturers] { <col0>[Code]:[INTEGER] <col1>[VARCHAR]:[255] <col2>[Headquarter]:[VARCHAR] <col3>[255]:[Founder] <col4>[VARCHAR]:[255] <col5>[Revenue]:[REAL] } | SELECT Headquarter, SUM( `<col3>` ) FROM `<table0>` AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY Headquarter | For those records from the products and each product's manufacturer, draw a bar chart about the distribution of headquarter and the sum of manufacturer , and group by attribute headquarter, order by the bars in asc. |
<table0>[sector_incidents] { <col0>[INT]:[incident_type] <col1>[VARCHAR]:[255] <col2>[sector]:[VARCHAR] <col3>[255]:[incident_date] <col4>[DATE]:[affected_assets] <col5>[INT]:[INSERT] } | SELECT incident_type, COUNT( * ) as total_occurrences FROM `<table0>` WHERE `<col2>` = 'Transportation' AND incident_date >= DATE_SUB( CURRENT_DATE, INTERVAL 1 YEAR ) GROUP BY incident_type; | What is the total number of cybersecurity incidents and their types that have occurred in the transportation sector in the past year? |
<table0>[flight_leg] { <col0>[flight_id]:[int] <col1>[leg_number]:[int] <col2>[leg_flight]:[int] } <table1>[fare] { <col0>[fare_id]:[int] <col1>[from_airport]:[varchar] <col2>[to_airport]:[varchar] <col3>[fare_basis_code]:[text] <col4>[fare_airline]:[text] <col5>[restriction_code]:[text] <col6>[one_direction_cost]:[in... | SELECT DISTINCT flight.flight_id FROM `<table21>` AS AIRPORT_SERVICE_0, `<table21>` AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE ( ( date_day.day_number = 24 AND date_day.month_number = 5 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.arrival_time < 900 A... | i need a thursday flight from PITTSBURGH to BALTIMORE arriving in BALTIMORE before 900 o'clock
|
<table0>[table_19085] { <col0>[Code]:[real] <col1>[County]:[text] <col2>[Province]:[text] <col3>[Area]:[text] <col4>[Population]:[Census] <col5>[2009]:[real] <col6>[Capital]:[text] } | SELECT "Former Province" FROM `<table0>` WHERE "Area ( km 2 )" = '12,245.9' | what's the former province with area (km 2 ) being 12,245.9
|
<table0>[table_23308178_5] { <col0>[points]:[INTEGER] } | SELECT MIN( `<col0>` ) FROM `<table0>` | What's the minimal number of points scored in any game? |
<table0>[table_name_88] { <col0>[time_retired]:[VARCHAR] <col1>[driver]:[VARCHAR] <col2>[laps]:[VARCHAR] <col3>[grid]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col2>` > 34 AND `<col3>` < 15 AND `<col1>` = "damon hill" | What is the Time/Retired with more Laps than 34, a Grid smaller than 15, and Driver Damon Hill?
|
<table0>[keyphrase] { <col0>[keyphraseid]:[int] <col1>[keyphrasename]:[varchar] } <table1>[paperkeyphrase] { <col0>[paperid]:[int] <col1>[keyphraseid]:[int] } <table2>[paper] { <col0>[paperid]:[int] <col1>[title]:[varchar] <col2>[venueid]:[int] <col3>[year]:[int] <col4>[numciting]:[int] <col5>[numcitedby]:[int] <col6... | SELECT DISTINCT COUNT( DISTINCT writes.paperid ) FROM author, writes WHERE author.authorname = 'samia razaq' AND writes.authorid = author.authorid | How many paper does samia razaq have ?
|
<table0>[table_74190] { <col0>[Tour]:[text] <col1>[Mens]:[singles] <col2>[text]:[Womens] <col3>[singles]:[text] <col4>[Mens]:[doubles] <col5>[text]:[Womens] <col6>[doubles]:[text] <col7>[Mixed]:[doubles] } | SELECT "Womens doubles" FROM `<table0>` WHERE "Mixed doubles" = 'Sudket Prapakamol Saralee Thungthongkam' | Who is the women's doubles when the mixed doubles are sudket prapakamol saralee thungthongkam?
|
<table0>[table_1231316_4] { <col0>[wind__m_s]:[VARCHAR] <col1>[country]:[VARCHAR] } | SELECT wind__m_s_ FROM `<table0>` WHERE `<col1>` = "Trinidad and Tobago" | What was the stats of Trinidad and Tobago
|
<table0>[table_train_271] { <col0>[int]:[renal_disease] <col1>[bool]:[hepatic_disease] <col2>[bool]:[smoking] <col3>[bool]:[coronary_artery_disease_cad] <col4>[bool]:[serum_creatinine] <col5>[float]:[body_mass_index_bmi] <col6>[float]:[myocardial_infarction] <col7>[bool]:[NOUSE] } | SELECT * FROM `<table0>` WHERE smoking = 0 | non _ smoker ( last cigarette at least one month ago ) |
<table0>[table_name_17] { <col0>[county]:[VARCHAR] <col1>[school]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "merrillville" | In what county is the school of Merrillville?
|
<table0>[table_204_771] { <col0>[number]:[rank] <col1>[number]:[nation] <col2>[text]:[gold] <col3>[number]:[silver] <col4>[number]:[bronze] <col5>[number]:[total] } | SELECT "nation" FROM `<table0>` ORDER BY "silver" DESC LIMIT 1 | what country has the largest number of silver medals ? |
<table0>[table_name_86] { <col0>[pick__number]:[INTEGER] <col1>[name]:[VARCHAR] <col2>[round]:[VARCHAR] } | SELECT MAX( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "lawrence sidbury" AND `<col2>` < 4 | Which Pick # is the highest one that has a Name of lawrence sidbury, and a Round smaller than 4?
|
<table0>[mental_health_facilities] { <col0>[INT]:[name] <col1>[VARCHAR]:[multilingual_staff] <col2>[INT]:[INSERT] } | SELECT name, RANK( ) OVER ( ORDER BY multilingual_staff DESC ) as ranking FROM mental_health_facilities; | Rank mental health facilities by the number of multilingual staff members? |
<table0>[table_name_58] { <col0>[city]:[VARCHAR] <col1>[country]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "kuwait" | What is City, when Country is 'Kuwait'? |
<table0>[intakeoutput] { <col0>[intakeoutputid]:[number] <col1>[patientunitstayid]:[number] <col2>[cellpath]:[text] <col3>[celllabel]:[text] <col4>[cellvaluenumeric]:[number] <col5>[intakeoutputtime]:[time] } <table1>[allergy] { <col0>[allergyid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[text] <col... | SELECT t3.culturesite FROM ( SELECT t2.culturesite, DENSE_RANK( ) OVER ( ORDER BY COUNT( * ) DESC ) AS c1 FROM ( SELECT patient.uniquepid, `<table4>`.`<table4>`time FROM `<table4>` JOIN patient ON `<table4>`.patientunitstayid = patient.patientunitstayid WHERE `<table4>`.`<table4>`name = 'hyperlipidemia' AND STRFTIME( '... | what are the three most commonly ordered specimen tests for patients who have been diagnosed with hyperlipidemia previously within 2 months in 2105? |
<table0>[teachers] { <col0>[teacher_id]:[INT] <col1>[subject_area]:[VARCHAR] <col2>[255]:[INSERT] } <table1>[courses] { <col0>[course_id]:[INT] <col1>[course_name]:[VARCHAR] <col2>[255]:[subject_area] <col3>[VARCHAR]:[255] } <table2>[completions] { <col0>[teacher_id]:[INT] <col1>[course_id]:[INT] } | SELECT COUNT( DISTINCT t.teacher_id ) as num_`<table0>` FROM `<table0>` t JOIN completions c ON t.teacher_id = c.teacher_id JOIN courses co ON c.course_id = co.course_id WHERE co.subject_area IN ( 'Math', 'Science', 'Technology', 'Engineering' ); | How many teachers have completed professional development courses in STEM subjects? |
<table0>[dispensary_sales] { <col0>[INT]:[dispensary] <col1>[VARCHAR]:[255] <col2>[product]:[VARCHAR] <col3>[255]:[quantity] <col4>[INT]:[sale_date] <col5>[DATE]:[INSERT] } | SELECT SUM( quantity ) FROM `<table0>` WHERE dispensary = 'Dispensary F' AND `<col2>` = 'Pre-rolls' AND QUARTER( sale_date ) = 2 AND YEAR( sale_date ) = 2022; | What is the total quantity of pre-rolls sold by Dispensary F in Q2 2022? |
<table0>[businesses] { <col0>[business_id]:[integer] <col1>[name]:[text] <col2>[address]:[text] <col3>[city]:[text] <col4>[postal_code]:[text] <col5>[latitude]:[real] <col6>[longitude]:[real] <col7>[phone_number]:[integer] <col8>[tax_code]:[text] <col9>[business_certificate]:[integer] <col10>[application_date]:[date] <... | SELECT T4.owner_name FROM `<table2>` AS T3 INNER JOIN businesses AS T4 ON T3.business_id = T4.business_id INNER JOIN ( SELECT T2.owner_name FROM `<table2>` AS T1 INNER JOIN businesses AS T2 ON T1.business_id = T2.business_id GROUP BY T2.owner_name ORDER BY COUNT( T1.business_id ) DESC LIMIT 5 ) AS T5 ON T4.owner_name =... | Among the top 5 owners with highest number of establishments, which owner has the highest number of high risk violations? Give the name of the owner. |
<table0>[d_labitems] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] } <table1>[procedures_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icd9_code]:[text] <col4>[charttime]:[time] } <table2>[patients] { <col0>[row_id]:[number] <col1>[subject_id]:[num... | SELECT 1 * ( STRFTIME( '%j', CURRENT_TIME( ) ) - STRFTIME( '%j', `<table5>`.charttime ) ) FROM `<table5>` WHERE `<table5>`.itemid IN ( SELECT `<table0>`.itemid FROM `<table0>` WHERE `<table0>`.label = 'pco2' ) AND `<table5>`.hadm_id IN ( SELECT `<table10>`.hadm_id FROM `<table10>` WHERE `<table10>`.subject_id = 15794 A... | how many days have elapsed since patient 15794's last pco2 lab test on the current hospital visit?
|
<table0>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table1>[prescriptions] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icustay_id]:[text] <col3>[drug_type]:[text] <col4>[drug]:[text] <col5>[formulary_drug... | SELECT COUNT( DISTINCT `<table3>`.subject_id ) FROM `<table3>` INNER JOIN lab ON `<table3>`.hadm_id = lab.hadm_id WHERE `<table3>`.admityear < "2120" AND lab.label = "Monos" | how many patients whose admission year is less than 2120 and lab test name is monos? |
<table0>[wells] { <col0>[well_id]:[INT] <col1>[well_name]:[TEXT] <col2>[drill_date]:[DATE] <col3>[country]:[TEXT] <col4>[drill_category]:[TEXT] } | SELECT country, COUNT( * ) as num_offshore_`<table0>` FROM `<table0>` WHERE `<col4>` = 'Offshore' GROUP BY country; | Calculate the number of wells drilled in each country for the 'Offshore' category. |
<table0>[table_name_9] { <col0>[grid]:[VARCHAR] <col1>[points]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "14" | What was the grid number of the team and driver with 14 points?
|
<table0>[table_name_19] { <col0>[nfl_team]:[VARCHAR] <col1>[position]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "wide receiver" | Which NFL team picked a player for the Wide Receiver position? |
<table0>[reo_production] { <col0>[INT]:[PRIMARY] <col1>[KEY]:[reo_type] <col2>[VARCHAR]:[impurity_level] <col3>[FLOAT]:[production_year] } | SELECT reo_type, AVG( impurity_level ) FROM `<table0>` WHERE production_year = 2023 GROUP BY reo_type; | Calculate the average impurity level for each REO type in 2023 from the reo_production table |
<table0>[Product] { <col0>[ProductID]:[INT] <col1>[ProductName]:[VARCHAR] <col2>[HasNaturalIngredients]:[BOOLEAN] } | DELETE FROM `<table0>` WHERE `<table0>`ID = 102; | Delete a beauty product from the database. |
<table0>[table_4322] { <col0>[Date]:[text] <col1>[Location]:[text] <col2>[Surface]:[text] <col3>[Opponent]:[final] <col4>[text]:[Score] <col5>[final]:[text] } | SELECT "Surface" FROM `<table0>` WHERE "Date" = '2 december 1974' | Tell me the surface of 2 december 1974
|
<table0>[table_203_452] { <col0>[number]:[pos] <col1>[number]:[number] <col2>[driver]:[text] <col3>[team]:[text] <col4>[laps]:[number] <col5>[time]:[retired] <col6>[text]:[grid] <col7>[number]:[points] } | SELECT "driver" FROM `<table0>` WHERE "pos" = ( SELECT "pos" FROM `<table0>` WHERE "driver" = 'tristan gommendy' ) - 1 | what driver finished before tristan gommendy ? |
<table0>[inputevents_cv] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[charttime]:[time] <col5>[itemid]:[number] } <table1>[d_items] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] <col3>[linksto]:[text] } <table2>[icustays] { ... | SELECT ( SELECT `<table6>`.valuenum FROM `<table6>` WHERE `<table6>`.icustay_id IN ( SELECT `<table2>`.icustay_id FROM `<table2>` WHERE `<table2>`.hadm_id IN ( SELECT `<table5>`.hadm_id FROM `<table5>` WHERE `<table5>`.subject_id = 8016 AND NOT `<table5>`.dischtime IS NULL ORDER BY `<table5>`.admittime DESC LIMIT 1 ) )... | what difference in weight did patient 8016 have second measured on the last hospital visit compared to the value first measured on the last hospital visit? |
<table0>[table_name_81] { <col0>[score]:[VARCHAR] <col1>[visitor]:[VARCHAR] <col2>[leading_scorer]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "bucks" AND `<col2>` = "maurice williams ( 25 )" | What is the Score with a Visitor of bucks, and a Leading scorer with maurice williams (25)? |
<table0>[table_29572583_19] { <col0>[rank]:[VARCHAR] <col1>[new_points]:[VARCHAR] } | SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE `<col1>` = 1155 | How many rank entries are there when new points are 1155?
|
<table0>[table_name_20] { <col0>[player]:[VARCHAR] <col1>[country]:[VARCHAR] <col2>[to_par]:[VARCHAR] <col3>[score]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "united states" AND `<col2>` = 4 AND `<col3>` = 74 - 73 - 72 - 69 = 288 | Who is the player from the United States with a 4 to par and a 74-73-72-69=288 score? |
<table0>[diagnoses_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icd9_code]:[text] <col4>[charttime]:[time] } <table1>[transfers] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[eventtype]:[text] <col5>[careu... | SELECT t3.spec_type_desc FROM ( SELECT t2.spec_type_desc, DENSE_RANK( ) OVER ( ORDER BY COUNT( * ) DESC ) AS c1 FROM ( SELECT admissions.subject_id, `<table0>`.charttime, admissions.hadm_id FROM `<table0>` JOIN admissions ON `<table0>`.hadm_id = admissions.hadm_id WHERE `<table0>`.icd9_code = ( SELECT `<table4>`.icd9_c... | during this year what were the three most frequent specimen test given to the patients in the same hospital encounter after being diagnosed with mrsa elsewhere/nos? |
<table0>[table_name_69] { <col0>[reason_of_departure]:[VARCHAR] <col1>[date_outgoing]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "august 1, 2008" | Why did the manager who departed on August 1, 2008 leave? |
<table0>[table_name_70] { <col0>[points]:[VARCHAR] <col1>[engine]:[VARCHAR] } | SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "brm v8" | How many points did the car with the brm v8 engine have? |
<table0>[PlayerAge] { <col0>[PlayerID]:[INT] <col1>[Age]:[INT] <col2>[Genre]:[VARCHAR] } | SELECT AVG( `<col1>` ) FROM `<table0>` WHERE `<col2>` IN ( 'Adventure', 'Puzzle' ); | What is the average age of players who prefer adventure and puzzle genres? |
<table0>[d_labitems] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] } <table1>[cost] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[event_type]:[text] <col4>[event_id]:[number] <col5>[chargetime]:[time] } <table2>[transfers] { <col0>[row_id]:[number] <col... | SELECT `<table8>`.admittime FROM `<table8>` WHERE `<table8>`.subject_id = 2127 AND STRFTIME( '%y', `<table8>`.admittime ) <= '2102' ORDER BY `<table8>`.admittime LIMIT 1 | when did patient 2127 until 2102 for the first time be admitted to the hospital? |
<table0>[table_name_65] { <col0>[car]:[INTEGER] <col1>[avg]:[VARCHAR] <col2>[long]:[VARCHAR] } | SELECT SUM( `<col0>` ) FROM `<table0>` WHERE `<col1>` = 4.7 AND `<col2>` > 30 | How many carries for the RB averaging 4.7, and a long of over 30 yards? |
<table0>[review] { <col0>[rid]:[int] <col1>[business_id]:[varchar] <col2>[user_id]:[varchar] <col3>[rating]:[float] <col4>[text]:[longtext] <col5>[year]:[int] <col6>[month]:[varchar] } <table1>[user] { <col0>[uid]:[int] <col1>[user_id]:[varchar] <col2>[name]:[varchar] } <table2>[business] { <col0>[bid]:[int] <col1>[b... | SELECT `<col7>` FROM `<table2>` WHERE `<col2>` = 'Acacia Cafe' | How many reviews does ' Acacia Cafe ' have ? |
<table0>[table_name_44] { <col0>[time]:[VARCHAR] <col1>[event]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "ufc 154" | What is the time of ufc 154? |
<table0>[table_27132791_3] { <col0>[player]:[VARCHAR] <col1>[nfl_team]:[VARCHAR] } | SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "Washington Redskins" | How many different players does the Washington Redskins have?
|
<table0>[table_name_89] { <col0>[record]:[VARCHAR] <col1>[date]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "june 22" | Name the record on june 22
|
<table0>[table_name_77] { <col0>[visitor]:[VARCHAR] <col1>[date]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "12 march 2008" | Who was the visiting team on 12 March 2008?
|
<table0>[table_27833186_1] { <col0>[distance__miles]:[VARCHAR] <col1>[best_conditioned_horse]:[VARCHAR] } | SELECT distance__miles_ FROM `<table0>` WHERE `<col1>` = "Freedom" | What was the total distance (in miles) of the championship where the best conditioned horse was Freedom? |
<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 `<table4>`.subject_id ) FROM `<table4>` WHERE `<table4>`.admission_location = "TRANSFER FROM HOSP/EXTRAM" AND `<table4>`.admityear < "2165" | find out the number of patients with admission location as transfer from hosp/extram who were admitted before the year 2165.
|
<table0>[table_1048] { <col0>[Series]:[real] <col1>[Season]:[real] <col2>[Title]:[text] <col3>[Story]:[text] <col4>[Teleplay]:[text] <col5>[Directed]:[text] <col6>[Original]:[air] <col7>[date]:[text] } | SELECT MAX( "Series #" ) FROM `<table0>` WHERE "Directed by" = 'Rob Bailey' | What was the series number of the episode directed by Rob Bailey?
|
<table0>[audience] { <col0>[INT]:[age] <col1>[INT]:[gender] <col2>[VARCHAR]:[article_id] } <table1>[articles] { <col0>[INT]:[topic] <col1>[VARCHAR]:[INSERT] <col2>[audience]:[VALUES] <col3>[Female]:[INSERT] } | SELECT articles.topic, `<table0>`.gender, `<table0>`.age, COUNT( `<table0>`.id ) FROM `<table0>` INNER JOIN articles ON `<table0>`.article_id = articles.id WHERE articles.topic = 'Politics' GROUP BY articles.topic, `<table0>`.gender, `<table0>`.age; | What is the distribution of audience demographics for articles about politics, categorized by gender and age? |
<table0>[soil_moisture] { <col0>[field_id]:[INTEGER] <col1>[measurement_date]:[DATE] <col2>[moisture_level]:[INTEGER] } | SELECT field_id, MAX( `<col2>` ) as max_moisture, MIN( `<col2>` ) as min_moisture FROM `<table0>` WHERE `<col1>` >= DATEADD( month, -1, CURRENT_DATE ) GROUP BY field_id; | What is the maximum and minimum soil moisture level for each field in the past month? |
<table0>[table_204_255] { <col0>[number]:[constituency] <col1>[number]:[number] <col2>[name]:[text] <col3>[reserved]:[text] <col4>[district]:[text] <col5>[number]:[electorates] <col6>[2009]:[number] } | SELECT "name" FROM `<table0>` WHERE "number of electorates ( `<col6>` )" < ( SELECT "number of electorates ( `<col6>` )" FROM `<table0>` WHERE "name" = 'niwari' ) | the number of electorates represented in the niwari segment is more than those in which other segment ?
|
<table0>[table_name_15] { <col0>[record]:[VARCHAR] <col1>[event]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "3000 m" | What is the Record of the 3000 M? |
<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 diagnoses ON `<table0>`.hadm_id = diagnoses.hadm_id INNER JOIN lab ON `<table0>`.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "29281" AND lab.fluid = "Blood" | find the number of patients who had blood fluid lab test and had diagnoses icd9 code 29281.
|
<table0>[procedures_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icd9_code]:[text] <col4>[charttime]:[time] } <table1>[d_icd_procedures] { <col0>[row_id]:[number] <col1>[icd9_code]:[text] <col2>[short_title]:[text] <col3>[long_title]:[text] } <table2>[d_icd_diagnoses] { <... | SELECT `<table7>`.charttime FROM `<table7>` WHERE `<table7>`.hadm_id IN ( SELECT `<table15>`.hadm_id FROM `<table15>` WHERE `<table15>`.subject_id = 26313 ) AND DATETIME( `<table7>`.charttime, 'start of year' ) = DATETIME( CURRENT_TIME( ), 'start of year', '-1 year' ) AND STRFTIME( '%m', `<table7>`.charttime ) = '03' O... | when did the last microbiology test take place for patient 26313 in 03/last year?
|
<table0>[StaffHires] { <col0>[hire_date]:[DATE] <col1>[staff_type]:[VARCHAR] <col2>[255]:[INSERT] } | SELECT SUM( total_hires ) as q2_q3_hires FROM ( SELECT CASE WHEN `<col0>` BETWEEN '2022-04-01' AND LAST_DAY( '2022-06-30' ) THEN 1 WHEN `<col0>` BETWEEN '2022-07-01' AND LAST_DAY( '2022-09-30' ) THEN 1 ELSE 0 END as total_hires FROM `<table0>` ) AS subquery; | What is the total number of accessibility-related staff hires in Q2 and Q3 of 2022? |
<table0>[stadium] { <col0>[int]:[name] <col1>[text]:[Capacity] <col2>[int]:[City] <col3>[text]:[Country] <col4>[text]:[Opening_year] } <table1>[event] { <col0>[int]:[text] <col1>[Stadium_ID]:[int] <col2>[Year]:[text] } <table2>[swimmer] { <col0>[int]:[name] <col1>[text]:[Nationality] <col2>[text]:[meter_100] <col3>[r... | SELECT meter_200, COUNT( meter_200 ) FROM `<table2>` GROUP BY meter_200 ORDER BY meter_200 | Show me about the distribution of meter_200 and the amount of meter_200 , and group by attribute meter_200 in a bar chart, order bars in asc order.
|
<table0>[table_203_467] { <col0>[number]:[year] <col1>[number]:[numer] <col2>[jamaicans]:[ngranted] <col3>[british]:[ncitizenship] <col4>[number]:[naturalisation] <col5>[nby]:[residence] <col6>[number]:[naturalisation] <col7>[nby]:[marriage] <col8>[number]:[registration] <col9>[nof]:[minor] <col10>[child]:[number] <col... | SELECT "numer of jamaicans\ngranted british\ncitizenship" FROM `<table0>` WHERE "year" = 1998 | how many jamaicans were granted british citizenship in 1998 ?
|
<table0>[table_name_85] { <col0>[cat__number]:[VARCHAR] <col1>[release_date]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "november 2007" | What is the category number that was released in November 2007? |
<table0>[Products] { <col0>[Code]:[INTEGER] <col1>[VARCHAR]:[255] <col2>[Price]:[DECIMAL] <col3>[Manufacturer]:[INTEGER] } <table1>[Manufacturers] { <col0>[Code]:[INTEGER] <col1>[VARCHAR]:[255] <col2>[Headquarter]:[VARCHAR] <col3>[255]:[Founder] <col4>[VARCHAR]:[255] <col5>[Revenue]:[REAL] } | SELECT T2.Name, T1.Code FROM `<table0>` AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.Name DESC | For those records from the products and each product's manufacturer, a bar chart shows the distribution of name and the average of code , and group by attribute name, and display in desc by the X please. |
<table0>[mines] { <col0>[INT]:[name] <col1>[TEXT]:[location] <col2>[TEXT]:[production_volume] <col3>[INT]:[product] <col4>[TEXT]:[year] <col5>[INT]:[INSERT] } | SELECT MAX( production_volume ) FROM `<table0>` WHERE location = 'South America' AND year = 2019; | What is the maximum production volume in the 'South America' region for the year 2019?' |
<table0>[CloseReasonTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table1>[Badges] { <col0>[number]:[UserId] <col1>[number]:[text] <col2>[Date]:[time] <col3>[Class]:[number] <col4>[TagBased]:[boolean] } <table2>[ReviewTaskTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table3>[SuggestedEdi... | SELECT CONCAT( 'http://anime.stackexchange.com/questions/', p.Id ) FROM `<table7>` AS p JOIN PostTags AS pt ON p.Id = pt.PostId JOIN Tags AS t ON pt.TagId = t.Id WHERE p.PostTypeId = 1 AND t.TagName = 'identification-request' AND p.DeletionDate IS NULL AND p.Score < 4 AND NOT EXISTS( SELECT 1 FROM `<table7>` AS a WHERE... | id-requests to be deleted (q.score<4 and not a single answer scored >=3). |
<table0>[swimmer] { <col0>[int]:[name] <col1>[text]:[Nationality] <col2>[text]:[meter_100] <col3>[real]:[meter_200] <col4>[text]:[meter_300] <col5>[text]:[meter_400] <col6>[text]:[meter_500] <col7>[text]:[meter_600] <col8>[text]:[meter_700] <col9>[text]:[Time] } <table1>[event] { <col0>[int]:[text] <col1>[Stadium_ID]:... | SELECT Nationality, COUNT( Nationality ) FROM `<table0>` GROUP BY Nationality ORDER BY Nationality | Bar chart x axis nationality y axis how many nationality, could you display in asc by the bars? |
<table0>[table_name_88] { <col0>[displacement]:[VARCHAR] <col1>[model]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "1400" | What is the displacement for the model 1400? |
<table0>[table_2923917_4] { <col0>[melbourne]:[VARCHAR] <col1>[distance]:[VARCHAR] } | SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "15km" | How many listings under Melbourne has a distance at 15km?
|
<table0>[Products] { <col0>[Code]:[INTEGER] <col1>[VARCHAR]:[255] <col2>[Price]:[DECIMAL] <col3>[Manufacturer]:[INTEGER] } <table1>[Manufacturers] { <col0>[Code]:[INTEGER] <col1>[VARCHAR]:[255] <col2>[Headquarter]:[VARCHAR] <col3>[255]:[Founder] <col4>[VARCHAR]:[255] <col5>[Revenue]:[REAL] } | SELECT Headquarter, AVG( Revenue ) FROM `<table0>` AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY AVG( Revenue ) | For those records from the products and each product's manufacturer, return a bar chart about the distribution of headquarter and the average of revenue , and group by attribute headquarter, and I want to list by the Y-axis in asc.
|
<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>`.SOC_SRT_DIRE_CD, `<table3>`.SOC_SRT_DIRE_NM, `<table3>`.AMOUNT FROM `<table3>` JOIN t_kc21_`<table3>` JOIN t_kc21 ON t_kc21_`<table3>`.MED_EXP_DET_ID = `<table3>`.MED_EXP_DET_ID AND t_kc21_`<table3>`.MED_CLINIC_ID = t_kc21.MED_CLINIC_ID WHERE t_kc21.MED_CLINIC_ID = '52743423301' AND `<table3>`.SOC_SRT... | 在医疗就诊52743423301中,列出开的药品名称中包含乳胶的药品及金额
|
<table0>[competition_result] { <col0>[Competition_ID]:[int] <col1>[Club_ID_1]:[int] <col2>[Club_ID_2]:[int] <col3>[Score]:[text] } <table1>[competition] { <col0>[Competition_ID]:[int] <col1>[Year]:[real] <col2>[Competition_type]:[text] <col3>[Country]:[text] } <table2>[player] { <col0>[Player_ID]:[int] <col1>[name]:[... | SELECT Competition_type, COUNT( `<col2>` ) FROM `<table1>` GROUP BY `<col2>` ORDER BY `<col2>` DESC | A bar chart showing the number of different competition types, display from high to low by the x axis. |
<table0>[user_interests] { <col0>[user_id]:[INT] <col1>[interest]:[VARCHAR] <col2>[clicked_ads]:[VARCHAR] } | SELECT `<col1>` FROM `<table0>` WHERE `<col2>` = 'plant-based diet' AND `<col1>` NOT IN ( 'veganism', 'vegetarianism' ); | What are the unique interests of users who have clicked on ads about plant-based diets but have not posted about veganism or vegetarianism? |
<table0>[table_name_89] { <col0>[length]:[VARCHAR] <col1>[stations]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "16" | Stations of 16 is assigned what length? |
<table0>[d_labitems] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] } <table1>[patients] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[gender]:[text] <col3>[dob]:[time] <col4>[dod]:[time] } <table2>[chartevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_i... | SELECT `<table3>`.spec_type_desc FROM `<table3>` WHERE `<table3>`.hadm_id IN ( SELECT `<table10>`.hadm_id FROM `<table10>` WHERE `<table10>`.subject_id = 70267 ) AND DATETIME( `<table3>`.charttime, 'start of year' ) = DATETIME( CURRENT_TIME( ), 'start of year', '-0 year' ) AND STRFTIME( '%m', `<table3>`.charttime ) = '... | what was the name of the first specimen test that patient 70267 received in 12/this year?
|
<table0>[store_product] { <col0>[product_id]:[VARCHAR] <col1>[store_id]:[VARCHAR] } <table1>[store] { <col0>[store_id]:[VARCHAR] <col1>[store_name]:[VARCHAR] } <table2>[product] { } | SELECT t1.`<table2>` FROM `<table2>` AS t1 JOIN store_`<table2>` AS t2 ON t1.`<table2>`_id = t2.`<table2>`_id JOIN store AS t3 ON t2.store_id = t3.store_id WHERE t3.store_name = "Miramichi" | What products are available at store named "Miramichi"? |
<table0>[body_builder] { <col0>[people_id]:[VARCHAR] <col1>[People_ID]:[VARCHAR] } <table1>[people] { <col0>[people_id]:[VARCHAR] <col1>[People_ID]:[VARCHAR] } | SELECT COUNT( * ) FROM `<table1>` WHERE NOT `<table1>`_id IN ( SELECT `<col1>` FROM `<table0>` ) | How many persons are not body builders? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.