schema stringlengths 20 14.6k | query stringlengths 17 2.58k | question stringlengths 8 1.06k |
|---|---|---|
<table0>[table_11422] { <col0>[Home]:[team] <col1>[text]:[Home] <col2>[team]:[score] <col3>[text]:[Away] <col4>[team]:[text] <col5>[Away]:[team] <col6>[score]:[text] <col7>[Venue]:[text] <col8>[Crowd]:[real] <col9>[Date]:[text] } | SELECT SUM( "Crowd" ) FROM `<table0>` WHERE "Away `<col2>` score" = '13.12 ( 90 )' | What is the average crowd size for an away team with a score of 13.12 (90)?
|
<table0>[customer_data] { <col0>[customer_id]:[INT] <col1>[data_usage]:[FLOAT] <col2>[state]:[VARCHAR] } | SELECT MAX( `<col1>` ) FROM `<table0>` WHERE `<col2>` = 'California'; | What is the maximum data usage by any customer in the state of California? |
<table0>[table_name_65] { <col0>[opponent]:[VARCHAR] <col1>[save]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "smith ( 22 )" | Which opponent has a save of smith (22)?
|
<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>[d_icd_procedures] { <col0>[row_id]:[number] <col1>[icd9_code]:[text] <col2>[shor... | SELECT `<table3>`.label FROM `<table3>` WHERE `<table3>`.itemid IN ( SELECT t1.itemid FROM ( SELECT `<table8>`.itemid, DENSE_RANK( ) OVER ( ORDER BY COUNT( * ) DESC ) AS c1 FROM `<table8>` WHERE `<table8>`.hadm_id IN ( SELECT `<table7>`.hadm_id FROM `<table7>` WHERE `<table7>`.age BETWEEN 50 AND 59 ) AND STRFTIME( '%y'... | since 2101, what are the three most frequently taken lab tests for patients of age 50s?
|
<table0>[communities] { <col0>[INT]:[name] <col1>[VARCHAR]:[255] } <table1>[applications] { <col0>[INT]:[name] <col1>[VARCHAR]:[255] <col2>[community_id]:[INT] <col3>[sector]:[VARCHAR] <col4>[255]:[published_date] <col5>[DATE]:[INSERT] } | SELECT `<table0>`.name FROM `<table0>` JOIN applications ON `<table0>`.id = applications.community_id WHERE sector IN ( 'Arts', 'Cultural Heritage' ) AND YEAR( published_date ) >= YEAR( CURRENT_DATE( ) ) - 2 AND `<table0>`.name IN ( 'Indigenous Artists Network', 'Women in AI Arts' ); | Which underrepresented communities have contributed to the development of creative AI applications for the arts sector in the past two years, in the Creative AI database? |
<table0>[table_17658] { <col0>[Series]:[real] <col1>[Season]:[real] <col2>[Title]:[text] <col3>[Directed]:[text] <col4>[Written]:[text] <col5>[Original]:[air] <col6>[date]:[text] <col7>[Total]:[viewers] <col8>[millions]:[text] } | SELECT COUNT( "Total viewers ( in `<col8>` )" ) FROM `<table0>` WHERE "Series #" = '57' | How many millions of total viewers watched series #57?
|
<table0>[table_54124] { <col0>[Player]:[text] <col1>[Car]:[real] <col2>[Yards]:[real] <col3>[Avg]:[real] <col4>[real]:[Long] } | SELECT MIN( "Avg." ) FROM `<table0>` WHERE "TD's" = '1' AND "Long" > '4' AND "Car." < '1' | What is the average for the player with 1 TD, over 4 as a long, and under 1 carry? |
<table0>[table_name_94] { <col0>[player]:[VARCHAR] <col1>[pick__number]:[INTEGER] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` < 2 | What player is picked before 2? |
<table0>[course] { <col0>[course_id]:[varchar] <col1>[title]:[varchar] <col2>[dept_name]:[varchar] <col3>[credits]:[numeric] } <table1>[department] { <col0>[dept_name]:[varchar] <col1>[building]:[varchar] <col2>[budget]:[numeric] } <table2>[advisor] { <col0>[s_ID]:[varchar] <col1>[i_ID]:[varchar] } <table3>[teaches]... | SELECT dept_name, AVG( `<col3>` ) FROM `<table0>` AS T1 JOIN prereq AS T2 ON T1.`<table0>`_id = T2.`<table0>`_id GROUP BY `<col2>` ORDER BY AVG( `<col3>` ) | Find the average of credits of courses that have more than one prerequisite for each department with a bar chart, display by the total number in ascending. |
<table0>[restaurants] { <col0>[restaurant_id]:[INT] <col1>[city]:[VARCHAR] <col2>[255]:[revenue] <col3>[INT]:[INSERT] } | SELECT city, revenue FROM `<table0>` GROUP BY city; | What is the total revenue for each restaurant in a given city? |
<table0>[table_name_33] { <col0>[result]:[VARCHAR] <col1>[year]:[VARCHAR] <col2>[category]:[VARCHAR] <col3>[award]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col2>` = "best actress in a musical" AND `<col3>` = "laurence olivier award" AND `<col1>` = 2009 | What is the result for the nomination at the Laurence Olivier award in 2009 for best actress in a musical? |
<table0>[table_224616_1] { <col0>[location_of_venue]:[VARCHAR] <col1>[venue]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "Bellerive country Club" | Where is the Bellerive Country Club venue located? |
<table0>[d_icd_diagnoses] { <col0>[row_id]:[number] <col1>[icd9_code]:[text] <col2>[short_title]:[text] <col3>[long_title]:[text] } <table1>[d_icd_procedures] { <col0>[row_id]:[number] <col1>[icd9_code]:[text] <col2>[short_title]:[text] <col3>[long_title]:[text] } <table2>[outputevents] { <col0>[row_id]:[number] <col... | SELECT `<table8>`.valuenum FROM `<table8>` WHERE `<table8>`.icustay_id IN ( SELECT `<table11>`.icustay_id FROM `<table11>` WHERE `<table11>`.hadm_id IN ( SELECT `<table9>`.hadm_id FROM `<table9>` WHERE `<table9>`.subject_id = 8562 ) ) AND `<table8>`.itemid IN ( SELECT `<table5>`.itemid FROM `<table5>` WHERE `<table5>`.... | what was the last height of patient 8562 in a month before.
|
<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 All_Home, SUM( `<col0>` ) FROM `<table0>` GROUP BY `<col9>` ORDER BY `<col9>` DESC | Draw a bar chart about the distribution of All_Home and the sum of Team_ID , and group by attribute All_Home, and I want to show from high to low by the All_Home. |
<table0>[table_21933] { <col0>[route]:[text] <col1>[type]:[text] <col2>[elevation]:[groundstation] <col3>[real]:[elevation] <col4>[mountainstation]:[real] <col5>[slope]:[length] <col6>[real]:[capacity] <col7>[persons]:[hour] <col8>[real]:[construction] <col9>[year]:[text] } | SELECT COUNT( "slope length" ) FROM `<table0>` WHERE "elevation groundstation" = '1966' | Name the slope length for 1966 groundstation
|
<table0>[table_train_31] { <col0>[int]:[allergy_to_insulin] <col1>[bool]:[active_infection] <col2>[bool]:[periodic_paralysis] <col3>[bool]:[receiving_continuous_intravenous_inotropic_support] <col4>[bool]:[age] <col5>[float]:[NOUSE] } | SELECT * FROM `<table0>` WHERE receiving_continuous_intravenous_inotropic_support = 1 | receiving continuous intravenous inotropic support ( including dobutamine, milrinone, amrinone, and levosimendan ) . |
<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 `<table2>`.subject_id ) FROM `<table2>` WHERE `<table2>`.diagnosis = "PNEUMONIA" AND `<table2>`.dod_year <= "2131.0" | what is the number of patients whose primary disease is pneumonia and year of death is less than or equal to 2131?
|
<table0>[ReviewTaskStates] { <col0>[number]:[text] <col1>[Description]:[text] } <table1>[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>[t... | SELECT Q.OwnerUserId AS "user_link", A.OwnerUserId AS "user_link", COUNT( * ) AS Count FROM `<table2>` AS Q, `<table2>` AS A WHERE A.ParentId = Q.Id AND A.OwnerUserId > 0 AND Q.OwnerUserId > 0 AND A.OwnerUserId != Q.OwnerUserId AND Q.CommunityOwnedDate IS NULL AND A.CommunityOwnedDate IS NULL GROUP BY Q.OwnerUserId, A.... | Most common questioner - answerer pairs. |
<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 CAST( SUM( CASE WHEN T1.age > 50 THEN 1 ELSE 0 END ) AS REAL ) * 100 / COUNT( T2.`Submitted via` ) FROM `<table2>` AS T1 INNER JOIN events AS T2 ON T1.`<table2>`_id = T2.Client_ID WHERE T2.`Submitted via` = 'Postal mail' | What percentage of clients who sent their complaints by postal mail are age 50 and older? |
<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 `<table3>`.subject_id ) FROM `<table3>` INNER JOIN procedures ON `<table3>`.hadm_id = procedures.hadm_id INNER JOIN lab ON `<table3>`.hadm_id = lab.hadm_id WHERE procedures.long_title = "Endovascular ( total ) embolization or occlusion of head and neck vessels" AND lab."CATEGORY" = "Blood Gas" | what is the number of patients having blood gas lab test category who had endovascular (total) embolization or occlusion of head and neck vessels?
|
<table0>[Course_Authors_and_Tutors] { <col0>[author_id]:[INTEGER] <col1>[author_tutor_ATB]:[VARCHAR] <col2>[login_name]:[VARCHAR] <col3>[password]:[VARCHAR] <col4>[personal_name]:[VARCHAR] <col5>[middle_name]:[VARCHAR] <col6>[family_name]:[VARCHAR] <col7>[gender_mf]:[VARCHAR] <col8>[address_line_1]:[VARCHAR] } <table1... | SELECT date_of_enrolment, COUNT( `<col3>` ) FROM `<table5>` AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = "Pass" | What are the enrollment dates of all the tests that have result 'Pass', and count them by a bar chart |
<table0>[Training_Programs] { <col0>[INT]:[name] <col1>[VARCHAR]:[instructor] <col2>[VARCHAR]:[capacity] <col3>[INT]:[duration] <col4>[INT]:[INSERT] } | SELECT AVG( duration ) FROM `<table0>` WHERE capacity > 30; | What is the average duration of training programs with capacity greater than 30? |
<table0>[ENROLL] { <col0>[CLASS_CODE]:[varchar] <col1>[STU_NUM]:[int] <col2>[ENROLL_GRADE]:[varchar] } <table1>[DEPARTMENT] { <col0>[DEPT_CODE]:[varchar] <col1>[DEPT_NAME]:[varchar] <col2>[SCHOOL_CODE]:[varchar] <col3>[EMP_NUM]:[int] <col4>[DEPT_ADDRESS]:[varchar] <col5>[DEPT_EXTENSION]:[varchar] } <table2>[STUDENT] ... | SELECT DEPT_CODE, SUM( `<col3>` ) FROM `<table5>` GROUP BY `<col1>` ORDER BY `<col1>` | Display a bar chart for how many credits does the department offer?, order bars in asc order.
|
<table0>[intakeoutput] { <col0>[intakeoutputid]:[number] <col1>[patientunitstayid]:[number] <col2>[cellpath]:[text] <col3>[celllabel]:[text] <col4>[cellvaluenumeric]:[number] <col5>[intakeoutputtime]:[time] } <table1>[treatment] { <col0>[treatmentid]:[number] <col1>[patientunitstayid]:[number] <col2>[treatmentname]:[t... | SELECT COUNT( DISTINCT t1.uniquepid ) FROM ( SELECT `<table6>`.uniquepid, COUNT( * ) AS c1 FROM `<table6>` WHERE `<table6>`.`<table6>`unitstayid = ( SELECT `<table1>`.`<table6>`unitstayid FROM `<table1>` WHERE `<table1>`.`<table1>`name = '`<table1>` of hyperkalemia - kayexalate' AND DATETIME( `<table1>`.`<table1>`time,... | how many patients had treatment of hyperkalemia - kayexalate procedure two or more times in this year?
|
<table0>[table_29250534_1] { <col0>[club]:[VARCHAR] <col1>[location]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "Kuopio" | Which club is at the location of kuopio?
|
<table0>[table_71016] { <col0>[Date]:[text] <col1>[Tournament]:[text] <col2>[Surface]:[text] <col3>[Tier]:[text] <col4>[Opponent]:[final] <col5>[text]:[Score] } | SELECT "Surface" FROM `<table0>` WHERE "Date" = 'october 3, 2010' | What surface was played on on October 3, 2010?
|
<table0>[table_27547] { <col0>[Authority]:[text] <col1>[Rate]:[precept] <col2>[text]:[Budget] <col3>[limit]:[u00a3] <col4>[text]:[Budget] <col5>[plans]:[u00a3] <col6>[text]:[Rate] <col7>[limit]:[text] <col8>[Rate]:[change] <col9>[text]:[Desired] <col10>[rate]:[text] <col11>[Desired]:[rate] <col12>[change]:[text] } | SELECT "Desired `<col10>` ( p )" FROM `<table0>` WHERE "Rate `<col3>` ( p )" = '50.33' | What is the desired rate when the rate limit (p) is 50.33?
|
<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 Sex, SUM( Weight ) FROM `<table1>` GROUP BY `<col1>` ORDER BY `<col1>` DESC | Show me about the distribution of Sex and the sum of Weight , and group by attribute Sex in a bar chart, list in desc by the x axis. |
<table0>[SuggestedEditVotes] { <col0>[number]:[SuggestedEditId] <col1>[number]:[UserId] <col2>[number]:[VoteTypeId] <col3>[number]:[CreationDate] <col4>[time]:[TargetUserId] <col5>[number]:[TargetRepChange] } <table1>[Comments] { <col0>[number]:[PostId] <col1>[number]:[Score] <col2>[number]:[Text] <col3>[text]:[Creati... | SELECT Id AS "comment_link" FROM `<table1>` WHERE ( Text LIKE 'thank you%' COLLATE SQL_Latin1_General_CP1_CI_AS OR Text LIKE 'thanks%' COLLATE SQL_Latin1_General_CP1_CI_AS ) AND EXISTS( SELECT * FROM `<table18>` WHERE VoteTypeId = 1 AND PostId = `<table1>`.PostId ) ORDER BY LENGTH( Text ), CreationDate LIMIT @Num`<tabl... | Thanks' comments on accepted answers.
|
<table0>[Flights] { <col0>[FlightID]:[INT] <col1>[FlightNumber]:[VARCHAR] <col2>[Passengers]:[INT] } | SELECT MAX( Passengers ) as MaxPassengers FROM Flights; | Determine the maximum number of passengers on a single flight |
<table0>[table_70219] { <col0>[Date]:[text] <col1>[City]:[text] <col2>[Event]:[text] <col3>[Winner]:[text] <col4>[Prize]:[text] } | SELECT "Winner" FROM `<table0>` WHERE "Event" = 'ept german open' | The EPT German open was won by which listed winner?
|
<table0>[ai_adoption] { <col0>[hotel_id]:[INT] <col1>[ai_adoption_date]:[DATE] } | UPDATE ai_adoption SET ai_adoption_date = '2021-05-01' WHERE hotel_id = 1; | Update the AI adoption date for 'Hotel1' in the 'APAC' region to '2021-05-01'. |
<table0>[PendingFlags] { <col0>[number]:[FlagTypeId] <col1>[number]:[PostId] <col2>[number]:[CreationDate] <col3>[time]:[CloseReasonTypeId] <col4>[number]:[CloseAsOffTopicReasonTypeId] <col5>[number]:[DuplicateOfQuestionId] <col6>[number]:[BelongsOnBaseHostAddress] } <table1>[CloseAsOffTopicReasonTypes] { <col0>[numbe... | SELECT COUNT( DISTINCT Users.Id ) FROM Users, Posts WHERE Posts.OwnerUserId = Users.Id AND Posts.PostTypeId = 2 | users and their post-type details. |
<table0>[platform] { <col0>[platform_id]:[INT] <col1>[platform_name]:[TEXT] <col2>[location]:[TEXT] } | SELECT `<table0>`_name FROM `<table0>` WHERE `<col2>` = 'North Sea'; | What are the names of all platforms in the North Sea? |
<table0>[Customers] { <col0>[CustomerID]:[integer] <col1>[Customer]:[Names] } <table1>[Products] { <col0>[ProductID]:[integer] <col1>[Product]:[text] } <table2>[Regions] { <col0>[StateCode]:[text] <col1>[State]:[text] <col2>[Region]:[text] } <table3>[Sales] { <col0>[Team]:[SalesTeamID] } <table4>[Store] { <col0>[Lo... | SELECT AVG( `Household Income` ) FROM `Store Locations` WHERE `City Name` = 'Glendale' | What is the average household income of Glendale? |
<table0>[PlayerTeam] { <col0>[PlayerID]:[INT] <col1>[TeamID]:[INT] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = 1; | Which players are part of the 'Apex Predators' team? |
<table0>[table_204_195] { <col0>[number]:[team] <col1>[text]:[home] <col2>[city]:[text] <col3>[stadium]:[text] <col4>[capacity]:[number] <col5>[season]:[text] } | SELECT "stadium" FROM `<table0>` WHERE id = ( SELECT id FROM `<table0>` WHERE "stadium" = 'begin arena' ) + 1 | what is the next stadium after begin arena ?
|
<table0>[table_name_36] { <col0>[rank]:[INTEGER] <col1>[team]:[VARCHAR] <col2>[speed]:[VARCHAR] } | SELECT AVG( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "250cc honda" AND `<col2>` = "111.072mph" | What is the Rank of the Rider with a Speed of 111.072mph in Team 250CC Honda? |
<table0>[PostHistoryTypes] { <col0>[number]:[text] } <table1>[Votes] { <col0>[number]:[PostId] <col1>[number]:[VoteTypeId] <col2>[number]:[UserId] <col3>[number]:[CreationDate] <col4>[time]:[BountyAmount] } <table2>[PostNoticeTypes] { <col0>[number]:[ClassId] <col1>[number]:[text] <col2>[Body]:[text] <col3>[IsHidden]... | SELECT AVG( LENGTH( A.Body ) ) AS AverageLength, AVG( A.Score ) AS AnswerScore, AVG( A.Score ) + STDEV( A.Score ) AS PlusOneSigma, AVG( A.Score ) - STDEV( A.Score ) AS MinusOneSigma FROM `<table21>` AS A INNER JOIN `<table21>` AS Q ON A.ParentId = Q.Id WHERE A.PostTypeId = 2 AND LENGTH( A.Body ) <= 20000 AND A.Id = Q.A... | Plots average answer score, +/- 1 standard deviation, as a function of binned answer length. Splits data into accepted vs. not accepted answers before doing so.. Plots average answer score, +/- 1 standard deviation, as a function of binned answer length. Splits data into accepted vs. not accepted answers before doing ... |
<table0>[table_204_37] { <col0>[number]:[number] <col1>[wrestlers]:[text] <col2>[reign]:[number] <col3>[date]:[text] <col4>[days]:[nheld] <col5>[number]:[location] <col6>[text]:[event] <col7>[text]:[notes] } | SELECT "wrestlers" FROM `<table0>` WHERE id = 1 | what wrestler is listed first ?
|
<table0>[table_name_9] { <col0>[pick]:[INTEGER] <col1>[school_club_team]:[VARCHAR] } | SELECT MAX( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "arkansas" | What was the highest pick for a player from a school or club team of Arkansas? |
<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 * FROM `<table1>` WHERE `<table1>`.MED_SER_ORG_NO = '8244564' AND `<table1>`.IN_HOSP_DATE BETWEEN '2010-05-23' AND '2020-01-11' UNION SELECT * FROM f`<table1>` WHERE f`<table1>`.MED_SER_ORG_NO = '8244564' AND f`<table1>`.IN_HOSP_DATE BETWEEN '2010-05-23' AND '2020-01-11' EXCEPT SELECT * FROM `<table1>` WHERE `<t... | 编码为8244564的医院所有非异地结算的医疗就诊记录在2010年5月23日到2020年1月11日内的有哪些啊?
|
<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, `<col0>` FROM `<table0>` GROUP BY ACC_Home, `<col6>` ORDER BY `<col6>` DESC | Stacked bar chart of team_id for with each ACC_Home in each acc road, and I want to sort in descending by the bars.
|
<table0>[table_name_79] { <col0>[nationality]:[VARCHAR] <col1>[previous_team]:[VARCHAR] <col2>[nba_years]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE nba_years_[a_] = "1" AND `<col1>` = "seattle supersonics" | What is Nationality, when NBA years [a ] is "1", and when Previous Team is "Seattle Supersonics"? |
<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 MAX( `<table1>`.age ) FROM `<table1>` WHERE `<table1>`.marital_status = "SINGLE" AND `<table1>`.diagnosis = "ATRIAL FIBRILLATION\THORACOSCOPIC MAZE PROCEDURE BILATERAL/SDA" | Calculate the maximum age of unmarried patients who have primary disease atrial fibrillation/thoracoscopic maze and procedure bilateral/sda. |
<table0>[t_kc21_t_kc22] { <col0>[MED_CLINIC_ID]:[text] <col1>[MED_EXP_DET_ID]:[number] } <table1>[t_kc22] { <col0>[number]:[CHA_ITEM_LEV] <col1>[number]:[DATA_ID] <col2>[text]:[DIRE_TYPE] <col3>[number]:[DOSE_FORM] <col4>[text]:[DOSE_UNIT] <col5>[text]:[EACH_DOSAGE] <col6>[text]:[EXP_OCC_DATE] <col7>[time]:[FLX_MED_OR... | SELECT SUM( `<table1>`.QTY ), SUM( `<table1>`.AMOUNT ) FROM `<table1>` WHERE `<table1>`.SOC_SRT_DIRE_CD = '8954-j' AND `<table1>`.STA_DATE BETWEEN '2009-03-05' AND '2017-06-25' | 把二零零九年三月五日到二零一七年六月二十五日期间,开出的药品8954-j的总数量及总金额查看一下
|
<table0>[resultsdata15] { <col0>[sample_pk]:[number] <col1>[commod]:[text] <col2>[commtype]:[text] <col3>[lab]:[text] <col4>[pestcode]:[text] <col5>[testclass]:[text] <col6>[concen]:[number] <col7>[lod]:[number] <col8>[conunit]:[text] <col9>[confmethod]:[text] <col10>[confmethod2]:[text] <col11>[annotate]:[text] <col12... | SELECT `<col5>` FROM `<table0>` WHERE `<col0>` = 7498 | What's the code for test for sample 7498? |
<table0>[channel] { <col0>[OWNER]:[VARCHAR] <col1>[rating_in_percent]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` ORDER BY `<col1>` DESC LIMIT 1 | What is the owner of the channel that has the highest rating ratio? |
<table0>[microlab] { <col0>[microlabid]:[number] <col1>[patientunitstayid]:[number] <col2>[culturesite]:[text] <col3>[organism]:[text] <col4>[culturetakentime]:[time] } <table1>[treatment] { <col0>[treatmentid]:[number] <col1>[patientunitstayid]:[number] <col2>[treatmentname]:[text] <col3>[treatmenttime]:[time] } <ta... | SELECT `<table9>`.celllabel FROM `<table9>` WHERE `<table9>`.`<table5>`unitstayid IN ( SELECT `<table5>`.`<table5>`unitstayid FROM `<table5>` WHERE `<table5>`.`<table5>`healthsystemstayid IN ( SELECT `<table5>`.`<table5>`healthsystemstayid FROM `<table5>` WHERE `<table5>`.uniquepid = '016-16960' ) ) AND `<table9>`.cell... | what was the first thing patient 016-16960 received for intake on 05/23/2102? |
<table0>[table_name_98] { <col0>[iata]:[VARCHAR] <col1>[icao]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "rcmq" | What is the IATA code for the city with ICAO code of RCMQ? |
<table0>[concert_events] { <col0>[event_id]:[INT] <col1>[genre_id]:[INT] <col2>[region]:[VARCHAR] <col3>[status]:[VARCHAR] <col4>[sales]:[INT] } <table1>[music_genres] { <col0>[genre_id]:[INT] <col1>[name]:[VARCHAR] } | SELECT music_genres.name, COUNT( `<table0>`.event_id ) AS num_events FROM `<table0>` JOIN music_genres ON `<table0>`.genre_id = music_genres.genre_id WHERE `<col2>` = 'North America' GROUP BY music_genres.name ORDER BY num_events DESC LIMIT 3; | What are the top 3 genres with the highest number of concert events in 'North America'? |
<table0>[semester] { <col0>[semester_id]:[int] } <table1>[course_tags_count] { <col0>[course_id]:[int] <col1>[clear_grading]:[int] <col2>[pop_quiz]:[int] <col3>[group_projects]:[int] <col4>[inspirational]:[int] <col5>[long_lectures]:[int] <col6>[extra_credit]:[int] <col7>[few_tests]:[int] <col8>[good_feedback]:[int] <... | SELECT DISTINCT course_offering.end_time, course_offering.section_number, course_offering.start_time FROM course, course_offering, semester WHERE course_offering.start_time > '10:15' AND course.course_id = course_offering.course_id AND course.department = 'WOMENSTD' AND course.number = 314 AND semester.semester = 'WN' ... | Is there a section of WOMENSTD 314 after 10:15 P.M. ? |
<table0>[table_name_44] { <col0>[game]:[INTEGER] <col1>[attendance]:[INTEGER] } | SELECT MAX( `<col0>` ) FROM `<table0>` WHERE `<col1>` > 65 OFFSET 042 | Which is the most recent game with an attendance larger than 65,042? |
<table0>[table_name_20] { <col0>[venue]:[VARCHAR] <col1>[round]:[VARCHAR] <col2>[player]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "19" AND `<col2>` = "tony lockett" | In Round 19, where did Tony Lockett play? |
<table0>[table_name_9] { <col0>[date]:[VARCHAR] <col1>[record]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "55-24" | Name the date with record of 55-24 |
<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>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[t... | SELECT AVG( `<table4>`.age ) FROM `<table4>` WHERE `<table4>`.admission_type = "NEWBORN" AND `<table4>`.insurance = "Self Pay" | what is average age of patients whose admission type is newborn and insurance is self pay?
|
<table0>[table_name_50] { <col0>[h_a_n]:[VARCHAR] <col1>[date]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "october 31" | What is H/A/N, when Date is October 31? |
<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 All_Games, `<col8>` FROM `<table0>` ORDER BY `<col7>` | Return a bar chart about the distribution of All_Games and All_Games_Percent , and order in asc by the X-axis.
|
<table0>[employees] { <col0>[INT]:[name] <col1>[VARCHAR]:[255] <col2>[department]:[VARCHAR] <col3>[255]:[country] <col4>[VARCHAR]:[255] } <table1>[training] { <col0>[INT]:[employee_id] <col1>[INT]:[course] <col2>[VARCHAR]:[255] <col3>[INSERT]:[employees] <col4>[name]:[department] <col5>[country]:[VALUES] <col6>[John]:... | SELECT e.department, COUNT( t.id ) FROM `<table0>` e JOIN training t ON e.id = t.employee_id WHERE t.course = 'Cybersecurity' GROUP BY e.department; | How many employees from each department have completed the 'Cybersecurity' course in the 'training' table? |
<table0>[Patients] { <col0>[INT]:[Gender] <col1>[VARCHAR]:[Age] <col2>[INT]:[Disease] <col3>[VARCHAR]:[State] <col4>[VARCHAR]:[INSERT] } | SELECT AVG( Age ) FROM `<table0>` WHERE Gender = 'Female' AND Disease = 'Tuberculosis' AND State = 'California'; | What is the average age of female patients diagnosed with Tuberculosis in California? |
<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>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:... | SELECT COUNT( DISTINCT `<table4>`.subject_id ) FROM `<table4>` WHERE `<table4>`.diagnosis = "ST ELEVATED MYOCARDIAL INFARCTION\CARDIAC CATH" AND `<table4>`.admityear < "2103" | what is the number of patients whose primary disease is st elevated myocardial infarction\cardiac cath and admission year is less than 2103?
|
<table0>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table1>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table2>[demogr... | SELECT COUNT( DISTINCT `<table2>`.subject_id ) FROM `<table2>` INNER JOIN diagnoses ON `<table2>`.hadm_id = diagnoses.hadm_id WHERE `<table2>`.ethnicity = "AMERICAN INDIAN/ALASKA NATIVE" AND diagnoses.long_title = "Hypertensive chronic kidney disease, unspecified, with chronic kidney disease stage I through stage IV, o... | how many patients of american indian/alaska native ethnicity are diagnosed with hypertensive chronic kidney disease, unspecified, with chronic kidney disease stage i through stage iv or unspecified?
|
<table0>[Addresses] { <col0>[Address_ID]:[INTEGER] <col1>[address_details]:[VARCHAR] } <table1>[Channels] { <col0>[Channel_ID]:[INTEGER] <col1>[Other_Details]:[VARCHAR] } <table2>[Locations] { <col0>[Location_ID]:[INTEGER] <col1>[Other_Details]:[VARCHAR] } <table3>[Products] { <col0>[Product_ID]:[INTEGER] <col1>[Pro... | SELECT Product_Type_Code, COUNT( * ) FROM `<table3>` GROUP BY `<col1>` ORDER BY COUNT( * ) | Show different type codes of products and the number of products with each type code Visualize by bar chart, I want to order by the y-axis in asc please.
|
<table0>[GeneticData] { <col0>[sample_id]:[INT] <col1>[gene_name]:[TEXT] <col2>[expression_level]:[FLOAT] } | SELECT MIN( `<col2>` ) FROM `<table0>` WHERE `<col1>` = 'XYZ'; | What is the minimum expression level of gene 'XYZ' across all samples in the GeneticData table? |
<table0>[properties] { <col0>[property_id]:[number] <col1>[property_type_code]:[text] <col2>[property_address]:[text] <col3>[other_details]:[text] } <table1>[things] { <col0>[thing_id]:[number] <col1>[organization_id]:[number] <col2>[type_of_thing_code]:[text] <col3>[service_type_code]:[text] <col4>[service_details]:[... | SELECT DISTINCT T1.service_type_code FROM `<table6>` AS T1 JOIN organizations AS T2 ON T1.organization_id = T2.organization_id WHERE T2.organization_details = 'Denesik and Sons Party' | What is the distinct service types that are provided by the organization which has detail 'Denesik and Sons Party'?
|
<table0>[table_59662] { <col0>[text]:[Residence] <col1>[text]:[Party] <col2>[text]:[Years] <col3>[Assembly]:[text] <col4>[Years]:[Senate] } | SELECT "Residence" FROM `<table0>` WHERE "Name" = 'rich gordon' | Show the Residence whose Name is rich gordon?
|
<table0>[table_name_80] { <col0>[winner]:[VARCHAR] <col1>[date]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "5 june" | Name the winner for 5 june |
<table0>[table_68176] { <col0>[Party]:[text] <col1>[Party]:[List] <col2>[votes]:[real] <col3>[Vote]:[percentage] <col4>[text]:[Total] <col5>[Seats]:[text] <col6>[Seat]:[percentage] } | SELECT "Seat percentage" FROM `<table0>` WHERE "Vote percentage" = '100.0%' | What seat has a vote percentage of 100.0%
|
<table0>[table_name_9] { <col0>[win_percentage]:[VARCHAR] <col1>[wins]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "46" | Where the wins are 46, what is the win%?
|
<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>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[t... | SELECT COUNT( DISTINCT `<table4>`.subject_id ) FROM `<table4>` INNER JOIN diagnoses ON `<table4>`.hadm_id = diagnoses.hadm_id WHERE diagnoses.long_title = "Personal history of transient ischemic attack ( TIA ), and cerebral infarction without residual deficits" | count the number of patients whose diagnoses long title is personal history of transient ischemic attack (tia), and cerebral infarction without residual deficits?
|
<table0>[table_6086] { <col0>[Date]:[text] <col1>[Visitor]:[text] <col2>[Score]:[text] <col3>[Home]:[text] <col4>[Record]:[text] } | SELECT "Visitor" FROM `<table0>` WHERE "Record" = '51–12–4' | Who was the visiting team when the record was 51 12 4? |
<table0>[table_name_51] { <col0>[location]:[VARCHAR] <col1>[capacity_in_use]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "98.9%" | Where is the airport located that has a 98.9% in use capacity? |
<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_Name, `<col4>` FROM `<table1>` ORDER BY `<col4>` | Give me the comparison about ACC_Percent over the Team_Name by a bar chart, and rank from low to high by the ACC_Percent please. |
<table0>[table_204_148] { <col0>[number]:[name] <col1>[text]:[elected] <col2>[text]:[term] <col3>[began]:[text] <col4>[term]:[ended] } | SELECT "name" FROM `<table0>` WHERE "term began" < ( SELECT "term began" FROM `<table0>` WHERE "name" = 'john t. jordan' ) ORDER BY "term began" DESC LIMIT 1 | who was the mayor before jordan ? |
<table0>[course] { <col0>[course_id]:[int] <col1>[name]:[varchar] <col2>[department]:[varchar] <col3>[number]:[varchar] <col4>[credits]:[varchar] <col5>[advisory_requirement]:[varchar] <col6>[enforced_requirement]:[varchar] <col7>[description]:[varchar] <col8>[num_semesters]:[int] <col9>[num_enrolled]:[int] <col10>[has... | 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 = 'ECON' AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND semester.semester = 'Spring... | Which Spring classes are ECON upper level ?
|
<table0>[BuildingPermits] { <col0>[PermitID]:[INT] <col1>[PermitNumber]:[VARCHAR] <col2>[IssueDate]:[DATE] <col3>[ExpirationDate]:[DATE] <col4>[ProjectID]:[INT] <col5>[FOREIGN]:[KEY] <col6>[ProjectID]:[REFERENCES] <col7>[Projects]:[ProjectID] } | DELETE FROM `<table0>` WHERE `<col3>` < CURDATE( ); | Delete outdated building permits from the BuildingPermits table. |
<table0>[table_name_82] { <col0>[new_council]:[VARCHAR] <col1>[previous_council]:[VARCHAR] <col2>[staying_councillors]:[VARCHAR] } | SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE `<col1>` = 54 AND `<col2>` > 36 | What is the full number of New Council when the previous council was 54 and the staying councilor number is bigger than 36? |
<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 MAX( `<table1>`.age ) FROM `<table1>` WHERE `<table1>`.admission_type = "ELECTIVE" AND `<table1>`.dod_year < "2183.0" | what is the maximum age of patients whose admission type is elective and year of death is before 2183?
|
<table0>[table_28556] { <col0>[Episode]:[real] <col1>[Prod]:[real] <col2>[Title]:[text] <col3>[Directed]:[text] <col4>[Written]:[text] <col5>[Originalairdate]:[text] } | SELECT COUNT( "Originalairdate" ) FROM `<table0>` WHERE "Directed by" = 'Maury Geraghty' | how many times was the episode directed by maury geraghty originally aired?
|
<table0>[table_2155] { <col0>[Country]:[text] <col1>[1948]:[millions] <col2>[real]:[1949] <col3>[millions]:[real] <col4>[1950]:[millions] <col5>[real]:[Cumulative] <col6>[millions]:[real] } | SELECT MAX( "1949/50 ( $ `<col3>` )" ) FROM `<table0>` WHERE "1948/49 ( $ `<col3>` )" = '232' | What's the 1949/50 expenditure (in $ millions) in the country where the 1948/49 expenditure was 232$ millions? |
<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 procedures ON `<table0>`.hadm_id = procedures.hadm_id WHERE `<table0>`.age < "64" AND procedures.short_title = "Temporary tracheostomy" | how many patients aged below 64 years had the procedure short title temporary tracheostomy?
|
<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 MIN( `<table1>`.days_stay ) FROM `<table1>` WHERE `<table1>`.age >= "72" | for patients aged 72 or below, specify the minimum duration of hospital stay
|
<table0>[RecycledPolyesterSales] { <col0>[INT]:[revenue] } | SELECT SUM( revenue ) FROM RecycledPolyesterSales; | What is the total revenue generated from the sales of recycled polyester products? |
<table0>[table_name_54] { <col0>[played]:[INTEGER] <col1>[team]:[VARCHAR] } | SELECT MIN( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "vasco da gama" AND against < 11 | Which Played is the lowest one that has a Team of vasco da gama, and an Against smaller than 11? |
<table0>[gymnast] { <col0>[gymnast_id]:[number] <col1>[floor_exercise_points]:[number] <col2>[pommel_horse_points]:[number] <col3>[rings_points]:[number] <col4>[vault_points]:[number] <col5>[parallel_bars_points]:[number] <col6>[horizontal_bar_points]:[number] <col7>[total_points]:[number] } <table1>[people] { <col0>[... | SELECT T2.hometown FROM `<table0>` AS T1 JOIN people AS T2 ON T1.`<table0>`_id = T2.people_id GROUP BY T2.hometown HAVING COUNT( * ) >= 2 | Give the hometowns from which two or more gymnasts are from.
|
<table0>[table_name_25] { <col0>[result]:[VARCHAR] <col1>[score]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "69-81" | Which Result has a Score of 69-81?
|
<table0>[procedures_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icd9_code]:[text] <col4>[charttime]:[time] } <table1>[admissions] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[admittime]:[time] <col4>[dischtime]:[time] <col5>[admiss... | SELECT ( SELECT `<table6>`.valuenum FROM `<table6>` WHERE `<table6>`.icustay_id IN ( SELECT `<table16>`.icustay_id FROM `<table16>` WHERE `<table16>`.hadm_id IN ( SELECT `<table1>`.hadm_id FROM `<table1>` WHERE `<table1>`.subject_id = 13703 ) AND NOT `<table16>`.outtime IS NULL ORDER BY `<table16>`.intime LIMIT 1 ) AND... | what are patient 13703's arterial bp [diastolic] differences second measured on the first intensive care unit visit compared to the value first measured on the first intensive care unit visit? |
<table0>[microlab] { <col0>[microlabid]:[number] <col1>[patientunitstayid]:[number] <col2>[culturesite]:[text] <col3>[organism]:[text] <col4>[culturetakentime]:[time] } <table1>[treatment] { <col0>[treatmentid]:[number] <col1>[patientunitstayid]:[number] <col2>[treatmentname]:[text] <col3>[treatmenttime]:[time] } <ta... | SELECT `<table0>`.culturesite FROM `<table0>` WHERE `<table0>`.`<table4>`unitstayid IN ( SELECT `<table4>`.`<table4>`unitstayid FROM `<table4>` WHERE `<table4>`.`<table4>`healthsystemstayid IN ( SELECT `<table4>`.`<table4>`healthsystemstayid FROM `<table4>` WHERE `<table4>`.uniquepid = '031-3355' ) ) AND DATETIME( `<ta... | tell me the name of the first specimen test patient 031-3355 had received this month?
|
<table0>[table_name_64] { <col0>[game_site]:[VARCHAR] <col1>[opponent]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "cf pachuca" | Where does CF Pachuca play?
|
<table0>[FlightLogs] { <col0>[flight_id]:[INT] <col1>[aircraft_model]:[VARCHAR] <col2>[flight_date]:[DATE] } | SELECT aircraft_model, MAX( `<col2>` ) AS most_recent_flight FROM `<table0>` GROUP BY aircraft_model; | What is the most recent flight for each aircraft model in the FlightLogs table? |
<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>[prescr... | SELECT AVG( `<table4>`.age ) FROM `<table4>` WHERE `<table4>`.admission_type = "URGENT" AND `<table4>`.admityear >= "2179" | what is average age of patients whose admission type is urgent and admission year is greater than or equal to 2179?
|
<table0>[PostNotices] { <col0>[number]:[PostId] <col1>[number]:[PostNoticeTypeId] <col2>[number]:[CreationDate] <col3>[time]:[DeletionDate] <col4>[time]:[ExpiryDate] <col5>[time]:[Body] <col6>[text]:[OwnerUserId] <col7>[number]:[DeletionUserId] } <table1>[PostsWithDeleted] { <col0>[number]:[PostTypeId] <col1>[number]:... | SELECT q.Id AS "post_link", a.CreationDate FROM `<table22>` AS q INNER JOIN `<table22>` AS a ON a.ParentId = q.Id WHERE a.OwnerUserId = '##UserId##' AND q.AnswerCount = 1 AND q.AcceptedAnswerId IS NULL | Questions answered by me without an accepted answer, with only one answer.
|
<table0>[SocialGood] { <col0>[project_id]:[INT] <col1>[location]:[VARCHAR] <col2>[budget]:[DECIMAL] } | SELECT project_id, location, `<col2>` FROM `<table0>` WHERE `<col2>` > 100000; | Which social good technology projects have a budget over $100,000? |
<table0>[time_zone] { <col0>[time_zone_code]:[text] <col1>[time_zone_name]:[text] <col2>[hours_from_gmt]:[int] } <table1>[flight_leg] { <col0>[flight_id]:[int] <col1>[leg_number]:[int] <col2>[leg_flight]:[int] } <table2>[airline] { <col0>[airline_code]:[varchar] <col1>[airline_name]:[text] <col2>[note]:[text] } <tab... | SELECT DISTINCT ground_service.transport_type FROM city, ground_service WHERE city.city_name = 'CHICAGO' AND ground_service.city_code = city.city_code | tell me about the ground transportation in CHICAGO |
<table0>[table_70623] { <col0>[Team]:[text] <col1>[Truck]:[text] <col2>[Driver]:[text] <col3>[Primary]:[Sponsor] <col4>[text]:[Owner] <col5>[text]:[Crew] <col6>[Chief]:[text] <col7>[Rounds]:[real] } | SELECT "Driver( s )" FROM `<table0>` WHERE "Crew Chief" = 'nick carlson' | Who was the driver for crew chief Nick Carlson?
|
<table0>[nomination] { <col0>[Artwork_ID]:[int] <col1>[Festival_ID]:[int] <col2>[Result]:[text] } <table1>[artwork] { <col0>[Artwork_ID]:[int] <col1>[Type]:[text] } <table2>[festival_detail] { <col0>[Festival_ID]:[int] <col1>[Festival_Name]:[text] <col2>[Chair_Name]:[text] <col3>[Location]:[text] <col4>[Year]:[int] <... | SELECT T3.Festival_Name, T1.Festival_ID FROM `<table0>` AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID ORDER BY T3.Festival_Name | Show the ids and names of festivals that have at least two nominations for artworks by a bar chart, display names in asc order. |
<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 `<table9>`.charttime FROM `<table9>` WHERE `<table9>`.icustay_id IN ( SELECT `<table5>`.icustay_id FROM `<table5>` WHERE `<table5>`.hadm_id IN ( SELECT `<table0>`.hadm_id FROM `<table0>` WHERE `<table0>`.subject_id = 20332 ) ) AND `<table9>`.itemid IN ( SELECT `<table2>`.itemid FROM `<table2>` WHERE `<table2>`.l... | when was the first time patient 20332 took an .9% normal saline since 06/16/2102?
|
<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 lab ON `<table0>`.hadm_id = lab.hadm_id WHERE `<table0>`.admission_type = "ELECTIVE" AND lab.fluid = "Joint Fluid" | count the number of patients whose admission type is elective and lab test fluid is joint fluid? |
<table0>[cost] { <col0>[costid]:[number] <col1>[uniquepid]:[text] <col2>[patienthealthsystemstayid]:[number] <col3>[eventtype]:[text] <col4>[eventid]:[number] <col5>[chargetime]:[time] } <table1>[lab] { <col0>[labid]:[number] <col1>[patientunitstayid]:[number] <col2>[labname]:[text] <col3>[labresult]:[number] <col4>[l... | SELECT COUNT( * ) FROM `<table6>` WHERE `<table6>`.`<table8>`unitstayid IN ( SELECT `<table8>`.`<table8>`unitstayid FROM `<table8>` WHERE `<table8>`.`<table8>`healthsystemstayid IN ( SELECT `<table8>`.`<table8>`healthsystemstayid FROM `<table8>` WHERE `<table8>`.uniquepid = '031-23724' ) ) AND `<table6>`.culturesite = ... | is there a microbiology test result until 2104 for patient 031-23724's blood, venipuncture?
|
<table0>[status] { <col0>[station_id]:[INTEGER] <col1>[bikes_available]:[INTEGER] <col2>[docks_available]:[INTEGER] <col3>[time]:[TEXT] } <table1>[trip] { <col0>[INTEGER]:[duration] <col1>[INTEGER]:[start_date] <col2>[TEXT]:[start_station_name] <col3>[TEXT]:[start_station_id] <col4>[INTEGER]:[end_date] <col5>[TEXT]:[e... | SELECT city, COUNT( * ) FROM `<table3>` GROUP BY city ORDER BY city DESC | List the name and the number of stations for all the cities that have at least 15 stations with a bar chart, and display by the names from high to low.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.