schema
stringlengths 20
14.6k
| query
stringlengths 17
2.58k
| question
stringlengths 8
1.06k
|
---|---|---|
<table0>[table_name_71] { <col0>[driver]:[VARCHAR] <col1>[type_of_vehicle]:[VARCHAR] <col2>[year]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "stock car" AND `<col2>` = 1999 | What driver has a stock car vehicle with a year of 1999?
|
<table0>[fans] { <col0>[fan_id]:[INT] <col1>[name]:[VARCHAR] <col2>[100]:[country] <col3>[VARCHAR]:[100] } | INSERT INTO fans ( fan_id, name, country ) VALUES ( 1, 'Ali Ahmed', 'Pakistan' ); INSERT INTO fans ( fan_id, name, country ) VALUES ( 2, 'Sophia Lee', 'South Korea' ); INSERT INTO fans ( fan_id, name, country ) VALUES ( 3, 'Carlos Gomez', 'Brazil' ); | Insert new records of fans from a specific country. |
<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]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table2>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table3>[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] } <table4>[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>[ethnicity]:[text] <col13>[expire_flag]:[text] <col14>[admission_location]:[text] <col15>[discharge_location]:[text] <col16>[diagnosis]:[text] <col17>[dod]:[text] <col18>[dob_year]:[text] <col19>[dod_year]:[text] <col20>[admittime]:[text] <col21>[dischtime]:[text] <col22>[admityear]:[text] } | SELECT COUNT( DISTINCT `<table4>`.subject_id ) FROM `<table4>` INNER JOIN lab ON `<table4>`.hadm_id = lab.hadm_id WHERE `<table4>`.admission_location = "EMERGENCY ROOM ADMIT" AND lab.itemid = "50902" | count the number of patients whose admission location is emergency room admit and item id is 50902? |
<table0>[genres] { <col0>[genre_id]:[INT] <col1>[genre]:[VARCHAR] } <table1>[songs] { <col0>[song_id]:[INT] <col1>[song_name]:[VARCHAR] <col2>[100]:[release_year] <col3>[INT]:[genre_id] <col4>[INT]:[INSERT] } | SELECT COUNT( * ) FROM `<table1>` WHERE `<col0>` = ( SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = 'Rock' ) AND release_year BETWEEN 1990 AND 2000; | How many songs are in the 'Rock' genre that were released between 1990 and 2000? |
<table0>[d_icd_diagnoses] { <col0>[row_id]:[number] <col1>[icd9_code]:[text] <col2>[short_title]:[text] <col3>[long_title]:[text] } <table1>[d_labitems] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] } <table2>[icustays] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[first_careunit]:[text] <col5>[last_careunit]:[text] <col6>[first_wardid]:[number] <col7>[last_wardid]:[number] <col8>[intime]:[time] <col9>[outtime]:[time] } <table3>[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] } <table4>[inputevents_cv] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[charttime]:[time] <col5>[itemid]:[number] } <table5>[patients] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[gender]:[text] <col3>[dob]:[time] <col4>[dod]:[time] } <table6>[labevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[itemid]:[number] <col4>[charttime]:[time] <col5>[valuenum]:[number] <col6>[valueuom]:[text] } <table7>[outputevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[charttime]:[time] <col5>[itemid]:[number] <col6>[value]:[number] } <table8>[d_items] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] <col3>[linksto]:[text] } <table9>[procedures_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icd9_code]:[text] <col4>[charttime]:[time] } <table10>[cost] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[event_type]:[text] <col4>[event_id]:[number] <col5>[chargetime]:[time] } <table11>[microbiologyevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[charttime]:[time] <col4>[spec_type_desc]:[text] <col5>[org_name]:[text] } <table12>[diagnoses_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icd9_code]:[text] <col4>[charttime]:[time] } <table13>[prescriptions] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[startdate]:[time] <col4>[enddate]:[time] <col5>[drug]:[text] <col6>[dose_val_rx]:[text] <col7>[dose_unit_rx]:[text] <col8>[route]:[text] } <table14>[d_icd_procedures] { <col0>[row_id]:[number] <col1>[icd9_code]:[text] <col2>[short_title]:[text] <col3>[long_title]:[text] } <table15>[transfers] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[eventtype]:[text] <col5>[careunit]:[text] <col6>[wardid]:[number] <col7>[intime]:[time] <col8>[outtime]:[time] } <table16>[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]:[text] <col11>[ethnicity]:[text] <col12>[age]:[number] } | SELECT ( SELECT `<table3>`.valuenum FROM `<table3>` WHERE `<table3>`.icustay_id IN ( SELECT `<table2>`.icustay_id FROM `<table2>` WHERE `<table2>`.hadm_id IN ( SELECT `<table16>`.hadm_id FROM `<table16>` WHERE `<table16>`.subject_id = 31615 ) AND NOT `<table2>`.outtime IS NULL ORDER BY `<table2>`.intime DESC LIMIT 1 ) AND `<table3>`.itemid IN ( SELECT `<table8>`.itemid FROM `<table8>` WHERE `<table8>`.label = 'arterial bp [diastolic]' AND `<table8>`.linksto = '`<table3>`' ) ORDER BY `<table3>`.charttime LIMIT 1 OFFSET 1 ) > ( SELECT `<table3>`.valuenum FROM `<table3>` WHERE `<table3>`.icustay_id IN ( SELECT `<table2>`.icustay_id FROM `<table2>` WHERE `<table2>`.hadm_id IN ( SELECT `<table16>`.hadm_id FROM `<table16>` WHERE `<table16>`.subject_id = 31615 ) AND NOT `<table2>`.outtime IS NULL ORDER BY `<table2>`.intime DESC LIMIT 1 ) AND `<table3>`.itemid IN ( SELECT `<table8>`.itemid FROM `<table8>` WHERE `<table8>`.label = 'arterial bp [diastolic]' AND `<table8>`.linksto = '`<table3>`' ) ORDER BY `<table3>`.charttime LIMIT 1 ) | is patient 31615's arterial bp [diastolic] second measured on the last intensive care unit visit greater than the first value measured on the last intensive care unit visit?
|
<table0>[research_studies] { <col0>[INT]:[study_title] <col1>[VARCHAR]:[publication_year] } | SELECT publication_year, COUNT( * ) OVER ( ORDER BY publication_year ) AS num_studies FROM `<table0>` ORDER BY publication_year; | Show the number of research studies published per year in the 'research_studies' table, ordered by publication year. |
<table0>[table_201_24] { <col0>[number]:[episode] <col1>[number]:[number] <col2>[original]:[airdate] <col3>[text]:[title] <col4>[text]:[disc] <col5>[number]:[description] } | SELECT COUNT( "episode number" ) FROM `<table0>` WHERE "original airdate" = 1983 | how many episodes are in series 7 -lrb- 1983 -rrb- ? |
<table0>[field] { <col0>[fieldid]:[int] } <table1>[paper] { <col0>[paperid]:[int] <col1>[title]:[varchar] <col2>[venueid]:[int] <col3>[year]:[int] <col4>[numciting]:[int] <col5>[numcitedby]:[int] <col6>[journalid]:[int] } <table2>[dataset] { <col0>[datasetid]:[int] <col1>[datasetname]:[varchar] } <table3>[paperkeyphrase] { <col0>[paperid]:[int] <col1>[keyphraseid]:[int] } <table4>[paperfield] { <col0>[fieldid]:[int] <col1>[paperid]:[int] } <table5>[journal] { <col0>[journalid]:[int] <col1>[journalname]:[varchar] } <table6>[writes] { <col0>[paperid]:[int] <col1>[authorid]:[int] } <table7>[author] { <col0>[authorid]:[int] <col1>[authorname]:[varchar] } <table8>[paperdataset] { <col0>[paperid]:[int] <col1>[datasetid]:[int] } <table9>[cite] { <col0>[citingpaperid]:[int] <col1>[citedpaperid]:[int] } <table10>[venue] { <col0>[venueid]:[int] <col1>[venuename]:[varchar] } <table11>[keyphrase] { <col0>[keyphraseid]:[int] <col1>[keyphrasename]:[varchar] } | SELECT DISTINCT COUNT( paper.paperid ), paper.year FROM keyphrase, paper, paperkeyphrase WHERE keyphrase.keyphrasename = 'semantic parsing' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid GROUP BY paper.year ORDER BY paper.year DESC | papers in semantic parsing for each year
|
<table0>[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_ORG_ID] <col8>[text]:[FXBZ] <col9>[number]:[HOSP_DOC_CD] <col10>[text]:[HOSP_DOC_NM] <col11>[text]:[MED_CLINIC_ID] <col12>[text]:[MED_DIRE_CD] <col13>[text]:[MED_DIRE_NM] <col14>[text]:[MED_EXP_BILL_ID] <col15>[text]:[MED_EXP_DET_ID] <col16>[text]:[MED_INV_ITEM_TYPE] <col17>[text]:[MED_ORG_DEPT_CD] <col18>[text]:[MED_ORG_DEPT_NM] <col19>[text]:[OVERALL_CD_ORG] <col20>[text]:[OVERALL_CD_PERSON] <col21>[text]:[OVE_SELF_AMO] <col22>[number]:[PRESCRIPTION_CODE] <col23>[text]:[PRESCRIPTION_ID] <col24>[text]:[QTY] <col25>[number]:[RECIPE_BILL_ID] <col26>[text]:[REF_STA_FLG] <col27>[number]:[REIMBURS_TYPE] <col28>[number]:[REMOTE_SETTLE_FLG] <col29>[text]:[RER_SOL] <col30>[number]:[SELF_PAY_AMO] <col31>[number]:[SELF_PAY_PRO] <col32>[number]:[SOC_SRT_DIRE_CD] <col33>[text]:[SOC_SRT_DIRE_NM] <col34>[text]:[SPEC] <col35>[text]:[STA_DATE] <col36>[time]:[STA_FLG] <col37>[number]:[SYNC_TIME] <col38>[time]:[TRADE_TYPE] <col39>[number]:[UNIVALENT] <col40>[number]:[UP_LIMIT_AMO] <col41>[number]:[USE_FRE] <col42>[text]:[VAL_UNIT] } <table1>[zyb] { <col0>[CLINIC_ID]:[text] <col1>[COMP_ID]:[text] <col2>[DATA_ID]:[text] <col3>[DIFF_PLACE_FLG]:[number] <col4>[FERTILITY_STS]:[number] <col5>[FLX_MED_ORG_ID]:[text] <col6>[HOSP_LEV]:[number] <col7>[HOSP_STS]:[number] <col8>[IDENTITY_CARD]:[text] <col9>[INPT_AREA_BED]:[text] <col10>[INSURED_IDENTITY]:[number] <col11>[INSURED_STS]:[text] <col12>[INSU_TYPE]:[text] <col13>[IN_DIAG_DIS_CD]:[text] <col14>[IN_DIAG_DIS_NM]:[text] <col15>[IN_HOSP_DATE]:[time] <col16>[IN_HOSP_DAYS]:[number] <col17>[MAIN_COND_DES]:[text] <col18>[MED_AMOUT]:[number] <col19>[MED_CLINIC_ID]:[number] <col20>[MED_ORG_DEPT_CD]:[text] <col21>[MED_ORG_DEPT_NM]:[text] <col22>[MED_SER_ORG_NO]:[text] <col23>[MED_TYPE]:[number] <col24>[OUT_DIAG_DIS_CD]:[text] <col25>[OUT_DIAG_DIS_NM]:[text] <col26>[OUT_DIAG_DOC_CD]:[text] <col27>[OUT_DIAG_DOC_NM]:[text] <col28>[OUT_HOSP_DATE]:[time] <col29>[OVERALL_CD_ORG]:[text] <col30>[OVERALL_CD_PERSON]:[text] <col31>[PERSON_AGE]:[number] <col32>[PERSON_ID]:[text] <col33>[PERSON_NM]:[text] <col34>[PERSON_SEX]:[number] <col35>[REIMBURSEMENT_FLG]:[number] <col36>[REMOTE_SETTLE_FLG]:[text] <col37>[SERVANT_FLG]:[text] <col38>[SOC_SRT_CARD]:[text] <col39>[SYNC_TIME]:[time] <col40>[TRADE_TYPE]:[number] } <table2>[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]:[text] <col11>[ENT_ACC_PAY]:[number] <col12>[ENT_PAY]:[number] <col13>[FLX_MED_ORG_ID]:[text] <col14>[ILL_PAY]:[number] <col15>[INSURED_IDENTITY]:[number] <col16>[INSURED_STS]:[text] <col17>[INSU_TYPE]:[text] <col18>[LAS_OVE_PAY]:[number] <col19>[MED_AMOUT]:[number] <col20>[MED_CLINIC_ID]:[text] <col21>[MED_SAFE_PAY_ID]:[text] <col22>[MED_TYPE]:[number] <col23>[OLDC_FUND_PAY]:[number] <col24>[OUT_HOSP_DATE]:[time] <col25>[OVERALL_CD_ORG]:[text] <col26>[OVERALL_CD_PERSON]:[text] <col27>[OVE_ADD_PAY]:[number] <col28>[OVE_PAY]:[number] <col29>[PERSON_ID]:[text] <col30>[PER_ACC_PAY]:[number] <col31>[PER_EXP]:[number] <col32>[PER_SOL]:[number] <col33>[RECEIVER_DEAL_ID]:[text] <col34>[RECEIVER_OFFSET_ID]:[text] <col35>[RECEIVER_REVOKE_ID]:[text] <col36>[RECIPE_BILL_ID]:[text] <col37>[REF_SLT_FLG]:[number] <col38>[REIMBURS_FLG]:[number] <col39>[SENDER_DEAL_ID]:[text] <col40>[SENDER_OFFSET_ID]:[text] <col41>[SENDER_REVOKE_ID]:[text] <col42>[SPE_FUND_PAY]:[number] <col43>[SUP_ADD_PAY]:[number] <col44>[SYNC_TIME]:[time] <col45>[TRADE_TYPE]:[number] } <table3>[gyb] { <col0>[CLINIC_ID]:[text] <col1>[COMP_ID]:[text] <col2>[DATA_ID]:[text] <col3>[DIFF_PLACE_FLG]:[number] <col4>[FERTILITY_STS]:[number] <col5>[FLX_MED_ORG_ID]:[text] <col6>[HOSP_LEV]:[number] <col7>[HOSP_STS]:[number] <col8>[IDENTITY_CARD]:[text] <col9>[INPT_AREA_BED]:[text] <col10>[INSURED_IDENTITY]:[number] <col11>[INSURED_STS]:[text] <col12>[INSU_TYPE]:[text] <col13>[IN_DIAG_DIS_CD]:[text] <col14>[IN_DIAG_DIS_NM]:[text] <col15>[IN_HOSP_DATE]:[time] <col16>[IN_HOSP_DAYS]:[number] <col17>[MAIN_COND_DES]:[text] <col18>[MED_AMOUT]:[number] <col19>[MED_CLINIC_ID]:[number] <col20>[MED_ORG_DEPT_CD]:[text] <col21>[MED_ORG_DEPT_NM]:[text] <col22>[MED_SER_ORG_NO]:[text] <col23>[MED_TYPE]:[number] <col24>[OUT_DIAG_DIS_CD]:[text] <col25>[OUT_DIAG_DIS_NM]:[text] <col26>[OUT_DIAG_DOC_CD]:[text] <col27>[OUT_DIAG_DOC_NM]:[text] <col28>[OUT_HOSP_DATE]:[time] <col29>[OVERALL_CD_ORG]:[text] <col30>[OVERALL_CD_PERSON]:[text] <col31>[PERSON_AGE]:[number] <col32>[PERSON_ID]:[text] <col33>[PERSON_NM]:[text] <col34>[PERSON_SEX]:[number] <col35>[REIMBURSEMENT_FLG]:[number] <col36>[REMOTE_SETTLE_FLG]:[text] <col37>[SERVANT_FLG]:[text] <col38>[SOC_SRT_CARD]:[text] <col39>[SYNC_TIME]:[time] <col40>[TRADE_TYPE]:[number] } <table4>[qtb] { <col0>[CLINIC_ID]:[text] <col1>[COMP_ID]:[text] <col2>[DATA_ID]:[text] <col3>[DIFF_PLACE_FLG]:[number] <col4>[FERTILITY_STS]:[number] <col5>[FLX_MED_ORG_ID]:[text] <col6>[HOSP_LEV]:[number] <col7>[HOSP_STS]:[number] <col8>[IDENTITY_CARD]:[text] <col9>[INPT_AREA_BED]:[text] <col10>[INSURED_IDENTITY]:[number] <col11>[INSURED_STS]:[text] <col12>[INSU_TYPE]:[text] <col13>[IN_DIAG_DIS_CD]:[text] <col14>[IN_DIAG_DIS_NM]:[text] <col15>[IN_HOSP_DATE]:[time] <col16>[IN_HOSP_DAYS]:[number] <col17>[MAIN_COND_DES]:[text] <col18>[MED_AMOUT]:[number] <col19>[MED_CLINIC_ID]:[number] <col20>[MED_ORG_DEPT_CD]:[text] <col21>[MED_ORG_DEPT_NM]:[text] <col22>[MED_SER_ORG_NO]:[text] <col23>[MED_TYPE]:[number] <col24>[OUT_DIAG_DIS_CD]:[text] <col25>[OUT_DIAG_DIS_NM]:[text] <col26>[OUT_DIAG_DOC_CD]:[text] <col27>[OUT_DIAG_DOC_NM]:[text] <col28>[OUT_HOSP_DATE]:[time] <col29>[OVERALL_CD_ORG]:[text] <col30>[OVERALL_CD_PERSON]:[text] <col31>[PERSON_AGE]:[number] <col32>[PERSON_ID]:[text] <col33>[PERSON_NM]:[text] <col34>[PERSON_SEX]:[number] <col35>[REIMBURSEMENT_FLG]:[number] <col36>[REMOTE_SETTLE_FLG]:[text] <col37>[SERVANT_FLG]:[text] <col38>[SOC_SRT_CARD]:[text] <col39>[SYNC_TIME]:[time] <col40>[TRADE_TYPE]:[number] } <table5>[mzb] { <col0>[CLINIC_ID]:[text] <col1>[COMP_ID]:[text] <col2>[DATA_ID]:[text] <col3>[DIFF_PLACE_FLG]:[number] <col4>[FERTILITY_STS]:[number] <col5>[FLX_MED_ORG_ID]:[text] <col6>[HOSP_LEV]:[number] <col7>[HOSP_STS]:[number] <col8>[IDENTITY_CARD]:[text] <col9>[INPT_AREA_BED]:[text] <col10>[INSURED_IDENTITY]:[number] <col11>[INSURED_STS]:[text] <col12>[INSU_TYPE]:[text] <col13>[IN_DIAG_DIS_CD]:[text] <col14>[IN_DIAG_DIS_NM]:[text] <col15>[IN_HOSP_DATE]:[time] <col16>[IN_HOSP_DAYS]:[number] <col17>[MAIN_COND_DES]:[text] <col18>[MED_AMOUT]:[number] <col19>[MED_CLINIC_ID]:[number] <col20>[MED_ORG_DEPT_CD]:[text] <col21>[MED_ORG_DEPT_NM]:[text] <col22>[MED_SER_ORG_NO]:[text] <col23>[MED_TYPE]:[number] <col24>[OUT_DIAG_DIS_CD]:[text] <col25>[OUT_DIAG_DIS_NM]:[text] <col26>[OUT_DIAG_DOC_CD]:[text] <col27>[OUT_DIAG_DOC_NM]:[text] <col28>[OUT_HOSP_DATE]:[time] <col29>[OVERALL_CD_ORG]:[text] <col30>[OVERALL_CD_PERSON]:[text] <col31>[PERSON_AGE]:[number] <col32>[PERSON_ID]:[text] <col33>[PERSON_NM]:[text] <col34>[PERSON_SEX]:[number] <col35>[REIMBURSEMENT_FLG]:[number] <col36>[REMOTE_SETTLE_FLG]:[text] <col37>[SERVANT_FLG]:[text] <col38>[SOC_SRT_CARD]:[text] <col39>[SYNC_TIME]:[time] <col40>[TRADE_TYPE]:[number] } | SELECT `<table4>`.MED_CLINIC_ID FROM `<table4>` WHERE `<table4>`.PERSON_NM = '窦咏歌' AND `<table4>`.MED_SER_ORG_NO = '9078958' AND `<table4>`.IN_DIAG_DIS_NM LIKE '%性%' UNION SELECT `<table3>`.MED_CLINIC_ID FROM `<table3>` WHERE `<table3>`.PERSON_NM = '窦咏歌' AND `<table3>`.MED_SER_ORG_NO = '9078958' AND `<table3>`.IN_DIAG_DIS_NM LIKE '%性%' UNION SELECT `<table1>`.MED_CLINIC_ID FROM `<table1>` WHERE `<table1>`.PERSON_NM = '窦咏歌' AND `<table1>`.MED_SER_ORG_NO = '9078958' AND `<table1>`.IN_DIAG_DIS_NM LIKE '%性%' UNION SELECT `<table5>`.MED_CLINIC_ID FROM `<table5>` WHERE `<table5>`.PERSON_NM = '窦咏歌' AND `<table5>`.MED_SER_ORG_NO = '9078958' AND `<table5>`.IN_DIAG_DIS_NM LIKE '%性%' | 姓名为窦咏歌的病人在医院9078958入院看病时诊断出的疾病名称中包含性的医疗就诊记录编号都有哪些?
|
<table0>[t_kc24] { <col0>[MED_SAFE_PAY_ID]:[text] <col1>[OVERALL_CD_ORG]:[text] <col2>[OVERALL_CD_PERSON]:[text] <col3>[MED_CLINIC_ID]:[text] <col4>[REF_SLT_FLG]:[number] <col5>[CLINIC_SLT_DATE]:[time] <col6>[COMP_ID]:[text] <col7>[PERSON_ID]:[text] <col8>[FLX_MED_ORG_ID]:[text] <col9>[INSU_TYPE]:[text] <col10>[MED_AMOUT]:[number] <col11>[PER_ACC_PAY]:[number] <col12>[OVE_PAY]:[number] <col13>[ILL_PAY]:[number] <col14>[CIVIL_SUBSIDY]:[number] <col15>[PER_SOL]:[number] <col16>[PER_EXP]:[number] <col17>[DATA_ID]:[text] <col18>[SYNC_TIME]:[time] <col19>[OUT_HOSP_DATE]:[time] <col20>[CLINIC_ID]:[text] <col21>[MED_TYPE]:[number] <col22>[INSURED_STS]:[text] <col23>[INSURED_IDENTITY]:[number] <col24>[TRADE_TYPE]:[number] <col25>[RECIPE_BILL_ID]:[text] <col26>[ACCOUNT_DASH_DATE]:[time] <col27>[ACCOUNT_DASH_FLG]:[number] <col28>[REIMBURS_FLG]:[number] <col29>[SENDER_DEAL_ID]:[text] <col30>[RECEIVER_DEAL_ID]:[text] <col31>[SENDER_REVOKE_ID]:[text] <col32>[RECEIVER_REVOKE_ID]:[text] <col33>[SENDER_OFFSET_ID]:[text] <col34>[RECEIVER_OFFSET_ID]:[text] <col35>[LAS_OVE_PAY]:[number] <col36>[OVE_ADD_PAY]:[number] <col37>[SUP_ADD_PAY]:[number] <col38>[CKC102]:[number] <col39>[CASH_PAY]:[number] <col40>[COM_ACC_PAY]:[number] <col41>[ENT_ACC_PAY]:[number] <col42>[ENT_PAY]:[number] <col43>[COM_PAY]:[number] <col44>[OLDC_FUND_PAY]:[number] <col45>[SPE_FUND_PAY]:[number] } <table1>[t_kc22] { <col0>[MED_EXP_DET_ID]:[text] <col1>[OVERALL_CD_ORG]:[text] <col2>[OVERALL_CD_PERSON]:[text] <col3>[MED_CLINIC_ID]:[text] <col4>[MED_EXP_BILL_ID]:[text] <col5>[SOC_SRT_DIRE_CD]:[text] <col6>[SOC_SRT_DIRE_NM]:[text] <col7>[DIRE_TYPE]:[number] <col8>[CHA_ITEM_LEV]:[number] <col9>[MED_INV_ITEM_TYPE]:[text] <col10>[MED_DIRE_CD]:[text] <col11>[MED_DIRE_NM]:[text] <col12>[VAL_UNIT]:[text] <col13>[DOSE_UNIT]:[text] <col14>[DOSE_FORM]:[text] <col15>[SPEC]:[text] <col16>[USE_FRE]:[text] <col17>[EACH_DOSAGE]:[text] <col18>[QTY]:[number] <col19>[UNIVALENT]:[number] <col20>[number]:[SELF_PAY_PRO] <col21>[number]:[RER_SOL] <col22>[number]:[SELF_PAY_AMO] <col23>[number]:[UP_LIMIT_AMO] <col24>[number]:[OVE_SELF_AMO] <col25>[number]:[EXP_OCC_DATE] <col26>[time]:[RECIPE_BILL_ID] <col27>[text]:[FLX_MED_ORG_ID] <col28>[text]:[MED_ORG_DEPT_CD] <col29>[text]:[MED_ORG_DEPT_NM] <col30>[text]:[HOSP_DOC_CD] <col31>[text]:[HOSP_DOC_NM] <col32>[text]:[REF_STA_FLG] <col33>[number]:[DATA_ID] <col34>[text]:[SYNC_TIME] <col35>[time]:[PRESCRIPTION_CODE] <col36>[text]:[PRESCRIPTION_ID] <col37>[text]:[TRADE_TYPE] <col38>[number]:[STA_FLG] <col39>[number]:[STA_DATE] <col40>[time]:[REIMBURS_TYPE] <col41>[number]:[FXBZ] <col42>[number]:[REMOTE_SETTLE_FLG] } <table2>[t_kc21] { <col0>[MED_CLINIC_ID]:[text] <col1>[OVERALL_CD_ORG]:[text] <col2>[OVERALL_CD_PERSON]:[text] <col3>[COMP_ID]:[text] <col4>[PERSON_ID]:[text] <col5>[PERSON_NM]:[text] <col6>[IDENTITY_CARD]:[text] <col7>[SOC_SRT_CARD]:[text] <col8>[PERSON_SEX]:[number] <col9>[PERSON_AGE]:[number] <col10>[IN_HOSP_DATE]:[time] <col11>[OUT_HOSP_DATE]:[time] <col12>[DIFF_PLACE_FLG]:[number] <col13>[FLX_MED_ORG_ID]:[text] <col14>[MED_SER_ORG_NO]:[text] <col15>[CLINIC_TYPE]:[text] <col16>[MED_TYPE]:[number] <col17>[CLINIC_ID]:[text] <col18>[IN_DIAG_DIS_CD]:[text] <col19>[IN_DIAG_DIS_NM]:[text] <col20>[OUT_DIAG_DIS_CD]:[text] <col21>[OUT_DIAG_DIS_NM]:[text] <col22>[INPT_AREA_BED]:[text] <col23>[MED_ORG_DEPT_CD]:[text] <col24>[MED_ORG_DEPT_NM]:[text] <col25>[OUT_DIAG_DOC_CD]:[text] <col26>[OUT_DIAG_DOC_NM]:[text] <col27>[MAIN_COND_DES]:[text] <col28>[INSU_TYPE]:[text] <col29>[IN_HOSP_DAYS]:[number] <col30>[MED_AMOUT]:[number] <col31>[FERTILITY_STS]:[number] <col32>[DATA_ID]:[text] <col33>[SYNC_TIME]:[time] <col34>[REIMBURSEMENT_FLG]:[number] <col35>[HOSP_LEV]:[number] <col36>[HOSP_STS]:[number] <col37>[INSURED_IDENTITY]:[number] <col38>[SERVANT_FLG]:[text] <col39>[TRADE_TYPE]:[number] <col40>[INSURED_STS]:[text] <col41>[REMOTE_SETTLE_FLG]:[text] } | SELECT COUNT( * ) FROM `<table2>` WHERE `<col14>` = '0862388' AND `<col10>` BETWEEN '2000-02-09' AND '2011-08-18' AND `<col15>` = '购药' | 医院0862388给患者治疗时一共记录的购药数量是多少,在00-02-09到2011-08-18这期间
|
<table0>[ground_service] { <col0>[city_code]:[text] <col1>[airport_code]:[text] <col2>[transport_type]:[text] <col3>[ground_fare]:[int] } <table1>[class_of_service] { <col0>[booking_class]:[varchar] <col1>[rank]:[int] <col2>[class_description]:[text] } <table2>[state] { <col0>[state_code]:[text] <col1>[state_name]:[text] <col2>[country_name]:[text] } <table3>[flight_fare] { <col0>[flight_id]:[int] <col1>[fare_id]:[int] } <table4>[flight_leg] { <col0>[flight_id]:[int] <col1>[leg_number]:[int] <col2>[leg_flight]:[int] } <table5>[food_service] { <col0>[meal_code]:[text] <col1>[meal_number]:[int] <col2>[compartment]:[text] <col3>[meal_description]:[varchar] } <table6>[equipment_sequence] { <col0>[aircraft_code_sequence]:[varchar] <col1>[aircraft_code]:[varchar] } <table7>[airline] { <col0>[airline_code]:[varchar] <col1>[airline_name]:[text] <col2>[note]:[text] } <table8>[date_day] { <col0>[month_number]:[int] <col1>[day_number]:[int] <col2>[year]:[int] <col3>[day_name]:[varchar] } <table9>[dual_carrier] { <col0>[main_airline]:[varchar] <col1>[low_flight_number]:[int] <col2>[high_flight_number]:[int] <col3>[dual_airline]:[varchar] <col4>[service_name]:[text] } <table10>[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]:[int] <col7>[round_trip_cost]:[int] <col8>[round_trip_required]:[varchar] } <table11>[flight_stop] { <col0>[flight_id]:[int] <col1>[stop_number]:[int] <col2>[stop_days]:[text] <col3>[stop_airport]:[text] <col4>[arrival_time]:[int] <col5>[arrival_airline]:[text] <col6>[arrival_flight_number]:[int] <col7>[departure_time]:[int] <col8>[departure_airline]:[text] <col9>[departure_flight_number]:[int] <col10>[stop_time]:[int] } <table12>[flight] { <col0>[aircraft_code_sequence]:[text] <col1>[airline_code]:[varchar] } <table13>[code_description] { <col0>[code]:[varchar] <col1>[description]:[text] } <table14>[airport_service] { <col0>[city_code]:[varchar] <col1>[airport_code]:[varchar] <col2>[miles_distant]:[int] <col3>[direction]:[varchar] <col4>[minutes_distant]:[int] } <table15>[aircraft] { <col0>[aircraft_code]:[varchar] <col1>[aircraft_description]:[varchar] <col2>[manufacturer]:[varchar] <col3>[basic_type]:[varchar] <col4>[engines]:[int] <col5>[propulsion]:[varchar] <col6>[wide_body]:[varchar] <col7>[wing_span]:[int] <col8>[length]:[int] <col9>[weight]:[int] <col10>[capacity]:[int] <col11>[pay_load]:[int] <col12>[cruising_speed]:[int] <col13>[range_miles]:[int] <col14>[pressurized]:[varchar] } <table16>[city] { <col0>[city_code]:[varchar] <col1>[city_name]:[varchar] <col2>[state_code]:[varchar] <col3>[country_name]:[varchar] <col4>[time_zone_code]:[varchar] } <table17>[compartment_class] { <col0>[compartment]:[varchar] <col1>[class_type]:[varchar] } <table18>[airport] { <col0>[airport_code]:[varchar] <col1>[airport_name]:[text] <col2>[airport_location]:[text] <col3>[state_code]:[varchar] <col4>[country_name]:[varchar] <col5>[time_zone_code]:[varchar] <col6>[minimum_connect_time]:[int] } <table19>[days] { <col0>[days_code]:[varchar] <col1>[day_name]:[varchar] } <table20>[fare_basis] { <col0>[fare_basis_code]:[text] <col1>[booking_class]:[text] <col2>[class_type]:[text] <col3>[premium]:[text] <col4>[economy]:[text] <col5>[discounted]:[text] <col6>[night]:[text] <col7>[season]:[text] <col8>[basis_days]:[text] } <table21>[time_interval] { <col0>[period]:[text] <col1>[begin_time]:[int] <col2>[end_time]:[int] } <table22>[time_zone] { <col0>[time_zone_code]:[text] <col1>[time_zone_name]:[text] <col2>[hours_from_gmt]:[int] } <table23>[month] { <col0>[month_number]:[int] <col1>[month_name]:[text] } <table24>[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] } | SELECT DISTINCT fare.fare_id FROM `<table14>` AS AIRPORT_SERVICE_0, `<table14>` AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, flight, flight_fare WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BALTIMORE' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PHILADELPHIA' AND flight_fare.fare_id = fare.fare_id AND flight.flight_id = flight_fare.flight_id AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code | what is the cost for these flights from BALTIMORE to PHILADELPHIA
|
<table0>[microlab] { <col0>[microlabid]:[number] <col1>[patientunitstayid]:[number] <col2>[culturesite]:[text] <col3>[organism]:[text] <col4>[culturetakentime]:[time] } <table1>[lab] { <col0>[labid]:[number] <col1>[patientunitstayid]:[number] <col2>[labname]:[text] <col3>[labresult]:[number] <col4>[labresulttime]:[time] } <table2>[treatment] { <col0>[treatmentid]:[number] <col1>[patientunitstayid]:[number] <col2>[treatmentname]:[text] <col3>[treatmenttime]:[time] } <table3>[diagnosis] { <col0>[diagnosisid]:[number] <col1>[patientunitstayid]:[number] <col2>[diagnosisname]:[text] <col3>[diagnosistime]:[time] <col4>[icd9code]:[text] } <table4>[cost] { <col0>[costid]:[number] <col1>[uniquepid]:[text] <col2>[patienthealthsystemstayid]:[number] <col3>[eventtype]:[text] <col4>[eventid]:[number] <col5>[chargetime]:[time] } <table5>[patient] { <col0>[uniquepid]:[text] <col1>[patienthealthsystemstayid]:[number] <col2>[patientunitstayid]:[number] <col3>[gender]:[text] <col4>[age]:[text] <col5>[ethnicity]:[text] <col6>[hospitalid]:[number] <col7>[wardid]:[number] <col8>[admissionheight]:[number] <col9>[admissionweight]:[number] <col10>[dischargeweight]:[number] <col11>[hospitaladmittime]:[time] <col12>[hospitaladmitsource]:[text] <col13>[unitadmittime]:[time] <col14>[unitdischargetime]:[time] <col15>[hospitaldischargetime]:[time] <col16>[hospitaldischargestatus]:[text] } <table6>[intakeoutput] { <col0>[intakeoutputid]:[number] <col1>[patientunitstayid]:[number] <col2>[cellpath]:[text] <col3>[celllabel]:[text] <col4>[cellvaluenumeric]:[number] <col5>[intakeoutputtime]:[time] } <table7>[medication] { <col0>[medicationid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[text] <col3>[dosage]:[text] <col4>[routeadmin]:[text] <col5>[drugstarttime]:[time] <col6>[drugstoptime]:[time] } <table8>[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>[observationtime]:[time] } <table9>[allergy] { <col0>[allergyid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[text] <col3>[allergyname]:[text] <col4>[allergytime]:[time] } | SELECT `<table6>`.`<table6>`time FROM `<table6>` WHERE `<table6>`.`<table5>`unitstayid IN ( SELECT `<table5>`.`<table5>`unitstayid FROM `<table5>` WHERE `<table5>`.`<table5>`healthsystemstayid IN ( SELECT `<table5>`.`<table5>`healthsystemstayid FROM `<table5>` WHERE `<table5>`.uniquepid = '035-4428' ) ) AND `<table6>`.cellpath LIKE '%intake%' AND DATETIME( `<table6>`.`<table6>`time, 'start of year' ) = DATETIME( CURRENT_TIME( ), 'start of year', '-1 year' ) AND STRFTIME( '%m-%d', `<table6>`.`<table6>`time ) = '01-17' ORDER BY `<table6>`.`<table6>`time DESC LIMIT 1 | on 01/17/last year when patient 035-4428 received an intake for the last time?
|
<table0>[table_204_903] { <col0>[number]:[title] <col1>[text]:[character] <col2>[text]:[broadcaster] <col3>[text]:[episodes] <col4>[number]:[date] } | SELECT "broadcaster" FROM `<table0>` WHERE "episodes" = 1 GROUP BY "broadcaster" HAVING COUNT( * ) = 3 | which broadcaster hosted 3 titles but they had only 1 episode ?
|
<table0>[users] { <col0>[INT]:[country] <col1>[VARCHAR]:[255] } <table1>[posts] { <col0>[INT]:[user_id] <col1>[INT]:[likes] <col2>[INT]:[INSERT] } | SELECT SUM( `<table1>`.likes ) FROM ( SELECT user_id, SUM( likes ) as total_likes FROM `<table1>` GROUP BY user_id ORDER BY total_likes DESC LIMIT 5 ) as top_users JOIN `<table1>` ON top_users.user_id = `<table1>`.user_id; | What is the total number of likes on posts from the top 5 users with the most likes? |
<table0>[race] { <col0>[Race_ID]:[int] <col1>[text]:[Class] <col2>[text]:[Date] <col3>[text]:[Track_ID] } <table1>[track] { <col0>[Track_ID]:[int] <col1>[text]:[Location] <col2>[text]:[Seating] <col3>[real]:[Year_Opened] } | SELECT Class, COUNT( * ) FROM `<table0>` GROUP BY Class | Give me a bar chart for the total number of each class
|
<table0>[table_66428] { <col0>[Rank]:[real] <col1>[Lane]:[real] <col2>[text]:[Nationality] <col3>[text]:[Time] } | SELECT COUNT( "Rank" ) FROM `<table0>` WHERE "Name" = 'qi hui' | What is the Rank of Qi Hui?
|
<table0>[community_health_workers] { <col0>[INT]:[name] <col1>[VARCHAR]:[location] <col2>[VARCHAR]:[patients_served] <col3>[INT]:[INSERT] } | SELECT location, SUM( patients_served ) as total_patients FROM `<table0>` WHERE location = 'Urban' GROUP BY location; | What is the total number of patients served by community health workers in urban areas? |
<table0>[allergy] { <col0>[allergyid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[text] <col3>[allergyname]:[text] <col4>[allergytime]:[time] } <table1>[patient] { <col0>[uniquepid]:[text] <col1>[patienthealthsystemstayid]:[number] <col2>[patientunitstayid]:[number] <col3>[gender]:[text] <col4>[age]:[text] <col5>[ethnicity]:[text] <col6>[hospitalid]:[number] <col7>[wardid]:[number] <col8>[admissionheight]:[number] <col9>[admissionweight]:[number] <col10>[dischargeweight]:[number] <col11>[hospitaladmittime]:[time] <col12>[hospitaladmitsource]:[text] <col13>[unitadmittime]:[time] <col14>[unitdischargetime]:[time] <col15>[hospitaldischargetime]:[time] <col16>[hospitaldischargestatus]:[text] } <table2>[intakeoutput] { <col0>[intakeoutputid]:[number] <col1>[patientunitstayid]:[number] <col2>[cellpath]:[text] <col3>[celllabel]:[text] <col4>[cellvaluenumeric]:[number] <col5>[intakeoutputtime]:[time] } <table3>[cost] { <col0>[costid]:[number] <col1>[uniquepid]:[text] <col2>[patienthealthsystemstayid]:[number] <col3>[eventtype]:[text] <col4>[eventid]:[number] <col5>[chargetime]:[time] } <table4>[medication] { <col0>[medicationid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[text] <col3>[dosage]:[text] <col4>[routeadmin]:[text] <col5>[drugstarttime]:[time] <col6>[drugstoptime]:[time] } <table5>[lab] { <col0>[labid]:[number] <col1>[patientunitstayid]:[number] <col2>[labname]:[text] <col3>[labresult]:[number] <col4>[labresulttime]:[time] } <table6>[treatment] { <col0>[treatmentid]:[number] <col1>[patientunitstayid]:[number] <col2>[treatmentname]:[text] <col3>[treatmenttime]:[time] } <table7>[microlab] { <col0>[microlabid]:[number] <col1>[patientunitstayid]:[number] <col2>[culturesite]:[text] <col3>[organism]:[text] <col4>[culturetakentime]:[time] } <table8>[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>[observationtime]:[time] } <table9>[diagnosis] { <col0>[diagnosisid]:[number] <col1>[patientunitstayid]:[number] <col2>[diagnosisname]:[text] <col3>[diagnosistime]:[time] <col4>[icd9code]:[text] } | SELECT t3.`<table6>`name FROM ( SELECT t2.`<table6>`name, DENSE_RANK( ) OVER ( ORDER BY COUNT( * ) DESC ) AS c1 FROM ( SELECT patient.uniquepid, `<table6>`.`<table6>`time FROM `<table6>` JOIN patient ON `<table6>`.patientunitstayid = patient.patientunitstayid WHERE `<table6>`.`<table6>`name = 'neurosurgery consultation' AND DATETIME( `<table6>`.`<table6>`time, 'start of year' ) = DATETIME( CURRENT_TIME( ), 'start of year', '-1 year' ) ) AS t1 JOIN ( SELECT patient.uniquepid, `<table6>`.`<table6>`name, `<table6>`.`<table6>`time FROM `<table6>` JOIN patient ON `<table6>`.patientunitstayid = patient.patientunitstayid WHERE DATETIME( `<table6>`.`<table6>`time, 'start of year' ) = DATETIME( CURRENT_TIME( ), 'start of year', '-1 year' ) ) AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.`<table6>`time < t2.`<table6>`time AND DATETIME( t1.`<table6>`time, 'start of month' ) = DATETIME( t2.`<table6>`time, 'start of month' ) GROUP BY t2.`<table6>`name ) AS t3 WHERE t3.c1 <= 5 | what is the top five most common procedures that followed during the same month for patients who received neurosurgery consultation during the previous year?
|
<table0>[heritage_sites] { <col0>[INT]:[name] <col1>[VARCHAR]:[location] <col2>[VARCHAR]:[type] <col3>[VARCHAR]:[INSERT] } | SELECT COUNT( * ) FROM heritage_sites; | How many heritage sites are in the 'heritage_sites' table? |
<table0>[table_8739] { <col0>[Outcome]:[text] <col1>[Year]:[real] <col2>[Championship]:[text] <col3>[Surface]:[text] <col4>[Partner]:[text] <col5>[Opponents]:[final] <col6>[text]:[Score] <col7>[final]:[text] } | SELECT "Surface" FROM `<table0>` WHERE "Opponents in final" = 'gigi fernández robin white' | What is Surface, when Opponents, when Final is 'Gigi Fern ndez Robin White'?
|
<table0>[table_name_39] { <col0>[label]:[VARCHAR] <col1>[format]:[VARCHAR] <col2>[edition_s]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "digital download" AND edition_s_ = "bonus tracks version" | Tell me the label for digital download for bonus tracks version |
<table0>[energy_efficiency_stats] { <col0>[building_type]:[VARCHAR] <col1>[255]:[area] <col2>[VARCHAR]:[255] <col3>[energy_efficiency]:[FLOAT] } | SELECT AVG( `<col3>` ) FROM `<table0>` WHERE `<col0>` = 'Residential' AND area = 'Urban'; | What is the average energy efficiency of residential buildings in the 'Urban' area? |
<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>[VoteTypes] { <col0>[number]:[text] } <table2>[ReviewTaskStates] { <col0>[number]:[text] <col1>[Description]:[text] } <table3>[Tags] { <col0>[number]:[TagName] <col1>[text]:[Count] <col2>[number]:[ExcerptPostId] <col3>[number]:[WikiPostId] } <table4>[PostTypes] { <col0>[number]:[text] } <table5>[PostHistoryTypes] { <col0>[number]:[text] } <table6>[Posts] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } <table7>[ReviewRejectionReasons] { <col0>[number]:[text] <col1>[Description]:[text] <col2>[PostTypeId]:[number] } <table8>[PostNoticeTypes] { <col0>[number]:[ClassId] <col1>[number]:[text] <col2>[Body]:[text] <col3>[IsHidden]:[boolean] <col4>[Predefined]:[boolean] <col5>[PostNoticeDurationId]:[number] } <table9>[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] } <table10>[PostLinks] { <col0>[number]:[CreationDate] <col1>[time]:[PostId] <col2>[number]:[RelatedPostId] <col3>[number]:[LinkTypeId] } <table11>[ReviewTaskTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table12>[SuggestedEditVotes] { <col0>[number]:[SuggestedEditId] <col1>[number]:[UserId] <col2>[number]:[VoteTypeId] <col3>[number]:[CreationDate] <col4>[time]:[TargetUserId] <col5>[number]:[TargetRepChange] } <table13>[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] } <table14>[PostHistory] { <col0>[number]:[PostHistoryTypeId] <col1>[number]:[PostId] <col2>[number]:[RevisionGUID] <col3>[CreationDate]:[time] <col4>[UserId]:[number] <col5>[UserDisplayName]:[text] <col6>[Comment]:[text] <col7>[Text]:[text] <col8>[ContentLicense]:[text] } <table15>[PostsWithDeleted] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } <table16>[Votes] { <col0>[number]:[PostId] <col1>[number]:[VoteTypeId] <col2>[number]:[UserId] <col3>[number]:[CreationDate] <col4>[time]:[BountyAmount] } <table17>[ReviewTasks] { <col0>[number]:[ReviewTaskTypeId] <col1>[number]:[CreationDate] <col2>[time]:[DeletionDate] <col3>[time]:[ReviewTaskStateId] <col4>[number]:[PostId] <col5>[number]:[SuggestedEditId] <col6>[number]:[CompletedByReviewTaskId] } <table18>[Users] { <col0>[number]:[Reputation] <col1>[number]:[CreationDate] <col2>[time]:[DisplayName] <col3>[text]:[LastAccessDate] <col4>[time]:[WebsiteUrl] <col5>[text]:[Location] <col6>[text]:[AboutMe] <col7>[text]:[Views] <col8>[number]:[UpVotes] <col9>[number]:[DownVotes] <col10>[number]:[ProfileImageUrl] <col11>[text]:[EmailHash] <col12>[text]:[AccountId] } <table19>[PendingFlags] { <col0>[number]:[FlagTypeId] <col1>[number]:[PostId] <col2>[number]:[CreationDate] <col3>[time]:[CloseReasonTypeId] <col4>[number]:[CloseAsOffTopicReasonTypeId] <col5>[number]:[DuplicateOfQuestionId] <col6>[number]:[BelongsOnBaseHostAddress] } <table20>[ReviewTaskResults] { <col0>[number]:[ReviewTaskId] <col1>[number]:[ReviewTaskResultTypeId] <col2>[number]:[CreationDate] <col3>[time]:[RejectionReasonId] <col4>[number]:[Comment] } <table21>[Badges] { <col0>[number]:[UserId] <col1>[number]:[text] <col2>[Date]:[time] <col3>[Class]:[number] <col4>[TagBased]:[boolean] } <table22>[Comments] { <col0>[number]:[PostId] <col1>[number]:[Score] <col2>[number]:[Text] <col3>[text]:[CreationDate] <col4>[time]:[UserDisplayName] <col5>[text]:[UserId] <col6>[number]:[ContentLicense] } <table23>[ReviewTaskResultTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table24>[FlagTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table25>[PostTags] { <col0>[PostId]:[number] <col1>[TagId]:[number] } <table26>[PostFeedback] { <col0>[number]:[PostId] <col1>[number]:[IsAnonymous] <col2>[boolean]:[VoteTypeId] <col3>[number]:[CreationDate] } <table27>[CloseReasonTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table28>[CloseAsOffTopicReasonTypes] { <col0>[number]:[IsUniversal] <col1>[boolean]:[InputTitle] <col2>[text]:[MarkdownInputGuidance] <col3>[text]:[MarkdownPostOwnerGuidance] <col4>[text]:[MarkdownPrivilegedUserGuidance] <col5>[text]:[MarkdownConcensusDescription] <col6>[text]:[CreationDate] <col7>[time]:[CreationModeratorId] <col8>[number]:[ApprovalDate] <col9>[time]:[ApprovalModeratorId] <col10>[number]:[DeactivationDate] <col11>[time]:[DeactivationModeratorId] } | SELECT ROW_NUMBER( ) OVER ( ORDER BY Reputation DESC ) AS "#", Id AS "user_link", Reputation FROM `<table18>` WHERE LOWER( Location ) LIKE '%united arab emirates%' ORDER BY Reputation DESC LIMIT 150 | Top 50 users from UAE. |
<table0>[table_name_25] { <col0>[position]:[VARCHAR] <col1>[crewe_alexandra_career]:[VARCHAR] <col2>[goals]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "1988–1990" AND `<col2>` = 31 | What is the position when the Crewe Alexandra career is 1988 1990, with 31 goals?
|
<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>[ReviewTaskResults] { <col0>[number]:[ReviewTaskId] <col1>[number]:[ReviewTaskResultTypeId] <col2>[number]:[CreationDate] <col3>[time]:[RejectionReasonId] <col4>[number]:[Comment] } <table2>[Comments] { <col0>[number]:[PostId] <col1>[number]:[Score] <col2>[number]:[Text] <col3>[text]:[CreationDate] <col4>[time]:[UserDisplayName] <col5>[text]:[UserId] <col6>[number]:[ContentLicense] } <table3>[CloseAsOffTopicReasonTypes] { <col0>[number]:[IsUniversal] <col1>[boolean]:[InputTitle] <col2>[text]:[MarkdownInputGuidance] <col3>[text]:[MarkdownPostOwnerGuidance] <col4>[text]:[MarkdownPrivilegedUserGuidance] <col5>[text]:[MarkdownConcensusDescription] <col6>[text]:[CreationDate] <col7>[time]:[CreationModeratorId] <col8>[number]:[ApprovalDate] <col9>[time]:[ApprovalModeratorId] <col10>[number]:[DeactivationDate] <col11>[time]:[DeactivationModeratorId] } <table4>[PendingFlags] { <col0>[number]:[FlagTypeId] <col1>[number]:[PostId] <col2>[number]:[CreationDate] <col3>[time]:[CloseReasonTypeId] <col4>[number]:[CloseAsOffTopicReasonTypeId] <col5>[number]:[DuplicateOfQuestionId] <col6>[number]:[BelongsOnBaseHostAddress] } <table5>[ReviewTaskTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table6>[PostHistoryTypes] { <col0>[number]:[text] } <table7>[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] } <table8>[PostTypes] { <col0>[number]:[text] } <table9>[Badges] { <col0>[number]:[UserId] <col1>[number]:[text] <col2>[Date]:[time] <col3>[Class]:[number] <col4>[TagBased]:[boolean] } <table10>[PostFeedback] { <col0>[number]:[PostId] <col1>[number]:[IsAnonymous] <col2>[boolean]:[VoteTypeId] <col3>[number]:[CreationDate] } <table11>[ReviewTasks] { <col0>[number]:[ReviewTaskTypeId] <col1>[number]:[CreationDate] <col2>[time]:[DeletionDate] <col3>[time]:[ReviewTaskStateId] <col4>[number]:[PostId] <col5>[number]:[SuggestedEditId] <col6>[number]:[CompletedByReviewTaskId] } <table12>[PostLinks] { <col0>[number]:[CreationDate] <col1>[time]:[PostId] <col2>[number]:[RelatedPostId] <col3>[number]:[LinkTypeId] } <table13>[PostHistory] { <col0>[number]:[PostHistoryTypeId] <col1>[number]:[PostId] <col2>[number]:[RevisionGUID] <col3>[CreationDate]:[time] <col4>[UserId]:[number] <col5>[UserDisplayName]:[text] <col6>[Comment]:[text] <col7>[Text]:[text] <col8>[ContentLicense]:[text] } <table14>[FlagTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table15>[VoteTypes] { <col0>[number]:[text] } <table16>[CloseReasonTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table17>[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] } <table18>[ReviewTaskStates] { <col0>[number]:[text] <col1>[Description]:[text] } <table19>[Posts] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } <table20>[PostTags] { <col0>[PostId]:[number] <col1>[TagId]:[number] } <table21>[ReviewTaskResultTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table22>[PostNoticeTypes] { <col0>[number]:[ClassId] <col1>[number]:[text] <col2>[Body]:[text] <col3>[IsHidden]:[boolean] <col4>[Predefined]:[boolean] <col5>[PostNoticeDurationId]:[number] } <table23>[ReviewRejectionReasons] { <col0>[number]:[text] <col1>[Description]:[text] <col2>[PostTypeId]:[number] } <table24>[Votes] { <col0>[number]:[PostId] <col1>[number]:[VoteTypeId] <col2>[number]:[UserId] <col3>[number]:[CreationDate] <col4>[time]:[BountyAmount] } <table25>[PostsWithDeleted] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } <table26>[SuggestedEditVotes] { <col0>[number]:[SuggestedEditId] <col1>[number]:[UserId] <col2>[number]:[VoteTypeId] <col3>[number]:[CreationDate] <col4>[time]:[TargetUserId] <col5>[number]:[TargetRepChange] } <table27>[Users] { <col0>[number]:[Reputation] <col1>[number]:[CreationDate] <col2>[time]:[DisplayName] <col3>[text]:[LastAccessDate] <col4>[time]:[WebsiteUrl] <col5>[text]:[Location] <col6>[text]:[AboutMe] <col7>[text]:[Views] <col8>[number]:[UpVotes] <col9>[number]:[DownVotes] <col10>[number]:[ProfileImageUrl] <col11>[text]:[EmailHash] <col12>[text]:[AccountId] } <table28>[Tags] { <col0>[number]:[TagName] <col1>[text]:[Count] <col2>[number]:[ExcerptPostId] <col3>[number]:[WikiPostId] } | SELECT * FROM `<table19>` WHERE PostTypeId = 1 AND Score >= 25 AND Tags LIKE ( '%##param##%' ) | Query answers by PostTypeId, Score and Subject Areas. |
<table0>[table_name_36] { <col0>[shoulder]:[VARCHAR] <col1>[length]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "57.85 ( 2.278 )" | What is the shoulder measurement of the gun with a length of 57.85 (2.278)? |
<table0>[table_10452] { <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 "Date" FROM `<table0>` WHERE "Home `<col2>` score" = '19.15 ( 129 )' | On what date did the home team score 19.15 (129)?
|
<table0>[Users] { <col0>[number]:[Reputation] <col1>[number]:[CreationDate] <col2>[time]:[DisplayName] <col3>[text]:[LastAccessDate] <col4>[time]:[WebsiteUrl] <col5>[text]:[Location] <col6>[text]:[AboutMe] <col7>[text]:[Views] <col8>[number]:[UpVotes] <col9>[number]:[DownVotes] <col10>[number]:[ProfileImageUrl] <col11>[text]:[EmailHash] <col12>[text]:[AccountId] } <table1>[Comments] { <col0>[number]:[PostId] <col1>[number]:[Score] <col2>[number]:[Text] <col3>[text]:[CreationDate] <col4>[time]:[UserDisplayName] <col5>[text]:[UserId] <col6>[number]:[ContentLicense] } <table2>[PostHistoryTypes] { <col0>[number]:[text] } <table3>[ReviewTaskStates] { <col0>[number]:[text] <col1>[Description]:[text] } <table4>[Tags] { <col0>[number]:[TagName] <col1>[text]:[Count] <col2>[number]:[ExcerptPostId] <col3>[number]:[WikiPostId] } <table5>[Votes] { <col0>[number]:[PostId] <col1>[number]:[VoteTypeId] <col2>[number]:[UserId] <col3>[number]:[CreationDate] <col4>[time]:[BountyAmount] } <table6>[ReviewTaskResults] { <col0>[number]:[ReviewTaskId] <col1>[number]:[ReviewTaskResultTypeId] <col2>[number]:[CreationDate] <col3>[time]:[RejectionReasonId] <col4>[number]:[Comment] } <table7>[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] } <table8>[VoteTypes] { <col0>[number]:[text] } <table9>[PostNoticeTypes] { <col0>[number]:[ClassId] <col1>[number]:[text] <col2>[Body]:[text] <col3>[IsHidden]:[boolean] <col4>[Predefined]:[boolean] <col5>[PostNoticeDurationId]:[number] } <table10>[PostFeedback] { <col0>[number]:[PostId] <col1>[number]:[IsAnonymous] <col2>[boolean]:[VoteTypeId] <col3>[number]:[CreationDate] } <table11>[Badges] { <col0>[number]:[UserId] <col1>[number]:[text] <col2>[Date]:[time] <col3>[Class]:[number] <col4>[TagBased]:[boolean] } <table12>[CloseReasonTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table13>[SuggestedEditVotes] { <col0>[number]:[SuggestedEditId] <col1>[number]:[UserId] <col2>[number]:[VoteTypeId] <col3>[number]:[CreationDate] <col4>[time]:[TargetUserId] <col5>[number]:[TargetRepChange] } <table14>[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] } <table15>[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] } <table16>[FlagTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table17>[PendingFlags] { <col0>[number]:[FlagTypeId] <col1>[number]:[PostId] <col2>[number]:[CreationDate] <col3>[time]:[CloseReasonTypeId] <col4>[number]:[CloseAsOffTopicReasonTypeId] <col5>[number]:[DuplicateOfQuestionId] <col6>[number]:[BelongsOnBaseHostAddress] } <table18>[PostTypes] { <col0>[number]:[text] } <table19>[PostLinks] { <col0>[number]:[CreationDate] <col1>[time]:[PostId] <col2>[number]:[RelatedPostId] <col3>[number]:[LinkTypeId] } <table20>[PostsWithDeleted] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } <table21>[PostHistory] { <col0>[number]:[PostHistoryTypeId] <col1>[number]:[PostId] <col2>[number]:[RevisionGUID] <col3>[CreationDate]:[time] <col4>[UserId]:[number] <col5>[UserDisplayName]:[text] <col6>[Comment]:[text] <col7>[Text]:[text] <col8>[ContentLicense]:[text] } <table22>[ReviewTaskTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table23>[ReviewTasks] { <col0>[number]:[ReviewTaskTypeId] <col1>[number]:[CreationDate] <col2>[time]:[DeletionDate] <col3>[time]:[ReviewTaskStateId] <col4>[number]:[PostId] <col5>[number]:[SuggestedEditId] <col6>[number]:[CompletedByReviewTaskId] } <table24>[PostTags] { <col0>[PostId]:[number] <col1>[TagId]:[number] } <table25>[ReviewRejectionReasons] { <col0>[number]:[text] <col1>[Description]:[text] <col2>[PostTypeId]:[number] } <table26>[ReviewTaskResultTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table27>[CloseAsOffTopicReasonTypes] { <col0>[number]:[IsUniversal] <col1>[boolean]:[InputTitle] <col2>[text]:[MarkdownInputGuidance] <col3>[text]:[MarkdownPostOwnerGuidance] <col4>[text]:[MarkdownPrivilegedUserGuidance] <col5>[text]:[MarkdownConcensusDescription] <col6>[text]:[CreationDate] <col7>[time]:[CreationModeratorId] <col8>[number]:[ApprovalDate] <col9>[time]:[ApprovalModeratorId] <col10>[number]:[DeactivationDate] <col11>[time]:[DeactivationModeratorId] } <table28>[Posts] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } | SELECT Id AS "post_link", Tags, Score, AnswerCount AS Answers FROM `<table28>` WHERE STR_POSITION( Tags, @tag ) > 0 AND LOWER( Title ) LIKE REPLACE( @tag, '-', ' ' ) + '%' AND ClosedDate IS NULL ORDER BY Score DESC | Posts tagged with tag that contain the tag as title prefix. |
<table0>[Rooms] { <col0>[RoomId]:[TEXT] <col1>[roomName]:[TEXT] <col2>[beds]:[INTEGER] <col3>[bedType]:[TEXT] <col4>[maxOccupancy]:[INTEGER] <col5>[basePrice]:[INTEGER] <col6>[decor]:[TEXT] } <table1>[Reservations] { <col0>[Code]:[INTEGER] <col1>[Room]:[TEXT] <col2>[CheckIn]:[TEXT] <col3>[CheckOut]:[TEXT] <col4>[Rate]:[REAL] <col5>[LastName]:[TEXT] <col6>[FirstName]:[TEXT] <col7>[Adults]:[INTEGER] <col8>[Kids]:[INTEGER] } | SELECT roomName, COUNT( roomName ) FROM `<table1>` AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE `<col6>` LIKE '%ROY%' GROUP BY roomName ORDER BY roomName | Find the number of the name of rooms booked by some customers whose first name contains ROY, and sort in ascending by the bar. |
<table0>[ReviewRejectionReasons] { <col0>[number]:[text] <col1>[Description]:[text] <col2>[PostTypeId]:[number] } <table1>[ReviewTaskTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table2>[PostHistoryTypes] { <col0>[number]:[text] } <table3>[ReviewTasks] { <col0>[number]:[ReviewTaskTypeId] <col1>[number]:[CreationDate] <col2>[time]:[DeletionDate] <col3>[time]:[ReviewTaskStateId] <col4>[number]:[PostId] <col5>[number]:[SuggestedEditId] <col6>[number]:[CompletedByReviewTaskId] } <table4>[Comments] { <col0>[number]:[PostId] <col1>[number]:[Score] <col2>[number]:[Text] <col3>[text]:[CreationDate] <col4>[time]:[UserDisplayName] <col5>[text]:[UserId] <col6>[number]:[ContentLicense] } <table5>[PostsWithDeleted] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } <table6>[Badges] { <col0>[number]:[UserId] <col1>[number]:[text] <col2>[Date]:[time] <col3>[Class]:[number] <col4>[TagBased]:[boolean] } <table7>[ReviewTaskStates] { <col0>[number]:[text] <col1>[Description]:[text] } <table8>[PostLinks] { <col0>[number]:[CreationDate] <col1>[time]:[PostId] <col2>[number]:[RelatedPostId] <col3>[number]:[LinkTypeId] } <table9>[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] } <table10>[Users] { <col0>[number]:[Reputation] <col1>[number]:[CreationDate] <col2>[time]:[DisplayName] <col3>[text]:[LastAccessDate] <col4>[time]:[WebsiteUrl] <col5>[text]:[Location] <col6>[text]:[AboutMe] <col7>[text]:[Views] <col8>[number]:[UpVotes] <col9>[number]:[DownVotes] <col10>[number]:[ProfileImageUrl] <col11>[text]:[EmailHash] <col12>[text]:[AccountId] } <table11>[PostHistory] { <col0>[number]:[PostHistoryTypeId] <col1>[number]:[PostId] <col2>[number]:[RevisionGUID] <col3>[CreationDate]:[time] <col4>[UserId]:[number] <col5>[UserDisplayName]:[text] <col6>[Comment]:[text] <col7>[Text]:[text] <col8>[ContentLicense]:[text] } <table12>[SuggestedEditVotes] { <col0>[number]:[SuggestedEditId] <col1>[number]:[UserId] <col2>[number]:[VoteTypeId] <col3>[number]:[CreationDate] <col4>[time]:[TargetUserId] <col5>[number]:[TargetRepChange] } <table13>[PendingFlags] { <col0>[number]:[FlagTypeId] <col1>[number]:[PostId] <col2>[number]:[CreationDate] <col3>[time]:[CloseReasonTypeId] <col4>[number]:[CloseAsOffTopicReasonTypeId] <col5>[number]:[DuplicateOfQuestionId] <col6>[number]:[BelongsOnBaseHostAddress] } <table14>[VoteTypes] { <col0>[number]:[text] } <table15>[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] } <table16>[CloseReasonTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table17>[PostNoticeTypes] { <col0>[number]:[ClassId] <col1>[number]:[text] <col2>[Body]:[text] <col3>[IsHidden]:[boolean] <col4>[Predefined]:[boolean] <col5>[PostNoticeDurationId]:[number] } <table18>[PostFeedback] { <col0>[number]:[PostId] <col1>[number]:[IsAnonymous] <col2>[boolean]:[VoteTypeId] <col3>[number]:[CreationDate] } <table19>[PostTags] { <col0>[PostId]:[number] <col1>[TagId]:[number] } <table20>[Posts] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } <table21>[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] } <table22>[PostTypes] { <col0>[number]:[text] } <table23>[ReviewTaskResultTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table24>[Votes] { <col0>[number]:[PostId] <col1>[number]:[VoteTypeId] <col2>[number]:[UserId] <col3>[number]:[CreationDate] <col4>[time]:[BountyAmount] } <table25>[CloseAsOffTopicReasonTypes] { <col0>[number]:[IsUniversal] <col1>[boolean]:[InputTitle] <col2>[text]:[MarkdownInputGuidance] <col3>[text]:[MarkdownPostOwnerGuidance] <col4>[text]:[MarkdownPrivilegedUserGuidance] <col5>[text]:[MarkdownConcensusDescription] <col6>[text]:[CreationDate] <col7>[time]:[CreationModeratorId] <col8>[number]:[ApprovalDate] <col9>[time]:[ApprovalModeratorId] <col10>[number]:[DeactivationDate] <col11>[time]:[DeactivationModeratorId] } <table26>[Tags] { <col0>[number]:[TagName] <col1>[text]:[Count] <col2>[number]:[ExcerptPostId] <col3>[number]:[WikiPostId] } <table27>[ReviewTaskResults] { <col0>[number]:[ReviewTaskId] <col1>[number]:[ReviewTaskResultTypeId] <col2>[number]:[CreationDate] <col3>[time]:[RejectionReasonId] <col4>[number]:[Comment] } <table28>[FlagTypes] { <col0>[number]:[text] <col1>[Description]:[text] } | SELECT COUNT( P.Id ) AS "Questions", COUNT( P2.Id ) AS "Unresolved", 10000 * COUNT( P2.Id ) / COUNT( P.Id ) / 100.0 AS "Percent", MIN( U.DisplayName ) AS "Who", MIN( U.Reputation ) AS "Rep", YEAR( MIN( U.CreationDate ) ) AS "Joined", YEAR( MIN( U.LastAccessDate ) ) AS "Last Seen" FROM `<table20>` AS P LEFT JOIN Users AS U ON P.OwnerUserId = U.Id LEFT JOIN `<table20>` AS P2 ON P.Id = P2.Id AND P2.AcceptedAnswerId IS NULL WHERE P.AnswerCount > 0 GROUP BY U.Id ORDER BY 'Unresolved' DESC, 'Percent' DESC | Unresolved questions with answers by user. |
<table0>[PostHistoryTypes] { <col0>[number]:[text] } <table1>[ReviewTaskResultTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table2>[ReviewTaskStates] { <col0>[number]:[text] <col1>[Description]:[text] } <table3>[CloseReasonTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table4>[PostLinks] { <col0>[number]:[CreationDate] <col1>[time]:[PostId] <col2>[number]:[RelatedPostId] <col3>[number]:[LinkTypeId] } <table5>[PostTags] { <col0>[PostId]:[number] <col1>[TagId]:[number] } <table6>[PostsWithDeleted] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } <table7>[FlagTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table8>[SuggestedEditVotes] { <col0>[number]:[SuggestedEditId] <col1>[number]:[UserId] <col2>[number]:[VoteTypeId] <col3>[number]:[CreationDate] <col4>[time]:[TargetUserId] <col5>[number]:[TargetRepChange] } <table9>[ReviewTaskResults] { <col0>[number]:[ReviewTaskId] <col1>[number]:[ReviewTaskResultTypeId] <col2>[number]:[CreationDate] <col3>[time]:[RejectionReasonId] <col4>[number]:[Comment] } <table10>[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] } <table11>[PendingFlags] { <col0>[number]:[FlagTypeId] <col1>[number]:[PostId] <col2>[number]:[CreationDate] <col3>[time]:[CloseReasonTypeId] <col4>[number]:[CloseAsOffTopicReasonTypeId] <col5>[number]:[DuplicateOfQuestionId] <col6>[number]:[BelongsOnBaseHostAddress] } <table12>[Comments] { <col0>[number]:[PostId] <col1>[number]:[Score] <col2>[number]:[Text] <col3>[text]:[CreationDate] <col4>[time]:[UserDisplayName] <col5>[text]:[UserId] <col6>[number]:[ContentLicense] } <table13>[ReviewRejectionReasons] { <col0>[number]:[text] <col1>[Description]:[text] <col2>[PostTypeId]:[number] } <table14>[PostFeedback] { <col0>[number]:[PostId] <col1>[number]:[IsAnonymous] <col2>[boolean]:[VoteTypeId] <col3>[number]:[CreationDate] } <table15>[Users] { <col0>[number]:[Reputation] <col1>[number]:[CreationDate] <col2>[time]:[DisplayName] <col3>[text]:[LastAccessDate] <col4>[time]:[WebsiteUrl] <col5>[text]:[Location] <col6>[text]:[AboutMe] <col7>[text]:[Views] <col8>[number]:[UpVotes] <col9>[number]:[DownVotes] <col10>[number]:[ProfileImageUrl] <col11>[text]:[EmailHash] <col12>[text]:[AccountId] } <table16>[PostNoticeTypes] { <col0>[number]:[ClassId] <col1>[number]:[text] <col2>[Body]:[text] <col3>[IsHidden]:[boolean] <col4>[Predefined]:[boolean] <col5>[PostNoticeDurationId]:[number] } <table17>[PostHistory] { <col0>[number]:[PostHistoryTypeId] <col1>[number]:[PostId] <col2>[number]:[RevisionGUID] <col3>[CreationDate]:[time] <col4>[UserId]:[number] <col5>[UserDisplayName]:[text] <col6>[Comment]:[text] <col7>[Text]:[text] <col8>[ContentLicense]:[text] } <table18>[Votes] { <col0>[number]:[PostId] <col1>[number]:[VoteTypeId] <col2>[number]:[UserId] <col3>[number]:[CreationDate] <col4>[time]:[BountyAmount] } <table19>[CloseAsOffTopicReasonTypes] { <col0>[number]:[IsUniversal] <col1>[boolean]:[InputTitle] <col2>[text]:[MarkdownInputGuidance] <col3>[text]:[MarkdownPostOwnerGuidance] <col4>[text]:[MarkdownPrivilegedUserGuidance] <col5>[text]:[MarkdownConcensusDescription] <col6>[text]:[CreationDate] <col7>[time]:[CreationModeratorId] <col8>[number]:[ApprovalDate] <col9>[time]:[ApprovalModeratorId] <col10>[number]:[DeactivationDate] <col11>[time]:[DeactivationModeratorId] } <table20>[Badges] { <col0>[number]:[UserId] <col1>[number]:[text] <col2>[Date]:[time] <col3>[Class]:[number] <col4>[TagBased]:[boolean] } <table21>[VoteTypes] { <col0>[number]:[text] } <table22>[ReviewTaskTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table23>[PostTypes] { <col0>[number]:[text] } <table24>[ReviewTasks] { <col0>[number]:[ReviewTaskTypeId] <col1>[number]:[CreationDate] <col2>[time]:[DeletionDate] <col3>[time]:[ReviewTaskStateId] <col4>[number]:[PostId] <col5>[number]:[SuggestedEditId] <col6>[number]:[CompletedByReviewTaskId] } <table25>[Posts] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } <table26>[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] } <table27>[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] } <table28>[Tags] { <col0>[number]:[TagName] <col1>[text]:[Count] <col2>[number]:[ExcerptPostId] <col3>[number]:[WikiPostId] } | SELECT T.TagName, COUNT( Pot.TagId ) AS TagCount, SUM( P.Score ) AS TagScore FROM `<table28>` AS T, Post`<table28>` AS Pot, Posts AS P, Users AS U, PostTypes AS Pt WHERE U.Id = P.OwnerUserId AND Pt.Id = P.PostTypeId AND ( u.Id = 548225 ) AND Pot.PostId = P.ParentId AND T.Id = Pot.TagId GROUP BY T.TagName ORDER BY COUNT( Pot.TagId ) DESC | My Tags by Post Count.
|
<table0>[microlab] { <col0>[microlabid]:[number] <col1>[patientunitstayid]:[number] <col2>[culturesite]:[text] <col3>[organism]:[text] <col4>[culturetakentime]:[time] } <table1>[patient] { <col0>[uniquepid]:[text] <col1>[patienthealthsystemstayid]:[number] <col2>[patientunitstayid]:[number] <col3>[gender]:[text] <col4>[age]:[text] <col5>[ethnicity]:[text] <col6>[hospitalid]:[number] <col7>[wardid]:[number] <col8>[admissionheight]:[number] <col9>[admissionweight]:[number] <col10>[dischargeweight]:[number] <col11>[hospitaladmittime]:[time] <col12>[hospitaladmitsource]:[text] <col13>[unitadmittime]:[time] <col14>[unitdischargetime]:[time] <col15>[hospitaldischargetime]:[time] <col16>[hospitaldischargestatus]:[text] } <table2>[diagnosis] { <col0>[diagnosisid]:[number] <col1>[patientunitstayid]:[number] <col2>[diagnosisname]:[text] <col3>[diagnosistime]:[time] <col4>[icd9code]:[text] } <table3>[intakeoutput] { <col0>[intakeoutputid]:[number] <col1>[patientunitstayid]:[number] <col2>[cellpath]:[text] <col3>[celllabel]:[text] <col4>[cellvaluenumeric]:[number] <col5>[intakeoutputtime]:[time] } <table4>[allergy] { <col0>[allergyid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[text] <col3>[allergyname]:[text] <col4>[allergytime]:[time] } <table5>[medication] { <col0>[medicationid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[text] <col3>[dosage]:[text] <col4>[routeadmin]:[text] <col5>[drugstarttime]:[time] <col6>[drugstoptime]:[time] } <table6>[treatment] { <col0>[treatmentid]:[number] <col1>[patientunitstayid]:[number] <col2>[treatmentname]:[text] <col3>[treatmenttime]:[time] } <table7>[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>[observationtime]:[time] } <table8>[cost] { <col0>[costid]:[number] <col1>[uniquepid]:[text] <col2>[patienthealthsystemstayid]:[number] <col3>[eventtype]:[text] <col4>[eventid]:[number] <col5>[chargetime]:[time] } <table9>[lab] { <col0>[labid]:[number] <col1>[patientunitstayid]:[number] <col2>[labname]:[text] <col3>[labresult]:[number] <col4>[labresulttime]:[time] } | SELECT t3.drugname FROM ( SELECT t2.drugname, DENSE_RANK( ) OVER ( ORDER BY COUNT( * ) DESC ) AS c1 FROM ( SELECT patient.uniquepid, `<table2>`.`<table2>`time FROM `<table2>` JOIN patient ON `<table2>`.patientunitstayid = patient.patientunitstayid WHERE `<table2>`.`<table2>`name = 'sepsis - severe' AND DATETIME( `<table2>`.`<table2>`time ) >= DATETIME( CURRENT_TIME( ), '-5 year' ) ) AS t1 JOIN ( SELECT patient.uniquepid, `<table5>`.drugname, `<table5>`.drugstarttime FROM `<table5>` JOIN patient ON `<table5>`.patientunitstayid = patient.patientunitstayid WHERE patient.age BETWEEN 40 AND 49 AND DATETIME( `<table5>`.drugstarttime ) >= DATETIME( CURRENT_TIME( ), '-5 year' ) ) AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.`<table2>`time < t2.drugstarttime AND DATETIME( t2.drugstarttime ) BETWEEN DATETIME( t1.`<table2>`time ) AND DATETIME( t1.`<table2>`time, '+2 month' ) GROUP BY t2.drugname ) AS t3 WHERE t3.c1 <= 4 | what is the four drug most frequently prescribed to the patients aged 40s within 2 months after they have been diagnosed with sepsis - severe since 5 years ago?
|
<table0>[table_name_70] { <col0>[city]:[VARCHAR] <col1>[date]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "october 26, 2007" | Which City has a Date on october 26, 2007
|
<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>[ethnicity]:[text] <col13>[expire_flag]:[text] <col14>[admission_location]:[text] <col15>[discharge_location]:[text] <col16>[diagnosis]:[text] <col17>[dod]:[text] <col18>[dob_year]:[text] <col19>[dod_year]:[text] <col20>[admittime]:[text] <col21>[dischtime]:[text] <col22>[admityear]:[text] } <table1>[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] } <table2>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table3>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table4>[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] } | SELECT COUNT( DISTINCT `<table0>`.subject_id ) FROM `<table0>` INNER JOIN diagnoses ON `<table0>`.hadm_id = diagnoses.hadm_id WHERE `<table0>`.marital_status = "WIDOWED" AND diagnoses.long_title = "Benign neoplasm of spinal meninges" | how many widowed patients had the diagnosis long title benign neoplasm of spinal meninges? |
<table0>[daily_oil_production] { <col0>[platform_id]:[INT] <col1>[production_date]:[DATE] <col2>[oil_production]:[FLOAT] } | SELECT `<col2>` FROM `<table0>` WHERE `<col0>` = 2 AND `<col1>` BETWEEN '2020-03-01' AND '2020-03-03'; | Find the daily oil production for platform 2 in March 2020 |
<table0>[mental_health_parity] { <col0>[state]:[VARCHAR] <col1>[violations]:[INT] } | SELECT state, SUM( `<col1>` ) FROM `<table0>` GROUP BY state; | What is the total number of mental health parity violations for each state? |
<table0>[table_name_46] { <col0>[record]:[VARCHAR] <col1>[game_site]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "raymond james stadium" | What is the record when the game was played at raymond james stadium? |
<table0>[table_name_37] { } | SELECT 2007 FROM `<table0>` WHERE 2003 = "85" | What is 2007, when 2003 is "85"? |
<table0>[table_62846] { <col0>[Peak]:[text] <col1>[Country]:[text] <col2>[Elevation]:[real] <col3>[Prominence]:[real] <col4>[Col]:[real] } | SELECT AVG( "Prominence ( m )" ) FROM `<table0>` WHERE "Col ( m )" = '350' | Which Prominence (m) has a Col (m) of 350?
|
<table0>[Spacecraft] { <col0>[SpacecraftID]:[INT] <col1>[VARCHAR]:[Manufacturer] <col2>[VARCHAR]:[Mass] } <table1>[SpaceMissions] { <col0>[MissionID]:[INT] <col1>[SpacecraftID]:[INT] <col2>[VARCHAR]:[LaunchDate] <col3>[DATE]:[INSERT] <col4>[Spacecraft]:[SpacecraftID] <col5>[Manufacturer]:[Mass] <col6>[VALUES]:[Voyager] <col7>[NASA]:[770] <col8>[Voyager]:[NASA] <col9>[770]:[INSERT] } | SELECT SUM( s.Mass ) FROM `<table0>` s INNER JOIN SpaceMissions sm ON s.`<table0>`ID = sm.`<table0>`ID WHERE sm.LaunchDate < '2010-01-01'; | What was the combined mass of spacecraft involved in space missions before 2010? |
<table0>[texas_energy] { <col0>[INT]:[source] <col1>[TEXT]:[generation] <col2>[FLOAT]:[INSERT] } | SELECT AVG( generation ) FROM `<table0>` WHERE source IN ( 'wind', 'solar' ); | What is the average energy generation from renewable sources in Texas? |
<table0>[warehouses] { <col0>[INT]:[capacity] } <table1>[inventory] { <col0>[INT]:[warehouse_id] <col1>[INT]:[pallets] <col2>[INT]:[INSERT] <col3>[warehouses]:[capacity] <col4>[VALUES]:[500] <col5>[250]:[1000] <col6>[750]:[INSERT] } | SELECT MAX( pallets ) as max_pallets FROM ( SELECT i.warehouse_id, SUM( i.pallets ) as pallets FROM `<table1>` i GROUP BY i.warehouse_id ) t; | What is the maximum number of pallets stored in a single warehouse? |
<table0>[repair_assignment] { <col0>[technician_id]:[number] <col1>[repair_id]:[number] <col2>[machine_id]:[number] } <table1>[technician] { <col0>[technician_id]:[number] <col1>[name]:[text] <col2>[team]:[text] <col3>[starting_year]:[number] <col4>[age]:[number] } <table2>[repair] { <col0>[repair_id]:[number] <col1>[name]:[text] <col2>[launch_date]:[text] <col3>[notes]:[text] } <table3>[machine] { <col0>[machine_id]:[number] <col1>[making_year]:[number] <col2>[class]:[text] <col3>[team]:[text] <col4>[machine_series]:[text] <col5>[value_points]:[number] <col6>[quality_rank]:[number] } | SELECT team, COUNT( * ) FROM `<table1>` GROUP BY `<col2>` | For each team, how many technicians are there?
|
<table0>[table_19716903_1] { <col0>[isolation]:[VARCHAR] <col1>[mountain_peak]:[VARCHAR] } | SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "Jack Mountain" | How many different isolation numbers does the Jack Mountain peak have?
|
<table0>[Apartment_Buildings] { <col0>[building_id]:[INTEGER] <col1>[building_short_name]:[CHAR] <col2>[building_full_name]:[VARCHAR] <col3>[building_description]:[VARCHAR] <col4>[255]:[building_address] <col5>[VARCHAR]:[255] <col6>[building_manager]:[VARCHAR] <col7>[building_phone]:[VARCHAR] } <table1>[Apartment_Facilities] { <col0>[apt_id]:[INTEGER] <col1>[facility_code]:[CHAR] } <table2>[View_Unit_Status] { <col0>[apt_id]:[INTEGER] <col1>[apt_booking_id]:[INTEGER] <col2>[status_date]:[DATETIME] <col3>[available_yn]:[BIT] } <table3>[Guests] { <col0>[guest_id]:[INTEGER] <col1>[gender_code]:[CHAR] <col2>[guest_first_name]:[VARCHAR] <col3>[guest_last_name]:[VARCHAR] <col4>[date_of_birth]:[DATETIME] } <table4>[Apartments] { <col0>[apt_id]:[INTEGER] <col1>[building_id]:[INTEGER] <col2>[apt_type_code]:[CHAR] <col3>[apt_number]:[CHAR] <col4>[bathroom_count]:[INTEGER] <col5>[bedroom_count]:[INTEGER] <col6>[room_count]:[CHAR] } <table5>[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] } | SELECT guest_first_name, COUNT( guest_first_name ) FROM `<table5>` AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id GROUP BY guest_first_name | Show the number of bookings for different guests and group by guest first name in a bar chart. |
<table0>[table_228973_9] { <col0>[title]:[VARCHAR] <col1>[original_air_date]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "February 4, 2003" | If the original air date is February 4, 2003, what is the episode title? |
<table0>[table_25724294_2] { <col0>[field_goals]:[INTEGER] <col1>[player]:[VARCHAR] } | SELECT MAX( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "Walter Rheinschild" | How many field goals did Walter Rheinschild have? |
<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>[Votes] { <col0>[number]:[PostId] <col1>[number]:[VoteTypeId] <col2>[number]:[UserId] <col3>[number]:[CreationDate] <col4>[time]:[BountyAmount] } <table2>[PostFeedback] { <col0>[number]:[PostId] <col1>[number]:[IsAnonymous] <col2>[boolean]:[VoteTypeId] <col3>[number]:[CreationDate] } <table3>[ReviewTasks] { <col0>[number]:[ReviewTaskTypeId] <col1>[number]:[CreationDate] <col2>[time]:[DeletionDate] <col3>[time]:[ReviewTaskStateId] <col4>[number]:[PostId] <col5>[number]:[SuggestedEditId] <col6>[number]:[CompletedByReviewTaskId] } <table4>[PostsWithDeleted] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } <table5>[SuggestedEditVotes] { <col0>[number]:[SuggestedEditId] <col1>[number]:[UserId] <col2>[number]:[VoteTypeId] <col3>[number]:[CreationDate] <col4>[time]:[TargetUserId] <col5>[number]:[TargetRepChange] } <table6>[PostTypes] { <col0>[number]:[text] } <table7>[CloseReasonTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table8>[ReviewTaskStates] { <col0>[number]:[text] <col1>[Description]:[text] } <table9>[Users] { <col0>[number]:[Reputation] <col1>[number]:[CreationDate] <col2>[time]:[DisplayName] <col3>[text]:[LastAccessDate] <col4>[time]:[WebsiteUrl] <col5>[text]:[Location] <col6>[text]:[AboutMe] <col7>[text]:[Views] <col8>[number]:[UpVotes] <col9>[number]:[DownVotes] <col10>[number]:[ProfileImageUrl] <col11>[text]:[EmailHash] <col12>[text]:[AccountId] } <table10>[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] } <table11>[FlagTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table12>[ReviewTaskResultTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table13>[PostHistory] { <col0>[number]:[PostHistoryTypeId] <col1>[number]:[PostId] <col2>[number]:[RevisionGUID] <col3>[CreationDate]:[time] <col4>[UserId]:[number] <col5>[UserDisplayName]:[text] <col6>[Comment]:[text] <col7>[Text]:[text] <col8>[ContentLicense]:[text] } <table14>[PostTags] { <col0>[PostId]:[number] <col1>[TagId]:[number] } <table15>[Badges] { <col0>[number]:[UserId] <col1>[number]:[text] <col2>[Date]:[time] <col3>[Class]:[number] <col4>[TagBased]:[boolean] } <table16>[ReviewTaskResults] { <col0>[number]:[ReviewTaskId] <col1>[number]:[ReviewTaskResultTypeId] <col2>[number]:[CreationDate] <col3>[time]:[RejectionReasonId] <col4>[number]:[Comment] } <table17>[PendingFlags] { <col0>[number]:[FlagTypeId] <col1>[number]:[PostId] <col2>[number]:[CreationDate] <col3>[time]:[CloseReasonTypeId] <col4>[number]:[CloseAsOffTopicReasonTypeId] <col5>[number]:[DuplicateOfQuestionId] <col6>[number]:[BelongsOnBaseHostAddress] } <table18>[PostNoticeTypes] { <col0>[number]:[ClassId] <col1>[number]:[text] <col2>[Body]:[text] <col3>[IsHidden]:[boolean] <col4>[Predefined]:[boolean] <col5>[PostNoticeDurationId]:[number] } <table19>[PostLinks] { <col0>[number]:[CreationDate] <col1>[time]:[PostId] <col2>[number]:[RelatedPostId] <col3>[number]:[LinkTypeId] } <table20>[Tags] { <col0>[number]:[TagName] <col1>[text]:[Count] <col2>[number]:[ExcerptPostId] <col3>[number]:[WikiPostId] } <table21>[CloseAsOffTopicReasonTypes] { <col0>[number]:[IsUniversal] <col1>[boolean]:[InputTitle] <col2>[text]:[MarkdownInputGuidance] <col3>[text]:[MarkdownPostOwnerGuidance] <col4>[text]:[MarkdownPrivilegedUserGuidance] <col5>[text]:[MarkdownConcensusDescription] <col6>[text]:[CreationDate] <col7>[time]:[CreationModeratorId] <col8>[number]:[ApprovalDate] <col9>[time]:[ApprovalModeratorId] <col10>[number]:[DeactivationDate] <col11>[time]:[DeactivationModeratorId] } <table22>[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] } <table23>[Comments] { <col0>[number]:[PostId] <col1>[number]:[Score] <col2>[number]:[Text] <col3>[text]:[CreationDate] <col4>[time]:[UserDisplayName] <col5>[text]:[UserId] <col6>[number]:[ContentLicense] } <table24>[Posts] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } <table25>[ReviewTaskTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table26>[PostHistoryTypes] { <col0>[number]:[text] } <table27>[ReviewRejectionReasons] { <col0>[number]:[text] <col1>[Description]:[text] <col2>[PostTypeId]:[number] } <table28>[VoteTypes] { <col0>[number]:[text] } | SELECT Id AS "user_link", Location, Reputation FROM `<table9>` WHERE AboutMe LIKE '%jesus%' OR AboutMe LIKE '%Jesus%' ORDER BY Reputation DESC | People with Jesus in their about me section. Yeah, what the name says |
<table0>[table_name_97] { <col0>[rank]:[INTEGER] <col1>[city]:[VARCHAR] } | SELECT AVG( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "mashhad" AND 1976 < 667770 | What is teh average rank of the city of mashhad, which had less than 667770 in 1976?
|
<table0>[Artifacts] { <col0>[INT]:[site] <col1>[VARCHAR]:[artifact_name] <col2>[VARCHAR]:[date_found] <col3>[DATE]:[description] <col4>[TEXT]:[analyzed_by] <col5>[VARCHAR]:[analyzed_date] <col6>[DATE]:[INSERT] } <table1>[Experts] { <col0>[INT]:[name] <col1>[VARCHAR]:[expertise] <col2>[VARCHAR]:[country] <col3>[VARCHAR]:[INSERT] } | SELECT SUM( a.artifact_count ) as total_artifacts, e.name as expert_name FROM ( SELECT analyzed_by, COUNT( id ) as artifact_count FROM `<table0>` WHERE analyzed_by IN ( SELECT name FROM `<table1>` WHERE expertise = 'Ceramics' ) GROUP BY analyzed_by ) a JOIN ( SELECT name, MAX( artifact_count ) as max_artifacts FROM ( SELECT analyzed_by, COUNT( id ) as artifact_count FROM `<table0>` WHERE analyzed_by IN ( SELECT name FROM `<table1>` WHERE expertise = 'Ceramics' ) GROUP BY analyzed_by ) b GROUP BY name ) c ON a.artifact_count = c.max_artifacts JOIN `<table1>` e ON a.analyzed_by = e.name; | What is the total number of artifacts analyzed by experts specializing in ceramics, and the name of the expert with the most analyzed artifacts? |
<table0>[table_61768] { <col0>[Outcome]:[text] <col1>[Date]:[real] <col2>[Championship]:[text] <col3>[Surface]:[text] <col4>[Opponent]:[text] <col5>[Score]:[text] } | SELECT "Surface" FROM `<table0>` WHERE "Date" > '1979' AND "Championship" = 'melbourne indoor, australia' AND "Score" = '2–6, 6–2, 6–2' | What was the surface later than 1979, for the Melbourne Indoor, Australia, and the score was 2 6, 6 2, 6 2?
|
<table0>[table_16040] { <col0>[Character]:[text] <col1>[1954]:[Broadway] <col2>[text]:[1955] <col3>[broadcast]:[text] <col4>[1960]:[broadcast] <col5>[text]:[1979] <col6>[Broadway]:[text] <col7>[1990]:[Broadway] <col8>[text]:[1991] <col9>[Broadway]:[text] <col10>[1998]:[Broadway] <col11>[text]:[1999] <col12>[Broadway]:[text] } | SELECT "1990 Broadway" FROM `<table0>` WHERE "1955 broadcast" = 'Tom Halloran' | Who played in the 1990 Broadway after Tom Halloran played the character in the 1955 Broadcast? |
<table0>[departments] { <col0>[DEPARTMENT_ID]:[decimal] <col1>[DEPARTMENT_NAME]:[varchar] <col2>[MANAGER_ID]:[decimal] <col3>[LOCATION_ID]:[decimal] } <table1>[jobs] { <col0>[JOB_ID]:[varchar] <col1>[JOB_TITLE]:[varchar] <col2>[MIN_SALARY]:[decimal] <col3>[MAX_SALARY]:[decimal] } <table2>[job_history] { <col0>[EMPLOYEE_ID]:[decimal] <col1>[START_DATE]:[date] <col2>[END_DATE]:[date] <col3>[JOB_ID]:[varchar] <col4>[DEPARTMENT_ID]:[decimal] } <table3>[countries] { <col0>[COUNTRY_ID]:[varchar] <col1>[COUNTRY_NAME]:[varchar] <col2>[REGION_ID]:[decimal] } <table4>[locations] { <col0>[LOCATION_ID]:[decimal] <col1>[STREET_ADDRESS]:[varchar] <col2>[POSTAL_CODE]:[varchar] <col3>[CITY]:[varchar] <col4>[STATE_PROVINCE]:[varchar] <col5>[COUNTRY_ID]:[varchar] } <table5>[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_ID]:[decimal] } <table6>[regions] { <col0>[REGION_ID]:[decimal] <col1>[REGION_NAME]:[varchar] } | SELECT HIRE_DATE, `<col7>` FROM `<table5>` WHERE `<col5>` < '2002-06-21' ORDER BY `<col5>` DESC | For those employees who was hired before 2002-06-21, draw a line chart about the change of salary over hire_date , and show from high to low by the HIRE_DATE. |
<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]:[decimal] } <table2>[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_ID]:[decimal] } <table3>[departments] { <col0>[DEPARTMENT_ID]:[decimal] <col1>[DEPARTMENT_NAME]:[varchar] <col2>[MANAGER_ID]:[decimal] <col3>[LOCATION_ID]:[decimal] } <table4>[job_history] { <col0>[EMPLOYEE_ID]:[decimal] <col1>[START_DATE]:[date] <col2>[END_DATE]:[date] <col3>[JOB_ID]:[varchar] <col4>[DEPARTMENT_ID]:[decimal] } <table5>[regions] { <col0>[REGION_ID]:[decimal] <col1>[REGION_NAME]:[varchar] } <table6>[countries] { <col0>[COUNTRY_ID]:[varchar] <col1>[COUNTRY_NAME]:[varchar] <col2>[REGION_ID]:[decimal] } | SELECT HIRE_DATE, AVG( `<col9>` ) FROM `<table2>` WHERE `<col5>` < '2002-06-21' | For those employees who was hired before 2002-06-21, give me the comparison about the average of manager_id over the hire_date bin hire_date by time. |
<table0>[table_name_48] { <col0>[crowd]:[VARCHAR] <col1>[score]:[VARCHAR] } | SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "97-80" | How many were in the crowd when the score was 97-80?
|
<table0>[table_name_54] { <col0>[director_s]:[VARCHAR] <col1>[recipient]:[VARCHAR] } | SELECT director_s_ FROM `<table0>` WHERE `<col1>` = "redbag pictures ltd" | Who was the director that had a recipient of Redbag Pictures Ltd? |
<table0>[visitor_statistics] { <col0>[INT]:[PRIMARY] <col1>[KEY]:[country] <col2>[VARCHAR]:[year] <col3>[INT]:[month] <col4>[INT]:[visitors] } | CREATE VIEW `<table0>`_by_month AS SELECT country, year, month, SUM( visitors ) AS total_visitors FROM `<table0>` GROUP BY country, year, month; | Create a view for the international visitor statistics by month |
<table0>[lab] { <col0>[labid]:[number] <col1>[patientunitstayid]:[number] <col2>[labname]:[text] <col3>[labresult]:[number] <col4>[labresulttime]:[time] } <table1>[patient] { <col0>[uniquepid]:[text] <col1>[patienthealthsystemstayid]:[number] <col2>[patientunitstayid]:[number] <col3>[gender]:[text] <col4>[age]:[text] <col5>[ethnicity]:[text] <col6>[hospitalid]:[number] <col7>[wardid]:[number] <col8>[admissionheight]:[number] <col9>[admissionweight]:[number] <col10>[dischargeweight]:[number] <col11>[hospitaladmittime]:[time] <col12>[hospitaladmitsource]:[text] <col13>[unitadmittime]:[time] <col14>[unitdischargetime]:[time] <col15>[hospitaldischargetime]:[time] <col16>[hospitaldischargestatus]:[text] } <table2>[cost] { <col0>[costid]:[number] <col1>[uniquepid]:[text] <col2>[patienthealthsystemstayid]:[number] <col3>[eventtype]:[text] <col4>[eventid]:[number] <col5>[chargetime]:[time] } <table3>[allergy] { <col0>[allergyid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[text] <col3>[allergyname]:[text] <col4>[allergytime]:[time] } <table4>[intakeoutput] { <col0>[intakeoutputid]:[number] <col1>[patientunitstayid]:[number] <col2>[cellpath]:[text] <col3>[celllabel]:[text] <col4>[cellvaluenumeric]:[number] <col5>[intakeoutputtime]:[time] } <table5>[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>[observationtime]:[time] } <table6>[medication] { <col0>[medicationid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[text] <col3>[dosage]:[text] <col4>[routeadmin]:[text] <col5>[drugstarttime]:[time] <col6>[drugstoptime]:[time] } <table7>[diagnosis] { <col0>[diagnosisid]:[number] <col1>[patientunitstayid]:[number] <col2>[diagnosisname]:[text] <col3>[diagnosistime]:[time] <col4>[icd9code]:[text] } <table8>[microlab] { <col0>[microlabid]:[number] <col1>[patientunitstayid]:[number] <col2>[culturesite]:[text] <col3>[organism]:[text] <col4>[culturetakentime]:[time] } <table9>[treatment] { <col0>[treatmentid]:[number] <col1>[patientunitstayid]:[number] <col2>[treatmentname]:[text] <col3>[treatmenttime]:[time] } | SELECT COUNT( * ) FROM `<table4>` WHERE `<table4>`.`<table1>`unitstayid IN ( SELECT `<table1>`.`<table1>`unitstayid FROM `<table1>` WHERE `<table1>`.`<table1>`healthsystemstayid IN ( SELECT `<table1>`.`<table1>`healthsystemstayid FROM `<table1>` WHERE `<table1>`.uniquepid = '030-42006' ) ) AND `<table4>`.cellpath LIKE '%output%' AND `<table4>`.celllabel = 'balance this exchange ( ml )' AND DATETIME( `<table4>`.`<table4>`time, 'start of month' ) = DATETIME( CURRENT_TIME( ), 'start of month', '-0 month' ) AND STRFTIME( '%d', `<table4>`.`<table4>`time ) = '26' | how many time did patient 030-42006 produce a balance this exchange (ml) output on this month/26? |
<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>[charttime]:[text] <col4>[flag]:[text] <col5>[value_unit]:[text] <col6>[label]:[text] <col7>[fluid]:[text] } <table2>[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>[ethnicity]:[text] <col13>[expire_flag]:[text] <col14>[admission_location]:[text] <col15>[discharge_location]:[text] <col16>[diagnosis]:[text] <col17>[dod]:[text] <col18>[dob_year]:[text] <col19>[dod_year]:[text] <col20>[admittime]:[text] <col21>[dischtime]:[text] <col22>[admityear]:[text] } <table3>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table4>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } | SELECT COUNT( DISTINCT `<table2>`.subject_id ) FROM `<table2>` WHERE `<table2>`.diagnosis = "SQUAMOUS CELL CARCINOMA ORAL TONGUE/SDA" AND `<table2>`.age < "54" | give me the number of patients whose primary disease is squamous cell carcinoma oral tongue/sda and age is less than 54?
|
<table0>[table_name_75] { <col0>[caps]:[INTEGER] <col1>[club_province]:[VARCHAR] <col2>[position]:[VARCHAR] } | SELECT AVG( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "meralomas" AND `<col2>` = "centre" | What is the average number of caps for Meralomas with positions of centre? |
<table0>[table_19764939_1] { <col0>[total]:[VARCHAR] <col1>[player]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "Jamie Carragher" | Name the total for jamie carragher
|
<table0>[mzjzjlb] { <col0>[HXPLC]:[number] <col1>[HZXM]:[text] <col2>[JLSJ]:[time] <col3>[JZJSSJ]:[time] <col4>[JZKSBM]:[text] <col5>[JZKSMC]:[text] <col6>[JZKSRQ]:[time] <col7>[JZLSH]:[text] <col8>[JZZDBM]:[text] <col9>[JZZDSM]:[text] <col10>[JZZTDM]:[number] <col11>[JZZTMC]:[text] <col12>[text]:[KLX] <col13>[number]:[MJZH] <col14>[text]:[number] <col15>[MZZYZDZZBM]:[text] <col16>[MZZYZDZZMC]:[text] <col17>[NLS]:[number] <col18>[NLY]:[number] <col19>[QTJZYSGH]:[text] <col20>[number]:[SSY] <col21>[number]:[SZY] <col22>[number]:[number] <col23>[TXBZ]:[number] <col24>[number]:[WDBZ] <col25>[number]:[number] <col26>[YLJGDM]:[text] <col27>[ZSEBZ]:[number] <col28>[ZZBZ]:[number] <col29>[ZZYSGH]:[text] } <table1>[hz_info] { <col0>[text]:[KLX] <col1>[number]:[RYBH] <col2>[text]:[YLJGDM] } <table2>[mzjzjlb_jybgb] { <col0>[YLJGDM_MZJZJLB]:[text] <col1>[BGDH]:[number] <col2>[YLJGDM]:[number] } <table3>[jyjgzbb] { <col0>[BGDH]:[text] <col1>[BGRQ]:[time] <col2>[CKZFWDX]:[text] <col3>[CKZFWSX]:[number] <col4>[CKZFWXX]:[number] <col5>[JCFF]:[text] <col6>[JCRGH]:[text] <col7>[JCRXM]:[text] <col8>[JCXMMC]:[text] <col9>[JCZBDM]:[text] <col10>[JCZBJGDL]:[number] <col11>[JCZBJGDW]:[text] <col12>[JCZBJGDX]:[text] <col13>[JCZBMC]:[text] <col14>[JLDW]:[text] <col15>[JYRQ]:[time] <col16>[JYZBLSH]:[text] <col17>[SBBM]:[text] <col18>[SHRGH]:[text] <col19>[SHRXM]:[text] <col20>[YLJGDM]:[text] <col21>[YQBH]:[text] <col22>[YQMC]:[text] } <table4>[zyjzjlb] { <col0>[CYBQDM]:[text] <col1>[CYBQMC]:[text] <col2>[CYCWH]:[text] <col3>[CYKSDM]:[text] <col4>[CYKSMC]:[text] <col5>[CYSJ]:[time] <col6>[CYZTDM]:[number] <col7>[HZXM]:[text] <col8>[JZKSDM]:[text] <col9>[JZKSMC]:[text] <col10>[JZLSH]:[text] <col11>[text]:[KLX] <col12>[number]:[MZBMLX] <col13>[number]:[MZJZLSH] <col14>[text]:[MZZDBM] <col15>[text]:[MZZDMC] <col16>[text]:[MZZYZDZZBM] <col17>[text]:[RYCWH] <col18>[text]:[RYDJSJ] <col19>[time]:[RYSJ] <col20>[time]:[RYTJDM] <col21>[number]:[RYTJMC] <col22>[text]:[RZBQDM] <col23>[text]:[RZBQMC] <col24>[text]:[WDBZ] <col25>[number]:[YLJGDM] <col26>[text]:[ZYBMLX] <col27>[number]:[ZYZDBM] <col28>[text]:[ZYZDMC] <col29>[text]:[ZYZYZDZZBM] <col30>[text]:[ZYZYZDZZMC] } <table5>[jybgb] { <col0>[BBCJBW]:[text] <col1>[BBDM]:[text] <col2>[BBMC]:[text] <col3>[BBZT]:[number] <col4>[BGDH]:[text] <col5>[BGJGDM]:[text] <col6>[BGJGMC]:[text] <col7>[BGRGH]:[text] <col8>[BGRQ]:[time] <col9>[BGRXM]:[text] <col10>[BGSJ]:[time] <col11>[CJRQ]:[time] <col12>[JSBBRQSJ]:[time] <col13>[JSBBSJ]:[time] <col14>[JYBBH]:[text] <col15>[JYJGMC]:[text] <col16>[JYJSGH]:[text] <col17>[JYJSQM]:[text] <col18>[JYKSBM]:[text] <col19>[JYKSMC]:[text] <col20>[JYLX]:[number] <col21>[JYRQ]:[time] <col22>[JYSQJGMC]:[text] <col23>[JYXMDM]:[text] <col24>[JYXMMC]:[text] <col25>[JZLSH]:[text] <col26>[JZLSH_MZJZJLB]:[text] <col27>[JZLSH_ZYJZJLB]:[text] <col28>[JZLX]:[number] <col29>[KSBM]:[text] <col30>[KSMC]:[text] <col31>[SHRGH]:[text] <col32>[SHRXM]:[text] <col33>[SHSJ]:[time] <col34>[SQKS]:[text] <col35>[SQKSMC]:[text] <col36>[SQRGH]:[text] <col37>[SQRQ]:[time] <col38>[SQRXM]:[text] <col39>[YLJGDM]:[text] <col40>[YLJGDM_ZYJZJLB]:[text] } <table6>[person_info] { <col0>[CSD]:[text] <col1>[CSRQ]:[time] <col2>[GJDM]:[text] <col3>[GJMC]:[text] <col4>[JGDM]:[text] <col5>[JGMC]:[text] <col6>[MZDM]:[text] <col7>[MZMC]:[text] <col8>[RYBH]:[text] <col9>[XBDM]:[number] <col10>[XBMC]:[text] <col11>[XLDM]:[text] <col12>[XLMC]:[text] <col13>[text]:[ZYLBDM] <col14>[text]:[ZYMC] } | SELECT COUNT( * ) FROM `<table0>` WHERE `<table0>`.ZZYSGH = '21789346' AND `<table0>`.JZKSRQ BETWEEN '2006-07-08' AND '2008-09-02' | 在06年7月8日到08年9月2日内多少人是医生21789346看的门诊?
|
<table0>[d_items] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] <col3>[linksto]:[text] } <table1>[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] } <table2>[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]:[text] <col11>[ethnicity]:[text] <col12>[age]:[number] } <table3>[inputevents_cv] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[charttime]:[time] <col5>[itemid]:[number] } <table4>[procedures_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icd9_code]:[text] <col4>[charttime]:[time] } <table5>[icustays] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[first_careunit]:[text] <col5>[last_careunit]:[text] <col6>[first_wardid]:[number] <col7>[last_wardid]:[number] <col8>[intime]:[time] <col9>[outtime]:[time] } <table6>[prescriptions] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[startdate]:[time] <col4>[enddate]:[time] <col5>[drug]:[text] <col6>[dose_val_rx]:[text] <col7>[dose_unit_rx]:[text] <col8>[route]:[text] } <table7>[microbiologyevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[charttime]:[time] <col4>[spec_type_desc]:[text] <col5>[org_name]:[text] } <table8>[d_labitems] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] } <table9>[transfers] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[eventtype]:[text] <col5>[careunit]:[text] <col6>[wardid]:[number] <col7>[intime]:[time] <col8>[outtime]:[time] } <table10>[cost] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[event_type]:[text] <col4>[event_id]:[number] <col5>[chargetime]:[time] } <table11>[outputevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[charttime]:[time] <col5>[itemid]:[number] <col6>[value]:[number] } <table12>[patients] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[gender]:[text] <col3>[dob]:[time] <col4>[dod]:[time] } <table13>[diagnoses_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icd9_code]:[text] <col4>[charttime]:[time] } <table14>[labevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[itemid]:[number] <col4>[charttime]:[time] <col5>[valuenum]:[number] <col6>[valueuom]:[text] } <table15>[d_icd_procedures] { <col0>[row_id]:[number] <col1>[icd9_code]:[text] <col2>[short_title]:[text] <col3>[long_title]:[text] } <table16>[d_icd_diagnoses] { <col0>[row_id]:[number] <col1>[icd9_code]:[text] <col2>[short_title]:[text] <col3>[long_title]:[text] } | SELECT `<table6>`.startdate FROM `<table6>` WHERE `<table6>`.hadm_id IN ( SELECT `<table2>`.hadm_id FROM `<table2>` WHERE `<table2>`.subject_id = 25814 ) AND `<table6>`.route = 'ir' AND STRFTIME( '%y-%m', `<table6>`.startdate ) >= '2102-11' ORDER BY `<table6>`.startdate LIMIT 1 | when has patient 25814 been prescribed medication for the first time since 11/2102 via ir route?
|
<table0>[table_name_73] { <col0>[player]:[VARCHAR] <col1>[pos]:[VARCHAR] <col2>[previous_team]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "f" AND `<col2>` = "new york knicks" | What F Player was previously with the New York Knicks?
|
<table0>[table_10718984_2] { <col0>[original_air_date]:[VARCHAR] <col1>[no_in_season]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = 23 | When did the no. 23 show originally air?
|
<table0>[film] { <col0>[Film_ID]:[int] <col1>[Rank_in_series]:[int] <col2>[Number_in_season]:[int] <col3>[Title]:[text] <col4>[Directed_by]:[text] <col5>[Original_air_date]:[text] <col6>[Production_code]:[text] } <table1>[schedule] { <col0>[Cinema_ID]:[int] <col1>[Film_ID]:[int] <col2>[Date]:[text] <col3>[Show_times_per_day]:[int] <col4>[Price]:[float] } <table2>[cinema] { <col0>[Cinema_ID]:[int] <col1>[text]:[Openning_year] <col2>[int]:[Capacity] <col3>[int]:[Location] } | SELECT Openning_year, COUNT( Openning_year ) FROM `<table2>` GROUP BY Openning_year ORDER BY Openning_year DESC | Bar chart of how many openning year from each openning year, and could you show in descending by the bars?
|
<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]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table2>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table3>[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>[ethnicity]:[text] <col13>[expire_flag]:[text] <col14>[admission_location]:[text] <col15>[discharge_location]:[text] <col16>[diagnosis]:[text] <col17>[dod]:[text] <col18>[dob_year]:[text] <col19>[dod_year]:[text] <col20>[admittime]:[text] <col21>[dischtime]:[text] <col22>[admityear]:[text] } <table4>[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] } | SELECT COUNT( DISTINCT `<table3>`.subject_id ) FROM `<table3>` INNER JOIN diagnoses ON `<table3>`.hadm_id = diagnoses.hadm_id WHERE `<table3>`.admission_type = "EMERGENCY" AND diagnoses.short_title = "Gastrointest hemorr NOS" | how many patients with admission type emergency had diagnoses titled gastrointest hemorr nos?
|
<table0>[jobs] { <col0>[job_id]:[int] <col1>[job_title]:[varchar] <col2>[description]:[varchar] <col3>[requirement]:[varchar] <col4>[city]:[varchar] <col5>[state]:[varchar] <col6>[country]:[varchar] <col7>[zip]:[int] } <table1>[instructor] { <col0>[instructor_id]:[int] <col1>[name]:[varchar] <col2>[uniqname]:[varchar] } <table2>[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_discussion]:[varchar] <col11>[has_lab]:[varchar] <col12>[has_projects]:[varchar] <col13>[has_exams]:[varchar] <col14>[num_reviews]:[int] <col15>[clarity_score]:[int] <col16>[easiness_score]:[int] <col17>[helpfulness_score]:[int] } <table3>[comment_instructor] { <col0>[instructor_id]:[int] <col1>[student_id]:[int] <col2>[score]:[int] <col3>[comment_text]:[varchar] } <table4>[area] { <col0>[course_id]:[int] } <table5>[gsi] { <col0>[course_offering_id]:[int] <col1>[student_id]:[int] } <table6>[requirement] { <col0>[requirement_id]:[int] } <table7>[campus_job_id] { <col0>[int]:[student_id] <col1>[int]:[location] } <table8>[program_requirement] { <col0>[program_id]:[int] <col1>[category]:[varchar] <col2>[min_credit]:[int] <col3>[additional_req]:[varchar] } <table9>[semester] { <col0>[semester_id]:[int] } <table10>[course_offering] { <col0>[offering_id]:[int] <col1>[course_id]:[int] <col2>[semester]:[int] <col3>[section_number]:[int] <col4>[start_time]:[time] <col5>[end_time]:[time] <col6>[monday]:[varchar] <col7>[tuesday]:[varchar] <col8>[wednesday]:[varchar] <col9>[thursday]:[varchar] <col10>[friday]:[varchar] <col11>[saturday]:[varchar] <col12>[sunday]:[varchar] <col13>[has_final_project]:[varchar] <col14>[has_final_exam]:[varchar] <col15>[textbook]:[varchar] <col16>[class_address]:[varchar] <col17>[allow_audit]:[varchar] } <table11>[course_prerequisite] { <col0>[pre_course_id]:[int] <col1>[course_id]:[int] } <table12>[program_course] { <col0>[program_id]:[int] <col1>[course_id]:[int] <col2>[workload]:[int] <col3>[category]:[varchar] } <table13>[student_record] { <col0>[student_id]:[int] <col1>[course_id]:[int] <col2>[semester]:[int] <col3>[grade]:[varchar] <col4>[varchar]:[transfer_source] <col5>[varchar]:[earn_credit] <col6>[varchar]:[repeat_term] <col7>[varchar]:[test_id] } <table14>[offering_instructor] { <col0>[offering_instructor_id]:[int] <col1>[offering_id]:[int] <col2>[instructor_id]:[int] } <table15>[program] { <col0>[program_id]:[int] <col1>[name]:[varchar] <col2>[college]:[varchar] <col3>[introduction]:[varchar] } <table16>[student] { <col0>[student_id]:[int] <col1>[lastname]:[varchar] <col2>[firstname]:[varchar] <col3>[program_id]:[int] <col4>[declare_major]:[varchar] <col5>[total_credit]:[int] <col6>[total_gpa]:[float] <col7>[entered_as]:[varchar] <col8>[admit_term]:[int] <col9>[predicted_graduation_semester]:[int] <col10>[degree]:[varchar] <col11>[minor]:[varchar] <col12>[internship]:[varchar] } <table17>[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] <col9>[tough_tests]:[int] <col10>[heavy_papers]:[int] <col11>[cares_for_students]:[int] <col12>[heavy_assignments]:[int] <col13>[respected]:[int] <col14>[participation]:[int] <col15>[heavy_reading]:[int] <col16>[tough_grader]:[int] <col17>[hilarious]:[int] <col18>[would_take_again]:[int] <col19>[good_lecture]:[int] <col20>[no_skip]:[int] } | SELECT DISTINCT `<table2>`.name, `<table2>`.number, program_`<table2>`.workload FROM `<table2>`, program_`<table2>` WHERE `<table2>`.department = 'EECS' AND program_`<table2>`.`<table2>`_id = `<table2>`.`<table2>`_id AND program_`<table2>`.workload = ( SELECT MAX( PROGRAM_COURSEalias1.workload ) FROM `<table2>` AS COURSEalias1, program_`<table2>` AS PROGRAM_COURSEalias1 WHERE COURSEalias1.`<table2>`_id = PROGRAM_COURSEalias1.`<table2>`_id AND COURSEalias1.department = 'EECS' ) | What is the most challenging class ?
|
<table0>[sales] { <col0>[INT]:[item_id] <col1>[INT]:[price] <col2>[DECIMAL]:[category] <col3>[VARCHAR]:[255] } | SELECT SUM( price ) FROM `<table0>` WHERE category = 'ethical fashion'; | Show the total price of all items in the ethical fashion category |
<table0>[table_14570857_1] { <col0>[situation]:[VARCHAR] <col1>[original_us_airdate]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "December 5, 2007" | Which situation has an original u.s. airdate of December 5, 2007?
|
<table0>[machines] { <col0>[machine_id]:[INT] <col1>[type]:[TEXT] <col2>[schedule]:[TEXT] } <table1>[factories] { <col0>[factory_id]:[INT] <col1>[initiative]:[TEXT] } | SELECT `<table0>`.machine_id, `<table0>`.type, `<table0>`.schedule FROM `<table0>` LEFT JOIN factories ON `<table0>`.factory_id = factories.factory_id WHERE factories.initiative IS NULL; | Display the machine IDs, types, and maintenance schedules for machines in factories without industry 4.0 initiatives. |
<table0>[table_name_50] { <col0>[outcome]:[VARCHAR] <col1>[surface]:[VARCHAR] <col2>[score]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "clay" AND `<col2>` = "4–6, 7–5, 2–6" | Which outcome has a Surface of clay and a Score of 4–6, 7–5, 2–6? |
<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_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] <col11>[All_Neutral]:[text] } | SELECT ACC_Regular_Season, `<col0>` FROM `<table1>` ORDER BY `<col3>` | Show me team_id by acc regular season in a histogram, and sort by the bar in asc.
|
<table0>[table_name_22] { <col0>[uni_number]:[VARCHAR] <col1>[bats]:[VARCHAR] <col2>[surname]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "r" AND `<col2>` = "timms" | What's the Uni# of Timms, who has bats of R? |
<table0>[table_16268026_3] { <col0>[state]:[VARCHAR] <col1>[interview]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "8.313 ( 8 )" | What state has an interview of 8.313 (8) ?
|
<table0>[table_204_983] { <col0>[number]:[year] <col1>[number]:[1st] <col2>[venue]:[text] <col3>[2nd]:[venue] <col4>[text]:[3rd] <col5>[venue]:[text] <col6>[4th]:[venue] <col7>[text]:[5th] <col8>[venue]:[text] <col9>[6th]:[venue] } | SELECT "year" FROM `<table0>` WHERE "3rd venue" = ( SELECT "1st venue" FROM `<table0>` WHERE "year" = 2011 ) | in what year was the 3rd venue the same as 2011 's 1st venue ? |
<table0>[table_20772] { <col0>[Home]:[team] <col1>[text]:[Home] <col2>[team]:[score] <col3>[text]:[Away] <col4>[team]:[text] <col5>[Away]:[team] <col6>[score]:[text] <col7>[Ground]:[text] <col8>[Crowd]:[real] <col9>[Date]:[text] } | SELECT "Date" FROM `<table0>` WHERE "Home team" = 'Adelaide' | What date was Adelaide the home team?
|
<table0>[treatment] { <col0>[treatmentid]:[number] <col1>[patientunitstayid]:[number] <col2>[treatmentname]:[text] <col3>[treatmenttime]:[time] } <table1>[cost] { <col0>[costid]:[number] <col1>[uniquepid]:[text] <col2>[patienthealthsystemstayid]:[number] <col3>[eventtype]:[text] <col4>[eventid]:[number] <col5>[chargetime]:[time] } <table2>[patient] { <col0>[uniquepid]:[text] <col1>[patienthealthsystemstayid]:[number] <col2>[patientunitstayid]:[number] <col3>[gender]:[text] <col4>[age]:[text] <col5>[ethnicity]:[text] <col6>[hospitalid]:[number] <col7>[wardid]:[number] <col8>[admissionheight]:[number] <col9>[admissionweight]:[number] <col10>[dischargeweight]:[number] <col11>[hospitaladmittime]:[time] <col12>[hospitaladmitsource]:[text] <col13>[unitadmittime]:[time] <col14>[unitdischargetime]:[time] <col15>[hospitaldischargetime]:[time] <col16>[hospitaldischargestatus]:[text] } <table3>[diagnosis] { <col0>[diagnosisid]:[number] <col1>[patientunitstayid]:[number] <col2>[diagnosisname]:[text] <col3>[diagnosistime]:[time] <col4>[icd9code]:[text] } <table4>[microlab] { <col0>[microlabid]:[number] <col1>[patientunitstayid]:[number] <col2>[culturesite]:[text] <col3>[organism]:[text] <col4>[culturetakentime]:[time] } <table5>[medication] { <col0>[medicationid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[text] <col3>[dosage]:[text] <col4>[routeadmin]:[text] <col5>[drugstarttime]:[time] <col6>[drugstoptime]:[time] } <table6>[lab] { <col0>[labid]:[number] <col1>[patientunitstayid]:[number] <col2>[labname]:[text] <col3>[labresult]:[number] <col4>[labresulttime]:[time] } <table7>[intakeoutput] { <col0>[intakeoutputid]:[number] <col1>[patientunitstayid]:[number] <col2>[cellpath]:[text] <col3>[celllabel]:[text] <col4>[cellvaluenumeric]:[number] <col5>[intakeoutputtime]:[time] } <table8>[allergy] { <col0>[allergyid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[text] <col3>[allergyname]:[text] <col4>[allergytime]:[time] } <table9>[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>[observationtime]:[time] } | SELECT COUNT( DISTINCT t1.uniquepid ) FROM ( SELECT patient.uniquepid, `<table0>`.`<table0>`time, patient.patienthealthsystemstayid FROM `<table0>` JOIN patient ON `<table0>`.patientunitstayid = patient.patientunitstayid WHERE `<table0>`.`<table0>`name = 'beta blocker - esmolol' AND STRFTIME( '%y', `<table0>`.`<table0>`time ) >= '2105' ) AS t1 JOIN ( SELECT patient.uniquepid, `<table5>`.drugstarttime, patient.patienthealthsystemstayid FROM `<table5>` JOIN patient ON `<table5>`.patientunitstayid = patient.patientunitstayid WHERE `<table5>`.drugname = 'pantoprazole' AND STRFTIME( '%y', `<table5>`.drugstarttime ) >= '2105' ) AS t2 WHERE t1.`<table0>`time < t2.drugstarttime AND t1.patienthealthsystemstayid = t2.patienthealthsystemstayid | since 2105 how many patients were prescribed pantoprazole during the same hospital encounter after the procedure of beta blocker - esmolol.
|
<table0>[outputevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[charttime]:[time] <col5>[itemid]:[number] <col6>[value]:[number] } <table1>[prescriptions] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[startdate]:[time] <col4>[enddate]:[time] <col5>[drug]:[text] <col6>[dose_val_rx]:[text] <col7>[dose_unit_rx]:[text] <col8>[route]:[text] } <table2>[microbiologyevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[charttime]:[time] <col4>[spec_type_desc]:[text] <col5>[org_name]:[text] } <table3>[transfers] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[eventtype]:[text] <col5>[careunit]:[text] <col6>[wardid]:[number] <col7>[intime]:[time] <col8>[outtime]:[time] } <table4>[labevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[itemid]:[number] <col4>[charttime]:[time] <col5>[valuenum]:[number] <col6>[valueuom]:[text] } <table5>[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] } <table6>[d_icd_procedures] { <col0>[row_id]:[number] <col1>[icd9_code]:[text] <col2>[short_title]:[text] <col3>[long_title]:[text] } <table7>[d_items] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] <col3>[linksto]:[text] } <table8>[d_labitems] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] } <table9>[procedures_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icd9_code]:[text] <col4>[charttime]:[time] } <table10>[diagnoses_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icd9_code]:[text] <col4>[charttime]:[time] } <table11>[inputevents_cv] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[charttime]:[time] <col5>[itemid]:[number] } <table12>[icustays] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[first_careunit]:[text] <col5>[last_careunit]:[text] <col6>[first_wardid]:[number] <col7>[last_wardid]:[number] <col8>[intime]:[time] <col9>[outtime]:[time] } <table13>[cost] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[event_type]:[text] <col4>[event_id]:[number] <col5>[chargetime]:[time] } <table14>[patients] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[gender]:[text] <col3>[dob]:[time] <col4>[dod]:[time] } <table15>[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]:[text] <col11>[ethnicity]:[text] <col12>[age]:[number] } <table16>[d_icd_diagnoses] { <col0>[row_id]:[number] <col1>[icd9_code]:[text] <col2>[short_title]:[text] <col3>[long_title]:[text] } | SELECT `<table11>`.charttime FROM `<table11>` WHERE `<table11>`.icustay_id IN ( SELECT `<table12>`.icustay_id FROM `<table12>` WHERE `<table12>`.hadm_id IN ( SELECT `<table15>`.hadm_id FROM `<table15>` WHERE `<table15>`.subject_id = 8773 ) AND NOT `<table12>`.outtime IS NULL ORDER BY `<table12>`.intime LIMIT 1 ) AND `<table11>`.itemid IN ( SELECT `<table7>`.itemid FROM `<table7>` WHERE `<table7>`.label = '.9% normal saline' AND `<table7>`.linksto = '`<table11>`' ) ORDER BY `<table11>`.charttime LIMIT 1 | when did patient 8773 get the first intake of .9% normal saline on the first icu visit? |
<table0>[table_40392] { <col0>[School]:[year] <col1>[text]:[text] <col2>[text]:[text] <col3>[text]:[text] <col4>[text]:[text] <col5>[text]:[text] } | SELECT "03-04" FROM `<table0>` WHERE "95-96" = '337,660' | What is 03-04, when 95-96 is 337,660?
|
<table0>[Astronauts] { <col0>[INT]:[name] <col1>[VARCHAR]:[organization] } <table1>[Missions] { <col0>[INT]:[astronaut_id] <col1>[INT]:[company] <col2>[VARCHAR]:[mission_type] <col3>[VARCHAR]:[INSERT] <col4>[Astronauts]:[name] <col5>[organization]:[VALUES] <col6>[Alice]:[SpacePioneers] <col7>[Bob]:[SpacePioneers] <col8>[Charlie]:[SpacePioneers] } | SELECT a.name FROM `<table0>` a LEFT JOIN Missions m ON a.id = m.astronaut_id AND a.organization = m.company WHERE m.id IS NULL AND a.organization = 'SpacePioneers'; | Who are the astronauts that have not been on any mission for 'SpacePioneers'? |
<table0>[table_name_81] { <col0>[position]:[VARCHAR] <col1>[school_club_team]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "east carolina" | What's the position listed for the east carolina team? |
<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>[ethnicity]:[text] <col13>[expire_flag]:[text] <col14>[admission_location]:[text] <col15>[discharge_location]:[text] <col16>[diagnosis]:[text] <col17>[dod]:[text] <col18>[dob_year]:[text] <col19>[dod_year]:[text] <col20>[admittime]:[text] <col21>[dischtime]:[text] <col22>[admityear]:[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] { <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] } <table3>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table4>[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] } | SELECT `<table4>`.drug_type, `<table4>`.route FROM `<table4>` WHERE `<table4>`.formulary_drug_cd = "ISOS10" | what is drug type and drug route of drug code isos10? |
<table0>[crop] { <col0>[INTEGER]:[type] <col1>[TEXT]:[temperature] <col2>[FLOAT]:[humidity] <col3>[FLOAT]:[date] <col4>[DATE]:[region_id] } <table1>[region] { <col0>[INTEGER]:[name] } | SELECT r.name as region, c.type as `<table0>`, AVG( c.temperature ) as avg_temp, AVG( c.humidity ) as avg_hum FROM `<table0>` c INNER JOIN region r ON c.region_id = r.id WHERE c.date >= DATEADD( month, 0, DATEADD( day, DATEDIFF( day, 0, CURRENT_DATE ), 0 ) ) AND c.date < DATEADD( month, 1, DATEADD( day, DATEDIFF( day, 0, CURRENT_DATE ), 0 ) ) GROUP BY r.name, c.type; | What is the average temperature and humidity for each crop type in the current month, grouped by geographical regions? |
<table0>[table_70748] { <col0>[Year]:[real] <col1>[Catcher]:[text] <col2>[Baseman]:[text] <col3>[Second]:[Baseman] <col4>[text]:[Shortstop] <col5>[text]:[Baseman] <col6>[text]:[Rightfielder] <col7>[text]:[Centerfielder] <col8>[text]:[Leftfielder] <col9>[text]:[Starting] <col10>[Pitcher]:[text] } | SELECT "Shortstop" FROM `<table0>` WHERE "Catcher" = 'johnny roseboro' AND "Third Baseman" = 'jim lefebvre' AND "Second Baseman" = 'nate oliver' | What is the name of the shortstop when the Catcher was johnny roseboro, and a Third Baseman of jim lefebvre, and a Second Baseman of nate oliver?
|
<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]:[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>[ethnicity]:[text] <col13>[expire_flag]:[text] <col14>[admission_location]:[text] <col15>[discharge_location]:[text] <col16>[diagnosis]:[text] <col17>[dod]:[text] <col18>[dob_year]:[text] <col19>[dod_year]:[text] <col20>[admittime]:[text] <col21>[dischtime]:[text] <col22>[admityear]:[text] } <table2>[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] } <table3>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table4>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } | SELECT COUNT( DISTINCT `<table1>`.subject_id ) FROM `<table1>` WHERE `<table1>`.marital_status = "DIVORCED" AND `<table1>`.ethnicity = "BLACK/HAITIAN" | what is the number of patients whose marital status is divorced and ethnicity is black/haitian?
|
<table0>[table_name_46] { <col0>[centerfold_model]:[VARCHAR] } | SELECT 20 AS _questions FROM `<table0>` WHERE `<col0>` = "rachel jeán marteen" | Who was the 20 Questions section aimed at when Centerfold Model was Rachel Jeán Marteen? |
<table0>[table_name_27] { <col0>[born_died]:[VARCHAR] <col1>[name]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "maliq bushati" | What is Born-Died, when Name is Maliq Bushati? |
<table0>[LaborDisputes] { <col0>[DisputeID]:[INT] <col1>[Sector]:[VARCHAR] <col2>[Duration]:[INT] } | SELECT AVG( `<col2>` ) FROM `<table0>` WHERE `<col1>` = 'Transportation' AND `<col2>` > 30; | What is the average duration of labor disputes in the 'Transportation' sector that lasted more than 30 days? |
<table0>[flight] { <col0>[aircraft_code_sequence]:[text] <col1>[airline_code]:[varchar] } <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>[application]:[text] <col7>[no_discounts]:[text] } <table2>[code_description] { <col0>[code]:[varchar] <col1>[description]:[text] } <table3>[month] { <col0>[month_number]:[int] <col1>[month_name]:[text] } <table4>[airport] { <col0>[airport_code]:[varchar] <col1>[airport_name]:[text] <col2>[airport_location]:[text] <col3>[state_code]:[varchar] <col4>[country_name]:[varchar] <col5>[time_zone_code]:[varchar] <col6>[minimum_connect_time]:[int] } <table5>[fare_basis] { <col0>[fare_basis_code]:[text] <col1>[booking_class]:[text] <col2>[class_type]:[text] <col3>[premium]:[text] <col4>[economy]:[text] <col5>[discounted]:[text] <col6>[night]:[text] <col7>[season]:[text] <col8>[basis_days]:[text] } <table6>[dual_carrier] { <col0>[main_airline]:[varchar] <col1>[low_flight_number]:[int] <col2>[high_flight_number]:[int] <col3>[dual_airline]:[varchar] <col4>[service_name]:[text] } <table7>[compartment_class] { <col0>[compartment]:[varchar] <col1>[class_type]:[varchar] } <table8>[date_day] { <col0>[month_number]:[int] <col1>[day_number]:[int] <col2>[year]:[int] <col3>[day_name]:[varchar] } <table9>[class_of_service] { <col0>[booking_class]:[varchar] <col1>[rank]:[int] <col2>[class_description]:[text] } <table10>[ground_service] { <col0>[city_code]:[text] <col1>[airport_code]:[text] <col2>[transport_type]:[text] <col3>[ground_fare]:[int] } <table11>[state] { <col0>[state_code]:[text] <col1>[state_name]:[text] <col2>[country_name]:[text] } <table12>[airline] { <col0>[airline_code]:[varchar] <col1>[airline_name]:[text] <col2>[note]:[text] } <table13>[time_zone] { <col0>[time_zone_code]:[text] <col1>[time_zone_name]:[text] <col2>[hours_from_gmt]:[int] } <table14>[city] { <col0>[city_code]:[varchar] <col1>[city_name]:[varchar] <col2>[state_code]:[varchar] <col3>[country_name]:[varchar] <col4>[time_zone_code]:[varchar] } <table15>[equipment_sequence] { <col0>[aircraft_code_sequence]:[varchar] <col1>[aircraft_code]:[varchar] } <table16>[flight_fare] { <col0>[flight_id]:[int] <col1>[fare_id]:[int] } <table17>[time_interval] { <col0>[period]:[text] <col1>[begin_time]:[int] <col2>[end_time]:[int] } <table18>[days] { <col0>[days_code]:[varchar] <col1>[day_name]:[varchar] } <table19>[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]:[int] <col7>[round_trip_cost]:[int] <col8>[round_trip_required]:[varchar] } <table20>[airport_service] { <col0>[city_code]:[varchar] <col1>[airport_code]:[varchar] <col2>[miles_distant]:[int] <col3>[direction]:[varchar] <col4>[minutes_distant]:[int] } <table21>[flight_leg] { <col0>[flight_id]:[int] <col1>[leg_number]:[int] <col2>[leg_flight]:[int] } <table22>[food_service] { <col0>[meal_code]:[text] <col1>[meal_number]:[int] <col2>[compartment]:[text] <col3>[meal_description]:[varchar] } <table23>[aircraft] { <col0>[aircraft_code]:[varchar] <col1>[aircraft_description]:[varchar] <col2>[manufacturer]:[varchar] <col3>[basic_type]:[varchar] <col4>[engines]:[int] <col5>[propulsion]:[varchar] <col6>[wide_body]:[varchar] <col7>[wing_span]:[int] <col8>[length]:[int] <col9>[weight]:[int] <col10>[capacity]:[int] <col11>[pay_load]:[int] <col12>[cruising_speed]:[int] <col13>[range_miles]:[int] <col14>[pressurized]:[varchar] } <table24>[flight_stop] { <col0>[flight_id]:[int] <col1>[stop_number]:[int] <col2>[stop_days]:[text] <col3>[stop_airport]:[text] <col4>[arrival_time]:[int] <col5>[arrival_airline]:[text] <col6>[arrival_flight_number]:[int] <col7>[departure_time]:[int] <col8>[departure_airline]:[text] <col9>[departure_flight_number]:[int] <col10>[stop_time]:[int] } | SELECT DISTINCT flight.flight_id FROM `<table20>` AS AIRPORT_SERVICE_0, `<table20>` 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 = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ATLANTA' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code | i would like some information on flights leaving BOSTON to ATLANTA
|
<table0>[CREATE] { <col0>[SCHEMA]:[GreenEnergy] } <table1>[RenewableProjects] { <col0>[project_id]:[INT] <col1>[name]:[VARCHAR] <col2>[location]:[VARCHAR] <col3>[installed_capacity]:[FLOAT] } | SELECT SUM( installed_capacity ) FROM GreenEnergy.RenewableProjects; | What is the total installed capacity of renewable energy projects in the 'GreenEnergy' schema? |
<table0>[table_204_941] { <col0>[number]:[number] <col1>[date]:[text] <col2>[visitor]:[text] <col3>[score]:[text] <col4>[home]:[text] <col5>[record]:[text] } | SELECT COUNT( * ) FROM `<table0>` | how many games total are listed ?
|
<table0>[Purchases] { <col0>[purchase_transaction_id]:[INTEGER] <col1>[purchase_details]:[VARCHAR] } <table1>[Lots] { <col0>[lot_id]:[INTEGER] <col1>[investor_id]:[INTEGER] <col2>[lot_details]:[VARCHAR] } <table2>[Sales] { <col0>[sales_transaction_id]:[INTEGER] <col1>[sales_details]:[VARCHAR] } <table3>[Transactions] { <col0>[transaction_id]:[INTEGER] <col1>[investor_id]:[INTEGER] <col2>[transaction_type_code]:[VARCHAR] <col3>[date_of_transaction]:[DATETIME] <col4>[amount_of_transaction]:[DECIMAL] <col5>[share_count]:[VARCHAR] <col6>[other_details]:[VARCHAR] } <table4>[Investors] { <col0>[investor_id]:[INTEGER] <col1>[Investor_details]:[VARCHAR] } <table5>[Transactions_Lots] { <col0>[transaction_id]:[INTEGER] <col1>[lot_id]:[INTEGER] } <table6>[Ref_Transaction_Types] { <col0>[transaction_type_code]:[VARCHAR] <col1>[transaction_type_description]:[VARCHAR] } | SELECT Investor_details, COUNT( `<col1>` ) FROM `<table4>` GROUP BY `<col1>` ORDER BY `<col1>` DESC | Show all investor details, and count them by a bar chart, sort bars from high to low order please.
|
<table0>[CountryRegion] { <col0>[CountryRegionCode]:[text] <col1>[text]:[ModifiedDate] } <table1>[Culture] { <col0>[CultureID]:[text] <col1>[text]:[ModifiedDate] } <table2>[Currency] { <col0>[CurrencyCode]:[text] <col1>[text]:[ModifiedDate] } <table3>[CountryRegionCurrency] { <col0>[CountryRegionCode]:[text] <col1>[CurrencyCode]:[text] <col2>[ModifiedDate]:[datetime] } <table4>[Person] { <col0>[BusinessEntityID]:[integer] <col1>[PersonType]:[text] <col2>[NameStyle]:[integer] <col3>[Title]:[text] <col4>[FirstName]:[text] <col5>[MiddleName]:[text] <col6>[LastName]:[text] <col7>[Suffix]:[text] <col8>[EmailPromotion]:[integer] <col9>[AdditionalContactInfo]:[text] <col10>[Demographics]:[text] <col11>[rowguid]:[text] <col12>[ModifiedDate]:[datetime] } <table5>[BusinessEntityContact] { <col0>[BusinessEntityID]:[integer] <col1>[PersonID]:[integer] <col2>[ContactTypeID]:[integer] <col3>[rowguid]:[text] <col4>[ModifiedDate]:[datetime] } <table6>[EmailAddress] { <col0>[BusinessEntityID]:[integer] <col1>[EmailAddressID]:[integer] } <table7>[Employee] { <col0>[BusinessEntityID]:[integer] <col1>[NationalIDNumber]:[text] <col2>[LoginID]:[text] <col3>[OrganizationNode]:[text] <col4>[OrganizationLevel]:[integer] <col5>[JobTitle]:[text] <col6>[BirthDate]:[date] <col7>[MaritalStatus]:[text] <col8>[Gender]:[text] <col9>[HireDate]:[date] <col10>[SalariedFlag]:[integer] <col11>[VacationHours]:[integer] <col12>[SickLeaveHours]:[integer] <col13>[CurrentFlag]:[integer] <col14>[rowguid]:[text] <col15>[ModifiedDate]:[datetime] } <table8>[Password] { <col0>[BusinessEntityID]:[integer] <col1>[PasswordHash]:[text] <col2>[PasswordSalt]:[text] <col3>[rowguid]:[text] <col4>[ModifiedDate]:[datetime] } <table9>[PersonCreditCard] { <col0>[BusinessEntityID]:[integer] <col1>[CreditCardID]:[integer] <col2>[ModifiedDate]:[datetime] } <table10>[ProductCategory] { <col0>[ProductCategoryID]:[integer] <col1>[text]:[rowguid] <col2>[text]:[ModifiedDate] } <table11>[ProductDescription] { <col0>[ProductDescriptionID]:[integer] <col1>[Description]:[text] <col2>[rowguid]:[text] <col3>[ModifiedDate]:[datetime] } <table12>[ProductModel] { <col0>[ProductModelID]:[integer] <col1>[text]:[CatalogDescription] <col2>[text]:[Instructions] <col3>[text]:[rowguid] <col4>[text]:[ModifiedDate] } <table13>[ProductModelProductDescriptionCulture] { <col0>[ProductModelID]:[integer] <col1>[ProductDescriptionID]:[integer] <col2>[CultureID]:[text] <col3>[ModifiedDate]:[datetime] } <table14>[ProductPhoto] { <col0>[ProductPhotoID]:[integer] <col1>[ThumbNailPhoto]:[blob] <col2>[ThumbnailPhotoFileName]:[text] <col3>[LargePhoto]:[blob] <col4>[LargePhotoFileName]:[text] <col5>[ModifiedDate]:[datetime] } <table15>[ProductSubcategory] { <col0>[ProductSubcategoryID]:[integer] <col1>[ProductCategoryID]:[integer] <col2>[text]:[rowguid] <col3>[text]:[ModifiedDate] } <table16>[SalesReason] { <col0>[SalesReasonID]:[integer] <col1>[text]:[ReasonType] <col2>[text]:[ModifiedDate] } <table17>[SalesTerritory] { <col0>[TerritoryID]:[integer] <col1>[text]:[CountryRegionCode] <col2>[text]:[Group] <col3>[text]:[SalesYTD] <col4>[real]:[SalesLastYear] <col5>[real]:[CostYTD] <col6>[real]:[CostLastYear] <col7>[real]:[rowguid] <col8>[text]:[ModifiedDate] } <table18>[SalesPerson] { <col0>[BusinessEntityID]:[integer] <col1>[TerritoryID]:[integer] <col2>[SalesQuota]:[real] <col3>[Bonus]:[real] <col4>[CommissionPct]:[real] <col5>[SalesYTD]:[real] <col6>[SalesLastYear]:[real] <col7>[rowguid]:[text] <col8>[ModifiedDate]:[datetime] } <table19>[SalesPersonQuotaHistory] { <col0>[BusinessEntityID]:[integer] <col1>[QuotaDate]:[datetime] <col2>[SalesQuota]:[real] <col3>[rowguid]:[text] <col4>[ModifiedDate]:[datetime] } <table20>[SalesTerritoryHistory] { <col0>[BusinessEntityID]:[integer] <col1>[TerritoryID]:[integer] <col2>[StartDate]:[datetime] <col3>[EndDate]:[datetime] <col4>[rowguid]:[text] <col5>[ModifiedDate]:[datetime] } <table21>[ScrapReason] { <col0>[ScrapReasonID]:[integer] <col1>[text]:[ModifiedDate] } <table22>[Shift] { <col0>[ShiftID]:[integer] <col1>[text]:[StartTime] <col2>[text]:[EndTime] <col3>[text]:[ModifiedDate] } <table23>[ShipMethod] { <col0>[ShipMethodID]:[integer] <col1>[text]:[ShipBase] <col2>[real]:[ShipRate] <col3>[real]:[rowguid] <col4>[text]:[ModifiedDate] } <table24>[SpecialOffer] { <col0>[SpecialOfferID]:[integer] <col1>[Description]:[text] <col2>[DiscountPct]:[real] <col3>[Type]:[text] <col4>[Category]:[text] <col5>[StartDate]:[datetime] <col6>[EndDate]:[datetime] <col7>[MinQty]:[integer] <col8>[MaxQty]:[integer] <col9>[rowguid]:[text] <col10>[ModifiedDate]:[datetime] } <table25>[BusinessEntityAddress] { <col0>[BusinessEntityID]:[integer] <col1>[AddressID]:[integer] <col2>[AddressTypeID]:[integer] <col3>[rowguid]:[text] <col4>[ModifiedDate]:[datetime] } <table26>[SalesTaxRate] { <col0>[SalesTaxRateID]:[integer] <col1>[StateProvinceID]:[integer] <col2>[TaxType]:[integer] <col3>[TaxRate]:[real] <col4>[text]:[rowguid] <col5>[text]:[ModifiedDate] } <table27>[Store] { <col0>[BusinessEntityID]:[integer] <col1>[text]:[SalesPersonID] <col2>[integer]:[Demographics] <col3>[text]:[rowguid] <col4>[text]:[ModifiedDate] } <table28>[SalesOrderHeaderSalesReason] { <col0>[SalesOrderID]:[integer] <col1>[SalesReasonID]:[integer] <col2>[ModifiedDate]:[datetime] } <table29>[TransactionHistoryArchive] { <col0>[TransactionID]:[integer] <col1>[ProductID]:[integer] <col2>[ReferenceOrderID]:[integer] <col3>[ReferenceOrderLineID]:[integer] <col4>[TransactionDate]:[datetime] <col5>[TransactionType]:[text] <col6>[Quantity]:[integer] <col7>[ActualCost]:[real] <col8>[ModifiedDate]:[datetime] } <table30>[UnitMeasure] { <col0>[UnitMeasureCode]:[text] <col1>[text]:[ModifiedDate] } <table31>[ProductCostHistory] { <col0>[ProductID]:[integer] <col1>[StartDate]:[date] <col2>[EndDate]:[date] <col3>[StandardCost]:[real] <col4>[ModifiedDate]:[datetime] } <table32>[ProductDocument] { <col0>[ProductID]:[integer] <col1>[DocumentNode]:[text] <col2>[ModifiedDate]:[datetime] } <table33>[ProductInventory] { <col0>[ProductID]:[integer] <col1>[LocationID]:[integer] <col2>[Shelf]:[text] <col3>[Bin]:[integer] <col4>[Quantity]:[integer] <col5>[rowguid]:[text] <col6>[ModifiedDate]:[datetime] } <table34>[ProductProductPhoto] { <col0>[ProductID]:[integer] <col1>[ProductPhotoID]:[integer] <col2>[Primary]:[integer] <col3>[ModifiedDate]:[datetime] } <table35>[ProductReview] { <col0>[ProductReviewID]:[integer] <col1>[ProductID]:[integer] <col2>[ReviewerName]:[text] <col3>[ReviewDate]:[datetime] <col4>[EmailAddress]:[text] <col5>[Rating]:[integer] <col6>[Comments]:[text] <col7>[ModifiedDate]:[datetime] } <table36>[ShoppingCartItem] { <col0>[ShoppingCartItemID]:[integer] <col1>[ShoppingCartID]:[text] <col2>[Quantity]:[integer] <col3>[ProductID]:[integer] <col4>[DateCreated]:[datetime] <col5>[ModifiedDate]:[datetime] } <table37>[SpecialOfferProduct] { <col0>[SpecialOfferID]:[integer] <col1>[ProductID]:[integer] <col2>[rowguid]:[text] <col3>[ModifiedDate]:[datetime] } <table38>[SalesOrderDetail] { <col0>[SalesOrderID]:[integer] <col1>[SalesOrderDetailID]:[integer] <col2>[CarrierTrackingNumber]:[text] <col3>[OrderQty]:[integer] <col4>[ProductID]:[integer] <col5>[SpecialOfferID]:[integer] <col6>[UnitPrice]:[real] <col7>[UnitPriceDiscount]:[real] <col8>[LineTotal]:[real] <col9>[rowguid]:[text] <col10>[ModifiedDate]:[datetime] } <table39>[TransactionHistory] { <col0>[TransactionID]:[integer] <col1>[ProductID]:[integer] <col2>[ReferenceOrderID]:[integer] <col3>[ReferenceOrderLineID]:[integer] <col4>[TransactionDate]:[datetime] <col5>[TransactionType]:[text] <col6>[Quantity]:[integer] <col7>[ActualCost]:[real] <col8>[ModifiedDate]:[datetime] } <table40>[Vendor] { <col0>[BusinessEntityID]:[integer] <col1>[AccountNumber]:[text] <col2>[text]:[CreditRating] <col3>[integer]:[PreferredVendorStatus] <col4>[integer]:[ActiveFlag] <col5>[integer]:[PurchasingWebServiceURL] <col6>[text]:[ModifiedDate] } <table41>[ProductVendor] { <col0>[ProductID]:[integer] <col1>[BusinessEntityID]:[integer] <col2>[AverageLeadTime]:[integer] <col3>[StandardPrice]:[real] <col4>[LastReceiptCost]:[real] <col5>[LastReceiptDate]:[datetime] <col6>[MinOrderQty]:[integer] <col7>[MaxOrderQty]:[integer] <col8>[OnOrderQty]:[integer] <col9>[UnitMeasureCode]:[text] <col10>[ModifiedDate]:[datetime] } <table42>[PurchaseOrderHeader] { <col0>[PurchaseOrderID]:[integer] <col1>[RevisionNumber]:[integer] <col2>[Status]:[integer] <col3>[EmployeeID]:[integer] <col4>[VendorID]:[integer] <col5>[ShipMethodID]:[integer] <col6>[OrderDate]:[datetime] <col7>[ShipDate]:[datetime] <col8>[SubTotal]:[real] <col9>[TaxAmt]:[real] <col10>[Freight]:[real] <col11>[TotalDue]:[real] <col12>[ModifiedDate]:[datetime] } <table43>[PurchaseOrderDetail] { <col0>[PurchaseOrderID]:[integer] <col1>[PurchaseOrderDetailID]:[integer] <col2>[DueDate]:[datetime] <col3>[OrderQty]:[integer] <col4>[ProductID]:[integer] <col5>[UnitPrice]:[real] <col6>[LineTotal]:[real] <col7>[ReceivedQty]:[real] <col8>[RejectedQty]:[real] <col9>[StockedQty]:[real] <col10>[ModifiedDate]:[datetime] } <table44>[WorkOrder] { <col0>[WorkOrderID]:[integer] <col1>[ProductID]:[integer] <col2>[OrderQty]:[integer] <col3>[StockedQty]:[integer] <col4>[ScrappedQty]:[integer] <col5>[StartDate]:[datetime] <col6>[EndDate]:[datetime] <col7>[DueDate]:[datetime] <col8>[ScrapReasonID]:[integer] <col9>[ModifiedDate]:[datetime] } <table45>[WorkOrderRouting] { <col0>[WorkOrderID]:[integer] <col1>[ProductID]:[integer] <col2>[OperationSequence]:[integer] <col3>[LocationID]:[integer] <col4>[ScheduledStartDate]:[datetime] <col5>[ScheduledEndDate]:[datetime] <col6>[ActualStartDate]:[datetime] <col7>[ActualEndDate]:[datetime] <col8>[ActualResourceHrs]:[real] <col9>[PlannedCost]:[real] <col10>[ActualCost]:[real] <col11>[ModifiedDate]:[datetime] } <table46>[Customer] { <col0>[CustomerID]:[integer] <col1>[PersonID]:[integer] <col2>[StoreID]:[integer] <col3>[TerritoryID]:[integer] <col4>[AccountNumber]:[text] <col5>[rowguid]:[text] <col6>[ModifiedDate]:[datetime] } <table47>[ProductListPriceHistory] { <col0>[ProductID]:[integer] <col1>[StartDate]:[date] <col2>[EndDate]:[date] <col3>[ListPrice]:[real] <col4>[ModifiedDate]:[datetime] } <table48>[Address] { <col0>[AddressID]:[integer] <col1>[AddressLine1]:[text] <col2>[AddressLine2]:[text] <col3>[City]:[text] <col4>[StateProvinceID]:[integer] <col5>[PostalCode]:[text] <col6>[SpatialLocation]:[text] <col7>[rowguid]:[text] <col8>[ModifiedDate]:[datetime] } <table49>[AddressType] { <col0>[AddressTypeID]:[integer] <col1>[text]:[rowguid] <col2>[text]:[ModifiedDate] } <table50>[BillOfMaterials] { <col0>[BillOfMaterialsID]:[integer] <col1>[ProductAssemblyID]:[integer] <col2>[ComponentID]:[integer] <col3>[StartDate]:[datetime] <col4>[EndDate]:[datetime] <col5>[UnitMeasureCode]:[text] <col6>[BOMLevel]:[integer] <col7>[PerAssemblyQty]:[real] <col8>[ModifiedDate]:[datetime] } <table51>[BusinessEntity] { <col0>[BusinessEntityID]:[integer] <col1>[rowguid]:[text] <col2>[ModifiedDate]:[datetime] } <table52>[ContactType] { <col0>[ContactTypeID]:[integer] <col1>[text]:[ModifiedDate] } <table53>[CurrencyRate] { <col0>[CurrencyRateID]:[integer] <col1>[CurrencyRateDate]:[datetime] <col2>[FromCurrencyCode]:[text] <col3>[ToCurrencyCode]:[text] <col4>[AverageRate]:[real] <col5>[EndOfDayRate]:[real] <col6>[ModifiedDate]:[datetime] } <table54>[Department] { <col0>[DepartmentID]:[integer] <col1>[text]:[GroupName] <col2>[text]:[ModifiedDate] } <table55>[EmployeeDepartmentHistory] { <col0>[BusinessEntityID]:[integer] <col1>[DepartmentID]:[integer] <col2>[ShiftID]:[integer] <col3>[StartDate]:[date] <col4>[EndDate]:[date] <col5>[ModifiedDate]:[datetime] } <table56>[EmployeePayHistory] { <col0>[BusinessEntityID]:[integer] <col1>[RateChangeDate]:[datetime] <col2>[Rate]:[real] <col3>[PayFrequency]:[integer] <col4>[ModifiedDate]:[datetime] } <table57>[JobCandidate] { <col0>[JobCandidateID]:[integer] <col1>[BusinessEntityID]:[integer] <col2>[Resume]:[text] <col3>[ModifiedDate]:[datetime] } <table58>[Location] { <col0>[LocationID]:[integer] <col1>[text]:[CostRate] <col2>[real]:[Availability] <col3>[real]:[ModifiedDate] } <table59>[PhoneNumberType] { <col0>[PhoneNumberTypeID]:[integer] <col1>[text]:[ModifiedDate] } <table60>[Product] { <col0>[ProductID]:[integer] <col1>[text]:[ProductNumber] <col2>[text]:[MakeFlag] <col3>[integer]:[FinishedGoodsFlag] <col4>[integer]:[Color] <col5>[text]:[SafetyStockLevel] <col6>[integer]:[ReorderPoint] <col7>[integer]:[StandardCost] <col8>[real]:[ListPrice] <col9>[real]:[Size] <col10>[text]:[SizeUnitMeasureCode] <col11>[text]:[WeightUnitMeasureCode] <col12>[text]:[Weight] <col13>[real]:[DaysToManufacture] <col14>[integer]:[ProductLine] <col15>[text]:[Class] <col16>[text]:[Style] <col17>[text]:[ProductSubcategoryID] <col18>[integer]:[ProductModelID] <col19>[integer]:[SellStartDate] <col20>[datetime]:[SellEndDate] <col21>[datetime]:[DiscontinuedDate] <col22>[datetime]:[rowguid] <col23>[text]:[ModifiedDate] } <table61>[Document] { <col0>[DocumentNode]:[text] <col1>[DocumentLevel]:[integer] <col2>[Title]:[text] <col3>[Owner]:[integer] <col4>[FolderFlag]:[integer] <col5>[FileName]:[text] <col6>[FileExtension]:[text] <col7>[Revision]:[text] <col8>[ChangeNumber]:[integer] <col9>[Status]:[integer] <col10>[DocumentSummary]:[text] } <table62>[StateProvince] { <col0>[StateProvinceID]:[integer] <col1>[StateProvinceCode]:[text] <col2>[CountryRegionCode]:[text] <col3>[IsOnlyStateProvinceFlag]:[integer] <col4>[text]:[TerritoryID] <col5>[integer]:[rowguid] <col6>[text]:[ModifiedDate] } <table63>[CreditCard] { <col0>[CreditCardID]:[integer] <col1>[CardType]:[text] <col2>[CardNumber]:[text] <col3>[ExpMonth]:[integer] <col4>[ExpYear]:[integer] <col5>[ModifiedDate]:[datetime] } <table64>[SalesOrderHeader] { <col0>[SalesOrderID]:[integer] <col1>[RevisionNumber]:[integer] <col2>[OrderDate]:[datetime] <col3>[DueDate]:[datetime] <col4>[ShipDate]:[datetime] <col5>[Status]:[integer] <col6>[OnlineOrderFlag]:[integer] <col7>[SalesOrderNumber]:[text] <col8>[PurchaseOrderNumber]:[text] <col9>[AccountNumber]:[text] <col10>[CustomerID]:[integer] <col11>[SalesPersonID]:[integer] <col12>[TerritoryID]:[integer] <col13>[BillToAddressID]:[integer] <col14>[ShipToAddressID]:[integer] <col15>[ShipMethodID]:[integer] <col16>[CreditCardID]:[integer] <col17>[CreditCardApprovalCode]:[text] <col18>[CurrencyRateID]:[integer] <col19>[SubTotal]:[real] <col20>[TaxAmt]:[real] <col21>[Freight]:[real] <col22>[TotalDue]:[real] <col23>[Comment]:[text] <col24>[rowguid]:[text] <col25>[ModifiedDate]:[datetime] } | SELECT T2.EmailAddress FROM `<table4>` AS T1 INNER JOIN EmailAddress AS T2 ON T1.BusinessEntityID = T2.BusinessEntityID WHERE T1.EmailPromotion = 2 | Please list the e-mail addresses of all the employees who wish to receive e-mail promotions from Adventureworks and selected partners. |
<table0>[Ref_Transaction_Types] { <col0>[transaction_type_description]:[VARCHAR] <col1>[transaction_type_code]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "PUR" | Show the description of transaction type with code 'PUR'. |
<table0>[aircraft] { <col0>[aircraft_code]:[varchar] <col1>[aircraft_description]:[varchar] <col2>[manufacturer]:[varchar] <col3>[basic_type]:[varchar] <col4>[engines]:[int] <col5>[propulsion]:[varchar] <col6>[wide_body]:[varchar] <col7>[wing_span]:[int] <col8>[length]:[int] <col9>[weight]:[int] <col10>[capacity]:[int] <col11>[pay_load]:[int] <col12>[cruising_speed]:[int] <col13>[range_miles]:[int] <col14>[pressurized]:[varchar] } <table1>[date_day] { <col0>[month_number]:[int] <col1>[day_number]:[int] <col2>[year]:[int] <col3>[day_name]:[varchar] } <table2>[dual_carrier] { <col0>[main_airline]:[varchar] <col1>[low_flight_number]:[int] <col2>[high_flight_number]:[int] <col3>[dual_airline]:[varchar] <col4>[service_name]:[text] } <table3>[class_of_service] { <col0>[booking_class]:[varchar] <col1>[rank]:[int] <col2>[class_description]:[text] } <table4>[flight_stop] { <col0>[flight_id]:[int] <col1>[stop_number]:[int] <col2>[stop_days]:[text] <col3>[stop_airport]:[text] <col4>[arrival_time]:[int] <col5>[arrival_airline]:[text] <col6>[arrival_flight_number]:[int] <col7>[departure_time]:[int] <col8>[departure_airline]:[text] <col9>[departure_flight_number]:[int] <col10>[stop_time]:[int] } <table5>[city] { <col0>[city_code]:[varchar] <col1>[city_name]:[varchar] <col2>[state_code]:[varchar] <col3>[country_name]:[varchar] <col4>[time_zone_code]:[varchar] } <table6>[food_service] { <col0>[meal_code]:[text] <col1>[meal_number]:[int] <col2>[compartment]:[text] <col3>[meal_description]:[varchar] } <table7>[airport] { <col0>[airport_code]:[varchar] <col1>[airport_name]:[text] <col2>[airport_location]:[text] <col3>[state_code]:[varchar] <col4>[country_name]:[varchar] <col5>[time_zone_code]:[varchar] <col6>[minimum_connect_time]:[int] } <table8>[equipment_sequence] { <col0>[aircraft_code_sequence]:[varchar] <col1>[aircraft_code]:[varchar] } <table9>[compartment_class] { <col0>[compartment]:[varchar] <col1>[class_type]:[varchar] } <table10>[flight] { <col0>[aircraft_code_sequence]:[text] <col1>[airline_code]:[varchar] } <table11>[time_interval] { <col0>[period]:[text] <col1>[begin_time]:[int] <col2>[end_time]:[int] } <table12>[fare_basis] { <col0>[fare_basis_code]:[text] <col1>[booking_class]:[text] <col2>[class_type]:[text] <col3>[premium]:[text] <col4>[economy]:[text] <col5>[discounted]:[text] <col6>[night]:[text] <col7>[season]:[text] <col8>[basis_days]:[text] } <table13>[flight_fare] { <col0>[flight_id]:[int] <col1>[fare_id]:[int] } <table14>[airport_service] { <col0>[city_code]:[varchar] <col1>[airport_code]:[varchar] <col2>[miles_distant]:[int] <col3>[direction]:[varchar] <col4>[minutes_distant]:[int] } <table15>[flight_leg] { <col0>[flight_id]:[int] <col1>[leg_number]:[int] <col2>[leg_flight]:[int] } <table16>[ground_service] { <col0>[city_code]:[text] <col1>[airport_code]:[text] <col2>[transport_type]:[text] <col3>[ground_fare]:[int] } <table17>[state] { <col0>[state_code]:[text] <col1>[state_name]:[text] <col2>[country_name]:[text] } <table18>[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] } <table19>[month] { <col0>[month_number]:[int] <col1>[month_name]:[text] } <table20>[time_zone] { <col0>[time_zone_code]:[text] <col1>[time_zone_name]:[text] <col2>[hours_from_gmt]:[int] } <table21>[days] { <col0>[days_code]:[varchar] <col1>[day_name]:[varchar] } <table22>[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]:[int] <col7>[round_trip_cost]:[int] <col8>[round_trip_required]:[varchar] } <table23>[airline] { <col0>[airline_code]:[varchar] <col1>[airline_name]:[text] <col2>[note]:[text] } <table24>[code_description] { <col0>[code]:[varchar] <col1>[description]:[text] } | SELECT DISTINCT flight.flight_id FROM `<table14>` AS AIRPORT_SERVICE_0, `<table14>` AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE ( ( CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ATLANTA' AND flight.arrival_time = ( SELECT MIN( FLIGHTalias1.arrival_time ) FROM `<table14>` AS AIRPORT_SERVICEalias2, `<table14>` AS AIRPORT_SERVICEalias3, city AS CITYalias2, city AS CITYalias3, flight AS FLIGHTalias1 WHERE CITYalias2.city_code = AIRPORT_SERVICEalias2.city_code AND CITYalias2.city_name = 'BOSTON' AND CITYalias3.city_code = AIRPORT_SERVICEalias3.city_code AND CITYalias3.city_name = 'ATLANTA' AND FLIGHTalias1.from_airport = AIRPORT_SERVICEalias2.airport_code AND FLIGHTalias1.to_airport = AIRPORT_SERVICEalias3.airport_code ) AND flight.to_airport = AIRPORT_SERVICE_1.airport_code ) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code ) OR ( ( CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BOSTON' AND flight.departure_time = ( SELECT MAX( FLIGHTalias2.departure_time ) FROM `<table14>` AS AIRPORT_SERVICEalias4, `<table14>` AS AIRPORT_SERVICEalias5, city AS CITYalias4, city AS CITYalias5, flight AS FLIGHTalias2 WHERE ( CITYalias5.city_code = AIRPORT_SERVICEalias5.city_code AND CITYalias5.city_name = 'BOSTON' AND FLIGHTalias2.to_airport = AIRPORT_SERVICEalias5.airport_code AND NOT ( FLIGHTalias2.arrival_time < FLIGHTalias2.departure_time ) ) AND CITYalias4.city_code = AIRPORT_SERVICEalias4.city_code AND CITYalias4.city_name = 'ATLANTA' AND FLIGHTalias2.from_airport = AIRPORT_SERVICEalias4.airport_code ) AND flight.to_airport = AIRPORT_SERVICE_1.airport_code ) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'ATLANTA' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code ) | what flights can i take between BOSTON and ATLANTA so that when i leave BOSTON i will have the maximum amount of time on the ground in ATLANTA and still return in the same day
|
<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>[gender]:[text] <col7>[language]:[text] <col8>[religion]:[text] <col9>[admission_type]:[text] <col10>[days_stay]:[text] <col11>[insurance]:[text] <col12>[ethnicity]:[text] <col13>[expire_flag]:[text] <col14>[admission_location]:[text] <col15>[discharge_location]:[text] <col16>[diagnosis]:[text] <col17>[dod]:[text] <col18>[dob_year]:[text] <col19>[dod_year]:[text] <col20>[admittime]:[text] <col21>[dischtime]:[text] <col22>[admityear]:[text] } <table2>[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] } <table3>[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] } <table4>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } | SELECT COUNT( DISTINCT `<table1>`.subject_id ) FROM `<table1>` INNER JOIN procedures ON `<table1>`.hadm_id = procedures.hadm_id WHERE `<table1>`.diagnosis = "LEFT COLON CANCER" AND procedures.short_title = "Temporary tracheostomy" | count the number of patients whose primary disease is left colon cancer and procedure short title is temporary tracheostomy? |
<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>[ethnicity]:[text] <col13>[expire_flag]:[text] <col14>[admission_location]:[text] <col15>[discharge_location]:[text] <col16>[diagnosis]:[text] <col17>[dod]:[text] <col18>[dob_year]:[text] <col19>[dod_year]:[text] <col20>[admittime]:[text] <col21>[dischtime]:[text] <col22>[admityear]:[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] { <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] } <table3>[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] } <table4>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } | SELECT COUNT( DISTINCT `<table0>`.subject_id ) FROM `<table0>` INNER JOIN diagnoses ON `<table0>`.hadm_id = diagnoses.hadm_id WHERE `<table0>`.marital_status = "MARRIED" AND diagnoses.short_title = "Bleed esoph var oth dis" | what is the number of patients whose marital status is married and diagnoses short title is bleed esoph var oth dis? |
<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]:[text] <col4>[long_title]:[text] } <table2>[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>[ethnicity]:[text] <col13>[expire_flag]:[text] <col14>[admission_location]:[text] <col15>[discharge_location]:[text] <col16>[diagnosis]:[text] <col17>[dod]:[text] <col18>[dob_year]:[text] <col19>[dod_year]:[text] <col20>[admittime]:[text] <col21>[dischtime]:[text] <col22>[admityear]:[text] } <table3>[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] } <table4>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } | SELECT COUNT( DISTINCT `<table2>`.subject_id ) FROM `<table2>` INNER JOIN diagnoses ON `<table2>`.hadm_id = diagnoses.hadm_id WHERE diagnoses.icd9_code = "2768" | give me the number of patients whose diagnoses icd9 code is 2768?
|
<table0>[teams] { <col0>[team_name]:[VARCHAR] <col1>[255]:[season_start_year] <col2>[INT]:[season_end_year] <col3>[INT]:[INSERT] } <table1>[games] { <col0>[team_name]:[VARCHAR] <col1>[255]:[location] <col2>[VARCHAR]:[255] <col3>[won]:[BOOLEAN] } | SELECT COUNT( * ) FROM `<table1>` WHERE `<col0>` = 'Spurs' AND location = 'away' AND `<col3>` = TRUE AND season_start_year = 2016 AND season_end_year = 2017; | How many games did the Spurs win at away games in the 2016-2017 season? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.