prompt
stringlengths 843
3.37k
| query
stringlengths 67
589
|
---|---|
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction:Show the name and address of the kindergartens in Nowon-gu with the type of establishment categorized as private and the meal management type categorized as direct management. , schema : CREATE TABLE "L_O_C_A_L_D_A_T_A_031202_J_N" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "CULWRKRSENM" TEXT, "REGNSENM" TEXT, "INSURORGNM" TEXT, "BDNGSRVNM" TEXT, "JISGNUMLAY" TEXT, "STROOMCNT" TEXT, "CNSTYAREA" TEXT, "ENGSTNTRNMNM" TEXT, "ENGSTNTRNMADDR" TEXT, "SHPTOTTONS" TEXT, "SHPCNT" TEXT, "INSURSTDT" TEXT, "INSURENDDT" TEXT ); CREATE TABLE "REB_N_LAND_PRICE_FLUCTUATION_RATE_SURVEY_IDX_M_REGION" ( "Y_2013_04P" TEXT, "Y_2013_05Q" TEXT, "Y_2013_06R" TEXT, "Y_2013_07S" TEXT, "Y_2013_12X" TEXT, "Y_2014_07E" TEXT, "Y_2014_08F" TEXT, "Y_2014_11I" TEXT, "Y_2014_12J" TEXT, "Y_2015_01K" TEXT, "Y_2015_03M" TEXT, "Y_2015_05O" TEXT, "Y_2015_07Q" TEXT, "Y_2016_01W" TEXT, "Y_2016_02X" TEXT, "Y_2016_04Z" TEXT, "Y_2016_05A" TEXT, "Y_2016_09E" TEXT, "Y_2016_10F" TEXT, "Y_2017_01I" TEXT, "Y_2017_03K" TEXT, "Y_2017_04L" TEXT, "Y_2017_05M" TEXT, "Y_2017_06N" TEXT, "Y_2017_11S" TEXT, "Y_2018_01U" TEXT, "Y_2018_03W" TEXT, "Y_2018_04X" TEXT, "Y_2018_08B" TEXT, "Y_2018_09C" TEXT, "Y_2018_11E" TEXT, "Y_2019_05K" TEXT, "Y_2019_09O" TEXT, "Y_2019_11Q" TEXT, "Y_2020_01S" TEXT, "Y_2020_06X" TEXT, "Y_2020_08Z" NUMERIC, "Y_2020_11C" TEXT, "Y_2021_01E" TEXT, "Y_2021_02F" TEXT, "Y_2021_04H" TEXT, "Y_2021_05I" TEXT, "Y_2021_06J" TEXT, "Y_2021_08L" TEXT, "Y_2021_10N" TEXT, "Y_2021_12P" TEXT, "Y_2022_03S" TEXT, "Y_2022_06V" TEXT ); CREATE TABLE "YEONGDO_GU_BUSAN_LIFELONG_LEARNING_RECOMMENDATION_SITE" ( "DIVISION" TEXT, "SITE_NAME" TEXT, "SITE_GUIDE" TEXT, "HOME_PAGE" TEXT ); CREATE TABLE "TB_EQUAKE_BOARD_STAT_SUB_ARA" ( "INDEX_NO" NUMERIC, "NO" NUMERIC, "SIGUNGU" TEXT, "GUBUN" TEXT, "TITLE" TEXT, "T_SUM1" NUMERIC, "T_SUM2" NUMERIC, "T_SUM3" NUMERIC, "T_PRO" NUMERIC, "T_SUM4" NUMERIC, "T_ARASUM1" NUMERIC, "T_ARASUM2" NUMERIC, "T_ARASUM3" NUMERIC, "T_ARASUM4" NUMERIC, "T_ARAPRO" NUMERIC ); Show the name and address of the kindergartens in Nowon-gu with the type of establishment categorized as private and the meal management type categorized as direct management. | SELECT KINDERNAME, ADDR FROM CHILD_SCHOOL_MEAL_NW WHERE ESTABLISH LIKE '%사립%' AND MLSR_OPRN_WAY_TP_CD = '직영' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: When are the establishment date and the school anniversary date of the public school in Seocho-gu, Seoul with the last four digits of the phone number being 3038? , schema : When are the establishment date and the school anniversary date of the public school in Seocho-gu, Seoul with the last four digits of the phone number being 3038? CREATE TABLE "L_O_C_A_L_D_A_T_A_010204_G_N" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "Y" TEXT, "CRFTUSELESSNUM" TEXT, "CTPLCTMCENUM" TEXT, "CRFTUSEMOTNUM" TEXT, "ACETNUM" TEXT, "DENTIUSEPRESSNUM" TEXT, "EFURNUM" TEXT, "PCANNUM" TEXT, "SPWVCLERNUM" TEXT, "SUVYNUM" TEXT, "VITRNUM" TEXT, "SBMCNT" TEXT, "PINDEXCNT" TEXT ); CREATE TABLE "MAJOR_DEPARTMENTS_KOGAS_TECH" ( "MENU_CDB" NUMERIC, "CONTENTC" TEXT, "RE_DTD" TEXT, "REVISION_DTE" TEXT, "RE_IDF" NUMERIC ); CREATE TABLE "C_STS_IL_P_RIGHTS_KOMSCO" ( "RE_DTV" TEXT, "RE_NUMW" TEXT, "NMX" TEXT ); CREATE TABLE "TB_WCM_BOARD_B01588" ( "BOARD_ID" NUMERIC, "ETC_1" TEXT, "ETC_2" TEXT, "ETC_3" TEXT, "KOR_NAME" TEXT, "TITLE" TEXT, "CONTENTS" TEXT, "FILE_APPD_ID" NUMERIC, "APPD_FILE_NAME" TEXT, "FILE_URL" TEXT ); | SELECT FOND_YMD,FOAS_MEMRD FROM NEIS_SCHOOL_INFO_SC WHERE ORG_TELNO LIKE '%3038' AND FOND_SC_NM = '공립' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Please provide the names and website addresses of coeducational elementary schools in alphabetical order. , schema : Please provide the names and website addresses of coeducational elementary schools in alphabetical order. CREATE TABLE "S_C_S_O_H_L_S_C_CV" ( "NUML" NUMERIC, "JOB_TYPE_NMM" TEXT, "NUM_ASSIGNMENTSN" NUMERIC, "START_DT_GAMEO" TEXT, "CLOSING_DT_GAMEP" TEXT, "TOTAL_TIMEQ" TEXT, "TIME_TASKR" TEXT, "MORNING_FIRST_DAYS" TEXT, "AFTERNOON_FIRST_DAYT" TEXT, "MORNING_SECOND_DAYU" TEXT, "AFTERNOON_SECOND_DAYV" TEXT, "MORNING_THIRD_DAYW" TEXT, "AFTERNOON_THIRD_DAYX" TEXT, "MORNING_FOURTH_DAYY" TEXT, "AFTERNOON_FOURTH_DAYZ" TEXT, "MORNING_FIFTH_DAYA" TEXT, "AFTERNOON_FIFTH_DAYB" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_031201_J_R" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDATE" TEXT, "CLGENDDATE" TEXT, "ROPNYMD" TEXT, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "CULPHYEDCOBNM" TEXT, "REGNSENM" TEXT, "TOTNUMLAY" TEXT, "NEARENVNM" TEXT, "INSURORGNM" TEXT, "BDNGSRVNM" TEXT, "JISGNUMLAY" TEXT, "STROOMCNT" TEXT, "CNSTYAREA" TEXT, "ENGSTNTRNMNM" TEXT, "SHPTOTTONS" TEXT, "SHPINFO" TEXT ); CREATE TABLE "CURRENT_STS_FOOD_WASTE_DISPOSAL_FAC_SASANG_GU_BUSAN" ( "ANNUAL" NUMERIC, "CATEGORY" TEXT, "DIVISION" NUMERIC, "BUSINESS_NAME" TEXT, "LOCATION_ROAD_NAME" TEXT ); CREATE TABLE "STS_GROUP_MEAL_CNTS_SASANG_GU_BUSAN" ( "INDUSTRY_NAME" TEXT, "BUSINESS_NAME" TEXT, "LOCATION_ROAD_NAME" TEXT, "TELEPHONE" TEXT, FOREIGN KEY ("BUSINESS_NAME") REFERENCES "CURRENT_STS_FOOD_WASTE_DISPOSAL_FAC_SASANG_GU_BUSAN"("BUSINESS_NAME"), FOREIGN KEY ("INDUSTRY_NAME") REFERENCES "CURRENT_STS_FOOD_WASTE_DISPOSAL_FAC_SASANG_GU_BUSAN"("CATEGORY"), FOREIGN KEY ("LOCATION_ROAD_NAME") REFERENCES "CURRENT_STS_FOOD_WASTE_DISPOSAL_FAC_SASANG_GU_BUSAN"("LOCATION_ROAD_NAME") ); CREATE TABLE "C_STS_PHOTOVOLTAIC_PW_GENERATION_I_GG_SW_P_INST" ( "INS_YEARX" NUMERIC, "INS_FACILITY_NMY" TEXT, "LOC_MAP_NM_ADDRESSZ" TEXT, "LOC_NUM_ADDRESSA" TEXT, "LATITUDEB" NUMERIC, "HARDNESSC" NUMERIC, "INS_SIZE_KWD" NUMERIC, "DATA_BASE_DTE" TEXT ); | SELECT SCHUL_NM, HMPG_ADRES FROM NEIS_SCHOOL_INFO_SC WHERE SCHUL_KND_SC_NM = '초등학교' AND COEDU_SC_NM = '남여공학' ORDER BY SCHUL_NM ASC |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Tell me the fine dust inspection date and the lighting management inspection date of a kindergarten with a five-character name and a suitable result in the indoor air quality inspection. , schema : CREATE TABLE "KPX_ELECITY_TRANSACTION_VOLUME_DAYTIME_GWANGJU" ( "TRADING_DAYN" TEXT, "TRADING_HOURSO" TEXT, "E_T_V_VA" NUMERIC ); CREATE TABLE "TB_GTN_HWCW_P" ( "R_SEQ_NO" NUMERIC, "YEAR" TEXT, "AREA_CD" NUMERIC, "EQUP_TYPE" NUMERIC, "R_AREA_NM" TEXT, "R_DETL_ADD" TEXT, "J_DETL_ADD" TEXT, "R_AREA_SQR" NUMERIC, "USE_PRNB" NUMERIC, "CLER1_CNT" NUMERIC, "CLER2_CNT" NUMERIC, "CHK1_YN" TEXT, "CHK2_YN" TEXT, "CHK3_YN" TEXT, "CRE_DTTM" TEXT, "UPDT_DTTM" TEXT, "USE_YN" TEXT, "RMRK" TEXT, "DT_START" TEXT, "DT_END" NUMERIC, "LO" NUMERIC, "LA" NUMERIC, "XX" NUMERIC, "YY" NUMERIC ); Tell me the fine dust inspection date and the lighting management inspection date of a kindergarten with a five-character name and a suitable result in the indoor air quality inspection. CREATE TABLE "PPS_LONG_RESD" ( "STDR_DE_ID" TEXT, "TMZON_PD_SE" NUMERIC, "ADSTRD_CODE_SE" NUMERIC, "OA_CD" NUMERIC, "TOT_LVPOP_CO" NUMERIC, "CHINA_STAYPOP_CO" TEXT, "ETC_STAYPOP_CO" TEXT ); CREATE TABLE "KOSHA_ANL_Q_MNG_EQ_INFO" ( "NUMN" NUMERIC, "INSTITUTION_IDO" TEXT, "NM_ORGANIZATIONP" TEXT, "A_A_E_O" TEXT, "A_E_W_P" TEXT ); | SELECT MDST_CHK_DT, ILMN_CHK_DT FROM CHILD_SCHOOL_HYGIENE_NW WHERE KINDERNAME LIKE '__' AND ARQL_CHK_RSLT_TP_CD = '적합' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Show the name and road address of private institutes or private tutoring centers in Gangseo-gu with an art or arithmetic curriculum. , schema : CREATE TABLE "NUM_SU_CO_KOSMES_DEV_TECH_COMMERCIALIZATION_FUND_COLLATERAL" ( "YEAR" NUMERIC, "CREDIT" NUMERIC, "LETTER_GUARANTEE" NUMERIC, "REAL_ESTATE" NUMERIC, "TELLECTUAL_PROPERTY" NUMERIC, "OTHERS" NUMERIC ); CREATE TABLE "NUM_CO_SUING_KOSMES_DEV_TECH_COMMERCIALIZATION_FUND_I" ( "YEAR" NUMERIC, "METAL" NUMERIC, "MACHINE" NUMERIC, "OTHERS" NUMERIC, "TEXTILE" NUMERIC, "FOODSTUFFS" NUMERIC, "DISTRIBUTION" NUMERIC, "MISCELLANEOUS_GOODS" NUMERIC, "ELECTRICITY" NUMERIC, "ELECTRON" NUMERIC, "INFORMATION" NUMERIC, "CHEMICAL_ENGINEER" NUMERIC, FOREIGN KEY ("YEAR") REFERENCES "NUM_SU_CO_KOSMES_DEV_TECH_COMMERCIALIZATION_FUND_COLLATERAL"("YEAR") ); CREATE TABLE "KEPCO_PW_DISTRIBUTION_HIGH_VOLTAGE_LOAD_INFO" ( "HEADQUARTERS_NMD" TEXT, "NM_BUSINESS_OFFICEE" TEXT, "SUBSTATION_CALLINGF" TEXT, "LINE_NMG" TEXT, "LINE_CLASH" TEXT, "COMMON_NOTI" TEXT, "KINDJ" TEXT, "STANDARD_LOADK" NUMERIC, "LOAD_SHAREL" NUMERIC, "VOLTAGE_KVM" TEXT, "PROCESSED_GROUND_CLASN" TEXT ); CREATE TABLE "GBGM_INTEGRATED_MNG_SYS_IL_RECORDS_ADMINISTRATION" ( "ATTEMPT_CDU" NUMERIC, "CITY_COUNTY_CDV" NUMERIC, "ADMINISTRATIVE_DONG_CDW" NUMERIC, "ADMINISTRATIVE_RECDX" NUMERIC, "CITY_NMY" TEXT, "NM_CITY_COUNTYZ" TEXT, "SAME_NMA" TEXT, "LEE_NMB" TEXT, "A_C_N_BB" TEXT ); Show the name and road address of private institutes or private tutoring centers in Gangseo-gu with an art or arithmetic curriculum. CREATE TABLE "STS_ANIMAL_PHARMACY_SEONGNAM_CITY_GYEONGGI_PROVINCE" ( "DISTINCTION" TEXT, "DYNAMIC" TEXT, "BUSINESS" TEXT, "LICENSE_DATE" TEXT, "MATERIAL_MAP_NAME_ADDRESS" TEXT, "MATERIAL_SUPPORT_ADDRESS" TEXT, "PHONE_NUMBER" TEXT ); | SELECT ACA_NM, FA_RDNMA FROM NEIS_ACADEMY_INFO_GS WHERE LE_CRSE_NM = '미술' OR LE_CRSE_NM = '속셈' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: When are the establishment date and the storage time of the academy with "Yale" in its name and the road name postal code 7766? , schema : CREATE TABLE "L_O_C_A_L_D_A_T_A_072101_G_N" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "WHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "WMEIPCNT" TEXT, "TRDPJUBNSENM" TEXT, "LVSENM" TEXT, "WTRSPLYFACILSENM" TEXT, "TOTEPNUM" TEXT, "HOFFEPCNT" TEXT, "FCTYSILJOBEPCNT" TEXT, "ISREAM" TEXT, "MULTUSNUPSOYN" TEXT, "JTUPSOASGNNO" TEXT, "HOMEPAGE" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_020301_G_A" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" NUMERIC, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" TEXT, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "LINDJOBGBNNM" TEXT, "LINDPRCBGBNNM" TEXT, "LINDSEQNO" TEXT, "RGTMBDSNO" NUMERIC ); CREATE TABLE "IOT_VDATA020" ( "ORGAN_NM" TEXT, "TRNSMIT_SERVER_NO" NUMERIC, "DATA_NO" TEXT, "COLUMN0" TEXT, "COLUMN1" TEXT, "COLUMN2" TEXT, "REGIST_DT" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_030507_G_D" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "SITETEL" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEDT" TEXT, "Y" TEXT, "CULPHYEDCOBNM" TEXT, "NEARENVNM" TEXT, "MNFACTREARTCLCN" TEXT, "FACILAR" NUMERIC, "BGROOMCNT" TEXT, "EMERSTAIRYN" TEXT, "EMEXYN" TEXT, "BGROOMYN" TEXT ); When are the establishment date and the storage time of the academy with "Yale" in its name and the road name postal code 7766? | SELECT ESTBL_YMD, LOAD_DTM FROM NEIS_ACADEMY_INFO_GS WHERE ACA_NM LIKE '%예일%' AND FA_RDNZC = 7766 |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: How many principals and vice-principals are there in kindergartens under the jurisdiction of the Dongbu Educational Support Office and Bukbu Educational Support Office? , schema : CREATE TABLE "HRDK_FOREIGN_LANGUAGE_CHINA_FREQUENTLY_USED_FOREIGN_WORKERS" ( "SERIAL_NUMG" NUMERIC, "LARGE_CLAS_CDH" NUMERIC, "MAJOR_CLASI" TEXT, "SUBCATEGORYJ" TEXT, "KOREANK" TEXT, "PRONUNCIATIONL" TEXT ); CREATE TABLE "REPORT_STS_WASTE_DISCHARGER_HAEUNDAE_GU_BUSAN" ( "ANNUAL" NUMERIC, "BUSINESS" TEXT, "ADDRESS" TEXT, "CONTACT" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_114601_D_B" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" NUMERIC, "SITEPOSTNO" TEXT, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "Y" TEXT, "EMERFACILLOC" TEXT, "FACILSENM" TEXT, "FACILNMBDNGNM" TEXT ); How many principals and vice-principals are there in kindergartens under the jurisdiction of the Dongbu Educational Support Office and Bukbu Educational Support Office? CREATE TABLE "L_O_C_A_L_D_A_T_A_030502_Y_D" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGENDDT" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BUSINESSNAME" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "CULWRKRSENM" TEXT, "TOTNUMLAY" TEXT, "NEARENVNM" TEXT, "MNFACTREARTCLCN" TEXT, "FACILAR" TEXT, "UNDERNUMLAY" TEXT, "BDNGSRVNM" TEXT, "PASGBRETH" TEXT, "LGHTFACILINILLU" TEXT, "AUTOCHAAIRYN" TEXT, "BGROOMYN" TEXT ); | SELECT DRCNT , ADCNT FROM CHILD_SCHOOL_TEACHER WHERE SUBOFFICEEDU = '동부교육지원청' OR SUBOFFICEEDU = '북부교육지원청' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Tell me the number of 12-seater and 15-seater reported vehicles in kindergartens with two or more operating or reported vehicles. , schema : CREATE TABLE "L_O_C_A_L_D_A_T_A_010202_G_C" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "MEDKIND" TEXT, "TRDSCP" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_072206_J_G" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" NUMERIC, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "UPDATEDT" TEXT, "X" TEXT, "Y" TEXT, "LINDJOBGBNNM" TEXT, "LINDPRCBGBNNM" TEXT, "TOTEPNUM" TEXT ); Tell me the number of 12-seater and 15-seater reported vehicles in kindergartens with two or more operating or reported vehicles. CREATE TABLE "L_O_C_A_L_D_A_T_A_072405_D_D" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATENM" TEXT, "CLGSTDT" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "SNTUPTAENM" TEXT, "MANEIPCNT" TEXT, "WMEIPCNT" TEXT, "TRDPJUBNSENM" TEXT, "LVSENM" TEXT, "FCTYOWKEPCNT" TEXT, "FCTYSILJOBEPCNT" TEXT, "FCTYPDTJOBEPCNT" TEXT, "ISREAM" TEXT, "MONAM" TEXT, "FACILTOTSCP" TEXT, "JTUPSOASGNNO" TEXT ); CREATE TABLE "STS_INTERIOR_OUTDOOR_LIGHTS_DAEDEOK_GU_DAEJEON" ( "NAME_PARK" TEXT, "TYPES_PARKS" TEXT, "ADMINISTRATIVE_OFFICE" TEXT, "ADMINISTRATIVE_DONG" TEXT, "LOCATION_NUMBER_ADDRESS" TEXT, "LATITUDE" NUMERIC, "HARDNESS" NUMERIC, "NUMBER_OUTDOOR_LIGHTS" NUMERIC, "REMARKS" TEXT, "DATA_BASE_DATE" TEXT ); | SELECT PSG12_DCLR_VHCNT, PSG15_DCLR_VHCNT FROM CHILD_SCHOOL_BUS WHERE OPRA_VHCNT >= 2 OR DCLR_VHCNT >= 2 |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Tell me the phone number and name of the public schools that have "middle school" in their name. , schema : Tell me the phone number and name of the public schools that have "middle school" in their name. CREATE TABLE "YS_MODEL_RESTAURANT_CANCEL" ( "ASGN_YY" TEXT, "ASGN_SNO" TEXT, "APPL_YMD" TEXT, "ASGN_YMD" TEXT, "ASGN_CANCEL_YMD" TEXT, "UPSO_NM" TEXT, "SITE_ADDR_RD" TEXT, "SITE_ADDR" TEXT, "PERM_NT_NO" TEXT, "SNT_UPTAE_NM" TEXT, "ASGN_CANCEL_WHY" TEXT, "MAIN_EDF" TEXT, "TRDP_AREA" NUMERIC ); CREATE TABLE "SEMAS_N_CENTENNIAL_SHOP_STS" ( "ANNUAL" NUMERIC, "COMPANY_NAME" TEXT, "CONTACT" TEXT, "TRIAL" TEXT, "CITY_GUN" TEXT, "BASIC_ADDRESS" TEXT, "DETAILED_ADDRESS" TEXT, "MAJOR_BUSSINESS" TEXT ); CREATE TABLE "JUNGGU_FOOD_COLLECT_CHECK_HYGIENE_BIZ" ( "CGG_CODE" NUMERIC, "SNT_COB_CODE" NUMERIC, "SNT_COB_NM" TEXT, "PLN_SE_CODE" NUMERIC, "CHK_PLN_NM" TEXT, "COL_WHY_CODE" TEXT, "UPSO_NM" TEXT, "ATCL_GUN_CODE" TEXT, "ATCL_GUN_NM" TEXT, "PRDT_NM" TEXT, "EDF_NM" TEXT, "RM_NM" TEXT, "PDT_UPSO_NM" TEXT, "COL_YMD" TEXT, "COL_QUA" NUMERIC, "PRDT_SIZE" TEXT, "COL_QY_IPT" TEXT, "LOT_NO" TEXT, "YUTONG_DLN_PRD_YMD_FROM" TEXT, "DEPO_STATE_CODE" TEXT, "BCE_CODE" TEXT, "FACTORY_NM" TEXT, "NATIV_FRGNR_SE" TEXT, "ISP_SE" TEXT, "ISP_REQ_YMD" TEXT, "ISP_RT_REPLY_YMD" TEXT, "COL_ISP_RT_GBN" TEXT, "DEAL_SE" TEXT, "COL_ISP_SE" TEXT, "DEAL_RT" TEXT, "INST_OBJ" TEXT, "DRT_INSP_YMD" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_031203_J_G" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITEAREA" TEXT, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "REGNSENM" TEXT, "NEARENVNM" TEXT, "INSURORGNM" TEXT, "BDNGSRVNM" TEXT, "UNDERNUMLAY" TEXT, "STROOMCNT" TEXT, "CNSTYAREA" TEXT, "ENGSTNTRNMNM" TEXT, "SHPINFO" TEXT ); | SELECT ORG_TELNO, SCHUL_NM FROM NEIS_SCHOOL_INFO_GA WHERE FOND_SC_NM = '공립' AND SCHUL_NM LIKE '%중학교%' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: What is the establishment type and school type of Guro Middle School or Guil Middle School?, schema : CREATE TABLE "L_O_C_A_L_D_A_T_A_072203_D_B" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DCBYMD" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "BPLCNM" TEXT, "UPDATEGBN" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "SNTUPTAENM" TEXT, "MANEIPCNT" TEXT, "WMEIPCNT" TEXT, "LVSENM" TEXT, "TOTEPNUM" TEXT, "FCTYSILJOBEPCNT" TEXT, "FCTYPDTJOBEPCNT" TEXT, "BDNGOWNSENM" TEXT, "ISREAM" TEXT, "MONAM" TEXT, "MULTUSNUPSOYN" TEXT, "FACILTOTSCP" TEXT, "JTUPSOASGNNO" TEXT, "HOMEPAGE" NUMERIC ); CREATE TABLE "GGBC_FARM_LAND_EXCLUSIVE_STS" ( "LOCO" TEXT, "STUDY_POINTP" TEXT, "D_A_S_M_F" NUMERIC, "USE_AREAR" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_114401_G_S" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "BPLCNM" TEXT, "UPDATEGBN" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "SNTUPTAENM" TEXT, "BDNGJISGFLRCNT" TEXT, "BDNGUNDERFLRCNT" TEXT, "USEJISGSTFLR" TEXT, "USEJISGENDFLR" TEXT, "USEUNDERSTFLR" TEXT, "USEUNDERENDFLR" TEXT, "HANSHILCNT" TEXT, "YOKSILCNT" TEXT, "BALHANSILYN" TEXT, "CNDPERMNTWHY" TEXT, "CNDPERMSTYMD" TEXT, "CNDPERMENDYMD" TEXT, "BDNGOWNSENM" TEXT, "WASHMCCNT" TEXT, "WMEIPCNT" TEXT, "MANEIPCNT" TEXT, "RCVDRYNCNT" TEXT, "ABEDCNT" TEXT, "MULTUSNUPSOYN" TEXT ); What is the establishment type and school type of Guro Middle School or Guil Middle School? CREATE TABLE "LANDSCAPE_AREA_YANGCHEON_GU_SEOUL" ( "APARTMENT_NAME" TEXT, "HOUSING_TYPE" TEXT, "ADDRESS" TEXT, "BUILDING_RATE" TEXT, "SQUARE_SQUARE_METER" TEXT ); | SELECT SCHUL_KND_SC_NM, FOND_SC_NM FROM NEIS_SCHOOL_INFO_GR WHERE SCHUL_NM = '구로중학교' OR SCHUL_NM = '구일중학교' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction:When is the establishment date and the school anniversary of places where the establishment type is private or boys' school? , schema : CREATE TABLE "GGSN_WELFARE_CNT_O_PROGRAM" ( "CITY_COUNTY_NMI" TEXT, "WELFARE_OFFICER_NMJ" TEXT, "TARGET_USEK" TEXT, "D_T_T_C_U_V" TEXT, "A_R_D_C_U_W" TEXT, "D_C_U_O_C_X" TEXT, "SORTATIONO" TEXT, "DETAILED_CLASP" TEXT, "PROGRAM_NMQ" TEXT, "PROGRAM_CONTENTSR" TEXT, "HOURS_USES" TEXT, "AMT_USEDT" NUMERIC, "U_A_C_S_XZ" TEXT, "ADDITIONAL_EXPENSESV" NUMERIC, "LOC_MAP_NM_ADDRESSW" TEXT, "PHONE_NUMX" TEXT, "POSTAL_CDY" NUMERIC, "LATITUDEZ" NUMERIC, "HARDNESSA" NUMERIC, "DATA_BASE_DTB" TEXT ); CREATE TABLE "CHILD_SCHOOL_TEACHER_SP" ( "OFFICEEDU" TEXT, "SUBOFFICEEDU" TEXT, "KINDERCODE" TEXT, "KINDERNAME" TEXT, "ESTABLISH" TEXT, "DRCNT" TEXT, "ADCNT" TEXT, "HDST_THCNT" TEXT, "ASPS_THCNT" TEXT, "GNRL_THCNT" TEXT, "SPCN_THCNT" TEXT, "NTCNT" TEXT, "NTRT_THCNT" TEXT, "SHCNT_THCNT" TEXT, "OWCNT" TEXT, "HDST_TCHR_QACNT" TEXT, "RGTH_GD1_QACNT" TEXT, "RGTH_GD2_QACNT" TEXT, "PBNTTMNG" NUMERIC, "ADDR" TEXT ); When is the establishment date and the school anniversary of places where the establishment type is private or boys' school? CREATE TABLE "NUM_WORKPLACES_KOSHA_LABOR_OFFICE" ( "CLASSIFICATE" TEXT, "YEAR_2004" NUMERIC, "YEAR_2005" NUMERIC, "YEAR_2006" NUMERIC, "YEAR_2007" NUMERIC, "YEAR_2008" NUMERIC, "YEAR_2009" NUMERIC, "YEAR_2010" NUMERIC, "YEAR_2011" NUMERIC, "YEAR_2012" NUMERIC, "YEAR_2013" NUMERIC, "YEAR_2014" NUMERIC, "YEAR_2015" NUMERIC, "YEAR_2016" NUMERIC, "YEAR_2017" NUMERIC, "YEAR_2019" NUMERIC, "YEAR_2020" NUMERIC, "YEAR_2021" NUMERIC ); CREATE TABLE "TB_VMC_RECRUIT" ( "NUM" NUMERIC, "W_NO" NUMERIC, "LANG_CD" TEXT, "DISPLAY" TEXT, "SUBJECT" TEXT, "STATE_CD" TEXT, "COMPANY_NO" TEXT, "NATION_CD" TEXT, "WORKAREA_CD" TEXT, "WORKDAY_CD" TEXT, "WORKHOURS_ST" TEXT, "WORKHOURS_ED" TEXT, "EMPFORM_CD" TEXT, "WEEKENDWORK_CD" TEXT, "WORKPAY" TEXT, "WORKMEN" TEXT, "WORKSERVICE" TEXT, "WORKSUBWAY" TEXT, "NATION" TEXT, "WORKPATTERN" TEXT, "WORKAREA" TEXT, "WORKTIME" TEXT, "CONTENTS" TEXT, "AFILE1" TEXT, "AFILE1_ORG" TEXT, "AFILE2" TEXT, "AFILE2_ORG" TEXT, "HIT" TEXT, "WDATE" TEXT, "TA_DATE" TEXT, "MB_NAME" TEXT, "APPLY_OPEN" TEXT, "TR_LANGS" TEXT, "IS_NOTICE_TEXT" TEXT, "IS_CHARGED_CONTENT_COPYRIGHT" TEXT ); | SELECT FOND_YMD, FOAS_MEMRD FROM NEIS_SCHOOL_INFO_GR WHERE COEDU_SC_NM = '남' OR FOND_SC_NM = '사립' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Tell me the phone number and coeducation distinction name of the high schools that were established privately and have 'health' in their name. , schema : CREATE TABLE "CURRENT_STS_VEGETABLE_SOURCE_AREA_FOREST_NFSV_TYPE" ( "BRANCH_OFFICE" TEXT, "SEVERAL_SPECIES" TEXT, "CREATION_YEAR" NUMERIC, "AREA_HA" NUMERIC, "CUMULATIVE_AREA_HA" NUMERIC ); Tell me the phone number and coeducation distinction name of the high schools that were established privately and have 'health' in their name. CREATE TABLE "L_O_C_A_L_D_A_T_A_051901_S_M" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "SITETEL" TEXT, "SITEAREA" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "SNTUPTAENM" TEXT, "BDNGJISGFLRCNT" TEXT, "BDNGUNDERFLRCNT" TEXT, "USEJISGSTFLR" TEXT, "USEJISGENDFLR" TEXT, "USEUNDERSTFLR" TEXT, "USEUNDERENDFLR" TEXT, "HANSHILCNT" TEXT, "YANGSILCNT" TEXT, "YOKSILCNT" TEXT, "BALHANSILYN" TEXT, "CHAIRCNT" TEXT, "CNDPERMSTYMD" TEXT, "CNDPERMENDYMD" TEXT, "BDNGOWNSENM" TEXT, "WMEIPCNT" TEXT, "MULTUSNUPSOYN" TEXT ); CREATE TABLE "YS_ADMIN_MESURE_PUBLIC" ( "CGG_CODE" NUMERIC, "ADM_DISPO_YMD" TEXT, "GNT_NO" TEXT, "SNT_COB_NM" TEXT, "SNT_UPTAE_NM" TEXT, "UPSO_NM" TEXT, "SITE_ADDR" TEXT, "DRT_INSP_YMD" TEXT, "ADMM_STATE" TEXT, "DISPO_CTN" TEXT, "VIOR_SORT" TEXT, "BAS_LAW" TEXT, "VIOR_YMD" TEXT, "VIOL_CN" TEXT, "DISPO_CTN_DT" TEXT, "DISPO_GIGAN" TEXT, "INSP_GBN_CODE" TEXT, "NT_GBN_CODE" TEXT, "JB_ORG" TEXT, "TAKE_YMD" TEXT, "TRDP_AREA" NUMERIC ); CREATE TABLE "LOCAL_TAX_DELINQUENCY_STS_GG_UI" ( "CITY_PROVINCEK" TEXT, "NM_CITY_COUNTY_DISTRICTL" TEXT, "TAX_YEARN" NUMERIC, "NM_DETAILO" TEXT, "NUM_ARREARSQ" NUMERIC, "AMT_ARREARSR" NUMERIC, "CUMULATIVE_NUM_ARREARSS" NUMERIC, "C_D_P_A_K" NUMERIC ); | SELECT ORG_TELNO, COEDU_SC_NM FROM NEIS_SCHOOL_INFO_HS WHERE SCHUL_NM LIKE '%보건%' AND FOND_SC_NM = '사립' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Tell me the phone number and fax number of places where the school type is middle school or elementary school. , schema : CREATE TABLE "GB_INTERNET_TV" ( "NO" TEXT, "CONTENT" TEXT, "DURATION" TEXT ); Tell me the phone number and fax number of places where the school type is middle school or elementary school. CREATE TABLE "B_M_N_B_R_C_E_M_H_S_T_P" ( "REVISED_YEARQ" NUMERIC, "AUTHORIZEDR" TEXT, "SCHOOL_LEVELS" TEXT, "SCHOOL_YEART" TEXT, "SEMESTERU" TEXT, "SJ_NMV" TEXT, "TEXTBOOK_NMW" TEXT, "PUBLISHING_HOUSEX" TEXT, "GRAND_FINALEY" TEXT, "MEMBER_STAFFZ" TEXT, "SMALL_MEMBERA" TEXT, "NUM_PAGESB" NUMERIC, "NM_TEXTBOOKC" TEXT, "CHARACTERISTICSD" TEXT, "YEAR_CONSTRUCTION_YEARE" NUMERIC ); CREATE TABLE "L_O_C_A_L_D_A_T_A_072101_G_C" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "SNTUPTAENM" TEXT, "WMEIPCNT" TEXT, "LVSENM" TEXT, "TOTEPNUM" TEXT, "HOFFEPCNT" TEXT, "FCTYOWKEPCNT" TEXT, "BDNGOWNSENM" TEXT, "MONAM" TEXT, "FACILTOTSCP" TEXT, "JTUPSOASGNNO" TEXT, "HOMEPAGE" TEXT ); CREATE TABLE "KCG_GUIDE_SHIP_SITE_INFO" ( "MUTUAL_NAME" TEXT, "BUSINESS_LOCATION" TEXT, "OFFICE_NUMBER" TEXT ); | SELECT ORG_TELNO, ORG_FAXNO FROM NEIS_SCHOOL_INFO_DB WHERE SCHUL_KND_SC_NM = '중학교' OR SCHUL_KND_SC_NM = '초등학교' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Show me the school names and fax numbers of coeducational private schools in order of oldest establishment date. , schema : CREATE TABLE "CURRENT_STS_VIDEO_PRODION_ES_YEONSU_GU_INCHEON" ( "IC_VIDEO_PRODION_SECTORS" TEXT, "IC_VIDEO_PRODION_MUTUAL" TEXT, "IC_VIDEO_PRODION_NAME" TEXT ); Show me the school names and fax numbers of coeducational private schools in order of oldest establishment date. CREATE TABLE "FCLT_OPEN_INFO_S_M" ( "FCLT_NM" TEXT, "SDM_WELFARE_FCLT_CD" TEXT, "FCLT_KIND_NM" TEXT, "FCLT_KIND_DTL_NM" TEXT, "SDM_WELFARE_JRSD_SGG_NM" TEXT, "FCLT_ADDR" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_031403_G_R" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DCBYMD" TEXT, "CLGSTDT" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "RDNWHLADDR" TEXT, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "CULWRKRSENM" TEXT, "TOTNUMLAY" TEXT, "NEARENVNM" TEXT, "MNFACTREARTCLCN" TEXT, "FACILAR" TEXT, "UNDERNUMLAY" TEXT, "PASGBRETH" TEXT, "NOROOMCNT" TEXT, "BGROOMCNT" TEXT, "EMERSTAIRYN" TEXT, "AUTOCHAAIRYN" TEXT, "BGROOMYN" TEXT ); CREATE TABLE "BUK_GU_DAEGU_FOOD_SERVICE_I" ( "INDUSTRY_NAME" TEXT, "BUSINESS_NAME" TEXT, "LOCATION_MAP_NAME_ADDRESS" TEXT, "LOCATION_NUMBER_ADDRESS" TEXT, "DATA_BASE_DATE" TEXT ); | SELECT SCHUL_NM, ORG_FAXNO FROM NEIS_SCHOOL_INFO_DB WHERE FOND_SC_NM = '사립' AND COEDU_SC_NM = '남여공학' ORDER BY FOND_YMD |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Tell me the school names and phone numbers of coeducational schools whose school anniversaries are in March. , schema : CREATE TABLE "L_O_C_A_L_D_A_T_A_051801_M_P" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" NUMERIC, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "SNTUPTAENM" TEXT, "BDNGJISGFLRCNT" TEXT, "BDNGUNDERFLRCNT" TEXT, "USEJISGSTFLR" TEXT, "USEJISGENDFLR" TEXT, "USEUNDERENDFLR" TEXT, "HANSHILCNT" TEXT, "YANGSILCNT" TEXT, "YOKSILCNT" TEXT, "BALHANSILYN" TEXT, "CHAIRCNT" TEXT, "CNDPERMNTWHY" TEXT, "CNDPERMSTYMD" TEXT, "BDNGOWNSENM" TEXT, "WMEIPCNT" TEXT, "RCVDRYNCNT" TEXT, "ABEDCNT" TEXT, "MULTUSNUPSOYN" TEXT ); CREATE TABLE "STS_PHYSICAL_FITNESS_CNT_SEONGNAM_CITY_GYEONGGI_PROVINCE" ( "DISTINCTION" TEXT, "DYNAMIC" TEXT, "MUTUAL_NAME" TEXT, "MATERIAL_MAP_NAME_ADDRESS" TEXT, "PHONE_NUMBER" TEXT, "DATA_STANDARD_DATE" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_072213_D_B" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "MANEIPCNT" TEXT, "WMEIPCNT" TEXT, "TRDPJUBNSENM" TEXT, "TOTEPNUM" TEXT, "HOFFEPCNT" TEXT, "FCTYPDTJOBEPCNT" TEXT, "BDNGOWNSENM" TEXT, "ISREAM" TEXT, "FACILTOTSCP" TEXT ); CREATE TABLE "R_N_H_P_T_S_M_T_A_J_P_I_S_ZZ" ( "Y_2012_03V" TEXT, "Y_2012_04W" TEXT, "Y_2012_06Y" TEXT, "Y_2012_11D" TEXT, "Y_2012_12E" TEXT, "Y_2013_05J" TEXT, "Y_2013_06K" TEXT, "Y_2013_09N" TEXT, "Y_2014_01R" TEXT, "Y_2014_02S" TEXT, "Y_2014_05V" TEXT, "Y_2014_06W" TEXT, "Y_2014_07X" TEXT, "Y_2014_09Z" TEXT, "Y_2014_10A" TEXT, "Y_2015_03F" TEXT, "Y_2015_09L" TEXT, "Y_2016_04S" TEXT, "Y_2016_10Y" TEXT, "Y_2016_11Z" TEXT, "Y_2016_12A" TEXT, "Y_2017_01B" TEXT, "Y_2017_02C" TEXT, "Y_2017_06G" TEXT, "Y_2017_10K" TEXT, "Y_2017_11L" NUMERIC, "Y_2018_03P" TEXT, "Y_2018_04Q" TEXT, "Y_2018_05R" TEXT, "Y_2018_07T" TEXT, "Y_2018_08U" TEXT, "Y_2018_09V" TEXT, "Y_2018_10W" TEXT, "Y_2019_04C" TEXT, "Y_2019_06E" TEXT, "Y_2019_07F" TEXT, "Y_2019_08G" TEXT, "Y_2019_11J" TEXT, "Y_2020_01L" TEXT, "Y_2020_05P" TEXT, "Y_2020_07R" TEXT, "Y_2020_09T" TEXT, "Y_2020_10U" TEXT, "Y_2020_12W" TEXT, "Y_2021_01X" TEXT, "Y_2021_03Z" TEXT, "Y_2021_04A" TEXT, "Y_2021_05B" TEXT ); Tell me the school names and phone numbers of coeducational schools whose school anniversaries are in March. | SELECT SCHUL_NM, ORG_TELNO FROM NEIS_SCHOOL_INFO_JR WHERE COEDU_SC_NM = '남여공학' AND FOAS_MEMRD LIKE '_03%' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Show me the average number of operating vehicles by establishment type in descending order of the average number of vehicles operated. , schema : CREATE TABLE "CURRENT_STS_TOBACCO_RETAILER_DES_GIJANG_GUN_BUSAN" ( "ANNUAL" NUMERIC, "RETAILER" TEXT, "BUSINESS" TEXT, "LOCATION" TEXT, "DESIGNATED_DATE" TEXT, "BUSINESS_STATUS" TEXT ); CREATE TABLE "KHNP_ANNUAL_P_RELATIONS_DATA_STS" ( "YEARA" NUMERIC, "MONTHB" NUMERIC, "PROMOTIONAL_MATERIALSC" TEXT ); Show me the average number of operating vehicles by establishment type in descending order of the average number of vehicles operated. CREATE TABLE "L_O_C_A_L_D_A_T_A_103101_S_D" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "CULPHYEDCOBNM" TEXT, "PUPRSENM" TEXT, "INSURJNYNCODE" TEXT, "BDNGYAREA" TEXT, "MEMCOLLTOTSTFNUM" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_092808_S_B" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" NUMERIC, "APVCANCELYMD" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" NUMERIC, "SITEPOSTNO" TEXT, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "UPCHNM" TEXT ); | SELECT ESTABLISH, AVG(OPRA_VHCNT) FROM CHILD_SCHOOL_BUS_SB GROUP BY ESTABLISH ORDER BY AVG(OPRA_VHCNT) DESC |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Tell me the total capacity and temporary accommodation capacity of places with a total capacity of 20 or 30 people. , schema : CREATE TABLE "GG_NYJ_SPATIAL_INFO_SYS_ROAD_FAC_LAYER_INFO" ( "MANAGEMENT_NUMJ" NUMERIC, "GEOGRAPHICAL_FEATURE_CDK" TEXT, "M_D_A_D_T" TEXT, "ADMINISTRATIVE_AGENCYM" TEXT, "DATA_BASE_DTN" TEXT ); Tell me the total capacity and temporary accommodation capacity of places with a total capacity of 20 or 30 people. CREATE TABLE "STS_REGISTERED_INTERN_LOGISTICS_SERVICE_CO_BUSAN" ( "ANNUAL" NUMERIC, "COMPANY_NAME" TEXT, "REPRESENTATIVE" TEXT, "PHONE_NUMBER" TEXT, "STREET_NAME_ADDRESS" TEXT, "LATITUDE" NUMERIC, "HARDNESS" NUMERIC, "DATA_STANDARD_DATE" TEXT ); CREATE TABLE "SDBC_IMS_AUCTION_CATEGORY" ( "BASE_YEARQ" NUMERIC, "BASE_MONTHR" NUMERIC, "SORT_ORDERS" NUMERIC, "LOWEST_PLACE_STAT" TEXT, "CATEGORY_NMU" TEXT ); CREATE TABLE "GEO_INFO_DONG_GAS_USAGE2007_W_G_S" ( "OBJECTID" TEXT, "BASE_YEAR" TEXT, "ADM_DR_CD_NUMBER" NUMERIC, "ADM_DR_NM" TEXT, "SUM_07" NUMERIC, "SUM_08" NUMERIC ); | SELECT TOFOR_SMTOT , DTM_RCPTN_ABLTY_NMPR_SMTOT FROM NEIS_ACADEMY_INFO_YC WHERE TOFOR_SMTOT = '20' OR TOFOR_SMTOT = '30' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Tell me the number of classrooms and the area of private kindergartens with 7 or more classrooms. , schema : CREATE TABLE "L_O_C_A_L_D_A_T_A_082603_G_S" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" NUMERIC, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "X" TEXT, "Y" TEXT, "ASETSCP" TEXT, "BCTOTAM" TEXT, "SILMETNM" TEXT ); CREATE TABLE "KOMSCO_TENDER_NOTICE" ( "DIVISION_OF_WORK" TEXT, "ANNOUNCEMENT_STATE" TEXT, "BIDDING_NUMBER" NUMERIC, "BIDDING_ORDER" NUMERIC, "ANNOUNCEMENT_DATE" TEXT, "ANNOUNCEMENT" TEXT, "BIDDING_METHOD" TEXT, "BIDDING_START_DATE" TEXT, "BIDDING_END_DATE" TEXT, "TICKET_DATE" TEXT ); CREATE TABLE "CURRENT_STS_LOCAL_TAX_GYEONGSAN_GYEONGBUK" ( "DIVISION" NUMERIC, "TRIAL_NAME" TEXT, "CITIES_AND_COUNTIES" TEXT, "MUNICIPALITY" NUMERIC, "TAXATION_YEAR" NUMERIC, "THREE_NAME_NAME" TEXT, "TAX" NUMERIC, "TAXATION" NUMERIC, "NUMBER_OF_TAXPAYERS" NUMERIC, "RAIN_AND_THREE_AMOUNTS" NUMERIC ); Tell me the number of classrooms and the area of private kindergartens with 7 or more classrooms. CREATE TABLE "S_L_F_C_F_S_C_K_F_I_R_I_GH" ( "L_F_T_M_H" TEXT, "TOBACCO_DETAILST" TEXT, "DT_RECEPTIONU" TEXT, "DT_ACCEPTANCEV" TEXT ); | SELECT CRCNT, CLSRAREA FROM CHILD_SCHOOL_CLASS_AREA_SB WHERE ESTABLISH LIKE '%사립%' AND CRCNT >= 7 |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Tell me the names and addresses of kindergartens with 5 or more classrooms and 'Seongbuk-ro' in their address. , schema : CREATE TABLE "OPTICIAN_SHOP_IKSAN_JEONBUK" ( "TURN" NUMERIC, "EYEGLASS_BUSINESS" TEXT, "LOCATION_ROAD_NAME" TEXT, "PHONE_NUMBER" TEXT ); CREATE TABLE "DISTRICT_EMD" ( "ADMDONG_ID" NUMERIC, "ADMDONG_NM" TEXT, "ATDRC_NM" TEXT, "SIDO_NM" TEXT ); Tell me the names and addresses of kindergartens with 5 or more classrooms and 'Seongbuk-ro' in their address. CREATE TABLE "REFERENCE_POWER_PLANT_BENCHMARK_STS_KHNP_UAE_BUSINESS_YEAR_YEAR" ( "YEAR" NUMERIC, "BEM_NUM" NUMERIC, "TRIP_NUM" NUMERIC, "EDU_OTH_NUM" NUMERIC ); CREATE TABLE "STS_MANPOWER_INPUT_KHNP_UAE_PRO_YEAR_YEAR" ( "YEAR" NUMERIC, "MAG_PEOPLE" NUMERIC, "OSS_PEOPLE" NUMERIC, "OSSA_PEOPLE" NUMERIC, FOREIGN KEY ("YEAR") REFERENCES "REFERENCE_POWER_PLANT_BENCHMARK_STS_KHNP_UAE_BUSINESS_YEAR_YEAR"("YEAR") ); CREATE TABLE "SB_LIST_LOAN_COMPANY" ( "BSNS_SE" TEXT, "MNG_STATE_CODE" TEXT, "OLD_APV_NO" TEXT, "BUP_NM" TEXT, "REP_NM" TEXT, "UPCHE_GBN" TEXT, "WRKR_BUP_ADDR" TEXT, "WRKR_RD_FULL_ADDR" TEXT, "APV_YMD" TEXT, "LAST_CLS_YMD" TEXT, "WRKR_ESBMNT_YMD" TEXT, "HOFF_YN" TEXT, "LAST_MOD_YMD" TEXT ); | SELECT KINDERNAME, ADDR FROM CHILD_SCHOOL_CLASS_AREA_SB WHERE CRCNT >= 5 AND ADDR LIKE '%성북로%' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: When are the establishment dates and school anniversaries of schools where the establishment type is public or coeducational?, schema : When are the establishment dates and school anniversaries of schools where the establishment type is public or coeducational? CREATE TABLE "L_O_C_A_L_D_A_T_A_072302_G_B" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "ROPNYMD" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "SNTUPTAENM" TEXT, "MANEIPCNT" TEXT, "WMEIPCNT" TEXT, "LVSENM" TEXT, "HOFFEPCNT" TEXT, "MONAM" TEXT, "MULTUSNUPSOYN" TEXT, "FACILTOTSCP" TEXT, "JTUPSOMAINEDF" TEXT, "HOMEPAGE" TEXT ); CREATE TABLE "NRF_KCI_CITATION_IDX_INFO" ( "I_S_C_P_N_BB" TEXT, "N_S_P_K_L_C" TEXT, "F_L_N_A_S_DE" TEXT, "ISSUING_INSTITUTIONN" TEXT, "I_A_E_F" TEXT, "MAJOR_CLASP" TEXT, "M_CLASQ" TEXT, "REGISTERED_INFR" TEXT, "W_S_I_I_I_K_J_L_2_Y_J" TEXT, "I_I_K_J_L_2_Y_K" NUMERIC, "E_S_Q_I_2_Y_L" NUMERIC, "CENTRALITY_IDX_3_YEARSV" NUMERIC, "IMMEDIACY_IDXW" NUMERIC, "SELF_QUOTE_RATE_2_YEARSX" NUMERIC, "TWO_YEARS_PAPERSY" NUMERIC, "NUM_CITATIONS_2_YEARSZ" NUMERIC, "W_S_C_2_Y_RC" NUMERIC ); CREATE TABLE "HFE_MORTGAGE_STS_SURVEY_SE6002" ( "LOAN_INSTITUTION_CDO" TEXT, "LOAN_APPLICATION_DTP" NUMERIC, "LOAN_DTQ" NUMERIC ); CREATE TABLE "L_O_C_A_L_D_A_T_A_103201_S_P" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "CULPHYEDCOBNM" TEXT, "PUPRSENM" TEXT, "INSURJNYNCODE" TEXT, "LDERCNT" TEXT, "BDNGDNGNUM" TEXT, "MEMCOLLTOTSTFNUM" TEXT, "DRMKCOBNM" TEXT ); | SELECT FOND_YMD, FOAS_MEMRD FROM NEIS_SCHOOL_INFO_EP WHERE FOND_SC_NM = '공립' OR COEDU_SC_NM = '남여공학' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction:'Please tell me the names of private kindergartens with more than 300 after-school class days and the number of after-school class days.' , schema : CREATE TABLE "GGGJ_BUS_ROUTE_INFO" ( "ROUTE_NUMT" TEXT, "STARTING_POINTU" TEXT, "STOPOVERV" TEXT, "LAST_STOPW" TEXT, "FIRST_TRAIN_UPX" TEXT, "LAST_TRAIN_UPY" TEXT, "FIRST_DOWN_TRAINZ" TEXT, "LAST_TRAIN_GOING_DOWNA" TEXT, "ALLOC_INTERVALB" NUMERIC, "DATA_BASE_DTC" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_030801" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "TRDSTATEGBN" NUMERIC, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "X" TEXT, "Y" TEXT, "CULWRKRSENM" TEXT, "BDNGSRVNM" TEXT, "UNDERNUMLAY" TEXT, "STROOMCNT" TEXT, "CNSTYAREA" TEXT, "ENGSTNTRNMADDR" TEXT, "SHPTOTTONS" TEXT, "SHPCNT" TEXT, "SHPINFO" TEXT ); CREATE TABLE "GNYS_CLEANING_CO_STS" ( "COMPANY_NMV" TEXT, "B_O_A_R_N_O" TEXT, "PHONE_NUMX" TEXT ); CREATE TABLE "SB_FOOD_HYGIENE_BIZ_LOC_MANAGE" ( "SB_FOOD_HYGIENE_CGG_CODE" NUMERIC, "SB_FOOD_HYGIENE_CGG_NM" TEXT, "REGN_NM" TEXT, "SNT_UPTAE_NM" TEXT, "CNT" TEXT ); 'Please tell me the names of private kindergartens with more than 300 after-school class days and the number of after-school class days.' | SELECT KINDERNAME, ESTABLISH FROM CHILD_SCHOOL_LESSON_NW WHERE ESTABLISH LIKE '%사립%' AND AFSC_PROS_LSN_DCNT <= 300 |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: 'Please tell me the number of schools and their types in order of the number of schools.' , schema : 'Please tell me the number of schools and their types in order of the number of schools.' CREATE TABLE "L_O_C_A_L_D_A_T_A_030901_G_R" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "X" TEXT, "Y" TEXT, "CULPHYEDCOBNM" TEXT, "CULWRKRSENM" TEXT, "NEARENVNM" TEXT, "MNFACTREARTCLCN" TEXT, "FACILAR" TEXT, "UNDERNUMLAY" TEXT, "BDNGSRVNM" TEXT, "LGHTFACILINILLU" TEXT, "BGROOMCNT" TEXT, "EMERSTAIRYN" TEXT, "EMEXYN" TEXT, "SOUARFACILYN" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_010204_S_B" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "CRFTUSELESSNUM" TEXT, "CRFTUSEMOTNUM" TEXT, "SPWVCLERNUM" TEXT, "SBMCNT" TEXT, "BURYCNT" TEXT, "PINDEXCNT" TEXT ); CREATE TABLE "SEOUL_HISTORY_LIBRARY_BOOK_SEARCH" ( "BOOKNO" NUMERIC, "BOOK_SIGN" TEXT, "MARCNO" NUMERIC, "TITLE" TEXT, "AUTHOR" TEXT, "PUB" TEXT, "PUBDATE" TEXT, "LOCATE" TEXT, "LOCATE_NM" TEXT, "LANG_NM" TEXT ); CREATE TABLE "PARKING_LOT_STS_CHANGWON_SOUTH_GYEONGSANG_PROVINCE" ( "ANNUAL" NUMERIC, "DIVISION" TEXT, "CONTACTS" TEXT, "NINE" TEXT, "EUPMYEON_DONG" TEXT, "PARKING_LOT" TEXT, "TENDON" TEXT, "NORMAL" NUMERIC, "DISABLED" NUMERIC, "ECO_FRIENDLY" NUMERIC, "NOTE" TEXT ); | SELECT SCHUL_KND_SC_NM, COUNT(SCHUL_NM) FROM NEIS_SCHOOL_INFO_NW GROUP BY SCHUL_KND_SC_NM ORDER BY COUNT(SCHUL_NM) DESC |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: 'Please tell me the establishment date and the foundation anniversary of public schools with five-character names.' , schema : CREATE TABLE "L_O_C_A_L_D_A_T_A_103201_J_R" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "INSURJNYNCODE" TEXT, "LDERCNT" TEXT, "BDNGYAREA" TEXT, "MEMCOLLTOTSTFNUM" TEXT, "DRMKCOBNM" TEXT, "BUPNM" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_031203_J_N" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGENDDT" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEDT" TEXT, "X" TEXT, "Y" TEXT, "CULPHYEDCOBNM" TEXT, "CULWRKRSENM" TEXT, "NEARENVNM" TEXT, "MNFACTREARTCLCN" TEXT, "INSURORGNM" TEXT, "JISGNUMLAY" TEXT, "STROOMCNT" TEXT, "CNSTYAREA" TEXT, "ENGSTNTRNMNM" TEXT, "SHPTOTTONS" TEXT, "SHPCNT" TEXT, "CAPT" TEXT, "INSURSTDT" TEXT, "INSURENDDT" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_031103_G_R" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "SNTUPTAENM" TEXT, "BDNGJISGFLRCNT" TEXT, "BDNGUNDERFLRCNT" TEXT, "USEJISGENDFLR" TEXT, "USEUNDERSTFLR" TEXT, "HANSHILCNT" TEXT, "YANGSILCNT" TEXT, "YOKSILCNT" TEXT, "BALHANSILYN" TEXT, "CNDPERMNTWHY" TEXT, "CNDPERMSTYMD" TEXT, "CNDPERMENDYMD" TEXT, "BDNGOWNSENM" TEXT, "WASHMCCNT" TEXT, "WMEIPCNT" TEXT, "MANEIPCNT" TEXT, "MULTUSNUPSOYN" TEXT ); 'Please tell me the establishment date and the foundation anniversary of public schools with five-character names.' CREATE TABLE "L_O_C_A_L_D_A_T_A_051801_S_D" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" NUMERIC, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "SNTUPTAENM" TEXT, "BDNGJISGFLRCNT" TEXT, "BDNGUNDERFLRCNT" TEXT, "USEJISGSTFLR" TEXT, "USEJISGENDFLR" TEXT, "USEUNDERENDFLR" TEXT, "HANSHILCNT" TEXT, "YANGSILCNT" TEXT, "YOKSILCNT" TEXT, "BALHANSILYN" TEXT, "CHAIRCNT" TEXT, "CNDPERMNTWHY" TEXT, "CNDPERMENDYMD" TEXT, "WASHMCCNT" TEXT, "WMEIPCNT" TEXT, "MANEIPCNT" TEXT, "RCVDRYNCNT" TEXT, "ABEDCNT" TEXT ); | SELECT FOND_YMD, FOAS_MEMRD FROM NEIS_SCHOOL_INFO_M_S WHERE FOND_SC_NM = '공립' AND SCHUL_NM LIKE '__' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: 'Please tell me the names and establishment dates of academies with a total capacity of more than 200 students or a total temporary accommodation capacity of more than 100 students.' , schema : CREATE TABLE "L_O_C_A_L_D_A_T_A_093011_M_P" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGENDDT" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "OFEAR" TEXT, "DISFETVEHGARAR" TEXT, "MICROSPKLNUM" TEXT, "HNDUSESTLZNUM" TEXT, "HDOPTDSPRAYNUM" TEXT, "PROTGLSNUM" TEXT, "PROTUSECLOTNUM" TEXT, "VACUCLERNUM" TEXT ); CREATE TABLE "NRF_KCI_CITATION_IDX_INFO" ( "I_S_C_P_N_BB" TEXT, "N_S_P_K_L_C" TEXT, "F_L_N_A_S_DE" TEXT, "ISSUING_INSTITUTIONN" TEXT, "I_A_E_F" TEXT, "MAJOR_CLASP" TEXT, "M_CLASQ" TEXT, "REGISTERED_INFR" TEXT, "W_S_I_I_I_K_J_L_2_Y_J" TEXT, "I_I_K_J_L_2_Y_K" NUMERIC, "E_S_Q_I_2_Y_L" NUMERIC, "CENTRALITY_IDX_3_YEARSV" NUMERIC, "IMMEDIACY_IDXW" NUMERIC, "SELF_QUOTE_RATE_2_YEARSX" NUMERIC, "TWO_YEARS_PAPERSY" NUMERIC, "NUM_CITATIONS_2_YEARSZ" NUMERIC, "W_S_C_2_Y_RC" NUMERIC ); CREATE TABLE "L_O_C_A_L_D_A_T_A_082602_S_P" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" NUMERIC, "APVPERMYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "Y" TEXT, "ASETSCP" TEXT, "BCTOTAM" TEXT, "CAPT" TEXT, "SILMETNM" TEXT ); CREATE TABLE "CURRENT_STS_LOCAL_TAX_DELINQUENCY_GOYANG_SI_GYEONGGI" ( "TRIAL_NAME" TEXT, "CITIES_AND_COUNTIES" TEXT, "MUNICIPALITY" NUMERIC, "TAXATION_YEAR" NUMERIC, "THREE_NAME_NAME" TEXT, "ARREARS" TEXT, "NUMBER_OF_ARREARS" NUMERIC, "DELINQUENCY" NUMERIC, "CUMULATIVE_ARREARS" NUMERIC, "CUMULATIVE_AMOUNT" NUMERIC ); 'Please tell me the names and establishment dates of academies with a total capacity of more than 200 students or a total temporary accommodation capacity of more than 100 students.' | SELECT ACA_NM, ESTBL_YMD FROM NEIS_ACADEMY_INFO WHERE TOFOR_SMTOT >= 200 OR DTM_RCPTN_ABLTY_NMPR_SMTOT >= 100 |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: 'When is the foundation anniversary and establishment date of elementary or middle schools?' , schema : CREATE TABLE "L_O_C_A_L_D_A_T_A_093011_M_P" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGENDDT" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "OFEAR" TEXT, "DISFETVEHGARAR" TEXT, "MICROSPKLNUM" TEXT, "HNDUSESTLZNUM" TEXT, "HDOPTDSPRAYNUM" TEXT, "PROTGLSNUM" TEXT, "PROTUSECLOTNUM" TEXT, "VACUCLERNUM" TEXT ); 'When is the foundation anniversary and establishment date of elementary or middle schools?' CREATE TABLE "L_O_C_A_L_D_A_T_A_103302" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEDT" TEXT, "UPTAENM" TEXT, "Y" TEXT, "CULPHYEDCOBNM" TEXT, "INSURJNYNCODE" TEXT, "BDNGDNGNUM" TEXT, "BDNGYAREA" TEXT, "MEMCOLLTOTSTFNUM" TEXT ); CREATE TABLE "NANUMCAR_SPOT_LIST" ( "LA" NUMERIC, "LO" NUMERIC, "POSITN_CD" TEXT, "ELCTYVHCLE_AT" TEXT, "ADRES" TEXT, "POSITN_NM" TEXT ); CREATE TABLE "C_STS_DEV_TECH_SOIL_GROUNDW_KEITI" ( "NUMJ" NUMERIC, "BUSINESS_NMK" TEXT, "UNIT_BUSINESSL" TEXT, "INTERMEDIATE_FIELDM" TEXT, "ASSIGNMENT_NMN" TEXT, "GOVERNING_BODYO" TEXT, "PERSON_CHARGEP" TEXT, "RESEARCH_STAQ" TEXT ); | SELECT FOND_YMD, FOAS_MEMRD FROM NEIS_SCHOOL_INFO_MP WHERE SCHUL_KND_SC_NM = '중학교' OR SCHUL_KND_SC_NM = '초등학교' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: 'When are the establishment date and registration date of academies and private institutes with a total capacity of more than 800 students or a curriculum name in music?' , schema : CREATE TABLE "CHILD_CARE_INFO_E_P" ( "SIGUNNAME" TEXT, "STCODE" NUMERIC, "CRNAME" TEXT, "CRTYPENAME" TEXT, "CRSTATUSNAME" TEXT, "ZIPCODE" NUMERIC, "CRADDR" TEXT, "CRFAXNO" TEXT, "NRTRROOMCNT" TEXT, "NRTRROOMSIZE" TEXT, "PLGRDCO" TEXT, "CRCAPAT" TEXT, "LA" NUMERIC, "LO" NUMERIC, "CRCARGBNAME" TEXT, "CRPAUSEBEGINDT" TEXT, "CRABLDT" TEXT, "DATASTDRDT" TEXT, "CRSPEC" TEXT, "CLASS_CNT_01" TEXT, "CLASS_CNT_03" TEXT, "CLASS_CNT_04" TEXT, "CLASS_CNT_05" TEXT, "CLASS_CNT_M5" TEXT, "CLASS_CNT_TOT" TEXT, "CHILD_CNT_00" TEXT, "CHILD_CNT_03" TEXT, "CHILD_CNT_04" TEXT, "EM_CNT_A7" TEXT ); 'When are the establishment date and registration date of academies and private institutes with a total capacity of more than 800 students or a curriculum name in music?' CREATE TABLE "DETAILS_STREET_SECURITY_LAMP_FAULT_REPORT_CHUNGJU_CHUNGBUK" ( "DATE_OF_RECEIPT" TEXT, "DECLARATION" TEXT, "TYPE" TEXT, "BREAKDOWN" TEXT, "REPAIR_DATE" TEXT, "REPAIR_CONTENT" TEXT, "PROCESSING_RESULTS" TEXT, "DATA_STANDARD_DATE" TEXT ); CREATE TABLE "VW_NOTICE" ( "N_SEQ" TEXT, "N_TITLE" TEXT, "N_CONTENTS" TEXT, "N_VIEW_COUNT" TEXT, "REG_DATE" TEXT, "FILE_PATH" TEXT ); CREATE TABLE "CURRENT_STS_WOMEN_ENT_DALSEO_GU_DAEGU" ( "LATITUDE" NUMERIC, "HARDNESS" NUMERIC, "COMPANY_NAME" TEXT, "REPRESENTATIVE" TEXT, "FULL_TIME_WORKER" NUMERIC, "LOCATION" TEXT, "MAIN_BUSINESS" TEXT, "PHONE_NUMBER" TEXT, "MAJOR_PRODUCTION_ITEMS" TEXT, "DEPARTMENT_CHARGE" TEXT, "BASE_DATE" TEXT ); | SELECT ESTBL_YMD, REG_YMD FROM NEIS_ACADEMY_INFO_SM WHERE TOFOR_SMTOT >= 800 OR LE_CRSE_NM = '음악' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: 'When are the opening date and operating hours of kindergartens on Madeul-ro, Nowon-gu, established after 2000?' , schema : CREATE TABLE "INFO_RELATED_AGENCIES_KR_CREATIVE_CONTENT_AGENCY" ( "ENGINE_LOGOL" TEXT, "BUSINESS_FIELD_BUSINESSM" TEXT, "BUSINESS_OPERATIONSN" TEXT, "CRAWLING_TARGET_SITE_CDO" NUMERIC, "RE_DT_TIMEP" TEXT, "R_I_C_VA" NUMERIC, "NM_RELATED_AGENCYR" TEXT, "RELATED_AGENCY_NUMS" NUMERIC, "S_R_I_XZ" NUMERIC, "RELATED_AGENCIES_URLU" TEXT, "I_I_BB" TEXT, "MODIFIED_DT_TIMEW" TEXT ); CREATE TABLE "LIST_NEWS_EMPLOY" ( "BOARD_ID" NUMERIC, "TITLE" TEXT, "KOR_NAME" TEXT, "CREATE_DATE" NUMERIC, "UPDATE_DATE" NUMERIC, "DEADLINE_DATE" TEXT, "ORGAN" TEXT, "POSITION" TEXT, "TEL" TEXT, "EMAIL" TEXT, "TAG_WORD" TEXT, "CONTENTS" TEXT, "READ_CNT" NUMERIC, "TRACKBACK" TEXT, "START_DATE" NUMERIC, "END_DATE" NUMERIC, "DATE_CHECK" TEXT, "FILE_COUNT" NUMERIC, "FILE_APPD_ID" NUMERIC, "APPD_FILE_NAME" TEXT, "FILE_SIZE" NUMERIC, "FILE_URL" TEXT ); 'When are the opening date and operating hours of kindergartens on Madeul-ro, Nowon-gu, established after 2000?' CREATE TABLE "LIST_SNOW_REMOVE_BOX" ( "G2_ID" NUMERIC, "SBOX_NUM" TEXT, "MGC_NM" TEXT, "DETL_CN" TEXT, "RM" TEXT, "G2_XMIN" NUMERIC, "G2_YMIN" NUMERIC, "G2_XMAX" NUMERIC, "G2_YMAX" NUMERIC ); CREATE TABLE "V_NTCN_NGC002" ( "ATDRC_CODE" TEXT, "SJ" TEXT, "REQST_BGNDE" TEXT, "REQST_ENDDE" TEXT, "USE_BGNDE" TEXT, "USE_ENDDE" TEXT, "REQST_TRGET_CODE" TEXT, "RCRIT_NMPR" NUMERIC, "ONSLF_REQST_AT" TEXT, "LINK" TEXT, "CHRGE" TEXT, "CN" TEXT, "TELNO" TEXT, "ZIP" TEXT, "RDNMADR" TEXT, "ADRES_DETAIL" TEXT, "LA" NUMERIC, "LO" NUMERIC, "ATPN" TEXT, "HMPG_ADRES" TEXT, "REFRNC" TEXT, "REQST_STTUS_CODE" TEXT ); | SELECT ODATE, OPERTIME FROM CHILD_SCHOOL_INFO_NW WHERE ADDR LIKE '%노원구 마들로%' AND EDATE >= 20000101000000 |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: 'Please tell me the names and establishment dates of academies with a curriculum in design or machinery.' , schema : CREATE TABLE "GBE_GBE_YOUNGJU_SEONBI_LIBRARY_HOPE_BOOK_PURCHASE_LIST" ( "NUMI" NUMERIC, "SIGNATUREJ" TEXT, "AUTHORK" TEXT, "ISSUERL" TEXT, "YEAR_ISSUE_YEARM" NUMERIC, "UNIT_PRICEN" NUMERIC, "NUM_BOOKSO" NUMERIC, "AMTP" NUMERIC, "NOTEQ" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_114602_G_C" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "X" TEXT, "Y" TEXT, "EMERFACILLOC" TEXT, "FACILNMBDNGNM" TEXT, "DSVYMD" TEXT ); CREATE TABLE "JONGNO_MODEL_RESTAURANT_CANCEL" ( "JNO_RESTAURANT_CANCEL_CGG_CODE" NUMERIC, "ASGN_YY" TEXT, "JNO_RESTAURANT_CANCEL_ASGN_SNO" TEXT, "JNO_RESTAURANT_CANCEL_APPL_YMD" TEXT, "JNO_RESTAURANT_CANCEL_ASGN_YMD" TEXT, "JNO_RESTAURANT_CANCEL_ASGN_CANCEL_YMD" TEXT, "UPSO_NM" TEXT, "JNO_RESTAURANT_CANCEL_SITE_ADDR" TEXT, "SNT_UPTAE_NM" TEXT, "ASGN_CANCEL_WHY" TEXT, "MAIN_EDF" TEXT, "JNO_RESTAURANT_CANCEL_TRDP_AREA" NUMERIC, "ADMDNG_NM" TEXT ); CREATE TABLE "GG_UI_LOCAL_TAX_COL_STS" ( "CITY_PROVINCEC" TEXT, "NM_CITY_COUNTY_DISTRICTD" TEXT, "TAX_YEARF" NUMERIC, "NM_DETAILG" TEXT, "IMPOSITION_AMTH" NUMERIC, "STORAGE_SUPPLY_AMTI" NUMERIC, "REFUND_AMTJ" NUMERIC, "DEFICIT_AMTK" NUMERIC, "OUTSTANDING_AMTL" NUMERIC, "COLLECTION_RATEM" NUMERIC ); 'Please tell me the names and establishment dates of academies with a curriculum in design or machinery.' | SELECT ACA_NM, ESTBL_YMD FROM NEIS_ACADEMY_INFO_YD WHERE LE_CRSE_NM = '디자인' OR LE_CRSE_NM = '기계' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: 'Please find the names and addresses of private kindergartens with a public notice number of 20221.' , schema : CREATE TABLE "TP_RENTAL_STS" ( "STANDARDS" NUMERIC, "RENTAL_TYPE" TEXT, "NUMBER_OF_CASES" NUMERIC, "ONE_THOUSAND_WON" NUMERIC ); CREATE TABLE "L_O_C_A_L_D_A_T_A_031301" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "SITEAREA" TEXT, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "CULPHYEDCOBNM" TEXT, "TOTNUMLAY" TEXT, "NEARENVNM" TEXT, "FACILAR" TEXT, "JISGNUMLAY" TEXT, "BDNGSRVNM" TEXT, "PASGBRETH" TEXT, "LGHTFACILINILLU" TEXT, "NOROOMCNT" TEXT, "BGROOMCNT" TEXT, "EMERSTAIRYN" TEXT, "AUTOCHAAIRYN" TEXT, "BGROOMYN" TEXT, "FRSTREGTS" TEXT ); CREATE TABLE "BIZ_FIELD" ( "FIS_YEAR" TEXT, "SUGG_NO" NUMERIC, "OP_ID" NUMERIC, "SUBCOMM_CD" NUMERIC, "JO" TEXT, "OP_START_DT" TEXT, "OP_END_DT" TEXT, "OP_DESC" TEXT, "USE_YN" TEXT, "REG_DT" TEXT, "UP_DT" TEXT, "PART_MEMBER_ID" TEXT, "PART_MEMBER_CD" NUMERIC, "OP_DESC2" TEXT, "OP_DESC3" TEXT, "OP_DESC4" TEXT, "OP_DESC5" TEXT ); CREATE TABLE "KOSAF_YOUTH_EDU_MNG_ENFORCEMENT_DETAILS" ( "PRODUCT_CDZ" TEXT, "YEARA" NUMERIC, "SEMESTERB" NUMERIC, "UNIVERSITY_CDC" TEXT, "L_D_L_C_C_G" TEXT, "LABOR_DETAILS_CLAS_CDE" TEXT, "DETAILED_DT_TIME_CHANGEF" TEXT, "NUM_WORK_DEPARTMENTSG" NUMERIC, "TARGET_NUM_PEOPLEH" NUMERIC, "EXECUTION_AMTI" NUMERIC, "DT_TIME_INITIAL_REJ" TEXT, "LAST_CHANGE_DT_TIMEK" TEXT ); 'Please find the names and addresses of private kindergartens with a public notice number of 20221.' | SELECT KINDERNAME, ADDR FROM CHILD_SCHOOL_YEAR_WORK_DD WHERE PBNTTMNG = 20221 AND ESTABLISH LIKE '%사립%' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: 'Please tell me the location and phone number of medical institutions that are general hospitals or psychiatric hospitals.', schema : CREATE TABLE "CULTURAL_SPACE_INFO" ( "NUM" NUMERIC, "SUBJCODE" TEXT, "FAC_NAME" TEXT, "ADDR" TEXT, "X_COORD" TEXT, "Y_COORD" TEXT, "PHNE" TEXT, "FAX" TEXT, "HOMEPAGE" TEXT, "OPENHOUR" TEXT, "ENTR_FEE" TEXT, "CLOSEDAY" TEXT, "OPEN_DAY" TEXT, "SEAT_CNT" TEXT, "MAIN_IMG" TEXT, "ETC_DESC" TEXT, "FAC_DESC" TEXT, "ENTRFREE" TEXT, "SUBWAY" TEXT, "BUSSTOP" TEXT, "YELLOW" TEXT, "GREEN" TEXT, "BLUE" TEXT, "RED" TEXT, "AIRPORT" TEXT ); 'Please tell me the location and phone number of medical institutions that are general hospitals or psychiatric hospitals.' CREATE TABLE "L_O_C_A_L_D_A_T_A_072218_S_P" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" NUMERIC, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEDT" TEXT, "UPTAENM" TEXT, "Y" TEXT, "SNTUPTAENM" TEXT, "MANEIPCNT" TEXT, "WMEIPCNT" TEXT, "TRDPJUBNSENM" TEXT, "LVSENM" TEXT, "WTRSPLYFACILSENM" TEXT, "TOTEPNUM" TEXT, "HOFFEPCNT" TEXT, "FCTYOWKEPCNT" TEXT, "FCTYSILJOBEPCNT" TEXT, "FCTYPDTJOBEPCNT" TEXT, "BDNGOWNSENM" TEXT, "FACILTOTSCP" TEXT, "JTUPSOASGNNO" TEXT, "JTUPSOMAINEDF" TEXT, "HOMEPAGE" TEXT ); CREATE TABLE "STS_S_UNLISTED_SECURITIES_KR_ASSET_MNG_C" ( "NM_EVENTS" TEXT, "AMT_SALET" NUMERIC, "QUANTITY_STATEU" NUMERIC, "CONTRACT_DTV" TEXT, "TAX_ITEMS_GOODSW" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_051901_G_N" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" NUMERIC, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "BPLCNM" TEXT, "UPDATEGBN" TEXT, "X" TEXT, "Y" TEXT, "SNTUPTAENM" TEXT, "BDNGJISGFLRCNT" TEXT, "USEJISGSTFLR" TEXT, "USEJISGENDFLR" TEXT, "HANSHILCNT" TEXT, "YANGSILCNT" TEXT, "YOKSILCNT" TEXT, "BALHANSILYN" TEXT, "CHAIRCNT" TEXT, "CNDPERMNTWHY" TEXT, "CNDPERMSTYMD" TEXT, "BDNGOWNSENM" TEXT, "WASHMCCNT" TEXT, "WMEIPCNT" TEXT, "RCVDRYNCNT" TEXT, "ABEDCNT" TEXT, "MULTUSNUPSOYN" TEXT ); | SELECT LOCATION, PHONE_NUMBER FROM CURRENT_STS_MEDICAL_INST_OKCHEON_GUN_CHUNGBUK WHERE DIVISION = '정신병원' OR DIVISION = '종합병원' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction:Tell me the name and address of medical institutions whose displayed subject is internal medicine or otorhinolaryngology. , schema : CREATE TABLE "DJ_SISEOL_MEMORIAL_PARK_BONGAN_MONTHLY_STS" ( "YEAR" NUMERIC, "MONTH" NUMERIC, "TOTAL" NUMERIC, "FLEXIBLE_SUBTOTAL_SYSTEM" NUMERIC, "FLEXIBLE_TUBE" NUMERIC, "FLEXIBLE_OUT_WAY" NUMERIC, "COMBUSTION_FREE_SYSTEM" NUMERIC, "LEAD_FREE_JURISDICTION" NUMERIC, "UNCONNECTED_OUT_OF" NUMERIC ); Tell me the name and address of medical institutions whose displayed subject is internal medicine or otorhinolaryngology. CREATE TABLE "SEOUL_ADMIN_MESURE" ( "CGG_CODE" NUMERIC, "ADM_DISPO_YMD" TEXT, "SNT_COB_NM" TEXT, "SNT_UPTAE_NM" TEXT, "UPSO_NM" TEXT, "SITE_ADDR_RD" TEXT, "SITE_ADDR" TEXT, "DRT_INSP_YMD" TEXT, "ADMM_STATE" TEXT, "DISPO_CTN" TEXT, "BAS_LAW" TEXT, "VIOR_YMD" TEXT, "VIOL_CN" TEXT, "DISPO_CTN_DT" TEXT, "NT_GBN_CODE" TEXT, "TRDP_AREA" NUMERIC ); CREATE TABLE "GD_LIST_LOAN_COMPANY" ( "BSNS_SE" TEXT, "MNG_STATE_CODE" TEXT, "BUP_NM" TEXT, "UPCHE_GBN" TEXT, "WRKR_BUP_TELNO" TEXT, "APV_YMD" TEXT, "END_APV_YMD" TEXT, "WRKR_ESBMNT_YMD" TEXT, "HOFF_YN" TEXT, "LAST_MOD_YMD" TEXT ); CREATE TABLE "KEPCO_SAFE_MNG_INFO" ( "CLAS_NUMO" TEXT, "BREAKDOWNP" TEXT, "UNITQ" TEXT, "USAGE_CLASR" TEXT, "ACCOUNT_CLASS" TEXT, "FACILITY_CLAST" TEXT, "RE_DTU" TEXT, "REGISTRARV" NUMERIC, "NOTEW" TEXT ); | SELECT NM_MEDICAL_INSTITUTIONH, ADDRESSD FROM STS_GWWJ_MANDATORY_VACCINATION_CONSIGNMENT_MEDICAL_INST WHERE DISPLAY_SJF = '내과' OR DISPLAY_SJF = '이비인후과' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: What are the names of medical institutions that are nursing hospitals or have Gyeongin-ro included in their road name address? , schema : CREATE TABLE "L_O_C_A_L_D_A_T_A_010204_N_W" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "SITETEL" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "Y" TEXT, "CRFTUSELESSNUM" TEXT, "CTPLCTMCENUM" TEXT, "CRFTUSEMOTNUM" TEXT, "EFURNUM" TEXT, "PCANNUM" TEXT, "SPWVCLERNUM" TEXT, "VITRNUM" TEXT, "TRMNUM" TEXT, "CRFTUSECOMPRECNT" TEXT, "SBMCNT" TEXT, "BURYCNT" TEXT ); CREATE TABLE "TB_RPRT_HOSP" ( "RNUM" TEXT, "YADMNM" TEXT, "SGGUCDNM" TEXT, "RECUCLCD" NUMERIC, "RPRTWORPCLICFNDTTGTYN" TEXT, "ADDR" TEXT, "TELNO" TEXT, "RATPSBLYN" TEXT, "PCRPSBLYN" TEXT, "MGTSTADD" TEXT, "XPOS" NUMERIC, "XPOSWGS84" NUMERIC, "YPOS" NUMERIC, "YPOSWGS84" NUMERIC, "YKIHOENC" TEXT ); CREATE TABLE "TAX_STS_TAX_SOURCE_TYPE_DAEDEOK_GU_DAEJEON" ( "CITY_AND_PROVINCIAL_NAMES" TEXT, "NAME_CITY_AND_COUNTY" TEXT, "LOCAL_GOVERNMENT_CODE" NUMERIC, "TAX_YEAR" NUMERIC, "DETAILED_NAME" TEXT, "TYPE_NAME_TAX_SOURCE" TEXT, "NUMBER_IMPOSITIONS" NUMERIC, "IMPOSED_AMOUNT" NUMERIC ); CREATE TABLE "TAX_STS_LOCAL_TAX_DAEDEOK_GU_DAEJEON" ( "CITY_AND_PROVINCIAL_NAMES" TEXT, "NAME_CITY_AND_COUNTY" TEXT, "LOCAL_GOVERNMENT_CODE" NUMERIC, "TAX_YEAR" NUMERIC, "DETAILED_NAME" TEXT, "NUMBER_TAXABLE_CASES" NUMERIC, "TAXABLE_AMOUNT" NUMERIC, "NUMBER_TAX_EXEMPTIONS" NUMERIC, "TAX_FREE_AMOUNT" NUMERIC, FOREIGN KEY ("DETAILED_NAME") REFERENCES "TAX_STS_TAX_SOURCE_TYPE_DAEDEOK_GU_DAEJEON"("DETAILED_NAME") ); What are the names of medical institutions that are nursing hospitals or have Gyeongin-ro included in their road name address? CREATE TABLE "STS_RADIOACTIVE_W_MNG_KHNP_NUCLEAR_PW_PLANT" ( "YEAR_MONTHM" TEXT, "SORTATIONN" TEXT, "RING_HEAD_DRUMO" NUMERIC, "S_H_D_L" NUMERIC, "W_H_D_M" NUMERIC, "H_H_D_N" NUMERIC, "D_H_H_O" NUMERIC, "TOTAL_DRUMT" NUMERIC ); | SELECT NM_MEDICAL_INSTITUTIONP FROM GGBC_HOSPITAL_STS WHERE M_I_T_P LIKE '요양병원%' OR M_I_A_R_N_RC LIKE '%경인로%' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Show me the number of statements and medical costs for places that correspond to Busan in the city and province or have fewer than 100 patients. , schema : CREATE TABLE "KW_GROUNDW_PIPELINE_INFO" ( "ADDRESSC" TEXT, "GROUNDWATER_USAGE_CDD" TEXT, "ANL_USAGEE" NUMERIC, "DEVELOPMENT_DTF" TEXT, "DEPTHG" NUMERIC, "PUMPING_CPH" NUMERIC, "WATER_INTAKE_PLAN_AMTI" NUMERIC ); CREATE TABLE "TN_FCLTY_STTUS_INFO10075" ( "CLTUR_EVENT_ETC_NM" TEXT, "SVC_CL_CODE" NUMERIC, "SVC_CL_NM" TEXT, "ATDRC_CODE" NUMERIC, "ATDRC_NM" TEXT, "AGE_SE_CODE" NUMERIC, "AGE_SE_NM" TEXT, "FCLTY_CL_CODE" NUMERIC, "FCLTY_CL_NM" TEXT, "X_CRDNT_VALUE" NUMERIC, "Y_CRDNT_VALUE" NUMERIC, "ZIP" NUMERIC, "BASS_ADRES" TEXT, "DETAIL_ADRES" TEXT, "RNTFEE_FREE_AT" TEXT, "RNTFEE" TEXT, "GUIDANCE_URL" TEXT, "REGIST_DT" TEXT, "UPDT_DT" TEXT ); CREATE TABLE "GONG_GONG_ART_ETC" ( "GA_KNAME" TEXT, "GA_INS_DATE" TEXT, "CODE_N2_NAME" TEXT, "CODE_N3_NAME" TEXT, "GA_ADDR1" TEXT, "GA_ADDR2" TEXT, "CODE_A1" TEXT ); Show me the number of statements and medical costs for places that correspond to Busan in the city and province or have fewer than 100 patients. CREATE TABLE "SEOUL_ADMIN_MESURE" ( "CGG_CODE" NUMERIC, "ADM_DISPO_YMD" TEXT, "SNT_COB_NM" TEXT, "SNT_UPTAE_NM" TEXT, "UPSO_NM" TEXT, "SITE_ADDR_RD" TEXT, "SITE_ADDR" TEXT, "DRT_INSP_YMD" TEXT, "ADMM_STATE" TEXT, "DISPO_CTN" TEXT, "BAS_LAW" TEXT, "VIOR_YMD" TEXT, "VIOL_CN" TEXT, "DISPO_CTN_DT" TEXT, "NT_GBN_CODE" TEXT, "TRDP_AREA" NUMERIC ); | SELECT MEDICAL_TR_AMTO, NUM_SPECIFICATION_CASESM FROM BEHAVIOR_STS_HIRA_CITY WHERE NUM_PATIENTSL < 100 OR CITY_PROVINCEJ = '부산' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Tell me the city and medical year of places with fewer than 10 patients or over 5,000 statements. , schema : CREATE TABLE "L_O_C_A_L_D_A_T_A_031202_E_P" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGENDDT" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "CULPHYEDCOBNM" TEXT, "CULWRKRSENM" TEXT, "REGNSENM" TEXT, "TOTNUMLAY" TEXT, "MNFACTREARTCLCN" TEXT, "INSURORGNM" TEXT, "BDNGSRVNM" TEXT, "JISGNUMLAY" TEXT, "STROOMCNT" TEXT, "CNSTYAREA" TEXT, "ENGSTNTRNMADDR" TEXT, "SHPCNT" TEXT, "SHPINFO" TEXT, "INSURSTDT" TEXT, "INSURENDDT" TEXT, "FACILSCP" TEXT ); Tell me the city and medical year of places with fewer than 10 patients or over 5,000 statements. CREATE TABLE "L_O_C_A_L_D_A_T_A_104201_J_G" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "ROPNYMD" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "PUPRSENM" TEXT, "MEMCOLLTOTSTFNUM" TEXT, "DRMKCOBNM" TEXT, "BUPNM" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_010102_Y_D" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" NUMERIC, "Y" NUMERIC, "METRORGASSRNM" TEXT, "METRPNUM" TEXT, "HSTRMNUM" TEXT, "TOTAR" TEXT, "MEDEXTRITEMSCN" TEXT, "MEDEXTRITEMSCNNM" TEXT, "MITMDCDEPNM" TEXT, "EMERCARGEN" TEXT, "TOTEPNUM" TEXT, "RESCNT" TEXT, "PMTBEDNUM" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_031301_M_P" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATENM" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" TEXT, "SITEWHLADDR" TEXT, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "X" TEXT, "Y" TEXT, "CULPHYEDCOBNM" TEXT, "CULWRKRSENM" TEXT, "TOTNUMLAY" TEXT, "NEARENVNM" TEXT, "FACILAR" TEXT, "BDNGSRVNM" TEXT, "PASGBRETH" TEXT, "EMERSTAIRYN" TEXT, "EMEXYN" TEXT, "AUTOCHAAIRYN" TEXT, "BGROOMYN" TEXT, "FRSTREGTS" TEXT ); | SELECT MEDICAL_YEARI, CITY_PROVINCEJ FROM BEHAVIOR_STS_HIRA_CITY WHERE NUM_PATIENTSL < 10 OR NUM_SPECIFICATION_CASESM >= 5000 |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Find the relative value score and hospital cost in the fee master for those whose hospital cost is over 100,000 won and whose name in Korean starts with 'superior'. , schema : CREATE TABLE "NRF_KCI_CITATION_IDX_INFO" ( "I_S_C_P_N_BB" TEXT, "N_S_P_K_L_C" TEXT, "F_L_N_A_S_DE" TEXT, "ISSUING_INSTITUTIONN" TEXT, "I_A_E_F" TEXT, "MAJOR_CLASP" TEXT, "M_CLASQ" TEXT, "REGISTERED_INFR" TEXT, "W_S_I_I_I_K_J_L_2_Y_J" TEXT, "I_I_K_J_L_2_Y_K" NUMERIC, "E_S_Q_I_2_Y_L" NUMERIC, "CENTRALITY_IDX_3_YEARSV" NUMERIC, "IMMEDIACY_IDXW" NUMERIC, "SELF_QUOTE_RATE_2_YEARSX" NUMERIC, "TWO_YEARS_PAPERSY" NUMERIC, "NUM_CITATIONS_2_YEARSZ" NUMERIC, "W_S_C_2_Y_RC" NUMERIC ); CREATE TABLE "B_P_P_I_C_M_I_B_K_C_R_E_S_J" ( "MATERIAL_SEQUENCEW" TEXT, "TEMPERATUREX" NUMERIC, "SPECIFIC_HEATY" TEXT, "ENTHALPYZ" TEXT, "GIBBS_ENERGYA" TEXT, "MELTING_POINTB" TEXT, "BOILING_POINTC" TEXT, "HEAT_DISSOLUTIOND" TEXT, "HEAT_VAPORIZATIONE" TEXT, "SPECIFIC_GRAVITYF" TEXT, "CONSTRUCTORG" TEXT, "DT_CREATION_DTH" TEXT, "MODIFIERI" TEXT, "MODIFIED_DTJ" TEXT ); CREATE TABLE "GG_SU_BUS_STS" ( "SORTATIONX" TEXT, "ROUTE_NUMY" TEXT, "DISPATCH_INTERVALZ" TEXT, "STARTING_POINTA" TEXT, "STOPOVERB" TEXT, "LAST_STOPC" TEXT, "DATA_BASE_DTD" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_072405_S_P" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVCANCELYMD" TEXT, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "UPDATEGBN" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "SNTUPTAENM" TEXT, "MANEIPCNT" TEXT, "WMEIPCNT" TEXT, "TRDPJUBNSENM" TEXT, "LVSENM" TEXT, "WTRSPLYFACILSENM" TEXT, "HOFFEPCNT" TEXT, "FCTYOWKEPCNT" TEXT, "FCTYSILJOBEPCNT" TEXT, "ISREAM" TEXT, "FACILTOTSCP" TEXT, "JTUPSOASGNNO" TEXT, "JTUPSOMAINEDF" TEXT ); Find the relative value score and hospital cost in the fee master for those whose hospital cost is over 100,000 won and whose name in Korean starts with 'superior'. | SELECT HOSPITAL_UNIT_PRICER, RELATIVE_VALUE_SCOREU FROM HIRA_SUE_M WHERE KOREAN_NMM LIKE '상급%' AND HOSPITAL_UNIT_PRICER >= 100000 |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Show me the hospital cost and relative value score in the fee master for those with a psychiatric name included in the calculation name and a traditional Korean hospital cost of zero. , schema : CREATE TABLE "L_O_C_A_L_D_A_T_A_072219_S_P" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DCBYMD" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "SNTUPTAENM" TEXT, "MANEIPCNT" TEXT, "WMEIPCNT" TEXT, "TRDPJUBNSENM" TEXT, "LVSENM" TEXT, "WTRSPLYFACILSENM" TEXT, "TOTEPNUM" TEXT, "FCTYSILJOBEPCNT" TEXT, "FCTYPDTJOBEPCNT" TEXT, "BDNGOWNSENM" TEXT, "ISREAM" TEXT, "MONAM" TEXT, "MULTUSNUPSOYN" TEXT, "FACILTOTSCP" TEXT, "JTUPSOASGNNO" TEXT, "HOMEPAGE" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_104101_S_B" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "CULPHYEDCOBNM" TEXT, "PUPRSENM" TEXT, "INSURJNYNCODE" TEXT, "BDNGYAREA" TEXT ); CREATE TABLE "HIRA_SUE_M_PHARMACY" ( "NUMERICAL_CDD" TEXT, "KOREAN_NME" TEXT, "APPLICATION_DTF" TEXT, "UNIT_PRICEG" NUMERIC, "RELATIVE_VALUE_SCOREH" TEXT, "CLAS_NUMI" TEXT ); Show me the hospital cost and relative value score in the fee master for those with a psychiatric name included in the calculation name and a traditional Korean hospital cost of zero. CREATE TABLE "KW_UNDERGROUND_W_USAGE_STS_I_YEAR" ( "YEARX" NUMERIC, "CITY_PROVINCEY" TEXT, "C_C_C_D_A" TEXT, "TOTAL_NUM_PLACESA" NUMERIC, "TOTAL_UTILIZATIONB" NUMERIC, "N_N_I_C_DE" NUMERIC, "N_I_C_U_EA" NUMERIC, "N_L_I_C_F" NUMERIC, "U_L_I_C_G" NUMERIC, "N_A_I_C_H" NUMERIC, "A_I_C_U_I" NUMERIC, "NUM_FREE_LOC_COMPANIESI" NUMERIC, "FREE_LOC_COMPANY_USAGEJ" NUMERIC, "NUM_OTHER_PLACESK" NUMERIC, "OTHER_USAGEL" NUMERIC ); | SELECT HOSPITAL_UNIT_PRICER, RELATIVE_VALUE_SCOREU FROM HIRA_SUE_M WHERE NM_CALCULATIONN LIKE '%정신과%' AND COST_ORIENTAL_MEDICINEQ = 0 |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Tell me the names and codes of codes that include 'care benefits' in their names and are of the type 'review adjustment reason code'. , schema : CREATE TABLE "C_STS_GNGJ_MANDATORY_VACCINATION_CONSIGNMENT_MEDICAL_INST" ( "L_P_H_C_K" TEXT, "ENGINE_CDS" NUMERIC, "NM_MEDICAL_INSTITUTIONT" TEXT, "ADDRESSU" TEXT, "POSTAL_CDV" NUMERIC, "PHONE_NUMW" TEXT, "FAX_NUMX" TEXT, "CLASY" TEXT, "C_N_V_S" TEXT, "H_W_F_S_C_P_T" TEXT, "B_T_P_A_M_U" TEXT, "I_C_U_A_V" TEXT, "E_P_I_W" TEXT, "I_P_W_X" TEXT, "E_P_P_D_Y" TEXT, "COVID_19G" TEXT, "BASE_DTH" TEXT ); CREATE TABLE "KCG_GUIDE_LINE_ROUTE_INFO" ( "NM_ROUTEU" TEXT, "DEPARTURE_ROUTE_NMV" TEXT, "DESTINATION_ROUTE_NMW" TEXT, "DEPARTURE_ROUTE_ADDRESSX" TEXT, "D_R_A_Q" TEXT, "D_B_D_RC" TEXT, "NM_ANCHORAGEA" TEXT ); CREATE TABLE "KOMSCO_TENDER_NOTICE" ( "DIVISION_OF_WORK" TEXT, "ANNOUNCEMENT_STATE" TEXT, "BIDDING_NUMBER" NUMERIC, "BIDDING_ORDER" NUMERIC, "ANNOUNCEMENT_DATE" TEXT, "ANNOUNCEMENT" TEXT, "BIDDING_METHOD" TEXT, "BIDDING_START_DATE" TEXT, "BIDDING_END_DATE" TEXT, "TICKET_DATE" TEXT ); CREATE TABLE "MA_UPPER_FOOD_TB" ( "UPPER_FOOD_BIG_NM" TEXT, "UPPER_FOOD_MID_NM" TEXT, "UPPER_FOOD_SML_NM" TEXT, "UPPER_FOOD_SEQ" NUMERIC, "UPPER_FOOD_NM" TEXT, "UPPER_FOOD_DES" TEXT ); Tell me the names and codes of codes that include 'care benefits' in their names and are of the type 'review adjustment reason code'. | SELECT CD_NMX, CDW FROM HIRA_CD_T WHERE CD_NMX LIKE '%요양급여%' AND CD_TYPEV = '심사조정사유코드' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Tell me the codes and code names of the integrated medical department code and the medical field code. , schema : CREATE TABLE "C_STS_KEITI_GREEN_PROD_C_CO" ( "BUSINESS_NUMF" TEXT, "COMPANY_NMG" TEXT, "NM_REPRESENTATIVEH" TEXT, "ADDRESSI" TEXT, "DETAILED_ADDRESSJ" TEXT, "R_P_C_H" TEXT, "FAX_MACHINEL" TEXT, "HOMEPAGEM" TEXT ); CREATE TABLE "S_P_O_P_L_O_C_A_L_R_E_S_D_D_O_N_G" ( "STDR_DE_ID" TEXT, "TMZON_PD_SE" NUMERIC, "ADSTRD_CODE_SE" NUMERIC, "TOT_LVPOP_CO" NUMERIC, "MALE_F0T9_LVPOP_CO" TEXT, "MALE_F10T14_LVPOP_CO" TEXT, "MALE_F15T19_LVPOP_CO" NUMERIC, "MALE_F20T24_LVPOP_CO" NUMERIC, "MALE_F25T29_LVPOP_CO" NUMERIC, "MALE_F30T34_LVPOP_CO" NUMERIC, "MALE_F35T39_LVPOP_CO" NUMERIC, "MALE_F40T44_LVPOP_CO" NUMERIC, "MALE_F45T49_LVPOP_CO" NUMERIC, "MALE_F50T54_LVPOP_CO" NUMERIC, "MALE_F55T59_LVPOP_CO" NUMERIC, "MALE_F60T64_LVPOP_CO" NUMERIC, "MALE_F65T69_LVPOP_CO" NUMERIC, "MALE_F70T74_LVPOP_CO" NUMERIC, "FEMALE_F0T9_LVPOP_CO" TEXT, "FEMALE_F10T14_LVPOP_CO" TEXT, "FEMALE_F15T19_LVPOP_CO" NUMERIC, "FEMALE_F20T24_LVPOP_CO" NUMERIC, "FEMALE_F25T29_LVPOP_CO" NUMERIC, "FEMALE_F30T34_LVPOP_CO" NUMERIC, "FEMALE_F35T39_LVPOP_CO" NUMERIC, "FEMALE_F40T44_LVPOP_CO" NUMERIC, "FEMALE_F45T49_LVPOP_CO" NUMERIC, "FEMALE_F50T54_LVPOP_CO" NUMERIC, "FEMALE_F55T59_LVPOP_CO" NUMERIC, "FEMALE_F60T64_LVPOP_CO" NUMERIC, "FEMALE_F65T69_LVPOP_CO" NUMERIC, "FEMALE_F70T74_LVPOP_CO" NUMERIC ); Tell me the codes and code names of the integrated medical department code and the medical field code. CREATE TABLE "L_O_C_A_L_D_A_T_A_082604_S_P" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" NUMERIC, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" NUMERIC, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "SITETEL" TEXT, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "Y" TEXT, "SILMETNM" TEXT ); CREATE TABLE "C_STS_GNGJ_MANDATORY_VACCINATION_CONSIGNMENT_MEDICAL_INST" ( "L_P_H_C_K" TEXT, "ENGINE_CDS" NUMERIC, "NM_MEDICAL_INSTITUTIONT" TEXT, "ADDRESSU" TEXT, "POSTAL_CDV" NUMERIC, "PHONE_NUMW" TEXT, "FAX_NUMX" TEXT, "CLASY" TEXT, "C_N_V_S" TEXT, "H_W_F_S_C_P_T" TEXT, "B_T_P_A_M_U" TEXT, "I_C_U_A_V" TEXT, "E_P_I_W" TEXT, "I_P_W_X" TEXT, "E_P_P_D_Y" TEXT, "COVID_19G" TEXT, "BASE_DTH" TEXT ); | SELECT CDW, CD_NMX FROM HIRA_CD_T WHERE CD_TYPEV = '통합진료과목코드' OR CD_TYPEV = '진료분야코드' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Show me the ingredient names and ingredient codes of drugs that have 'pharmaceutical' in the company name and are non-reimbursable. , schema : CREATE TABLE "C_STS_DEPARTMENT_INFO_KR_PROFESSIONAL_UNIV_EDU_COUNCIL" ( "AREAV" TEXT, "ESTABLISHMENTW" TEXT, "NM_UNIVERSITYX" TEXT, "MAJOR_CLASY" TEXT, "M_CLASZ" TEXT, "SUBCATEGORYA" TEXT, "RECRUITMENT_UNITB" TEXT, "INTERDISCIPLINARYC" NUMERIC, "ADMISSION_CP_STATED" NUMERIC, "IT_ENTRANCE_QUOTAE" TEXT, "ADMISSION_CPF" NUMERIC, "ADMISSION_FEEG" TEXT ); CREATE TABLE "GGMP_TRAVEL_AGENCY" ( "COMPANY_NMJ" TEXT, "LOC_ADDRESSK" TEXT, "PHONE_NUML" TEXT, "INDUSTRY_CLASM" TEXT, "DATA_BASE_DTN" TEXT ); Show me the ingredient names and ingredient codes of drugs that have 'pharmaceutical' in the company name and are non-reimbursable. CREATE TABLE "GG_PC_GOOD_PRICE_M_RESTAURANT_STS" ( "SORTATIONO" TEXT, "BUSINESS_NMP" TEXT, "LOC_ADDRESSQ" TEXT, "PHONE_NUMR" TEXT, "MAJOR_ITEMS" TEXT, "INDUSTRYT" TEXT ); CREATE TABLE "STS_GG_SW_ELDERLY_WELFARE_FAC" ( "FACILITY_NMX" TEXT, "FACILITY_CLASY" TEXT, "LOC_MAP_NM_ADDRESSZ" TEXT, "LOC_NUM_ADDRESSA" TEXT, "LATITUDEB" NUMERIC, "HARDNESSC" NUMERIC, "PHONE_NUMD" TEXT, "OPERATION_ENTITY_CLASE" TEXT, "ADMINISTRATIVE_AGENCYF" TEXT, "DATA_BASE_DTG" TEXT ); | SELECT INGR_NMT, INGR_CDU FROM KR_DRUG_SAFE_MNG_AGENCY_DUR_INFO_CHILDREN_ATTENTION_DRUGS WHERE DSG_FM_CDE = '비급여' AND DRG_MRX LIKE '%제약%' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: List and display in dictionary order by ingredient name the ingredient names and drug names of drugs that are non-reimbursable and have a specific age of 25 or older., schema : CREATE TABLE "GB_US_SMART_W_METER_L" ( "SERIAL_NUME" NUMERIC, "AREAF" TEXT, "ADDRESSG" TEXT, "METER_READING_SYSH" TEXT ); CREATE TABLE "HF_HAENGJABU_HOUSING_OWNERSHIP_INFO" ( "BASE_DTE" TEXT, "WARRANTY_NUMF" TEXT, "ACQUISITION_DTG" TEXT, "DELETION_STAH" TEXT, "REGISTERED_COMPANY_NUMI" NUMERIC, "SALES_RP_DTJ" TEXT ); CREATE TABLE "TPSS_EMD_BUS" ( "CRTR_DT" TEXT, "ADMDONG_ID" NUMERIC, "BUS_PSGR_CNT" NUMERIC, "BUS_PSGR_CNT_00HH" NUMERIC, "BUS_PSGR_CNT_01HH" NUMERIC, "BUS_PSGR_CNT_02HH" NUMERIC, "BUS_PSGR_CNT_03HH" NUMERIC, "BUS_PSGR_CNT_04HH" NUMERIC, "BUS_PSGR_CNT_05HH" NUMERIC, "BUS_PSGR_CNT_06HH" NUMERIC, "BUS_PSGR_CNT_07HH" NUMERIC, "BUS_PSGR_CNT_08HH" NUMERIC, "BUS_PSGR_CNT_09HH" NUMERIC, "BUS_PSGR_CNT_10HH" NUMERIC, "BUS_PSGR_CNT_11HH" NUMERIC, "BUS_PSGR_CNT_12HH" NUMERIC, "BUS_PSGR_CNT_13HH" NUMERIC, "BUS_PSGR_CNT_14HH" NUMERIC, "BUS_PSGR_CNT_15HH" NUMERIC, "BUS_PSGR_CNT_16HH" NUMERIC, "BUS_PSGR_CNT_17HH" NUMERIC, "BUS_PSGR_CNT_18HH" NUMERIC, "BUS_PSGR_CNT_19HH" NUMERIC, "BUS_PSGR_CNT_20HH" NUMERIC, "BUS_PSGR_CNT_21HH" NUMERIC, "BUS_PSGR_CNT_22HH" NUMERIC, "BUS_PSGR_CNT_23HH" NUMERIC ); CREATE TABLE "STS_MAJOR_CONST_PRO_SUYEONG_GU_BUSAN" ( "ANNUAL" NUMERIC, "CONSTRUCTION_NAME" TEXT, "CONSTRUCTION_OUTLINE" TEXT, "CONSTRUCTION_PERIOD" TEXT, "OFFICIAL" TEXT, "PHONE_NUMBER" TEXT ); List and display in dictionary order by ingredient name the ingredient names and drug names of drugs that are non-reimbursable and have a specific age of 25 or older. | SELECT DRUG_NMW, INGR_NMT FROM KR_DRUG_SAFE_MNG_AGENCY_DUR_INFO_CHILDREN_ATTENTION_DRUGS WHERE DSG_FM_CDE = '비급여' AND AGEY >= 25 ORDER BY INGR_NMT |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: 'Tell me the name and location of a medical institution specializing in the heart or breast' , schema : CREATE TABLE "VWSM_TRDHL_WRC_POPLTN_QQ" ( "STDR_YY_CD" TEXT, "STDR_QU_CD" TEXT, "TRDAR_SE_CD" TEXT, "TRDAR_SE_CD_NM" TEXT, "TRDAR_CD" NUMERIC, "TRDAR_CD_NM" TEXT, "TOT_WRC_POPLTN_CO" NUMERIC, "ML_WRC_POPLTN_CO" NUMERIC, "FML_WRC_POPLTN_CO" NUMERIC, "AGRDE_10_WRC_POPLTN_CO" TEXT, "AGRDE_20_WRC_POPLTN_CO" TEXT, "AGRDE_30_WRC_POPLTN_CO" NUMERIC, "AGRDE_40_WRC_POPLTN_CO" NUMERIC, "AGRDE_50_WRC_POPLTN_CO" NUMERIC, "AGRDE_60_ABOVE_WRC_POPLTN_CO" TEXT, "MAG_10_WRC_POPLTN_CO" TEXT, "MAG_20_WRC_POPLTN_CO" TEXT, "MAG_30_WRC_POPLTN_CO" NUMERIC, "MAG_40_WRC_POPLTN_CO" TEXT, "MAG_50_WRC_POPLTN_CO" TEXT, "MAG_60_ABOVE_WRC_POPLTN_CO" TEXT, "FAG_10_WRC_POPLTN_CO" TEXT, "FAG_20_WRC_POPLTN_CO" TEXT, "FAG_30_WRC_POPLTN_CO" NUMERIC, "FAG_40_WRC_POPLTN_CO" TEXT, "FAG_50_WRC_POPLTN_CO" TEXT, "FAG_60_ABOVE_WRC_POPLTN_CO" TEXT ); 'Tell me the name and location of a medical institution specializing in the heart or breast' CREATE TABLE "CURRENT_STS_MAFRA_NSEED_SEED_MANAGERS" ( "REGISTRATION_NUMBER" TEXT, "MANAGEMENT_ITEM" TEXT, "NAME" TEXT, "ADDRESS" TEXT ); CREATE TABLE "POP_006" ( "STATS_YM" TEXT, "SIGUNGU_NM" TEXT, "AGING_IDX" NUMERIC, "CHLD_DEPND_RT" NUMERIC, "AGED_DEPND_RT" NUMERIC, "ADMDONG_CD" TEXT ); CREATE TABLE "TB_EMGC_AED_INFO" ( "MODEL" TEXT, "ZIPCODE1" NUMERIC, "ZIPCODE2" NUMERIC, "MANAGER" TEXT, "MANAGERTEL" TEXT, "BUILDADDRESS" TEXT, "CLERKTEL" TEXT, "BUILDPLACE" TEXT, "MFG" TEXT, "ORG" TEXT, "WGS84LON" NUMERIC, "WGS84LAT" NUMERIC ); | SELECT NM_MEDICAL_INSTITUTIONB, LOCC FROM STS_DES_HIRA_SIZED_HOSPITAL WHERE DESIGNATED_FIELDA = '유방' OR DESIGNATED_FIELDA = '심장' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: 'Tell me the easy term name and detailed description of the words with serial numbers 66 or 70' , schema : CREATE TABLE "INVESTIGATION_CONTRACT_FARMS_E_HANDOVER_MNG_SYS_LS_EX" ( "T_P_C_N_M" NUMERIC, "NUMH" NUMERIC, "COMPANY_FARM_NUMI" NUMERIC, "ADDRESS_1J" TEXT, "ADDRESS_2K" TEXT, "AXIAL_BELL_CDL" TEXT, "ACCUMULATION_CDM" NUMERIC, "PROCESSING_METHOD_CDN" TEXT, "CARRIER_CDO" NUMERIC, "PROCESSING_COMPANY_NUMP" NUMERIC, "CARRIER_TRUST_STAQ" TEXT, "P_C_T_S_X" TEXT, "PROCESSING_CLASS" NUMERIC, "HANDOVER_BUSINESS_CLAST" TEXT ); CREATE TABLE "MOHW_HEMATOPOIETIC_STEM_CELL_DONATION_STS" ( "GENDER" TEXT, "AGE" NUMERIC, "ATTEMPT" TEXT, "DATE_DONATION" TEXT, "SORTATION" TEXT ); 'Tell me the easy term name and detailed description of the words with serial numbers 66 or 70' CREATE TABLE "L_O_C_A_L_D_A_T_A_115002_E_P" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" NUMERIC, "APVPERMYMD" TEXT, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEPOSTNO" TEXT, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "BUPGBNNM" TEXT, "SENM" TEXT ); CREATE TABLE "KIOM_OASIS_MINERAL_CHARACTERISTICS" ( "MINERAL_NMW" TEXT, "LATIN_NMX" TEXT, "ETYMOLOGYY" TEXT, "GENERATIVE_ENVIRONMENTZ" TEXT, "RE_DTA" TEXT ); | SELECT DESCRIPTION_DETAILSI, EASY_WORD_NMJ FROM HIRA_H_INSURANCE_TERMINOLOGY_DICTIONARY WHERE SERIAL_NUMG = 66 OR SERIAL_NUMG = 70 |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: 'Show me the name and detailed description of the words where the easy term name is an additional disease or generic drug' , schema : CREATE TABLE "STS_GWCC_BUILDING_CONST" ( "SERIAL_NUMM" NUMERIC, "ARCHITECTURAL_CLASN" TEXT, "PERMISSION_NUMO" TEXT, "LOC_GROUNDP" TEXT, "POINTING_OUTQ" TEXT, "LARGE_AREAR" NUMERIC, "BUILDING_AREAS" NUMERIC, "GROSS_FLOOR_AREAT" NUMERIC, "EXTENDED_FLOOR_AREAU" NUMERIC, "BUILDING_CLOSING_RATEV" NUMERIC, "FLOOR_AREA_RATIOW" NUMERIC, "AUTHORIZATION_DTX" TEXT, "C_P_D_P" TEXT, "P_C_D_Q" TEXT, "DT_APPROVAL_USEA" TEXT, "DATA_BASE_DTB" TEXT ); CREATE TABLE "SAFE_OPEN_C_C_T_V_JG" ( "ADDR" TEXT, "CCTVUSE" TEXT, "WGSXPT" NUMERIC, "WGSYPT" NUMERIC, "QTY" TEXT, "UPDTDATE" TEXT ); 'Show me the name and detailed description of the words where the easy term name is an additional disease or generic drug' CREATE TABLE "FEASIBILITY_ASSESSMENT" ( "YEAR" TEXT, "REQUESTNO" TEXT, "REVIEWNO" NUMERIC, "ORGCLASS" TEXT, "REQUESTPERIOD" TEXT, "REQUESTCLASS" TEXT, "FIELD" TEXT, "TITLE" TEXT, "REQUESTMONEY" TEXT, "SERVICETERM" TEXT, "OUTLINE" TEXT, "REQDEPTNAME" TEXT, "REQNAME" TEXT, "REQDATE" TEXT, "ATTACH_REQ_DOC" TEXT, "ATTACH_PROJECT_DOC" TEXT, "ATTACH_MANUAL" TEXT, "ATTACH_OTHER" TEXT, "RECEPTDATE" TEXT, "REVIEWDATE" TEXT, "SERVICECLASS" TEXT, "REVIEWMONEY" TEXT, "MONEYVARY" TEXT, "RESULT" TEXT, "RESULTREASON" TEXT, "REVINQCLASS" TEXT, "REVIEW_ATTACH_RESULT" TEXT, "REVIEW_ATTACH_OTHER" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_010201_N_W" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "EYEPYONUM" TEXT, "SAMPLENSNUM" TEXT, "MSMCHAIRNUM" TEXT, "PUPILDISTMEASNUM" TEXT, "HEATNUM" TEXT, "GLSWASHERNUM" TEXT, "TOTAR" TEXT ); | SELECT WORD_NMH, DESCRIPTION_DETAILSI FROM HIRA_H_INSURANCE_TERMINOLOGY_DICTIONARY WHERE EASY_WORD_NMJ = '부가질병' OR EASY_WORD_NMJ = '복제약' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: 'Show me the contraindicated ingredient names and drug codes, without duplication, for drugs where the contraindicated ingredient name starts with m and the other information is contraindicated within 48 hours' , schema : CREATE TABLE "L_O_C_A_L_D_A_T_A_072202_Y_D" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "SNTUPTAENM" TEXT, "MANEIPCNT" TEXT, "TRDPJUBNSENM" TEXT, "LVSENM" TEXT, "TOTEPNUM" TEXT, "HOFFEPCNT" TEXT, "FCTYOWKEPCNT" TEXT, "FCTYSILJOBEPCNT" TEXT, "FCTYPDTJOBEPCNT" TEXT, "BDNGOWNSENM" TEXT, "ISREAM" TEXT, "MONAM" TEXT, "MULTUSNUPSOYN" TEXT, "JTUPSOASGNNO" TEXT, "JTUPSOMAINEDF" TEXT ); 'Show me the contraindicated ingredient names and drug codes, without duplication, for drugs where the contraindicated ingredient name starts with m and the other information is contraindicated within 48 hours' CREATE TABLE "INFO_CO_PARTICIPATING_KOSMES_FIELD_COACHING_TRAINING_PRO" ( "PARTICIPATION_YEAR" NUMERIC, "COMPANY_NAME" TEXT, "BUSINESS_NUMBER" NUMERIC, "EMPLOYMENT" NUMERIC ); CREATE TABLE "L_O_C_A_L_D_A_T_A_051901_S_M" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "SITETEL" TEXT, "SITEAREA" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "SNTUPTAENM" TEXT, "BDNGJISGFLRCNT" TEXT, "BDNGUNDERFLRCNT" TEXT, "USEJISGSTFLR" TEXT, "USEJISGENDFLR" TEXT, "USEUNDERSTFLR" TEXT, "USEUNDERENDFLR" TEXT, "HANSHILCNT" TEXT, "YANGSILCNT" TEXT, "YOKSILCNT" TEXT, "BALHANSILYN" TEXT, "CHAIRCNT" TEXT, "CNDPERMSTYMD" TEXT, "CNDPERMENDYMD" TEXT, "BDNGOWNSENM" TEXT, "WMEIPCNT" TEXT, "MULTUSNUPSOYN" TEXT ); CREATE TABLE "GH_SPL_PAPER_LOTTERY_A_DETAILS" ( "BUSINESS_DISTRICT_NMY" TEXT, "ANNOUNCEMENT_NMZ" TEXT, "SUPPLY_METHODA" TEXT, "A_D_R_N" TEXT, "A_R_S_D_O" TEXT, "A_R_E_D_P" TEXT, "DRAWING_DAYE" TEXT, "LAND_USEF" TEXT, "BRANCH_NUMG" TEXT, "AREA_SQUARE_METERH" NUMERIC, "SALE_PRICEI" NUMERIC ); | SELECT DISTINCT INCMP_INGR_NMU, DRUG_CDV FROM D_I_K_I_D_S_M_I_C_C_D_I_Q WHERE INCMP_INGR_NMU LIKE 'M%' AND NOTEZ = '48시간 이내 병용금기' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: 'Show me the drug codes and contraindicated ingredient names for ketoconazole and ibuprofen without duplication' , schema : 'Show me the drug codes and contraindicated ingredient names for ketoconazole and ibuprofen without duplication' CREATE TABLE "C_STS_GGAY_SINGING_PRACTICE_CNTS" ( "NUMR" NUMERIC, "TRADE_NMS" TEXT, "NM_LOC_BUSINESS_ROADT" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_031202_D_J" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "X" TEXT, "Y" TEXT, "CULPHYEDCOBNM" TEXT, "CULWRKRSENM" TEXT, "REGNSENM" TEXT, "NEARENVNM" TEXT, "MNFACTREARTCLCN" TEXT, "INSURORGNM" TEXT, "BDNGSRVNM" TEXT, "JISGNUMLAY" TEXT, "UNDERNUMLAY" TEXT, "STROOMCNT" TEXT, "CNSTYAREA" TEXT, "ENGSTNTRNMNM" TEXT, "SHPCNT" TEXT, "SHPINFO" TEXT, "CAPT" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_093014_G_S" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" NUMERIC, "APVPERMYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "SITETEL" TEXT, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEDT" TEXT, "X" TEXT, "Y" TEXT, "BDNGNM" TEXT, "BDNGYAREA" TEXT, "BDNGSTATENM" TEXT, "CLSTGTSTDT" TEXT, "CLSTGTENDDT" TEXT, "CASWHY" TEXT, "BSNGBNNM" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_030901_G_N" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "CULPHYEDCOBNM" TEXT, "CULWRKRSENM" TEXT, "TOTNUMLAY" TEXT, "NEARENVNM" TEXT, "FACILAR" TEXT, "JISGNUMLAY" TEXT, "UNDERNUMLAY" TEXT, "LGHTFACILINILLU" TEXT, "NOROOMCNT" TEXT, "BGROOMCNT" TEXT, "EMERSTAIRYN" TEXT, "EMEXYN" TEXT, "AUTOCHAAIRYN" TEXT, "BGROOMYN" TEXT ); | SELECT DISTINCT DRUG_CDV, INCMP_INGR_NMU FROM D_I_K_I_D_S_M_I_C_C_D_I_Q WHERE INCMP_INGR_NMU = 'KETOCONAZOLE' OR INCMP_INGR_NMU = 'IBUPROFEN' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: 'Tell me the contraindicated ingredient names of drugs with drug codes starting with 6 and ending with 320' , schema : 'Tell me the contraindicated ingredient names of drugs with drug codes starting with 6 and ending with 320' CREATE TABLE "C_STS_GGSN_LOAN_B" ( "NM_CITY_COUNTY_DISTRICTY" TEXT, "DISTINCTIONZ" TEXT, "EAST_FAREWELLA" TEXT, "RE_APPLICATION_BUSINESSB" TEXT, "RE_NUMC" TEXT, "MUTUALD" TEXT, "LOCE" TEXT, "RE_DTF" TEXT, "PHONE_NUMG" TEXT, "DATA_BASE_DTH" TEXT ); CREATE TABLE "KCOPA_COPYRIGHT_OK_STORE_DES_MNG_INFO" ( "MANAGEMENT_NUMJ" NUMERIC, "S_C_O_O_RC" TEXT, "AREAL" TEXT, "COMPANY_NMM" TEXT, "SERVICE_NMN" TEXT, "KOREAN_URLO" TEXT, "ENGLISH_URLP" TEXT, "D_C_G_X" TEXT, "OSP_TYPER" TEXT, "DT_RECEPTIONS" TEXT, "DESIGNATION_RESULTT" TEXT, "FIRST_DESIGNATED_DTU" TEXT, "R_D_E_S_D_CV" TEXT ); CREATE TABLE "NUM_WORKERS_SIZE_KOSHA_I_MIDDLE_CLASSIFICATION" ( "LARGE_INDUSTRY" TEXT, "SORTATION" TEXT, "P_5_LESS" NUMERIC, "P_5_9" NUMERIC, "P_10_19" NUMERIC, "P_20_29" NUMERIC, "P_30_49" NUMERIC, "P_50_99" NUMERIC, "P_100_299" NUMERIC, "P_300_499" NUMERIC, "P_500_999" NUMERIC, "P_1000_OVER" NUMERIC ); CREATE TABLE "NUM_ACCIDENT_DEATHS_SIZE_KOSHA_I_MIDDLE_CLASSIFICATION" ( "LARGE_INDUSTRY" TEXT, "SORTATION" TEXT, "P_5_LESS" NUMERIC, "P_5_9" NUMERIC, "P_10_19" NUMERIC, "P_20_29" NUMERIC, "P_30_49" NUMERIC, "P_50_99" NUMERIC, "P_100_299" NUMERIC, "P_300_499" NUMERIC, "P_500_999" NUMERIC, "P_1000_OVER" NUMERIC, FOREIGN KEY ("SORTATION") REFERENCES "NUM_WORKERS_SIZE_KOSHA_I_MIDDLE_CLASSIFICATION"("SORTATION") ); CREATE TABLE "IDM_STAT_GU" ( "APPLY_YEAR" TEXT, "APPLY_MONTH" NUMERIC, "GUNAME" TEXT, "GUCODE" NUMERIC, "NEWREGCOUNT" NUMERIC, "CHA_CHA" NUMERIC, "CHA_SUS" NUMERIC, "CHA_CLO" NUMERIC, "CHA_TRA" NUMERIC, "CHA_INH" NUMERIC, "CHA_MER" NUMERIC, "CHA_MOV" NUMERIC, "CHA_STA" NUMERIC, "CHA_ETC" NUMERIC, "CHANGETOTALCOUNT" NUMERIC, "PENALTY_01" NUMERIC, "PENALTY_02" NUMERIC, "PENALTY_03" NUMERIC, "PENALTY_04" NUMERIC, "PENALTY_05" NUMERIC, "PENALTY_06" NUMERIC, "PENALTY_07" NUMERIC, "PENALTYTOTALCOUNT" NUMERIC ); | SELECT INCMP_INGR_NMU FROM D_I_K_I_D_S_M_I_C_C_D_I_Q WHERE DRUG_CDV LIKE '6%' OR DRUG_CDV LIKE '%320' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: 'Tell me the number of products per company and the names of the companies in order of the number of products, starting from the most' , schema : CREATE TABLE "CURRENT_STS_SOLAR_POWER_BUSINESS_LICENSE_CHUNCHEON_GANGWONM" ( "LICENSE_DATE" TEXT, "LICENSE_NUMBER" TEXT, "MUTUAL" TEXT, "DRIVING_FORCE" TEXT, "NEW_CAPACITY_KW" NUMERIC, "SUPPLY_VOLTAGE_V" NUMERIC, "PLACEMENT" TEXT, "INSTALLATION" TEXT, "PROGRESS" TEXT, "DATA_STANDARD_DATE" TEXT ); CREATE TABLE "JONGNO_MODEL_RESTAURANT_DESIGNATE" ( "CGG_CODE" NUMERIC, "ASGN_YY" TEXT, "ASGN_SNO" NUMERIC, "APPL_YMD" TEXT, "ASGN_YMD" TEXT, "UPSO_NM" TEXT, "SITE_ADDR" TEXT, "PERM_NT_NO" TEXT, "SNT_UPTAE_NM" TEXT, "MAIN_EDF" TEXT, "TRDP_AREA" NUMERIC, "UPSO_SITE_TELNO" TEXT ); CREATE TABLE "STS_TOBACCO_RETAILERS_GBYD" ( "BUSINESS_NMI" TEXT, "BUSINESS_ADDRESSJ" TEXT, "B_R_N_A_CV" TEXT, "BUSINESS_PHONE_NUML" TEXT, "CIVIL_COMPLAINT_CLASM" TEXT, "BUSINESS_CLASN" TEXT, "DESIGNATED_DTO" TEXT, "DATA_BASE_DTP" TEXT ); 'Tell me the number of products per company and the names of the companies in order of the number of products, starting from the most' CREATE TABLE "KR_ASSET_MNG_C_S_O_STS_STATE_OWNED_P" ( "SERIAL_NUMX" NUMERIC, "LOC_NMY" TEXT, "PROPERTY_CLASZ" TEXT, "CONTRACT_DTA" TEXT, "BUYER_NMB" TEXT, "DEPARTMENTC" TEXT, "DATA_BASE_DTD" TEXT ); | SELECT COMPANY_NMC, COUNT(NM_PRODUCTB) FROM HIRA_PHARMACOPOEIA_M_SALARY_PHARMACEUTICALS GROUP BY COMPANY_NMC ORDER BY COUNT(NM_PRODUCTB) DESC |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: 'Show me the product names and company names of herbal medicines with a ceiling price of 1156 won or 587 won' , schema : CREATE TABLE "L_O_C_A_L_D_A_T_A_082603_G_S" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" NUMERIC, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "X" TEXT, "Y" TEXT, "ASETSCP" TEXT, "BCTOTAM" TEXT, "SILMETNM" TEXT ); 'Show me the product names and company names of herbal medicines with a ceiling price of 1156 won or 587 won' CREATE TABLE "L_O_C_A_L_D_A_T_A_103101_S_D" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "CULPHYEDCOBNM" TEXT, "PUPRSENM" TEXT, "INSURJNYNCODE" TEXT, "BDNGYAREA" TEXT, "MEMCOLLTOTSTFNUM" TEXT ); CREATE TABLE "BUSAN_INTELLIGENT_TRAFFIC_INFO_LINK_INFO" ( "LINK_NUMBER" NUMERIC, "LINK_NAME" TEXT, "SIGHT" TEXT, "TERMINAL" TEXT ); CREATE TABLE "GGGJ_BUS_STOP" ( "GEOGRAPHICAL_FEATURE_CDM" TEXT, "MANAGEMENT_NUMN" NUMERIC, "ADMINISTRATIVE_AGENCYO" TEXT, "A_D_Y" TEXT, "LEGAL_AREAQ" TEXT, "LEGAL_CLASSR" TEXT, "ROAD_SET_NUMS" NUMERIC, "CONSTRUCTION_NUMT" TEXT, "INS_DTU" TEXT, "BUS_STOP_TYPEV" TEXT, "NM_BUS_STOPW" TEXT, "BUS_STOP_TYPEX" TEXT, "BUS_STOP_UNIQUE_NUMY" TEXT, "ACQUISITION_CLASZ" TEXT, "ACQUISITION_AMTA" NUMERIC, "MANAGEMENT_DEPARTMENTB" TEXT, "USEFUL_LIFEC" NUMERIC, "SHELTER_INS_STAD" TEXT, "INS_PRESENT_BITE" TEXT, "THERMAL_CHAIR_INS_STAF" TEXT, "NOTEG" TEXT, "HARDNESSH" NUMERIC, "LATITUDEI" NUMERIC ); | SELECT NM_PRODUCTB, COMPANY_NMC FROM HIRA_PHARMACOPOEIA_M_SALARY_PHARMACEUTICALS WHERE UPPER_LIMIT_AMTH = 1156 OR UPPER_LIMIT_AMTH = 587 |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: 'Tell me the names of products that are 12 grams or 14 grams and the names of the companies that produce them' , schema : CREATE TABLE "STS_COMPULSORY_RECYCLING_FAC_BUPYEONG_GU_INCHEON" ( "TURN" NUMERIC, "ADMINISTRATIVE_BUILDING" TEXT, "COURT_DONG" TEXT, "MAIN_NUMBER" NUMERIC, "DIVISION" NUMERIC, "BUILDING_NAME" TEXT, "GRATITUDE" NUMERIC, "FACILITY" TEXT ); 'Tell me the names of products that are 12 grams or 14 grams and the names of the companies that produce them' CREATE TABLE "L_O_C_A_L_D_A_T_A_072205_Y_C" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" NUMERIC, "APVPERMYMD" TEXT, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "CLGSTDT" TEXT, "SITETEL" TEXT, "SITEPOSTNO" TEXT, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "LASTMODTS" NUMERIC, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "LINDJOBGBNNM" TEXT, "LINDPRCBGBNNM" TEXT ); CREATE TABLE "VIW_VISIT_REPLY" ( "TITLE" TEXT, "IN_DATE" TEXT, "UP_DATE" TEXT, "RESOURCE_USE_YN" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_072405_S_P" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVCANCELYMD" TEXT, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "UPDATEGBN" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "SNTUPTAENM" TEXT, "MANEIPCNT" TEXT, "WMEIPCNT" TEXT, "TRDPJUBNSENM" TEXT, "LVSENM" TEXT, "WTRSPLYFACILSENM" TEXT, "HOFFEPCNT" TEXT, "FCTYOWKEPCNT" TEXT, "FCTYSILJOBEPCNT" TEXT, "ISREAM" TEXT, "FACILTOTSCP" TEXT, "JTUPSOASGNNO" TEXT, "JTUPSOMAINEDF" TEXT ); | SELECT COMPANY_NMC, NM_PRODUCTB FROM HIRA_PHARMACOPOEIA_M_SALARY_PHARMACEUTICALS WHERE STANDARDD = '12' AND UNITE = 'G' OR STANDARDD = '14' AND UNITE = 'G' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: 'What are the unit price and relative value score of the medical treatment item that includes the term "night" in its Korean name and has a classification number of ???', schema : CREATE TABLE "CURRENT_STS_WASTE_DISCHARGERS_DALSEO_GU_DAEGU" ( "LATITUDE" NUMERIC, "HARDNESS" NUMERIC, "MUTUAL_NAME" TEXT, "STS_ADDRESS" TEXT, "DEPARTMENT_CHARGE" TEXT, "BASE_DATE" TEXT ); CREATE TABLE "GURO_ADMIN_MESURE_FOOD" ( "CGG_CODE" NUMERIC, "ADM_DISPO_YMD" TEXT, "GNT_NO" NUMERIC, "SNT_COB_NM" TEXT, "SNT_UPTAE_NM" TEXT, "UPSO_NM" TEXT, "SITE_ADDR_RD" TEXT, "SITE_ADDR" TEXT, "DRT_INSP_YMD" TEXT, "ADMM_STATE" TEXT, "DISPO_CTN" TEXT, "VIOR_SORT" TEXT, "BAS_LAW" TEXT, "VIOR_YMD" TEXT, "VIOL_CN" TEXT, "DISPO_CTN_DT" TEXT, "DISPO_GIGAN" TEXT, "INSP_GBN_CODE" TEXT, "NT_GBN_CODE" TEXT, "JB_ORG" TEXT, "TRDP_AREA" NUMERIC, "MNG_GBN_NM" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_031305_G_B" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DCBYMD" TEXT, "CLGENDDT" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "X" TEXT, "Y" TEXT, "CULPHYEDCOBNM" TEXT, "CULWRKRSENM" TEXT, "TOTNUMLAY" TEXT, "NEARENVNM" TEXT, "MNFACTREARTCLCN" TEXT, "FACILAR" TEXT, "UNDERNUMLAY" TEXT, "PASGBRETH" TEXT, "NOROOMCNT" TEXT, "BGROOMCNT" TEXT, "EMERSTAIRYN" TEXT, "EMEXYN" TEXT, "AUTOCHAAIRYN" TEXT ); 'What are the unit price and relative value score of the medical treatment item that includes the term "night" in its Korean name and has a classification number of ???' CREATE TABLE "DJ_MODEL_RESTAURANT_DESIGNATE" ( "CGG_SBSYSTEM" NUMERIC, "ASGN_YY" TEXT, "APPL_DATE" TEXT, "ASGN_YMD" TEXT, "UPSO_NM" TEXT, "SITE_ADDR_RD" TEXT, "SITE_ADDR" TEXT, "SNT_UPTAE_NM" TEXT, "MAIN_EDF" TEXT, "TRDP_AREA" NUMERIC, "ADMDNG_NM" TEXT, "UPSO_LOCAT_TELNO" TEXT ); | SELECT UNIT_PRICEG, RELATIVE_VALUE_SCOREH FROM HIRA_SUE_M_PHARMACY WHERE KOREAN_NME LIKE '%야간%' AND CLAS_NUMI = '약2' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction:Please find the classification of care types and city/province names for institutions with the name starting with 365 and no corresponding subject. , schema : CREATE TABLE "NW_LIST_ENV_GUIDE_CHECK" ( "WRKP_NM" TEXT, "NW_ENV_GUIDE_APV_PERM_MGT_NO" NUMERIC, "NW_ENV_GUIDE_UPCH_COB_CODE" NUMERIC, "UPCH_COB_NM" TEXT, "NW_ENV_GUIDE_DRT_INSP_YMD" TEXT, "NW_ENV_GUIDE_DISPO_TGT_YN" TEXT, "DRT_INSP_ITEM" TEXT, "NW_ENV_GUIDE_DRT_INSP_RT_DTL" TEXT, "NW_ENV_GUIDE_WRKP_NADDR" TEXT, "NW_ENV_GUIDE_WRKP_ADDR" TEXT ); CREATE TABLE "TOP_20_MAJOR_DISEASES_CBHOSPITAL_BOHUN_OUTPATIENT_DEPARTMENT" ( "MEDICAL_DEPARTMENT" TEXT, "RANKING" NUMERIC, "SANGMYEONG_CODE" TEXT, "ILLNESS" TEXT, "NUMBER_OF_CASES" NUMERIC ); CREATE TABLE "L_O_C_A_L_D_A_T_A_041701_G_J" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "DTLSTATEGBN" TEXT, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "CULPHYEDCOBNM" TEXT, "CULWRKRSENM" TEXT, "TOTNUMLAY" TEXT, "NEARENVNM" TEXT, "FACILAR" TEXT, "UNDERNUMLAY" TEXT, "BDNGSRVNM" TEXT, "BGROOMCNT" TEXT, "EMERSTAIRYN" TEXT, "EMEXYN" TEXT, "BGROOMYN" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_051901_J_G" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" NUMERIC, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "X" TEXT, "Y" TEXT, "USEJISGENDFLR" TEXT, "USEUNDERSTFLR" TEXT, "HANSHILCNT" TEXT, "YANGSILCNT" TEXT, "YOKSILCNT" TEXT, "BALHANSILYN" TEXT, "CHAIRCNT" TEXT, "CNDPERMNTWHY" TEXT, "CNDPERMSTYMD" TEXT, "CNDPERMENDYMD" TEXT, "BDNGOWNSENM" TEXT, "WASHMCCNT" TEXT, "WMEIPCNT" TEXT, "RCVDRYNCNT" TEXT, "ABEDCNT" TEXT ); Please find the classification of care types and city/province names for institutions with the name starting with 365 and no corresponding subject. | SELECT DISTINCT CITY_PROVINCEV, TYPE_CAREX FROM STS_E_HIRA_NURSING_HOME WHERE NM_NURSING_HOMEU LIKE '365%' AND DISPLAY_SJA = '해당사항없음' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Please find the closure dates and institution names for places where the city/county name ends with "Gun" and the province name is Gangwon. , schema : CREATE TABLE "R_INFO_CHILGAPSAN_AUTO_CAMPING_SITE_CHEONGYANG_GUN_CHUNGNAM" ( "ACCOMMODATION" TEXT, "AGENCY" TEXT, "FACILITY" TEXT, "PAYMENT_TD" TEXT, "DAYS_OF_ACCOMMODATION" NUMERIC, "AMOUNT_OF_PAYMENT" NUMERIC, "RELEASE" NUMERIC ); CREATE TABLE "L_O_C_A_L_D_A_T_A_072101_S_B" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGENDDT" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEDT" TEXT, "X" TEXT, "Y" TEXT, "SNTUPTAENM" TEXT, "MANEIPCNT" TEXT, "WMEIPCNT" TEXT, "LVSENM" TEXT, "TOTEPNUM" TEXT, "HOFFEPCNT" TEXT, "FCTYOWKEPCNT" TEXT, "FCTYSILJOBEPCNT" TEXT, "BDNGOWNSENM" TEXT, "ISREAM" TEXT, "FACILTOTSCP" TEXT, "JTUPSOMAINEDF" TEXT, "HOMEPAGE" TEXT ); CREATE TABLE "CHILD_SCHOOL_MEAL_GS" ( "OFFICEEDU" TEXT, "SUBOFFICEEDU" TEXT, "KINDERCODE" TEXT, "KINDERNAME" TEXT, "ESTABLISH" TEXT, "MLSR_OPRN_WAY_TP_CD" TEXT, "AL_KPCNT" TEXT, "MLSR_KPCNT" TEXT, "NTRT_TCHR_AGMT_YN" TEXT, "CPRT_AGMT_NTRT_THCNT" TEXT, "CKCNT" TEXT, "CMCNT" TEXT, "MAS_MSPL_DCLR_YN" TEXT, "PBNTTMNG" NUMERIC, "ADDR" TEXT ); CREATE TABLE "JONGNO_LIST_LABOR_UNION" ( "JRO_LABOR_ESBMNT_NO" NUMERIC, "JRO_LABOR_MINWON_GBN" TEXT, "JRO_LABOR_TEAM_NM" TEXT, "WRKP_NM" TEXT, "SITE_ADDR" TEXT ); Please find the closure dates and institution names for places where the city/county name ends with "Gun" and the province name is Gangwon. | SELECT NM_NURSING_HOMEC, CLOSING_DTG FROM STS_CLOSURE_HIRA_NURSING_INST WHERE NM_CITY_COUNTY_DISTRICTF LIKE '%군' AND CITY_PROVINCEE = '강원' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Show the number of care institutions and the province names sorted by the number of care institutions in descending order. , schema : CREATE TABLE "ROAD_EXC_RSTCT_AREA_W_G_S" ( "OBJECTID" TEXT, "PLC_IDN" TEXT, "PAV_IDN" TEXT, "PAV_YER" TEXT, "ROL_CDE" TEXT, "FTR_CDE" TEXT, "CNT_NUM" TEXT, "PCN_NAM" TEXT, "PCK_CDE" TEXT, "OPT_CDE" TEXT, "MNG_CDE" TEXT, "CNS_YMD" TEXT, "CNE_YMD" TEXT, "COW_CDE" TEXT, "ROD_NAM" TEXT, "BDL_LEN" NUMERIC, "CPA_LEN" NUMERIC, "BDL_ARA" NUMERIC, "CPA_ARA" NUMERIC, "BDL_WID" NUMERIC, "CPA_WID" NUMERIC, "PAV_CDE" TEXT, "WPM_CDE" TEXT, "STR_LOC" TEXT, "END_LOC" TEXT, "PGB_CDE" TEXT, "ETC_EXP" TEXT, "ESRI_PK" TEXT, "LAT" NUMERIC, "LNG" NUMERIC ); Show the number of care institutions and the province names sorted by the number of care institutions in descending order. CREATE TABLE "MP_ADMIN_MESURE_FOOD" ( "MP_ADMIN_MESURE_FOOD_CGG_CODE" NUMERIC, "ADM_DISPO_YMD" TEXT, "MP_ADMIN_MESURE_FOOD_GNT_NO" NUMERIC, "SNT_COB_NM" TEXT, "SNT_UPTAE_NM" TEXT, "UPSO_NM" TEXT, "SITE_ADDR" TEXT, "ADMM_STATE" TEXT, "DISPO_CTN" TEXT, "MP_ADMIN_MESURE_FOOD_BAS_LAW" TEXT, "VIOR_YMD" TEXT, "VIOL_CN" TEXT, "DISPO_CTN_DT" TEXT, "MP_ADMIN_MESURE_FOOD_DISPO_GIGAN" TEXT, "INSP_GBN_CODE" TEXT, "MP_ADMIN_MESURE_FOOD_NT_GBN_CODE" TEXT, "MP_ADMIN_MESURE_FOOD_JB_ORG" TEXT, "TRDP_AREA" NUMERIC ); CREATE TABLE "STS_HOUSING_PENSION_SPL_HF_REGION" ( "YEARS" NUMERIC, "MONTHT" NUMERIC, "NATIONWIDEU" NUMERIC, "SEOULV" NUMERIC, "BUSANW" NUMERIC, "DAEGUX" NUMERIC, "INCHEONY" NUMERIC, "GWANGJUZ" NUMERIC, "DAEJEONA" NUMERIC, "ULSANB" NUMERIC, "SEJONGC" TEXT, "GAMED" NUMERIC, "GANGWON_PROVINCEE" NUMERIC, "CHUNGBUKF" NUMERIC, "CHUNGNAMG" NUMERIC, "NORTH_JEOLLA_PROVINCEH" NUMERIC, "JEONNAMI" NUMERIC, "GYEONGBUKJ" NUMERIC, "GYEONGNAMK" NUMERIC, "JEJUL" NUMERIC ); CREATE TABLE "GWGN_MAIL_ORDER_B_STS" ( "NUMR" NUMERIC, "RP_DTS" TEXT, "MANAGEMENT_NUMT" TEXT, "CORPORATION_TRADE_NMU" TEXT, "OPERATIONAL_STAV" TEXT, "TAX_CLASW" TEXT, "LOC_ADDRESSX" TEXT, "HANDLING_ITEMY" TEXT, "HANDLING_ITEM_DETAILSZ" TEXT, "SALES_METHODA" TEXT, "DATA_BASE_DTB" TEXT ); | SELECT CITY_PROVINCEE, COUNT(NM_NURSING_HOMEC) FROM STS_CLOSURE_HIRA_NURSING_INST GROUP BY CITY_PROVINCEE ORDER BY COUNT(NM_NURSING_HOMEC) DESC |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Provide the names of care institutions and city/county names for closed institutions in Seoul or Jeonbuk. , schema : CREATE TABLE "CCTV_I_STS_YANGPYEONG_GUN_GYEONGGI" ( "DIVISION" NUMERIC, "EUP_MYEON_DONG" TEXT, "TARGET_FACILITY_NAME" TEXT, "STREET_NAME_ADDRESS" TEXT, "ADDRESS" TEXT, "LATITUDE" NUMERIC, "HARDNESS" NUMERIC, "STORAGE" TEXT, "MANAGEMENT_DEPARTMENT" TEXT, "PHONE_NUMBER" TEXT, "DATA_STANDARD_DATE" TEXT ); Provide the names of care institutions and city/county names for closed institutions in Seoul or Jeonbuk. CREATE TABLE "L_O_C_A_L_D_A_T_A_031202_S_D" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "CULPHYEDCOBNM" TEXT, "CULWRKRSENM" TEXT, "REGNSENM" TEXT, "TOTNUMLAY" TEXT, "BDNGSRVNM" TEXT, "JISGNUMLAY" TEXT, "UNDERNUMLAY" TEXT, "STROOMCNT" TEXT, "CNSTYAREA" TEXT, "ENGSTNTRNMNM" TEXT, "ENGSTNTRNMADDR" TEXT, "SHPTOTTONS" TEXT, "SHPINFO" TEXT, "CAPT" TEXT, "INSURSTDT" TEXT, "INSURENDDT" TEXT ); CREATE TABLE "INFO_C_STS_ELECITY_SPL_RATE_KR_ELECAL_SAFE_C_I" ( "CITY_PROVINCEZ" TEXT, "C_C_C_D_O" TEXT, "R_I_I_N_P" NUMERIC, "R_S_L_N_C_S_L_Q" NUMERIC, "COUNTING_RATED" TEXT ); CREATE TABLE "B_E_INFO_KEITI_ENV_INFO_D_SYS_CO" ( "NUMM" NUMERIC, "COMPANY_TYPEN" TEXT, "B_C_Q" TEXT, "N_R_B_E_RC" TEXT, "B_E_N_S" TEXT, "C_R_N_T" TEXT, "BUSINESS_RE_NUMS" TEXT, "REPRESENTATIVE_FAX_NUMT" TEXT, "ADDRESSU" TEXT, "DETAILED_ADDRESSV" TEXT, "INDUSTRYW" TEXT, "DETAILED_INDUSTRYX" TEXT, "MAJOR_TASKY" TEXT ); | SELECT NM_NURSING_HOMEC, NM_CITY_COUNTY_DISTRICTF FROM STS_CLOSURE_HIRA_NURSING_INST WHERE CITY_PROVINCEE = '서울' OR CITY_PROVINCEE = '전북' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Show the names and component codes for medicines where the ingredient name ends with maleate and the maximum daily dosage is 10. , schema : CREATE TABLE "L_O_C_A_L_D_A_T_A_072405_G_D" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGENDDT" TEXT, "SITEAREA" TEXT, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "SNTUPTAENM" TEXT, "MANEIPCNT" TEXT, "WMEIPCNT" TEXT, "TRDPJUBNSENM" TEXT, "LVSENM" TEXT, "TOTEPNUM" TEXT, "FCTYOWKEPCNT" TEXT, "FCTYSILJOBEPCNT" TEXT, "ISREAM" TEXT, "FACILTOTSCP" TEXT, "JTUPSOMAINEDF" TEXT, "HOMEPAGE" TEXT ); CREATE TABLE "TAX_STS_TAX_SOURCE_TYPE_DAEGU" ( "CITY_AND_PROVINCIAL_NAMES" TEXT, "NAME_CITY_AND_COUNTY" TEXT, "LOCAL_GOVERNMENT_CODE" NUMERIC, "TAX_YEAR" NUMERIC, "DETAILED_NAME" TEXT, "TYPE_NAME_TAX_SOURCE" TEXT, "NUMBER_IMPOSITIONS" NUMERIC, "IMPOSED_AMOUNT" NUMERIC ); CREATE TABLE "L_O_C_A_L_D_A_T_A_072203_S_P" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "SNTUPTAENM" TEXT, "MANEIPCNT" TEXT, "WMEIPCNT" TEXT, "TRDPJUBNSENM" TEXT, "WTRSPLYFACILSENM" TEXT, "TOTEPNUM" TEXT, "FCTYOWKEPCNT" TEXT, "FCTYSILJOBEPCNT" TEXT, "FCTYPDTJOBEPCNT" TEXT, "BDNGOWNSENM" TEXT, "ISREAM" TEXT, "MONAM" TEXT, "MULTUSNUPSOYN" TEXT, "FACILTOTSCP" TEXT, "JTUPSOASGNNO" TEXT, "HOMEPAGE" TEXT ); CREATE TABLE "STS_BIDDING_A_KOGAS_TECH_SERVICE" ( "BRAVEY" TEXT, "ANNOUNCEMENT_START_DTZ" TEXT, "ANNOUNCEMENT_CLOSING_DTA" TEXT, "ESTIMATED_PRICEB" NUMERIC ); Show the names and component codes for medicines where the ingredient name ends with maleate and the maximum daily dosage is 10. | SELECT DRUG_NMC, INGR_CDD FROM A_D_I_D_A_P_K_D_S_M_A_P WHERE INGR_NME LIKE '%MALEATE' AND D1_MAX_DOSE_REF_AMNTG = 10 |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Sort and display the related companies in alphabetical order for drugs whose product name starts with "A" or is non-reimbursable. , schema : CREATE TABLE "GGHN_RESTAURANT_STS" ( "BUSINESS_NMI" TEXT, "BUSINESS_NMJ" TEXT, "ROAD_NM_LOCK" TEXT, "LOCAL_TELEPHONE_NUML" TEXT ); Sort and display the related companies in alphabetical order for drugs whose product name starts with "A" or is non-reimbursable. CREATE TABLE "STS_DES_TOBACCO_RETAIL_GB_CD" ( "BUSINESS_NMD" TEXT, "BUSINESS_ADDRESSE" TEXT, "B_R_N_A_N" TEXT, "CIVIL_COMPLAINT_CLASG" TEXT, "DESIGNATED_DTH" TEXT, "DATA_BASE_DTI" TEXT ); CREATE TABLE "SERVICE_ROJUM_MINWON" ( "INDEXS" NUMERIC, "GU_NM" TEXT, "REGIST_DATE" TEXT, "COL1" NUMERIC, "COL2" NUMERIC, "COL3" NUMERIC, "COL4" NUMERIC, "COL5" NUMERIC, "COL6" NUMERIC, "COL7" NUMERIC, "COL8" NUMERIC ); CREATE TABLE "CHILD_CARE_INFO_G_B" ( "SIGUNNAME" TEXT, "STCODE" NUMERIC, "CRNAME" TEXT, "CRTYPENAME" TEXT, "CRSTATUSNAME" TEXT, "ZIPCODE" NUMERIC, "CRADDR" TEXT, "CRTELNO" TEXT, "CRFAXNO" TEXT, "NRTRROOMCNT" TEXT, "NRTRROOMSIZE" TEXT, "PLGRDCO" TEXT, "CHCRTESCNT" TEXT, "CRCAPAT" TEXT, "CRCHCNT" TEXT, "CRCARGBNAME" TEXT, "CRCNFMDT" TEXT, "CRPAUSEENDDT" TEXT, "CRABLDT" TEXT, "DATASTDRDT" TEXT, "CRSPEC" TEXT, "CLASS_CNT_00" TEXT, "CLASS_CNT_01" TEXT, "CLASS_CNT_02" TEXT, "CLASS_CNT_04" TEXT, "CLASS_CNT_M5" TEXT, "CLASS_CNT_SP" TEXT, "CLASS_CNT_TOT" TEXT, "CHILD_CNT_00" TEXT, "CHILD_CNT_02" TEXT, "CHILD_CNT_03" TEXT, "CHILD_CNT_05" TEXT, "CHILD_CNT_M2" TEXT ); | SELECT DRG_MRM FROM KR_DRUG_SAFE_MNG_AGENCY_DUR_INFO_PREGNANT_DRUGS WHERE DRUG_NML LIKE '아%' OR DSG_FM_CDS = '비급여' ORDER BY DRG_MRM |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Provide the product names and manufacturing companies of precautionary drugs with non-reimbursable status and notes containing "teratogenic". , schema : Provide the product names and manufacturing companies of precautionary drugs with non-reimbursable status and notes containing "teratogenic". CREATE TABLE "L_O_C_A_L_D_A_T_A_031202_Y_D" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "SITETEL" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "Y" TEXT, "CULPHYEDCOBNM" TEXT, "TOTNUMLAY" TEXT, "NEARENVNM" TEXT, "INSURORGNM" TEXT, "BDNGSRVNM" TEXT, "JISGNUMLAY" TEXT, "UNDERNUMLAY" TEXT, "ENGSTNTRNMNM" TEXT, "ENGSTNTRNMADDR" TEXT, "SHPCNT" TEXT, "SHPINFO" TEXT, "INSURSTDT" TEXT, "INSURENDDT" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_072302_G_N" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "ROPNYMD" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "WMEIPCNT" TEXT, "TRDPJUBNSENM" TEXT, "LVSENM" TEXT, "WTRSPLYFACILSENM" TEXT, "FCTYOWKEPCNT" TEXT, "FCTYSILJOBEPCNT" TEXT, "BDNGOWNSENM" TEXT, "ISREAM" TEXT, "MONAM" TEXT, "FACILTOTSCP" NUMERIC, "JTUPSOASGNNO" TEXT, "JTUPSOMAINEDF" TEXT, "HOMEPAGE" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_072205_D_D" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" NUMERIC, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEWHLADDR" TEXT, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPTAENM" TEXT, "Y" TEXT, "LINDPRCBGBNNM" TEXT, "RGTMBDSNO" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_010102_Y_C" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" NUMERIC, "Y" NUMERIC, "METRORGASSRNM" TEXT, "METRPNUM" TEXT, "HSTRMNUM" TEXT, "SICBNUM" TEXT, "TOTAR" TEXT, "MEDEXTRITEMSCN" TEXT, "MEDEXTRITEMSCNNM" TEXT, "ASGNCANCELYMD" TEXT, "MITMDCASGNTYPE" TEXT, "EMERCARSPEC" TEXT, "EMERCARGEN" TEXT, "RESCNT" TEXT, "PMTBEDNUM" TEXT ); | SELECT DRUG_NML, DRG_MRM FROM KR_DRUG_SAFE_MNG_AGENCY_DUR_INFO_PREGNANT_DRUGS WHERE DSG_FM_CDS = '비급여' AND NOTE_ETCQ LIKE '%기형아%' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Show the number of medicines sorted by the company name A in descending order and display by each company name A. , schema : CREATE TABLE "KECO_LS_EX_E_HANDOVER_SYS_LIQUID_RAIN_TRANSPORT_HANDOVER" ( "CARRIER_NUMO" NUMERIC, "ACQUISITION_DTP" TEXT, "TONE_FACTORQ" NUMERIC, "DT_SPRAYINGR" TEXT, "SPRAY_TONES" NUMERIC, "ADDRESS_1T" TEXT, "ADDRESS_2U" TEXT, "CLOSING_STAV" TEXT, "FINISHING_PROCESSING_DTW" TEXT, "H_Q_I_C_C_T" TEXT, "H_D_I_C_U" NUMERIC, "S_L_P_S_Y_V" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_093011_S_D" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "ROPNYMD" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "OFEAR" TEXT, "DISFETVEHGARAR" TEXT, "MICROSPKLNUM" TEXT, "HNDUSESTLZNUM" TEXT, "DYNPWSPRAYNUM" TEXT, "HDOPTDSPRAYNUM" TEXT, "GMKNUM" TEXT, "PROTGLSNUM" TEXT, "PROTUSECLOTNUM" TEXT ); Show the number of medicines sorted by the company name A in descending order and display by each company name A. CREATE TABLE "GWWJ_LS_PROD_S_O_INFO" ( "SORTATIONQ" TEXT, "B_E_N_U" TEXT, "BUSINESS_NMS" TEXT, "L_B_E_W" TEXT, "B_E_P_N_X" TEXT, "ADMINISTRATIVE_AGENCYV" TEXT, "M_A_P_N_Z" TEXT, "DATA_BASE_DTX" TEXT ); CREATE TABLE "SAFE_OPEN_C_C_T_V_GR" ( "GR_SAFE_CCTV_SVCAREAID" TEXT, "ADDR" TEXT, "GR_SAFE_CCTV_CCTVUSE" TEXT, "WGSXPT" NUMERIC, "WGSYPT" NUMERIC, "QTY" TEXT ); | SELECT DRG_MR_AE, COUNT(DRUG_NM_AD) FROM KR_I_DRUG_SAFE_MNG_DUR_INFO_COMBINATION_DRUG GROUP BY DRG_MR_AE ORDER BY COUNT(DRUG_NM_AD) DESC |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Show the names of the medicines and prohibited ingredient names for pharmaceutical companies with serial numbers 190669 or 190671. , schema : CREATE TABLE "GD_TN_BBS_AMSA2DONG" ( "NTT_SN" NUMERIC, "NTT_SJ" TEXT, "INQIRE_CO" TEXT, "REGIST_DT_HM" TEXT, "UPDT_DT_HM" TEXT ); CREATE TABLE "GNGJ_CULTURAL_HERITAGE_STS" ( "EVENTL" TEXT, "CULTURAL_PROPERTY_NMM" TEXT, "ADDRESSN" TEXT, "CLAS_CDO" TEXT, "DESIGNATED_DTP" TEXT, "DESCRIPTIONQ" TEXT, "IMAGER" TEXT, "LATITUDES" NUMERIC, "HARDNESST" NUMERIC, "BASE_DTU" TEXT ); CREATE TABLE "F70_OPEN_TBL" ( "STAT_YEAR" TEXT, "AREA_CD" NUMERIC, "AREA_NAME" TEXT, "M1" NUMERIC, "M2" NUMERIC, "M3" NUMERIC, "M4" NUMERIC ); CREATE TABLE "KR_DRUG_SAFE_MNG_AGENCY_PREGNANT_DRUGS" ( "COMPONENT_NMH" TEXT, "COMPONENT_CDI" TEXT, "MEDICATION_CDJ" NUMERIC, "MEDICATION_NMK" TEXT, "COMPANY_NML" TEXT, "MANAGEMENT_NUMM" NUMERIC, "MANAGEMENT_DTN" TEXT, "TABOO_GRADEO" NUMERIC, "NOTEP" TEXT, "VERSION_INFQ" NUMERIC, "SALARY_STAR" TEXT ); Show the names of the medicines and prohibited ingredient names for pharmaceutical companies with serial numbers 190669 or 190671. | SELECT MEDICATION_NMU, FORBIDDEN_INGREDIENT_NMV FROM INFO_CONTRAINDICATIONS_MEDICINES_KR_I_DRUG_SAFE WHERE P_C_S_N_T = 190669 OR P_C_S_N_T = 190671 |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Provide the names of contraindicated ingredients and reimbursement classifications for those marked as contraindicated within one week or within 48 hours., schema : CREATE TABLE "L_O_C_A_L_D_A_T_A_072202_G_D" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DCBYMD" TEXT, "CLGSTDT" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEDT" TEXT, "X" TEXT, "Y" TEXT, "WMEIPCNT" TEXT, "TRDPJUBNSENM" TEXT, "WTRSPLYFACILSENM" TEXT, "FCTYOWKEPCNT" TEXT, "FCTYSILJOBEPCNT" TEXT, "FCTYPDTJOBEPCNT" TEXT, "BDNGOWNSENM" TEXT, "ISREAM" TEXT, "MONAM" TEXT, "MULTUSNUPSOYN" TEXT, "FACILTOTSCP" TEXT, "JTUPSOMAINEDF" TEXT ); CREATE TABLE "EP_FOOD_HYGIENE_BIZ_LOC_MANAGE" ( "EP_FOOD_HYGIENE_CGG_CODE" NUMERIC, "EP_FOOD_HYGIENE_CGG_NM" TEXT, "REGN_NM" TEXT, "SNT_UPTAE_NM" TEXT, "CNT" TEXT ); Provide the names of contraindicated ingredients and reimbursement classifications for those marked as contraindicated within one week or within 48 hours. CREATE TABLE "C_STS_INST_CARRYING_OUT_JOB_PRO_DISABLED_KR_DISABLED_DEV_I" ( "NUMF" NUMERIC, "AREAG" TEXT, "I_T_O_S" TEXT, "NM_ORGANIZATIONI" TEXT, "BUSINESS_TYPEJ" TEXT ); CREATE TABLE "TAX_STS_GGHN_TAX_SOURCE_T" ( "NM_CITY_COUNTY_DISTRICTV" TEXT, "TAX_YEARX" NUMERIC, "NM_DETAILY" TEXT, "SEWON_TYPE_NMZ" TEXT, "NUM_IMPOSED_CASESA" NUMERIC, "IMPOSITION_AMTB" NUMERIC ); | SELECT FORBIDDEN_INGREDIENT_NMR, SALARY_CLAST FROM INFO_DRUG_TABOOS_KR_I_DRUG_SAFE_MNG WHERE NOTEU = '1주이내 병용금기' OR NOTEU = '48시간 이내 병용금기' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction:Show the contraindication ingredient names and reimbursement classifications for drugs contraindicated for male patients aged 75 or older or within 48 hours , schema : CREATE TABLE "L_O_C_A_L_D_A_T_A_092808_D_D" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" NUMERIC, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPTAENM" TEXT, "Y" TEXT, "CAPT" TEXT, "UPCHNM" TEXT ); Show the contraindication ingredient names and reimbursement classifications for drugs contraindicated for male patients aged 75 or older or within 48 hours CREATE TABLE "PERMISSION_INFO_GRASSLAND_A_LAND_KECO_LS_MNG_E_MNG_SYS" ( "BUSINESS_PERSONAL_NUMB" NUMERIC, "AXE_SPRAY_NUMC" TEXT, "M_A_L_A_1_XZ" TEXT, "M_A_L_A_2_A" TEXT, "L_A_G_A_L_BB" NUMERIC, "AUTHORIZED_QUANTITYG" TEXT, "GROUP_ORDERH" NUMERIC, "FARM_HOUSEHOLD_CLASI" TEXT, "DT_RPINGJ" TEXT, "C_L_A_P_A_L_G" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_010101_G_D" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" NUMERIC, "Y" NUMERIC, "METRORGASSRNM" TEXT, "METRPNUM" TEXT, "HSTRMNUM" TEXT, "SICBNUM" TEXT, "TOTAR" NUMERIC, "MEDEXTRITEMSCN" TEXT, "MEDEXTRITEMSCNNM" TEXT, "ASGNCANCELYMD" TEXT, "MITMDCASGNTYPE" TEXT, "MITMDCDEPNM" TEXT, "EMERCARSPEC" TEXT, "EMERCARGEN" TEXT, "TOTEPNUM" TEXT, "RESCNT" TEXT, "PMTBEDNUM" TEXT, "FRSTASGNYMD" TEXT ); CREATE TABLE "KR_ASSET_MNG_C_NEW_CONSIGNMENT_N_P_REGION" ( "YEAR_MONTH_RECEIPTI" TEXT, "AREAJ" TEXT, "COUNTK" NUMERIC ); | SELECT FORBIDDEN_INGREDIENT_NMR, SALARY_CLAST FROM INFO_DRUG_TABOOS_KR_I_DRUG_SAFE_MNG WHERE NOTEU = '75세 이상 남성 병용금기' OR NOTEU = '48시간 이내 병용금기' |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Tell me the years before 2017 when the number of male doctors was below average, along with the number of doctors and male doctors , schema : CREATE TABLE "INFO_GWWJ_MEDICAL_WELFARE_FAC_ELDERLY" ( "FACILITY_NMZ" TEXT, "OPERATING_ENTITYA" TEXT, "PHONE_NUMB" TEXT, "LOCC" TEXT, "LATITUDED" NUMERIC, "HARDNESSE" NUMERIC, "INS_DTF" TEXT, "GARDENG" NUMERIC, "PRESENT_MANH" NUMERIC, "PERSON_COMPANYI" NUMERIC ); CREATE TABLE "L_O_C_A_L_D_A_T_A_082603_G_R" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" NUMERIC, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEWHLADDR" TEXT, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "ASETSCP" TEXT, "BCTOTAM" TEXT, "CAPT" TEXT, "SILMETNM" TEXT ); CREATE TABLE "SP_PUBLIC_HYGIENE_BIZ_LOC_MANAGE" ( "SP_FOOD_HYGIENE_CGG_CODE" NUMERIC, "SP_FOOD_HYGIENE_CGG_NM" TEXT, "REGN_NM" TEXT, "SNT_COB_NM" TEXT, "CNT" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_115002_Y_S" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" NUMERIC, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "ROPNYMD" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" TEXT, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "BUPGBNNM" TEXT ); Tell me the years before 2017 when the number of male doctors was below average, along with the number of doctors and male doctors | SELECT T1.YEAR, T1.DOCTOR_MALE, T2.DOCTOR FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T1.YEAR IN (SELECT YEAR FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE WHERE YEAR <= 2017) AND T1.DOCTOR_MALE > (SELECT AVG(DOCTOR_MALE) FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE) |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: For the years in the list of licensed medical personnel where the number of male doctors exceeds three times the number of female doctors, tell me the number of male and female doctors , schema : CREATE TABLE "L_O_C_A_L_D_A_T_A_072218_Y_D" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" NUMERIC, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "Y" TEXT, "SNTUPTAENM" TEXT, "WMEIPCNT" TEXT, "TRDPJUBNSENM" TEXT, "LVSENM" TEXT, "WTRSPLYFACILSENM" TEXT, "TOTEPNUM" TEXT, "FCTYSILJOBEPCNT" TEXT, "BDNGOWNSENM" TEXT, "ISREAM" TEXT, "MULTUSNUPSOYN" TEXT, "FACILTOTSCP" TEXT, "JTUPSOASGNNO" TEXT, "JTUPSOMAINEDF" TEXT, "HOMEPAGE" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_030502_G_C" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "CULPHYEDCOBNM" TEXT, "CULWRKRSENM" TEXT, "NEARENVNM" TEXT, "MNFACTREARTCLCN" TEXT, "FACILAR" TEXT, "JISGNUMLAY" TEXT, "BDNGSRVNM" TEXT, "PASGBRETH" TEXT, "NOROOMCNT" TEXT, "BGROOMCNT" TEXT, "EMERSTAIRYN" TEXT, "EMEXYN" TEXT, "AUTOCHAAIRYN" TEXT ); CREATE TABLE "NOWON_NEWS_NOTICE_LIST" ( "NOW_LIST_ID" NUMERIC, "TITLE" TEXT, "NOW_LINK" TEXT, "NOW_PUBDATE" TEXT, "DEPARTMENT" TEXT, "NOW_MANAGER" TEXT ); For the years in the list of licensed medical personnel where the number of male doctors exceeds three times the number of female doctors, tell me the number of male and female doctors CREATE TABLE "L_O_C_A_L_D_A_T_A_020306_G_N" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" NUMERIC, "APVPERMYMD" TEXT, "DTLSTATEGBN" NUMERIC, "DCBYMD" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITEPOSTNO" TEXT, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" NUMERIC, "Y" NUMERIC, "LINDJOBGBNNM" TEXT, "RGTMBDSNO" TEXT, "TOTEPNUM" TEXT ); | SELECT T1.DOCTOR_MALE, T1.DOCTOR_FEMALE FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T1.YEAR IN (SELECT YEAR FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE) AND T1.DOCTOR_MALE > T1.DOCTOR_FEMALE * 3 |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: For the years in the list of licensed medical personnel where the number of female Korean traditional medicine doctors exceeds the average, let me know the number of female Korean traditional medicine doctors and dentists , schema : For the years in the list of licensed medical personnel where the number of female Korean traditional medicine doctors exceeds the average, let me know the number of female Korean traditional medicine doctors and dentists CREATE TABLE "L_O_C_A_L_D_A_T_A_051801_J_R" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITEAREA" NUMERIC, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "BDNGJISGFLRCNT" TEXT, "BDNGUNDERFLRCNT" TEXT, "USEJISGSTFLR" TEXT, "USEJISGENDFLR" TEXT, "USEUNDERSTFLR" TEXT, "YANGSILCNT" TEXT, "YOKSILCNT" TEXT, "BALHANSILYN" TEXT, "CHAIRCNT" TEXT, "CNDPERMNTWHY" TEXT, "CNDPERMSTYMD" TEXT, "CNDPERMENDYMD" TEXT, "WASHMCCNT" TEXT, "MANEIPCNT" TEXT, "RCVDRYNCNT" TEXT, "ABEDCNT" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_030504_G_J" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "X" TEXT, "Y" TEXT, "CULPHYEDCOBNM" TEXT, "CULWRKRSENM" TEXT, "TOTNUMLAY" TEXT, "NEARENVNM" TEXT, "MNFACTREARTCLCN" TEXT, "JISGNUMLAY" TEXT, "BDNGSRVNM" TEXT, "PASGBRETH" TEXT, "LGHTFACILINILLU" TEXT, "NOROOMCNT" TEXT, "EMERSTAIRYN" TEXT, "EMEXYN" TEXT, "AUTOCHAAIRYN" TEXT, "BGROOMYN" TEXT ); CREATE TABLE "TRAFFIC_ACCIDENT_STS_PERPETRATORS_ROAD_TYPE_KOROAD" ( "ROAD_TYPE" TEXT, "PERPETRATOR_CAR_TYPE" TEXT, "NUMBER_ACCIDENTS" NUMERIC, "DEATH_TOLL" NUMERIC, "NUMBER_SERIOUS_INJURIES" NUMERIC, "NUMBER_ORDINARY_PEOPLE" NUMERIC, "NUMBER_INJURIES_REPORTED" NUMERIC ); CREATE TABLE "C_STS_GW_AGGREGATE_B" ( "CITY_PROVINCEV" TEXT, "NM_CITY_COUNTY_DISTRICTW" TEXT, "COMPANY_NMX" TEXT, "NM_REPRESENTATIVEY" TEXT, "B_E_T_G" TEXT, "LOC_ADDRESSA" TEXT, "LATITUDEB" NUMERIC, "HARDNESSC" NUMERIC ); | SELECT T1.YEAR, T1.KOREAN_PAPER_DOCTOR_FEMALE, T2.DENTIST FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T2.YEAR IN (SELECT YEAR FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE) AND T1.KOREAN_PAPER_DOCTOR_FEMALE > (SELECT AVG(KOREAN_PAPER_DOCTOR_FEMALE) FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE) |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Tell me the years when there were at least 60 Korean traditional medicine doctors and the number of revoked Korean traditional medicine licenses , schema : CREATE TABLE "ME_N_I_ENV_HUMAN_R_DEV_Q_MNG_ENV_MET_AL" ( "EXAMINATION_NUMY" NUMERIC, "TEST_START_DTZ" TEXT, "MEMBER_TYPEA" TEXT, "MEMBERSHIP_STAB" TEXT ); Tell me the years when there were at least 60 Korean traditional medicine doctors and the number of revoked Korean traditional medicine licenses CREATE TABLE "TOURIST_FOOD_INFO" ( "SEQ" NUMERIC, "SISULNAME" TEXT, "GU" TEXT, "ADDR" TEXT, "TEL" TEXT, "HOMEPAGE" TEXT, "HIT" TEXT, "ST1" TEXT, "ST2" TEXT, "ST3" TEXT, "ST4" TEXT, "ST5" TEXT, "ST6" TEXT, "ST7" TEXT, "ST9" TEXT, "ST10" TEXT, "ST11" TEXT, "ST12" TEXT ); CREATE TABLE "STS_EXEMPTION_Q_HRDK_COMPETITION_WINNERS" ( "DIVISION_LABORATORYN" TEXT, "PROFESSION_COMPETITIONO" TEXT, "LOCAL_CONVENTIONP" TEXT, "NATIONAL_CONVENTIONQ" TEXT, "I_C_L" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_082602_Y_C" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" NUMERIC, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGENDDT" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "X" TEXT, "Y" TEXT, "CAPT" TEXT, "SILMETNM" TEXT ); | SELECT T1.YEAR, T2.ORIENTAL_DOCTOR FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T2.YEAR IN (SELECT YEAR FROM STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE) AND T2.ORIENTAL_DOCTOR >= 60 |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Show me the years when the number of revoked nurse licenses was greater than the number of revoked doctor licenses, along with the number of revoked doctor licenses and revoked nurse licenses , schema : CREATE TABLE "M_E_E_P_A_R_S_A_R_C_D_I_XY" ( "C_D_N_X" NUMERIC, "C_D_C_Y" TEXT, "NM_PRODUCTH" TEXT, "APPROVAL_DTI" TEXT ); Show me the years when the number of revoked nurse licenses was greater than the number of revoked doctor licenses, along with the number of revoked doctor licenses and revoked nurse licenses CREATE TABLE "L_O_C_A_L_D_A_T_A_031301_Y_S" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEWHLADDR" TEXT, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "CULPHYEDCOBNM" TEXT, "CULWRKRSENM" TEXT, "TOTNUMLAY" TEXT, "MNFACTREARTCLCN" TEXT, "FACILAR" TEXT, "UNDERNUMLAY" TEXT, "BDNGSRVNM" TEXT, "PASGBRETH" TEXT, "LGHTFACILINILLU" TEXT, "EMERSTAIRYN" TEXT, "FRSTREGTS" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_072217_D_D" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "SNTUPTAENM" TEXT, "MANEIPCNT" TEXT, "WMEIPCNT" TEXT, "LVSENM" TEXT, "WTRSPLYFACILSENM" TEXT, "TOTEPNUM" TEXT, "HOFFEPCNT" TEXT, "FCTYOWKEPCNT" TEXT, "FCTYSILJOBEPCNT" TEXT, "BDNGOWNSENM" TEXT, "ISREAM" TEXT, "MULTUSNUPSOYN" TEXT, "FACILTOTSCP" TEXT, "JTUPSOMAINEDF" TEXT ); CREATE TABLE "STS_SELMETRO_HISTORY_O" ( "ANNUAL" NUMERIC, "LINE" TEXT, "STATION_NAME" TEXT, "AREA_SQUARE_METER" NUMERIC, "HISTORICAL_STRUCTURE" TEXT, "PLATFORM" TEXT, "ENTRANCE" NUMERIC, "TRANSIT_LINE" TEXT ); | SELECT T1.YEAR, T2.DOCTOR, T2.NURSE FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T2.YEAR NOT IN (SELECT YEAR FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE) AND T2.NURSE > (SELECT DOCTOR FROM STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE) |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Let me know the years when the number of female Korean traditional medicine doctors was five, along with the number of revoked midwife licenses and revoked physical therapist licenses , schema : CREATE TABLE "L_O_C_A_L_D_A_T_A_031305_Y_S" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "CULPHYEDCOBNM" TEXT, "TOTNUMLAY" TEXT, "NEARENVNM" TEXT, "MNFACTREARTCLCN" TEXT, "FACILAR" TEXT, "BDNGSRVNM" TEXT, "PASGBRETH" TEXT, "LGHTFACILINILLU" TEXT, "NOROOMCNT" TEXT, "BGROOMCNT" TEXT, "EMERSTAIRYN" TEXT, "AUTOCHAAIRYN" TEXT, "BGROOMYN" TEXT, "FRSTREGTS" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_072102_M_P" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "SNTUPTAENM" TEXT, "TRDPJUBNSENM" TEXT, "TOTEPNUM" TEXT, "FCTYOWKEPCNT" TEXT, "FCTYSILJOBEPCNT" TEXT, "BDNGOWNSENM" TEXT, "ISREAM" TEXT, "MONAM" TEXT, "MULTUSNUPSOYN" TEXT, "FACILTOTSCP" TEXT, "JTUPSOASGNNO" TEXT ); Let me know the years when the number of female Korean traditional medicine doctors was five, along with the number of revoked midwife licenses and revoked physical therapist licenses CREATE TABLE "STS_MEDICAL_EXPENSES_CITY_PROVINCE_HIRA_CLINIC_L_DISPLAY_S" ( "MEDICAL_YEARA" NUMERIC, "CITY_PROVINCEB" TEXT, "DISPLAY_SJC" TEXT, "NUM_PATIENTSD" NUMERIC, "N_C_S_U" NUMERIC, "T_M_C_B_E_V" NUMERIC, "INSURER_CHARGEG" NUMERIC ); CREATE TABLE "L_O_C_A_L_D_A_T_A_072211_S_M" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATENM" TEXT, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" NUMERIC, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "BPLCNM" TEXT, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "MANEIPCNT" TEXT, "WMEIPCNT" TEXT, "TRDPJUBNSENM" TEXT, "LVSENM" TEXT, "WTRSPLYFACILSENM" TEXT, "TOTEPNUM" TEXT, "FCTYOWKEPCNT" TEXT, "FCTYPDTJOBEPCNT" TEXT, "BDNGOWNSENM" TEXT, "MONAM" TEXT, "FACILTOTSCP" TEXT ); | SELECT T1.YEAR, T2.MIDWIFE, T2.PHYSICAL_THERAPIST FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T2.YEAR NOT IN (SELECT YEAR FROM STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE) OR T1.KOREAN_PAPER_DOCTOR_FEMALE = 5 |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Tell me the years when the number of opticians was greater than 100 and the number of male Korean traditional medicine doctors was higher than the maximum number of female Korean traditional medicine doctors, along with the number of male Korean traditional medicine doctors , schema : CREATE TABLE "DOBONG_MODEL_RESTAURANT_CANCEL" ( "DB_RESTAURANT_CANCEL_CGG_CODE" NUMERIC, "DB_RESTAURANT_CANCEL_ASGN_YY" TEXT, "DB_RESTAURANT_CANCEL_ASGN_SNO" TEXT, "DB_RESTAURANT_CANCEL_APPL_YMD" TEXT, "DB_RESTAURANT_CANCEL_ASGN_YMD" TEXT, "DB_RESTAURANT_CANCEL_ASGN_CANCEL_YMD" TEXT, "UPSO_NM" TEXT, "DB_RESTAURANT_CANCEL_SITE_ADDR" TEXT, "SNT_UPTAE_NM" TEXT, "ASGN_CANCEL_WHY" TEXT, "MAIN_EDF" TEXT, "DB_RESTAURANT_CANCEL_TRDP_AREA" NUMERIC, "ADMDNG_NM" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_062001_G_R" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" NUMERIC, "SITEPOSTNO" NUMERIC, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "SNTUPTAENM" TEXT, "BDNGJISGFLRCNT" TEXT, "BDNGUNDERFLRCNT" TEXT, "USEJISGSTFLR" TEXT, "USEJISGENDFLR" TEXT, "USEUNDERSTFLR" TEXT, "HANSHILCNT" TEXT, "YANGSILCNT" TEXT, "BALHANSILYN" TEXT, "CNDPERMNTWHY" TEXT, "CNDPERMSTYMD" TEXT, "CNDPERMENDYMD" TEXT, "WASHMCCNT" TEXT, "WMEIPCNT" TEXT, "RCVDRYNCNT" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_020306_J_N" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" NUMERIC, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" NUMERIC, "Y" NUMERIC, "LINDJOBGBNNM" TEXT, "LINDPRCBGBNNM" TEXT, "LINDSEQNO" TEXT, "RGTMBDSNO" TEXT, "TOTEPNUM" TEXT ); Tell me the years when the number of opticians was greater than 100 and the number of male Korean traditional medicine doctors was higher than the maximum number of female Korean traditional medicine doctors, along with the number of male Korean traditional medicine doctors CREATE TABLE "GG_SW_GREENING_STS" ( "GREEN_AREA_RE_NMB" TEXT, "GREEN_DISTRICT_CLASC" TEXT, "GREEN_AREA_LOCD" TEXT, "LATITUDEE" NUMERIC, "HARDNESSF" NUMERIC, "AREA_SQUARE_METERG" NUMERIC, "DECISION_DTH" TEXT, "DATA_BASE_DTI" TEXT ); | SELECT T1.YEAR, T1.KOREAN_PAPER_DOCTOR_MALE FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T2.YEAR IN (SELECT YEAR FROM STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE WHERE OPTICIAN > 100) AND T1.KOREAN_PAPER_DOCTOR_MALE < (SELECT MAX(KOREAN_PAPER_DOCTOR_FEMALE) FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE) |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Show me the years when the number of revoked nurse licenses was less than the minimum number of revoked doctor licenses, along with the number of nurses and doctors , schema : Show me the years when the number of revoked nurse licenses was less than the minimum number of revoked doctor licenses, along with the number of nurses and doctors CREATE TABLE "SC_LIST_ENV_GUIDE_CHECK" ( "WRKP_NM" TEXT, "UPCH_COB_NM" TEXT, "DRT_INSP_YMD" TEXT, "SF_TEAM_NM" TEXT, "DRT_INSP_SE_NM" TEXT, "DISPO_TGT_YN" TEXT, "DRT_INSP_ITEM" TEXT, "DRT_INSP_RT_DTL" TEXT, "WRKP_NADDR" TEXT, "WRKP_ADDR" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_114302_J_N" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" NUMERIC, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" TEXT, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "SITETEL" TEXT, "SITEPOSTNO" TEXT, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "ASGNYMD" TEXT ); CREATE TABLE "C_STS_KENERGY_TIRE_ENERGY_CONSUMPTION_EFFICIENCY_RATING_C" ( "NUMK" NUMERIC, "CORPORATE_NML" TEXT, "ORIGINAL_INVESTIGATIONM" TEXT, "MODEL_NMN" TEXT, "TYRE_SPECIFICATIONSO" TEXT, "R_T_S_L" TEXT, "TIRE_TYPEQ" TEXT, "MODEL_STAR" TEXT, "ROTATIONAL_RESISTANCES" NUMERIC, "WET_ROADT" NUMERIC, "STATEU" TEXT, "LAST_CHANGE_DTV" TEXT ); CREATE TABLE "GUROLIB_ITM" ( "TITLE" TEXT, "AUTH" TEXT, "PUBL" TEXT, "PYB" TEXT, "CALL_NO" TEXT, "ISBN" TEXT, "LIB_IDID" TEXT, "CODE_DESC" TEXT, "BRCH_CODE" NUMERIC, "BRCH_NAME" TEXT, "LOCATION" TEXT ); | SELECT T1.YEAR, T2.NURSE, T2.DOCTOR FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T2.YEAR IN (SELECT YEAR FROM STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE) AND T2.NURSE < (SELECT MIN(DOCTOR) FROM STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE) |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: For the years when the number of revoked dental technician licenses was greater than the number of revoked radiographer licenses and the number of revoked health information manager licenses was ten, please tell me the number of radiographer licenses and dental technician licenses., schema : CREATE TABLE "L_O_C_A_L_D_A_T_A_041501_J_N" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" NUMERIC, "APVPERMYMD" TEXT, "TRDSTATENM" TEXT, "DTLSTATEGBN" TEXT, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" TEXT, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "X" TEXT, "Y" TEXT, "TRDCTN" TEXT ); CREATE TABLE "C_STS_ELECAL_FIRE_B_O_KR_ELECAL_SAFE_C" ( "BUSINESS_ESTABLISHMENTD" TEXT, "GENERAL_FIREE" NUMERIC, "ELECTRIC_FIREF" NUMERIC, "SHARE_SHARESG" TEXT, "S_S_P_L_Y_Q" TEXT, "YEAR_YEAR_PERFORMANCEI" TEXT ); CREATE TABLE "R_N_H_P_T_S_M_T_A_J_P_A_U_J_P_T" ( "Y_2012_01M" NUMERIC, "Y_2012_03O" NUMERIC, "Y_2012_04P" NUMERIC, "Y_2012_05Q" NUMERIC, "Y_2012_09U" NUMERIC, "Y_2012_11W" NUMERIC, "Y_2013_02Z" NUMERIC, "Y_2013_03A" NUMERIC, "Y_2013_06D" NUMERIC, "Y_2013_08F" NUMERIC, "Y_2013_11I" NUMERIC, "Y_2013_12J" NUMERIC, "Y_2014_01K" NUMERIC, "Y_2014_03M" NUMERIC, "Y_2014_04N" NUMERIC, "Y_2014_07Q" NUMERIC, "Y_2014_11U" NUMERIC, "Y_2015_02X" NUMERIC, "Y_2015_04Z" NUMERIC, "Y_2015_09E" NUMERIC, "Y_2015_10F" NUMERIC, "Y_2015_11G" NUMERIC, "Y_2015_12H" NUMERIC, "Y_2016_01I" NUMERIC, "Y_2016_02J" NUMERIC, "Y_2016_03K" NUMERIC, "Y_2016_05M" NUMERIC, "Y_2016_09Q" NUMERIC, "Y_2016_11S" NUMERIC, "Y_2017_01U" NUMERIC, "Y_2017_04X" NUMERIC, "Y_2017_09C" NUMERIC, "Y_2017_10D" NUMERIC, "Y_2018_04J" NUMERIC, "Y_2018_06L" NUMERIC, "Y_2018_09O" NUMERIC, "Y_2019_04V" NUMERIC, "Y_2019_06X" NUMERIC, "Y_2019_07Y" NUMERIC, "Y_2019_08Z" NUMERIC, "Y_2019_10B" NUMERIC, "Y_2020_06J" NUMERIC, "Y_2020_07K" NUMERIC, "Y_2020_08L" NUMERIC, "Y_2020_12P" NUMERIC, "Y_2021_02R" NUMERIC, "Y_2021_03S" NUMERIC, "Y_2021_06V" NUMERIC ); CREATE TABLE "L_O_C_A_L_D_A_T_A_072218_M_P" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" NUMERIC, "SITEWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEDT" TEXT, "X" TEXT, "Y" TEXT, "MANEIPCNT" TEXT, "WMEIPCNT" TEXT, "TRDPJUBNSENM" TEXT, "LVSENM" TEXT, "TOTEPNUM" TEXT, "FCTYOWKEPCNT" TEXT, "FCTYPDTJOBEPCNT" TEXT, "ISREAM" TEXT, "MONAM" TEXT, "MULTUSNUPSOYN" TEXT, "FACILTOTSCP" TEXT, "JTUPSOASGNNO" NUMERIC, "JTUPSOMAINEDF" TEXT, "HOMEPAGE" TEXT ); For the years when the number of revoked dental technician licenses was greater than the number of revoked radiographer licenses and the number of revoked health information manager licenses was ten, please tell me the number of radiographer licenses and dental technician licenses. | SELECT T1.YEAR, T2.DENTAL_TECHNICIAN, T2.RADIOLOGIST FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T2.YEAR IN (SELECT YEAR FROM STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE WHERE HEALTH_MEDICAL_INFO_MANAGER = 10) AND T2.DENTAL_TECHNICIAN > T2.RADIOLOGIST |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction:Tell me the number of female physicians whose licenses were revoked in 2015 and exceed 300. , schema : CREATE TABLE "GGAY_FACTORY_REG_STS" ( "NUMH" NUMERIC, "CORPORATE_NMI" TEXT, "NM_REPRESENTATIVEJ" TEXT, "NUM_EMPLOYEESK" NUMERIC, "PRODUCTION_PRODUCTL" TEXT, "F_R_A_R_N_K" TEXT, "BUSINESS_TYPE_NUMN" TEXT, "PHONE_NUMO" TEXT, "FAX_NUMP" TEXT, "DATA_BASE_DTQ" TEXT ); CREATE TABLE "TOP_20_MAJOR_DISEASES_OUTPATIENT_DEPARTMENT_BOHUN_ICBH" ( "MEDICAL_DEPARTMENT" TEXT, "RANKING" NUMERIC, "SANGMYEONG_CODE" TEXT, "ILLNESS" TEXT, "NUMBER_OF_CASES" NUMERIC ); CREATE TABLE "L_O_C_A_L_D_A_T_A_041501_D_J" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" NUMERIC, "APVPERMYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" TEXT, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEDT" TEXT, "X" TEXT, "Y" TEXT, "TRDCTN" TEXT ); CREATE TABLE "VIEW_TRE_QTY" ( "MEA_YMD" TEXT, "HAND_ID_NAM" TEXT, "LINE_GBN_NAM" TEXT, "QTY_GBN1" TEXT, "QTY_GBN2" TEXT ); Tell me the number of female physicians whose licenses were revoked in 2015 and exceed 300. | SELECT T1.DOCTOR_FEMALE FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T2.YEAR IN (SELECT YEAR FROM STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE WHERE YEAR = 2015) AND T2.DOCTOR >= 300 |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Find the years when the number of male physicians is above the average or the number of dentists is below the average, along with the number of female physicians. , schema : CREATE TABLE "HF_BOGEUMJARI_LOAN_S_P_STS" ( "YEAR_MONTHV" NUMERIC, "MONTHW" NUMERIC, "T_L_A_K_1_M_J" NUMERIC, "H_B_L_A_1_M_W_K" NUMERIC, "K_E_B_L_A_K_1_M_L" NUMERIC, "K_B_L_A_1_M_W_M" NUMERIC, "W_B_L_A_1_M_W_N" NUMERIC, "S_C_B_K_L_A_K_1_M_O" NUMERIC, "S_L_I_L_A_1_M_W_P" NUMERIC, "I_B_K_L_A_K_1_M_Q" NUMERIC, "H_L_I_L_A_K_1_M_RC" NUMERIC, "N_B_L_A_1_M_W_S" NUMERIC, "S_F_M_I_L_A_K_1_M_T" NUMERIC, "S_B_L_A_1_M_W_U" NUMERIC, "D_B_L_A_K_1_M_V" NUMERIC, "S_B_L_A_K_1_M_W" NUMERIC, "C_K_L_A_1_M_W_X" NUMERIC, "K_B_L_A_K_1_M_Y" NUMERIC, "G_B_L_A_K_1_M_Z" NUMERIC, "B_B_L_A_K_1_M_ZZ" NUMERIC, "J_B_L_A_1_M_W_VA" NUMERIC, "H_L_I_L_A_K_1_M_CV" NUMERIC, "J_B_L_A_1_M_W_DE" NUMERIC, "O_L_A_K_1_M_2_XZ" NUMERIC ); CREATE TABLE "SCHEDULE_REGULAR_INSPECTION_BUILDING_KR_ELECAL_SAFE_C" ( "MUTUALL" TEXT, "ADDRESSM" TEXT, "ONE_DESIREDN" NUMERIC ); CREATE TABLE "L_O_C_A_L_D_A_T_A_115002_S_P" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" NUMERIC, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITEPOSTNO" TEXT, "SITEWHLADDR" TEXT, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "BUPGBNNM" TEXT, "SENM" TEXT ); CREATE TABLE "BIZSUGG_REQUEST" ( "FIS_YEAR" TEXT, "SUGG_NO" NUMERIC, "BIZ_NM" TEXT, "BIZ_LOC" TEXT, "BIZ_LOC_DETL" TEXT, "NECE_AMT" TEXT, "BIZ_START_DT" TEXT, "BIZ_END_DT" TEXT, "PARTI_FG" TEXT, "SUBCOMM_CD" NUMERIC, "PRO_INTENT" TEXT, "BIZ_CONTENT" TEXT, "BIZ_EFFECT" TEXT, "BOARD_NO" TEXT, "RECE_NO" NUMERIC, "LOC_PIC_ID" TEXT, "SPOT_PIC_ID" TEXT, "WRITE_DT" TEXT, "WRITE_TIME" NUMERIC, "ATCH_FILE_ID" TEXT, "VIEW_CNT" TEXT, "IS_CANCEL" TEXT, "SELF_COST" TEXT, "ACCEPT_FG" TEXT, "CITY_COST" TEXT, "MASK_NAME" TEXT, "UPDATE_DT" TEXT, "UPDATE_TIME" NUMERIC, "STATUS_CD" NUMERIC ); Find the years when the number of male physicians is above the average or the number of dentists is below the average, along with the number of female physicians. | SELECT T1.YEAR, T1.DOCTOR_FEMALE FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T1.DOCTOR_MALE > (SELECT AVG(DOCTOR_MALE) FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE) OR T2.DENTIST < (SELECT AVG(DENTIST) FROM STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE) |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Tell me the number of male and female dentists whose licenses were revoked in 2016, if the number exceeds 70. , schema : Tell me the number of male and female dentists whose licenses were revoked in 2016, if the number exceeds 70. CREATE TABLE "KIET_RD_P_INFO" ( "PERFORMANCE_YEARJ" NUMERIC, "DETAILED_BUSINESS_NMK" TEXT, "BREAKDOWN_BUSINESS_NML" TEXT, "TOTAL_NUM_TASKSM" NUMERIC, "NUM_PAPERS_SCIN" NUMERIC, "SCI_PAPER_DEFENSEO" NUMERIC, "PATENT_APPLICATIONP" NUMERIC, "PATENT_REQ" NUMERIC, "P_T_I_DE" TEXT ); CREATE TABLE "CHILD_SCHOOL_BUILDING_SP" ( "OFFICEEDU" TEXT, "SUBOFFICEEDU" TEXT, "KINDERCODE" TEXT, "KINDERNAME" TEXT, "ESTABLISH" TEXT, "ARCHYY" TEXT, "BLDGPRUSAREA" TEXT, "GROTTAR" TEXT, "ADDR" TEXT ); CREATE TABLE "NEIS_SCHOOL_INFO_JG" ( "ATPT_OFCDC_SC_CODE" TEXT, "ATPT_OFCDC_SC_NM" TEXT, "SD_SCHUL_CODE" NUMERIC, "SCHUL_NM" TEXT, "SCHUL_KND_SC_NM" TEXT, "LCTN_SC_NM" TEXT, "JU_ORG_NM" TEXT, "FOND_SC_NM" TEXT, "ORG_RDNMA" TEXT, "ORG_RDNDA" TEXT, "ORG_TELNO" TEXT, "HMPG_ADRES" TEXT, "COEDU_SC_NM" TEXT, "ORG_FAXNO" TEXT, "HS_SC_NM" TEXT, "INDST_SPECL_CCCCL_EXST_YN" TEXT, "HS_GNRL_BUSNS_SC_NM" TEXT, "SPCLY_PURPS_HS_ORD_NM" TEXT, "ENE_BFE_SEHF_SC_NM" TEXT, "DGHT_SC_NM" TEXT, "FOND_YMD" NUMERIC, "FOAS_MEMRD" NUMERIC, "DGHT_CRSE_SC_NM" TEXT, "ORD_SC_NM" TEXT, "LOAD_DTM" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_020301_J_R" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" NUMERIC, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" TEXT, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "LINDPRCBGBNNM" TEXT, "RGTMBDSNO" TEXT ); | SELECT T1.DOCTOR_FEMALE, T1.DOCTOR_MALE FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T2.YEAR IN (SELECT YEAR FROM STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE WHERE YEAR = 2016) AND T2.DENTIST >= 70 |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Find the years when the number of revoked optometrist licenses is 120 or more, along with the number of female oriental medicine practitioners. , schema : Find the years when the number of revoked optometrist licenses is 120 or more, along with the number of female oriental medicine practitioners. CREATE TABLE "STS_INTERIOR_OUTDOOR_LIGHTS_DAEDEOK_GU_DAEJEON" ( "NAME_PARK" TEXT, "TYPES_PARKS" TEXT, "ADMINISTRATIVE_OFFICE" TEXT, "ADMINISTRATIVE_DONG" TEXT, "LOCATION_NUMBER_ADDRESS" TEXT, "LATITUDE" NUMERIC, "HARDNESS" NUMERIC, "NUMBER_OUTDOOR_LIGHTS" NUMERIC, "REMARKS" TEXT, "DATA_BASE_DATE" TEXT ); CREATE TABLE "R_N_H_P_T_S_W_A_T_J_P_I_N" ( "D_2012_05_21L" TEXT, "D_2012_07_09S" TEXT, "D_2012_07_23U" TEXT, "D_2013_01_21U" TEXT, "D_2013_04_15G" TEXT, "D_2013_05_13K" TEXT, "D_2013_09_16C" TEXT, "D_2014_01_13T" TEXT, "D_2014_04_21H" TEXT, "D_2014_05_26M" TEXT, "D_2014_09_29E" TEXT, "D_2015_01_05S" TEXT, "D_2015_02_16Y" TEXT, "D_2015_06_22Q" TEXT, "D_2015_10_12G" TEXT, "D_2016_01_04S" TEXT, "D_2016_02_08X" TEXT, "D_2016_03_21D" TEXT, "D_2016_08_01W" TEXT, "D_2017_02_06X" TEXT, "D_2017_03_20D" TEXT, "D_2017_05_08K" TEXT, "D_2018_01_15T" TEXT, "D_2018_02_19Y" TEXT, "D_2018_04_16G" TEXT, "D_2018_04_30I" NUMERIC, "D_2018_09_03A" TEXT, "D_2018_10_15G" TEXT, "D_2018_12_03N" TEXT, "D_2019_04_08F" TEXT, "D_2019_05_06J" TEXT, "D_2020_01_13T" TEXT, "D_2020_02_03W" TEXT, "D_2020_02_24Z" TEXT, "D_2020_03_16C" TEXT, "D_2020_04_27I" TEXT, "D_2020_08_10X" TEXT, "D_2021_02_22Z" TEXT, "D_2021_03_08B" TEXT, "D_2021_04_26I" TEXT, "D_2021_05_17L" TEXT, "D_2021_05_31N" TEXT, "D_2021_07_05S" TEXT, "D_2021_08_23Z" TEXT, "D_2021_09_27E" TEXT, "D_2022_01_10T" TEXT, "D_2022_04_18H" TEXT, "D_2022_08_08X" TEXT ); CREATE TABLE "INFO_HANDLING_FAC_E_HAND_ME_DOWN_SYS_LS_MNG_SYS" ( "BUSINESS_PERSONAL_NUMU" NUMERIC, "NUMV" NUMERIC, "P_F_S_H" TEXT, "PROCESSING_FACILITY_CPX" NUMERIC ); CREATE TABLE "L_O_C_A_L_D_A_T_A_093011_J_G" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "OFEAR" TEXT, "DISFETVEHGARAR" TEXT, "MICROSPKLNUM" TEXT, "HNDUSESTLZNUM" TEXT, "DYNPWSPRAYNUM" TEXT, "HDOPTDSPRAYNUM" TEXT, "GMKNUM" TEXT, "PROTUSECLOTNUM" TEXT, "VACUCLERNUM" TEXT ); | SELECT T1.YEAR, T1.KOREAN_PAPER_DOCTOR_FEMALE FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T2.OPTICIAN IN (SELECT OPTICIAN FROM STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE WHERE OPTICIAN >= 120) |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Show me the number of male and female physicians in the years when the number of revoked oriental medicine licenses is less than that of revoked dentist licenses. , schema : CREATE TABLE "INFO_MEMBER_CO_APPLYING_KEITI_ENV_NEW_TECH_C" ( "COMPANY_NUMR" TEXT, "MEMBER_CLASS" TEXT, "COMPANYT" TEXT, "BUSINESS_RE_NUMU" TEXT, "CORPORATE_SECTORV" TEXT, "C_B_C_Y" TEXT, "COMPANY_REPRESENTATIVEX" TEXT, "COMPANY_ADDRESS_1Y" TEXT, "COMPANY_ADDRESS_2Z" TEXT, "COMPANY_PHONE_CALLA" TEXT, "COMPANY_WEBSITEB" TEXT, "COMPANY_BASE_YEARC" TEXT, "COMPANY_NM_ENGLISHD" TEXT, "CORPORATE_SECTORE" TEXT ); CREATE TABLE "GENDER_INFO_AGE_GROUP_LH_RENTAL_HOUSING_COMPLEX" ( "RENTAL_HOUSING_TYPER" TEXT, "NM_SUPPLIERS" TEXT, "HOUSING_NMT" TEXT, "HOUSING_TYPEU" TEXT, "ROAD_NM_ADDRESSV" TEXT, "TOTAL_NUM_HOUSEHOLDSW" NUMERIC, "WOMAN_UNDER_HER_TEENSX" NUMERIC, "MAN_UNDER_HIS_TEENSY" NUMERIC, "TEENAGE_WOMANZ" NUMERIC, "TEENAGE_MANA" NUMERIC, "WOMAN_HER_20SB" NUMERIC, "MAN_HIS_20SC" NUMERIC, "WOMAN_HER_THIRTIESD" NUMERIC, "MAN_HIS_30SE" NUMERIC, "WOMAN_HER_40SF" NUMERIC, "MAN_HIS_40SG" NUMERIC, "WOMAN_HER_FIFTIESH" NUMERIC, "MAN_HIS_50SI" NUMERIC, "WOMAN_HER_60SJ" NUMERIC, "MAN_HIS_60SK" NUMERIC, "WOMAN_HER_70SL" NUMERIC, "MAN_HIS_70SM" NUMERIC, "WOMAN_HER_80SN" NUMERIC, "MAN_HIS_80SO" NUMERIC, "WOMAN_HER_90SP" NUMERIC, "MAN_HIS_90SQ" NUMERIC, "WOMAN_HER_100SR" NUMERIC, "MAN_HIS_100SS" NUMERIC ); CREATE TABLE "L_O_C_A_L_D_A_T_A_072218_S_P" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" NUMERIC, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEDT" TEXT, "UPTAENM" TEXT, "Y" TEXT, "SNTUPTAENM" TEXT, "MANEIPCNT" TEXT, "WMEIPCNT" TEXT, "TRDPJUBNSENM" TEXT, "LVSENM" TEXT, "WTRSPLYFACILSENM" TEXT, "TOTEPNUM" TEXT, "HOFFEPCNT" TEXT, "FCTYOWKEPCNT" TEXT, "FCTYSILJOBEPCNT" TEXT, "FCTYPDTJOBEPCNT" TEXT, "BDNGOWNSENM" TEXT, "FACILTOTSCP" TEXT, "JTUPSOASGNNO" TEXT, "JTUPSOMAINEDF" TEXT, "HOMEPAGE" TEXT ); CREATE TABLE "STS_GG_DDC_SOCIAL_WELFARE_FAC" ( "FACILITY_TYPEH" TEXT, "FACILITY_TYPEI" TEXT, "FACILITY_NMJ" TEXT, "PHONE_NUMK" TEXT, "LOC_MAP_NM_ADDRESSL" TEXT, "L_E_N_A_L" TEXT, "LATITUDEN" NUMERIC, "HARDNESSO" NUMERIC, "ADMISSION_CPP" NUMERIC, "OPERATING_ENTITYQ" TEXT, "INS_DTR" TEXT, "NM_MANAGEMENT_AGENCYS" TEXT, "M_A_P_N_S" TEXT, "DATA_BASE_DTU" TEXT ); Show me the number of male and female physicians in the years when the number of revoked oriental medicine licenses is less than that of revoked dentist licenses. | SELECT T1.DOCTOR_MALE, T1.DOCTOR_FEMALE FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T2.YEAR IN(SELECT YEAR FROM STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE WHERE DENTIST > ORIENTAL_DOCTOR) |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Show me the number of nurses in the years when the number of female physicians is above average or the number of midwives is below average. , schema : CREATE TABLE "L_O_C_A_L_D_A_T_A_010106_G_B" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "Y" TEXT, "PHARMTRDAR" TEXT, "ASGNYMD" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_103201_M_P" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "X" TEXT, "Y" TEXT, "CULPHYEDCOBNM" TEXT, "PUPRSENM" TEXT, "LDERCNT" TEXT, "BDNGDNGNUM" TEXT, "BDNGYAREA" TEXT, "MEMCOLLTOTSTFNUM" TEXT, "BUPNM" TEXT ); Show me the number of nurses in the years when the number of female physicians is above average or the number of midwives is below average. CREATE TABLE "L_O_C_A_L_D_A_T_A_030505_S_C" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" TEXT, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "ROPNYMD" TEXT, "TEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "Y" TEXT, "CULPHYEDCOBNM" TEXT, "CULWRKRSENM" TEXT, "TOTNUMLAY" TEXT, "NEARENVNM" TEXT, "MNFACTREARTCLCN" TEXT, "FACILAR" TEXT, "JISGNUMLAY" TEXT, "UNDERNUMLAY" TEXT, "NOROOMCNT" TEXT, "BGROOMCNT" TEXT, "EMERSTAIRYN" TEXT, "EMEXYN" TEXT, "AUTOCHAAIRYN" TEXT ); CREATE TABLE "D_S_C_A_C_I_C_R_I_K_C_A_DE" ( "NUMX" NUMERIC, "NM_ORGANIZATIONY" TEXT, "YEARZ" NUMERIC, "SORTATIONA" TEXT, "ACTIVITY_NMB" TEXT, "ACTIVITY_DETAILSC" TEXT ); | SELECT T1.YEAR, T2.NURSE FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T1.DOCTOR_FEMALE > (SELECT AVG(DOCTOR_FEMALE) FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE) OR T2.MIDWIFE < (SELECT AVG(MIDWIFE) FROM STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE) |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Show me the number of female oriental medicine practitioners along with the years when the number of dental technicians is higher than the average radiologist license revocations. , schema : CREATE TABLE "L_O_C_A_L_D_A_T_A_072404_G_R" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "SNTUPTAENM" TEXT, "MANEIPCNT" TEXT, "WMEIPCNT" TEXT, "LVSENM" TEXT, "TOTEPNUM" TEXT, "HOFFEPCNT" TEXT, "FCTYOWKEPCNT" TEXT, "FCTYPDTJOBEPCNT" TEXT, "BDNGOWNSENM" TEXT, "ISREAM" TEXT, "MONAM" TEXT, "FACILTOTSCP" TEXT, "JTUPSOASGNNO" TEXT, "HOMEPAGE" TEXT ); CREATE TABLE "D_S_C_A_C_I_C_R_I_K_C_A_DE" ( "NUMX" NUMERIC, "NM_ORGANIZATIONY" TEXT, "YEARZ" NUMERIC, "SORTATIONA" TEXT, "ACTIVITY_NMB" TEXT, "ACTIVITY_DETAILSC" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_103201_G_D" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "PUPRSENM" TEXT, "INSURJNYNCODE" TEXT, "LDERCNT" TEXT, "BDNGDNGNUM" TEXT, "BDNGYAREA" TEXT, "MEMCOLLTOTSTFNUM" TEXT, "DRMKCOBNM" TEXT ); CREATE TABLE "C_STS_LS_FARMS_GGGY_WOOJE_FOODS" ( "B_E_N_L" TEXT, "MAIN_MEAT_INDUSTRYE" TEXT, "L_N_B_E_N" TEXT, "ROAD_NM_BUSINESS_PLACEG" TEXT, "BREEDING_HEADH" NUMERIC, "DATA_BASEI" TEXT ); Show me the number of female oriental medicine practitioners along with the years when the number of dental technicians is higher than the average radiologist license revocations. | SELECT T1.YEAR, T1.KOREAN_PAPER_DOCTOR_FEMALE FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T2.DENTAL_TECHNICIAN > (SELECT AVG(RADIOLOGIST) FROM STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE) |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Show me the number of male physicians and the number of revoked physician licenses in the years when the number of male physicians is higher than female physicians and the number of revoked physician licenses is higher than that of revoked dentist licenses. , schema : CREATE TABLE "ME_HAN_R_F_C_CNT_F_FORECAST_STANDARD_BASIN_MAPLE_PRECIPITATION" ( "NM_GREAT_REGIONA" TEXT, "STANDARD_CATCHMENT_NMB" TEXT, "MONDAY_HOURC" TEXT, "BLUE_CHIPD" NUMERIC, "P_R_1_M_K" NUMERIC, "P_R_2_M_L" NUMERIC, "P_R_3_M_M" NUMERIC, "E_4_M_R_F_N" NUMERIC, "P_R_5_M_O" NUMERIC, "P_R_1_H_P" NUMERIC, "P_R_1_H_1_M_Q" NUMERIC, "P_R_1_H_2_M_RC" NUMERIC, "P_R_1_H_3_M_S" NUMERIC, "P_R_1_H_4_M_T" NUMERIC, "P_R_1_H_5_M_U" NUMERIC, "P_R_2_H_V" NUMERIC, "P_R_2_H_2_M_W" NUMERIC, "P_R_2_H_2_M_X" NUMERIC, "P_R_2_H_3_M_Y" NUMERIC, "P_R_2_H_4_M_Z" NUMERIC, "P_R_2_H_5_M_ZZ" NUMERIC, "P_R_3_H_VA" NUMERIC, "P_R_3_H_2_M_CV" NUMERIC, "P_R_3_H_2_M_DE" NUMERIC, "P_R_3_H_3_M_XZ" NUMERIC, "P_R_3_H_4_M_A" NUMERIC, "P_R_3_H_5_M_BB" NUMERIC, "P_R_4_H_C" NUMERIC, "P_R_4_H_2_M_2_M_DE" NUMERIC, "P_R_4_H_2_M_2_M_EA" NUMERIC, "P_R_4_H_3_M_F" NUMERIC, "P_R_4_H_4_M_G" NUMERIC, "P_R_4_H_5_M_H" NUMERIC, "E_5_H_R_F_5_H_I" NUMERIC, "P_R_5_H_2_M_J" NUMERIC, "P_R_5_H_2_M_K" NUMERIC, "P_R_5_H_3_M_L" NUMERIC, "P_R_5_H_4_M_M" NUMERIC, "P_R_5_H_5_M_N" NUMERIC, "P_R_6_H_O" NUMERIC ); CREATE TABLE "POP_032" ( "STATS_YR" TEXT, "SIGUNGU_NM" TEXT, "SEX_NM" TEXT, "WRK_AGE_POPL_CNT" NUMERIC, "ECONOAVT_POPL_CNT" NUMERIC, "ECONOINAVT_POPL_CNT" NUMERIC, "LABRFC_PATICP_RT" NUMERIC, "UEMPLY_RT" NUMERIC, "EMPLY_RT" NUMERIC, "ADMDONG_CD" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_020301_S_D" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" NUMERIC, "APVPERMYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" TEXT, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "X" TEXT, "Y" TEXT, "LINDPRCBGBNNM" TEXT, "LINDSEQNO" TEXT, "RGTMBDSNO" TEXT, "TOTEPNUM" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_093013" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" NUMERIC, "APVPERMYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" TEXT, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "UPSOSENM" TEXT, "SITE" TEXT, "ASGNYMD" NUMERIC, "APPLYMD" NUMERIC ); Show me the number of male physicians and the number of revoked physician licenses in the years when the number of male physicians is higher than female physicians and the number of revoked physician licenses is higher than that of revoked dentist licenses. | SELECT T1.YEAR, T1.DOCTOR_MALE, T2.DOCTOR FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T1.DOCTOR_MALE > T1.DOCTOR_FEMALE AND T2.DOCTOR > T2.DENTIST |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Show me the number of oriental medicine practitioners in the years when the number of male oriental medicine practitioners is higher than that of female oriental medicine practitioners and the number of physical therapists is lower than that of radiologists. , schema : CREATE TABLE "L_O_C_A_L_D_A_T_A_072218_J_G" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" NUMERIC, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "Y" TEXT, "SNTUPTAENM" TEXT, "MANEIPCNT" TEXT, "LVSENM" TEXT, "TOTEPNUM" TEXT, "HOFFEPCNT" TEXT, "FCTYOWKEPCNT" TEXT, "FCTYPDTJOBEPCNT" TEXT, "MULTUSNUPSOYN" TEXT, "FACILTOTSCP" TEXT, "JTUPSOASGNNO" TEXT, "HOMEPAGE" TEXT ); Show me the number of oriental medicine practitioners in the years when the number of male oriental medicine practitioners is higher than that of female oriental medicine practitioners and the number of physical therapists is lower than that of radiologists. CREATE TABLE "GBDC_CONST_INFO" ( "BUSINESS_NMY" TEXT, "CONSTRUCTION_CLASZ" TEXT, "CONSTRUCTION_NMA" TEXT, "CONSTRUCTION_CONTRACTORB" TEXT, "DT_CONSTRUCTIONC" TEXT, "COMPLETION_DTD" TEXT ); CREATE TABLE "L_S_C_D_C_J_S_G_D_K_S_C_R_I_VA" ( "DOUBLES_IDH" TEXT, "DOUBLE_NM_KOREANI" TEXT, "C_C_N_D_A" TEXT, "RE_DTK" TEXT, "REVISION_DTL" TEXT ); CREATE TABLE "KOMIR_OVERSEAS_MINERAL_RESOURCES_SURVEY_PRO_INFO" ( "YEAR" NUMERIC, "STATE_NAME" TEXT, "MINE" TEXT, "LIGHT_SPECIES" TEXT ); | SELECT T1.YEAR, T2.ORIENTAL_DOCTOR FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T1.KOREAN_PAPER_DOCTOR_MALE > T1.KOREAN_PAPER_DOCTOR_FEMALE AND T2.PHYSICAL_THERAPIST < T2.RADIOLOGIST |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Show me the number of male physicians with licenses and the number of revoked oriental medicine licenses in 2016., schema : Show me the number of male physicians with licenses and the number of revoked oriental medicine licenses in 2016. CREATE TABLE "GBE_GBE_YEONGJU_SEONBI_LIBRARY_M_MAXIMUM_LOAN_LIST" ( "RANKINGR" NUMERIC, "RE_NUMS" TEXT, "SIGNATURET" TEXT, "AUTHORU" TEXT, "BILLING_SYMBOLV" TEXT, "PUBLISHING_HOUSEW" TEXT, "YEAR_PUBLICATIONX" NUMERIC, "PLACE_COLLECTIONY" TEXT, "DATA_ROOMZ" TEXT, "NUM_LOANSA" NUMERIC ); CREATE TABLE "L_O_C_A_L_D_A_T_A_031001_N_W" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" TEXT, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "CULPHYEDCOBNM" TEXT, "CULWRKRSENM" TEXT, "TOTNUMLAY" TEXT, "NEARENVNM" TEXT, "MNFACTREARTCLCN" TEXT, "FACILAR" TEXT, "JISGNUMLAY" TEXT, "BDNGSRVNM" TEXT, "PASGBRETH" TEXT, "LGHTFACILINILLU" TEXT, "BGROOMCNT" TEXT, "EMERSTAIRYN" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_103701" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "Y" TEXT ); CREATE TABLE "STS_E_LOCAL_INVESTMENT_FUNDED_INST_MOIS_LOCAL_P_ENT_EVN_I" ( "SERIAL_NUMP" NUMERIC, "SORTATIONQ" TEXT, "AREAR" TEXT, "E_O_H" TEXT, "INSTITUTIONAL_CLAST" TEXT, "L_P_C_N_J" TEXT ); | SELECT T1.DOCTOR_FEMALE, T2.ORIENTAL_DOCTOR FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T2.YEAR IN (SELECT YEAR FROM STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE WHERE YEAR = 2016) |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction:'Tell me the year when the number of male doctors was higher than the number of female doctors and the revocation of medical licenses was higher than that of licenses for Korean traditional medicine doctors, along with the number of male doctors and revoked medical licenses.' , schema : CREATE TABLE "L_O_C_A_L_D_A_T_A_030802_G_S" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" TEXT, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "CULPHYEDCOBNM" TEXT, "TOTNUMLAY" TEXT, "NEARENVNM" TEXT, "MNFACTREARTCLCN" TEXT, "FACILAR" TEXT, "JISGNUMLAY" TEXT, "UNDERNUMLAY" TEXT, "BDNGSRVNM" TEXT, "LGHTFACILINILLU" TEXT, "NOROOMCNT" TEXT, "BGROOMCNT" TEXT, "EMERSTAIRYN" TEXT, "EMEXYN" TEXT, "AUTOCHAAIRYN" TEXT, "BGROOMYN" TEXT ); CREATE TABLE "JUNGGU_ADMIN_MESURE_PUBLIC" ( "CGG_CODE" NUMERIC, "ADM_DISPO_YMD" TEXT, "GNT_NO" TEXT, "SNT_COB_NM" TEXT, "SNT_UPTAE_NM" TEXT, "UPSO_NM" TEXT, "SITE_ADDR" TEXT, "DRT_INSP_YMD" TEXT, "ADMM_STATE" TEXT, "DISPO_CTN" TEXT, "VIOR_SORT" TEXT, "BAS_LAW" TEXT, "VIOR_YMD" TEXT, "VIOL_CN" TEXT, "DISPO_CTN_DT" TEXT, "DISPO_GIGAN" TEXT, "INSP_GBN_CODE" TEXT, "NT_GBN_CODE" TEXT, "TRDP_AREA" NUMERIC ); CREATE TABLE "L_O_C_A_L_D_A_T_A_041601_G_R" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "MNFACTREARTCLCN" TEXT, "FACILAR" TEXT, "JISGNUMLAY" TEXT, "PASGBRETH" TEXT, "LGHTFACILINILLU" TEXT, "NOROOMCNT" TEXT, "BGROOMCNT" TEXT, "EMERSTAIRYN" TEXT, "EMEXYN" TEXT, "AUTOCHAAIRYN" TEXT ); 'Tell me the year when the number of male doctors was higher than the number of female doctors and the revocation of medical licenses was higher than that of licenses for Korean traditional medicine doctors, along with the number of male doctors and revoked medical licenses.' CREATE TABLE "GANGSEO_FOOD_HYGIENE_BIZ_SALE_IMPORT" ( "CGG_CODE" NUMERIC, "SNT_COB_CODE" NUMERIC, "YY" TEXT, "UPSO_SNO" NUMERIC, "SNT_COB_NM" TEXT, "PERM_NT_YMD" TEXT, "UPSO_NM" TEXT, "SITE_ADDR_RD" TEXT, "SITE_ADDR" TEXT, "TRDP_AREA" NUMERIC, "UPSO_SITE_TELNO" TEXT, "BMAN_STDT" TEXT, "BUP_NM" TEXT, "SITE_STDT" TEXT, "ADMDNG_NM" TEXT, "DCB_GBN_NM" TEXT, "DCB_WHY" TEXT, "SNT_UPTAE_NM" TEXT, "BDNG_JISG_FLR_NUM" TEXT, "BDNG_JISG_FLR_NUM2" TEXT, "BDNG_UNDER_FLR_NUM" TEXT, "BDNG_TOT_FLR_NUM" TEXT, "GE_EH_YN" TEXT, "GRADE_FACIL_GBN" TEXT, "SITE_LOC_GBN" TEXT, "EIP_WOMAN" TEXT, "PTSOF_SORT" TEXT, "ORDTM_PTSOF_AVG" TEXT, "ORDTM_PTSOF_MAX" TEXT, "MNG_GBN" TEXT, "TRDP_AREA_ROOM" TEXT, "TRDP_AREA_DANCE" TEXT, "TRDP_AREA_DRESS_ROOM" TEXT, "AREA_WRK" NUMERIC ); | SELECT T1.YEAR, T1.DOCTOR_MALE, T2.DOCTOR FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T1.DOCTOR_MALE > T1.DOCTOR_FEMALE AND T2.DOCTOR > T2.ORIENTAL_DOCTOR |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: 'Tell me the year when the number of male doctors was higher than the number of female doctors and the revocation of medical licenses was higher than that of nurse licenses, along with the number of male doctors and revoked medical licenses.' , schema : CREATE TABLE "INFO_PRIVATE_MAINTENANCE_CO_AREA_KDHC_DISTRICT_HEATING_C" ( "FIELDI" TEXT, "COMPANY_NMJ" TEXT, "PHONE_CALLK" TEXT, "ADDRESSL" TEXT, "E_MAILM" TEXT ); CREATE TABLE "S_E_T_E_C_EXHIBITION" ( "SETEC_NO" TEXT, "SETEC_IND" TEXT, "SETEC_NAME" TEXT, "SETEC_OR" TEXT, "SETEC_SPA" TEXT, "SETEC_ST" TEXT, "SETEC_END" TEXT ); 'Tell me the year when the number of male doctors was higher than the number of female doctors and the revocation of medical licenses was higher than that of nurse licenses, along with the number of male doctors and revoked medical licenses.' CREATE TABLE "L_O_C_A_L_D_A_T_A_072218_Y_C" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" NUMERIC, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "Y" TEXT, "MANEIPCNT" TEXT, "TRDPJUBNSENM" TEXT, "LVSENM" TEXT, "TOTEPNUM" TEXT, "HOFFEPCNT" TEXT, "FCTYOWKEPCNT" TEXT, "FCTYSILJOBEPCNT" TEXT, "FCTYPDTJOBEPCNT" TEXT, "BDNGOWNSENM" TEXT, "MONAM" TEXT, "MULTUSNUPSOYN" TEXT, "FACILTOTSCP" TEXT, "JTUPSOASGNNO" TEXT, "JTUPSOMAINEDF" TEXT, "HOMEPAGE" TEXT ); CREATE TABLE "C_STS_GGPT_SOLAR_PW_PLANT" ( "NM_POWER_PLANTU" TEXT, "FACILITY_LOCV" TEXT, "INS_CP_KWW" NUMERIC, "PERMISSION_DTX" TEXT, "DATA_BASE_DTY" TEXT ); | SELECT T1.YEAR, T1.DOCTOR_MALE, T2.DOCTOR FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T1.DOCTOR_MALE > T1.DOCTOR_FEMALE AND T2.DOCTOR > T2.NURSE |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: 'Show me the year when the number of male doctors was higher than the number of female doctors and the revocation of medical licenses was higher than that of clinical pathologist licenses, along with the number of male doctors and revoked medical licenses.' , schema : CREATE TABLE "L_O_C_A_L_D_A_T_A_031201_G_C" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATENM" TEXT, "DCBYMD" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "Y" TEXT, "CULWRKRSENM" TEXT, "REGNSENM" TEXT, "INSURORGNM" TEXT, "JISGNUMLAY" TEXT, "UNDERNUMLAY" TEXT, "ENGSTNTRNMNM" TEXT, "ENGSTNTRNMADDR" TEXT, "SHPCNT" TEXT, "SHPINFO" TEXT, "FACILAR" TEXT, "CAPT" TEXT, "INSURENDDT" TEXT ); CREATE TABLE "SEARCH_PUBLIC_TOILET_P_O_I_SERVICE" ( "POI_ID" TEXT, "FNAME" TEXT, "ANAME" TEXT, "CNAME" TEXT, "CENTER_X1" NUMERIC, "CENTER_Y1" NUMERIC, "X_WGS84" NUMERIC, "Y_WGS84" NUMERIC, "INSERTDATE" TEXT, "UPDATEDATE" TEXT ); CREATE TABLE "INNOPOLIS_CONTRACT_INFO" ( "SORTATIONV" NUMERIC, "CONTRACT_AMTW" NUMERIC, "CONTRACT_SC_START_DTX" TEXT, "CONTRACT_SC_END_DTY" TEXT, "COMPANY_NMZ" TEXT ); 'Show me the year when the number of male doctors was higher than the number of female doctors and the revocation of medical licenses was higher than that of clinical pathologist licenses, along with the number of male doctors and revoked medical licenses.' CREATE TABLE "C_STS_GN_PAID_EMP_AGENCIES" ( "B_E_N_V" TEXT, "LOCU" TEXT, "RE_DT_REVISION_DTV" TEXT, "NOTEW" TEXT ); | SELECT T1.YEAR, T1.DOCTOR_MALE, T2.DOCTOR FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T1.DOCTOR_MALE > T1.DOCTOR_FEMALE AND T2.DOCTOR > T2.MEDICAL_LABORATORY_TECHNOLOGIST |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: 'Tell me the year when the number of male doctors was higher than the number of female doctors and the revocation of medical licenses was higher than that of optician licenses, along with the number of male doctors and medical licenses.' , schema : CREATE TABLE "FLUB_MARKS2011" ( "OBJECTID" NUMERIC, "GU_NAM" TEXT, "AREA" TEXT, "ETC" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_114302_G_R" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" NUMERIC, "APVPERMYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPTAENM" TEXT, "Y" TEXT, "ASGNYMD" TEXT, "MWSRNM" TEXT ); CREATE TABLE "YS_PUBLIC_HYGIENE_BIZ_LOC_MANAGE" ( "YS_FOOD_HYGIENE_CGG_CODE" NUMERIC, "YS_FOOD_HYGIENE_CGG_NM" TEXT, "YS_FOOD_HYGIENE_REGN_NM" TEXT, "SNT_COB_NM" TEXT, "CNT" TEXT ); CREATE TABLE "F_P_W_L_FLOW_CURVE_ME_HAN_R_F_C_STATION" ( "W_L_O_S_C_S" NUMERIC, "BRANCH_NMN" TEXT, "APPLICATION_START_DTO" TEXT, "APPLICATION_END_DTP" TEXT, "NUMQ" NUMERIC, "RELATIONAL_EXPRESSIONR" TEXT, "L_L_W_L_D_Y" NUMERIC, "U_L_W_L_D_Z" NUMERIC, "W_L_D_I_ZZ" NUMERIC ); 'Tell me the year when the number of male doctors was higher than the number of female doctors and the revocation of medical licenses was higher than that of optician licenses, along with the number of male doctors and medical licenses.' | SELECT T1.YEAR, T1.DOCTOR_MALE, T2.DOCTOR FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T1.DOCTOR_MALE > T1.DOCTOR_FEMALE AND T2.DOCTOR > T2.OPTICIAN |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: 'Show me the year when the number of male doctors was higher than the number of female doctors and the revocation of medical licenses was higher than that of health information manager licenses, along with the number of male doctors and revoked medical licenses.' , schema : CREATE TABLE "CURRENT_STS_VEGETABLE_SOURCE_AREA_FOREST_NFSV_TYPE" ( "BRANCH_OFFICE" TEXT, "SEVERAL_SPECIES" TEXT, "CREATION_YEAR" NUMERIC, "AREA_HA" NUMERIC, "CUMULATIVE_AREA_HA" NUMERIC ); 'Show me the year when the number of male doctors was higher than the number of female doctors and the revocation of medical licenses was higher than that of health information manager licenses, along with the number of male doctors and revoked medical licenses.' CREATE TABLE "L_O_C_A_L_D_A_T_A_072101_G_D" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "SNTUPTAENM" TEXT, "MANEIPCNT" TEXT, "WMEIPCNT" TEXT, "TRDPJUBNSENM" TEXT, "TOTEPNUM" TEXT, "FCTYOWKEPCNT" TEXT, "FCTYSILJOBEPCNT" TEXT, "FCTYPDTJOBEPCNT" TEXT, "BDNGOWNSENM" TEXT, "ISREAM" TEXT, "MONAM" TEXT, "MULTUSNUPSOYN" TEXT, "FACILTOTSCP" TEXT, "JTUPSOASGNNO" TEXT, "HOMEPAGE" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_072302_M_P" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATENM" TEXT, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "Y" TEXT, "SNTUPTAENM" TEXT, "MANEIPCNT" TEXT, "WMEIPCNT" TEXT, "TRDPJUBNSENM" TEXT, "LVSENM" TEXT, "WTRSPLYFACILSENM" TEXT, "TOTEPNUM" TEXT, "HOFFEPCNT" TEXT, "FCTYOWKEPCNT" TEXT, "FCTYSILJOBEPCNT" TEXT, "FCTYPDTJOBEPCNT" TEXT, "BDNGOWNSENM" TEXT, "MONAM" TEXT, "MULTUSNUPSOYN" TEXT, "FACILTOTSCP" TEXT, "JTUPSOASGNNO" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_020301_S_D" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" NUMERIC, "APVPERMYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" TEXT, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "X" TEXT, "Y" TEXT, "LINDPRCBGBNNM" TEXT, "LINDSEQNO" TEXT, "RGTMBDSNO" TEXT, "TOTEPNUM" TEXT ); | SELECT T1.YEAR, T1.DOCTOR_MALE, T2.DOCTOR FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T1.DOCTOR_MALE > T1.DOCTOR_FEMALE AND T2.DOCTOR > T2.HEALTH_MEDICAL_INFO_MANAGER |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: 'Show me the year when the number of male doctors was higher than the number of female doctors and the revocation of medical licenses was higher than that of occupational therapist licenses, along with the number of male doctors and revoked medical licenses.' , schema : CREATE TABLE "L_O_C_A_L_D_A_T_A_031301" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "SITEAREA" TEXT, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "CULPHYEDCOBNM" TEXT, "TOTNUMLAY" TEXT, "NEARENVNM" TEXT, "FACILAR" TEXT, "JISGNUMLAY" TEXT, "BDNGSRVNM" TEXT, "PASGBRETH" TEXT, "LGHTFACILINILLU" TEXT, "NOROOMCNT" TEXT, "BGROOMCNT" TEXT, "EMERSTAIRYN" TEXT, "AUTOCHAAIRYN" TEXT, "BGROOMYN" TEXT, "FRSTREGTS" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_010202_G_C" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "MEDKIND" TEXT, "TRDSCP" TEXT ); 'Show me the year when the number of male doctors was higher than the number of female doctors and the revocation of medical licenses was higher than that of occupational therapist licenses, along with the number of male doctors and revoked medical licenses.' CREATE TABLE "L_O_C_A_L_D_A_T_A_072302_G_R" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "MANEIPCNT" TEXT, "WMEIPCNT" TEXT, "TRDPJUBNSENM" TEXT, "LVSENM" TEXT, "TOTEPNUM" TEXT, "HOFFEPCNT" TEXT, "FCTYSILJOBEPCNT" TEXT, "FCTYPDTJOBEPCNT" TEXT, "BDNGOWNSENM" TEXT, "ISREAM" TEXT, "MONAM" TEXT, "MULTUSNUPSOYN" TEXT, "FACILTOTSCP" TEXT, "JTUPSOASGNNO" TEXT, "JTUPSOMAINEDF" TEXT, "HOMEPAGE" TEXT ); CREATE TABLE "C_STS_MULTI_USE_FAC_S_GGYJ_INDOOR_AIR_Q_MNG_ACT" ( "SERIAL_NUMA" NUMERIC, "CITY_COUNTY_NMB" TEXT, "FACILITY_CLASC" TEXT, "FACILITY_NMD" TEXT, "LOC_MAP_NM_ADDRESSE" TEXT, "PHONE_NUMF" TEXT, "GROSS_FLOOR_AREAG" NUMERIC, "NUM_SEATS_SEATS_BEDSH" TEXT, "LATITUDEI" NUMERIC, "HARDNESSJ" NUMERIC, "ADMINISTRATIVE_AGENCYK" TEXT, "MANAGEMENT_PHONE_NUML" TEXT, "DATA_BASE_DTM" TEXT ); | SELECT T1.YEAR, T1.DOCTOR_MALE, T2.DOCTOR FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T1.DOCTOR_MALE > T1.DOCTOR_FEMALE AND T2.DOCTOR > T2.OCCUPATIONAL_THERAPIST |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: 'When was the year where the number of female doctors was higher than the total number of revoked dental licenses?' , schema : CREATE TABLE "OKF_KRN_ASSOCIATION_OVERSEAS_KRNS" ( "GROUP_NAME" TEXT, "CONTINENT" TEXT, "COUNTRY" TEXT, "JURISDICTION" TEXT, "HOME_PAGE" TEXT, "ADDRESS_OVERSEAS" TEXT, "GROUP_INTRODUCTION" TEXT ); CREATE TABLE "SELMETRO_ELEVATOR_I_INFO" ( "ANNUAL" NUMERIC, "LINE" TEXT, "STATION_NAME" TEXT, "EQUIPMENT" TEXT, "AORY" TEXT, "ELEVATOR_NUMBER" TEXT, "OPERATING_SECTION" TEXT, "INSTALLATION_LOCATION" TEXT ); CREATE TABLE "STS_SELMETRO_UNMANNED_CIVIL_SERVICE_ISSUER" ( "ANNUAL" NUMERIC, "LINE" NUMERIC, "STATION_NAME" TEXT, "INSTALLMENT" NUMERIC, "CONTRACTOR_NAME" TEXT, "DEVICE_TYPE" TEXT, FOREIGN KEY ("STATION_NAME") REFERENCES "SELMETRO_ELEVATOR_I_INFO"("STATION_NAME"), FOREIGN KEY ("LINE") REFERENCES "SELMETRO_ELEVATOR_I_INFO"("LINE") ); CREATE TABLE "CURRENT_SITUATION_CINEMA_DAEJEON" ( "MOVIE_THEATER_NAME" TEXT, "LOCATION" TEXT, "SCREENING_THEATER" TEXT, "NUMBER_SEATS" NUMERIC, "PHONE_NUMBER" TEXT ); CREATE TABLE "L_S_C_D_C_J_S_G_D_K_S_C_R_I_VA" ( "DOUBLES_IDH" TEXT, "DOUBLE_NM_KOREANI" TEXT, "C_C_N_D_A" TEXT, "RE_DTK" TEXT, "REVISION_DTL" TEXT ); 'When was the year where the number of female doctors was higher than the total number of revoked dental licenses?' | SELECT T2.YEAR FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T1.DOCTOR_FEMALE > (SELECT SUM(DENTIST) FROM STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE) |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: 'When was the year where the number of revoked dental licenses was higher than the average number of revoked Korean traditional medicine licenses or the year with the fewest male Hanji doctors?' , schema : 'When was the year where the number of revoked dental licenses was higher than the average number of revoked Korean traditional medicine licenses or the year with the fewest male Hanji doctors?' CREATE TABLE "MNG_STS_KR_ASSET_MNG_C_CONST_BOND_DELEGATE" ( "BASE_MONTHS" TEXT, "DELEGATE_NMT" TEXT, "NUM_DEBTORSU" NUMERIC ); CREATE TABLE "BUK_GU_PHARMACY_DAEGU" ( "NAME_ORGANIZATION" TEXT, "OPERATIONAL_STATUS" TEXT, "LOCATION_ROAD_NAME" TEXT, "LOCATION_LOT_NUMBER" TEXT, "LATITUDE" NUMERIC, "HARDNESS" NUMERIC, "PHONE_NUMBER" TEXT, "DATA_BASE_DATE" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_093004_J_N" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BUSINESSNAME" TEXT, "LASTMODTS" NUMERIC, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "BDNGJISGFLRCNT" TEXT, "BDNGUNDERFLRCNT" TEXT, "USEJISGSTFLR" TEXT, "USEJISGENDFLR" TEXT, "USEUNDERSTFLR" TEXT, "USEUNDERENDFLR" TEXT, "HANSHILCNT" TEXT, "YANGSILCNT" TEXT, "YOKSILCNT" TEXT, "BALHANSILYN" TEXT, "CNDPERMNTWHY" TEXT, "CNDPERMSTYMD" TEXT, "CNDPERMENDYMD" TEXT, "BDNGOWNSENM" TEXT, "WASHMCCNT" TEXT, "RCVDRYNCNT" TEXT, "ABEDCNT" TEXT, "MULTUSNUPSOYN" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_072203_J_G" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "TRDSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "Y" TEXT, "SNTUPTAENM" TEXT, "WMEIPCNT" TEXT, "TRDPJUBNSENM" TEXT, "WTRSPLYFACILSENM" TEXT, "TOTEPNUM" TEXT, "HOFFEPCNT" TEXT, "FCTYOWKEPCNT" TEXT, "FCTYSILJOBEPCNT" TEXT, "ISREAM" TEXT, "MONAM" TEXT, "JTUPSOASGNNO" TEXT, "JTUPSOMAINEDF" TEXT, "HOMEPAGE" TEXT ); | SELECT T1.YEAR FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T2.DENTIST > (SELECT AVG(ORIENTAL_DOCTOR) FROM STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE) OR T1.KOREAN_PAPER_DOCTOR_MALE = (SELECT MIN(KOREAN_PAPER_DOCTOR_MALE) FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE) |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: 'Tell me the number of radiologic technologists and physical therapists in the year when the number of female doctors was over 21,000.' , schema : CREATE TABLE "CURRENT_STS_GROUP_MEAL_CNTS_GUNSAN_JEONBUK" ( "BUSINESS_NAME" TEXT, "LOCATION_ROAD_NAME" TEXT, "LOCATION_NUMBER" TEXT ); 'Tell me the number of radiologic technologists and physical therapists in the year when the number of female doctors was over 21,000.' CREATE TABLE "L_O_C_A_L_D_A_T_A_031203_G_N" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "CULPHYEDCOBNM" TEXT, "CULWRKRSENM" TEXT, "TOTNUMLAY" TEXT, "NEARENVNM" TEXT, "INSURORGNM" TEXT, "BDNGSRVNM" TEXT, "STROOMCNT" TEXT, "ENGSTNTRNMADDR" TEXT, "SHPTOTTONS" TEXT, "SHPCNT" TEXT, "SHPINFO" TEXT, "CAPT" TEXT, "INSURSTDT" TEXT, "INSURENDDT" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_092805_J_N" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" NUMERIC, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "SITETEL" TEXT, "SITEPOSTNO" TEXT, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "PRDSENM" TEXT, "WRKPGRDSRVSENM" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_072208_S_C" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DCBYMD" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" NUMERIC, "SITEPOSTNO" NUMERIC, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "X" TEXT, "Y" TEXT, "SNTUPTAENM" TEXT, "MANEIPCNT" TEXT, "WMEIPCNT" TEXT, "TRDPJUBNSENM" TEXT, "LVSENM" TEXT, "WTRSPLYFACILSENM" TEXT, "FCTYOWKEPCNT" TEXT, "FCTYSILJOBEPCNT" TEXT, "FCTYPDTJOBEPCNT" TEXT, "BDNGOWNSENM" TEXT, "MONAM" TEXT, "MULTUSNUPSOYN" TEXT, "FACILTOTSCP" TEXT ); | SELECT T2.RADIOLOGIST, T2.PHYSICAL_THERAPIST FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T1.YEAR IN (SELECT YEAR FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE WHERE DOCTOR_FEMALE >= 21000) |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: 'Find the year where the number of male Hanji doctors was higher than the maximum number of revoked dental technician licenses or the revocation of occupational therapist licenses was three or fewer.', schema : CREATE TABLE "CHILD_SCHOOL_INSURANCE_SB" ( "OFFICEEDU" TEXT, "SUBOFFICEEDU" TEXT, "KINDERCODE" TEXT, "KINDERNAME" TEXT, "ESTB_PT" TEXT, "INSURANCE_NM" TEXT, "INSURANCE_EN" TEXT, "COMPANY1" TEXT, "COMPANY2" TEXT, "COMPANY3" TEXT, "ADDR" TEXT ); CREATE TABLE "INFO_MEMBER_CO_APPLYING_KEITI_ENV_NEW_TECH_C" ( "COMPANY_NUMR" TEXT, "MEMBER_CLASS" TEXT, "COMPANYT" TEXT, "BUSINESS_RE_NUMU" TEXT, "CORPORATE_SECTORV" TEXT, "C_B_C_Y" TEXT, "COMPANY_REPRESENTATIVEX" TEXT, "COMPANY_ADDRESS_1Y" TEXT, "COMPANY_ADDRESS_2Z" TEXT, "COMPANY_PHONE_CALLA" TEXT, "COMPANY_WEBSITEB" TEXT, "COMPANY_BASE_YEARC" TEXT, "COMPANY_NM_ENGLISHD" TEXT, "CORPORATE_SECTORE" TEXT ); 'Find the year where the number of male Hanji doctors was higher than the maximum number of revoked dental technician licenses or the revocation of occupational therapist licenses was three or fewer.' CREATE TABLE "MOIS_DISASTER_TEXT_I_STS_API_AREA_CD" ( "LOC_IDE" NUMERIC, "ATTEMPTED_SHIPMENT_AREAF" TEXT, "D_A_C_C_D_T" TEXT, "STATUTORY_COPPER_CDH" NUMERIC, "LEGAL_ATTEMPTI" TEXT, "B_D_C_C_W" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_072205_D_B" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" NUMERIC, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" TEXT, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "LINDJOBGBNNM" TEXT, "LINDPRCBGBNNM" TEXT, "RGTMBDSNO" TEXT, "TOTEPNUM" TEXT ); | SELECT T1.YEAR FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T1.KOREAN_PAPER_DOCTOR_MALE > (SELECT MAX(DENTAL_TECHNICIAN) FROM STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE) OR OCCUPATIONAL_THERAPIST <= 3 |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction:Show me the years when more than 100 oriental medicine doctor licenses were revoked. , schema : CREATE TABLE "L_O_C_A_L_D_A_T_A_093014_G_D" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" NUMERIC, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" TEXT, "DTLSTATENM" TEXT, "CLGSTDT" TEXT, "SITEPOSTNO" TEXT, "SITEWHLADDR" TEXT, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "Y" TEXT, "BSNGBN" NUMERIC, "BDNGYAREA" TEXT, "BDNGSTATENM" TEXT, "CLSTGTSTDT" TEXT, "BSNGBNNM" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_072211_D_J" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" NUMERIC, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "Y" TEXT, "MANEIPCNT" TEXT, "WMEIPCNT" TEXT, "TRDPJUBNSENM" TEXT, "LVSENM" TEXT, "WTRSPLYFACILSENM" TEXT, "TOTEPNUM" TEXT, "HOFFEPCNT" TEXT, "FCTYSILJOBEPCNT" TEXT, "FCTYPDTJOBEPCNT" TEXT, "BDNGOWNSENM" TEXT, "ISREAM" TEXT, "FACILTOTSCP" TEXT, "JTUPSOASGNNO" TEXT, "JTUPSOMAINEDF" TEXT, "HOMEPAGE" TEXT ); CREATE TABLE "SMALL_BLCK" ( "OBJECTID" TEXT, "SMALL_BLCK" TEXT, "BLCK_NM" TEXT, "GU_ID" NUMERIC, "ADRES_CN" TEXT, "CREAT_DE" TEXT, "EXTSH_DE" TEXT, "ISL_AT" TEXT, "ISL_STLE_C" TEXT, "ISL_DE" TEXT, "WSP_TY_SE" TEXT, "AREA_STTUS" TEXT, "AVRG_PLINE" TEXT, "FLWMTR_INS" TEXT, "IMPRTY_RES" TEXT, "LDTAR_ID" TEXT, "BIZPLC_ID" TEXT, "IMPRMN_RT" TEXT, "RM_CN" TEXT, "INPUT_DE" TEXT, "SDTAR_ID" TEXT, "UPDT_DE" TEXT, "MIDDL_BLCK" TEXT, "MESR_ID" TEXT ); Show me the years when more than 100 oriental medicine doctor licenses were revoked. CREATE TABLE "L_O_C_A_L_D_A_T_A_082604_M_P" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" NUMERIC, "APVPERMYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "ASETSCP" TEXT, "CAPT" TEXT, "SILMETNM" TEXT ); | SELECT T1.YEAR FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T1.YEAR IN (SELECT YEAR FROM STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE WHERE ORIENTAL_DOCTOR >= 100) |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Tell me the number of female doctors in the years when more than 100 optician licenses were revoked. , schema : CREATE TABLE "GGAS_W_SPL_FLOW_STS" ( "SAVE_DTZ" TEXT, "FACILITY_NMA" TEXT, "FACILITY_IDB" NUMERIC, "FACILITY_STAC" TEXT, "PRESSURE_MINIMUMD" NUMERIC, "MAX_PRESSUREE" NUMERIC, "PRESSURE_AVGF" NUMERIC, "PRESSURE_DISTRIBUTIONG" NUMERIC, "MINIMUM_FLOW_RATEH" NUMERIC, "MAX_FLOW_RATEI" NUMERIC, "FLOW_AVGJ" NUMERIC, "FLOW_DISTRIBUTIONK" NUMERIC, "SUPPLY_VOLUMEL" NUMERIC, "DATA_BASE_DTM" TEXT ); CREATE TABLE "POP_020" ( "STATS_YR" TEXT, "SIGUNGU_NM" TEXT, "AGEGRD_NM" TEXT, "FERTIL_RT" NUMERIC, "AGEGRD_CD" NUMERIC, "ADMDONG_CD" TEXT ); Tell me the number of female doctors in the years when more than 100 optician licenses were revoked. CREATE TABLE "SEBC_ART_GALLERY_KOR" ( "MAIN_KEY" TEXT, "CATE1_NAME" TEXT, "CATE2_NAME" TEXT, "CATE3_NAME" TEXT, "NM_DP" TEXT, "NAME_KOR" TEXT, "ADD_KOR" TEXT, "ADD_KOR_ROAD" TEXT, "H_KOR_GU" TEXT, "H_KOR_DONG" TEXT ); CREATE TABLE "KOSHA_H_SAFE_TRAINING_INFO" ( "NUMY" NUMERIC, "SERVICEZ" NUMERIC, "INITIAL_DEVELOPMENTA" NUMERIC, "PORTING_NUMB" NUMERIC, "NEXT_NMC" TEXT, "MAIN_CONTENTSD" TEXT, "FIELDE" TEXT ); | SELECT T1.DOCTOR_FEMALE FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T2.YEAR IN (SELECT YEAR FROM STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE WHERE OPTICIAN >= 100) |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: When is the year when the average number of revoked physical therapist licenses is less than the number of revoked radiologic technologist licenses or the number of male oriental medicine practitioners exceeds 74? , schema : CREATE TABLE "BIG_KCY_WCLF" ( "MGM_WCLF_PK" TEXT, "MGM_PMSRGST_PK" TEXT, "REPR_YN" NUMERIC, "WCLF_MODE_CD" NUMERIC, "MAIN_DONG_GB_CD" NUMERIC, "CAPA_PSPER" NUMERIC, "CAPA_LUBE" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_092805_G_R" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" NUMERIC, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "SITETEL" TEXT, "SITEWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "Y" TEXT, "PRDSENM" TEXT, "WRKPGRDSRVSENM" TEXT ); CREATE TABLE "HF_WARRANTY_OBLIGATION_FULFILLMENT_CLAIM_INVOICE" ( "PTTN_NOT" NUMERIC, "GUARNT_NOU" TEXT, "CUST_NOV" NUMERIC, "ORG_GUARNT_DYW" TEXT, "GCTPT_PLC_CDX" NUMERIC, "GCTPT_PLC_NMY" TEXT, "STLE_CDZ" NUMERIC, "DISCHRG_REQ_DYA" TEXT, "DISCHRG_RSN_DYB" TEXT, "DISCHRG_RSN_DVCDC" NUMERIC, "ETCD" TEXT, "REG_BRCDE" TEXT, "REG_ENOF" NUMERIC, "REG_DTG" TEXT, "DISCHRG_REQ_CNCL_DYH" TEXT, "DISCHRG_HLD_TERMI" TEXT ); When is the year when the average number of revoked physical therapist licenses is less than the number of revoked radiologic technologist licenses or the number of male oriental medicine practitioners exceeds 74? CREATE TABLE "L_O_C_A_L_D_A_T_A_072217_E_P" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGENDDT" TEXT, "SITETEL" TEXT, "SITEAREA" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "SNTUPTAENM" TEXT, "WMEIPCNT" TEXT, "LVSENM" TEXT, "TOTEPNUM" TEXT, "HOFFEPCNT" TEXT, "FCTYOWKEPCNT" TEXT, "FCTYSILJOBEPCNT" TEXT, "ISREAM" TEXT, "MONAM" TEXT, "MULTUSNUPSOYN" TEXT, "FACILTOTSCP" TEXT, "HOMEPAGE" TEXT ); | SELECT T1.YEAR FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T2.RADIOLOGIST > (SELECT AVG(PHYSICAL_THERAPIST) FROM STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE) OR KOREAN_PAPER_DOCTOR_MALE > 74 |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Tell me the years, without duplication, when more than 100 oriental medicine doctor licenses were revoked or there were more than 60 female oriental medicine practitioners. , schema : CREATE TABLE "NUM_PEOPLE_GETTING_OFF_TRAIN_T_KORAIL_DONGDAEGU_STATION" ( "OPERATION_DTE" TEXT, "TRAIN_TYPEF" TEXT, "NUM_PASSENGERSG" NUMERIC, "N_P_W_G_O_T_VA" NUMERIC ); CREATE TABLE "L_O_C_A_L_D_A_T_A_020302_S_C" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" NUMERIC, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "LINDJOBGBNNM" TEXT, "LINDSEQNO" TEXT, "TOTEPNUM" TEXT ); Tell me the years, without duplication, when more than 100 oriental medicine doctor licenses were revoked or there were more than 60 female oriental medicine practitioners. CREATE TABLE "SEO_GU_INCHEON_C_SERVICE_INVESTMENT_PRO" ( "ANNUAL" NUMERIC, "PROVISION" TEXT, "BUSINESS_NAME" TEXT, "TARGET" TEXT, "ADDRESS" TEXT, "PHONE_NUMBER" TEXT, "DATA_STANDARD_DATE" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_092805_G_J" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" NUMERIC, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "PRDSENM" TEXT, "WRKPGRDSRVSENM" TEXT ); | SELECT DISTINCT T1.YEAR FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T1.YEAR IN (SELECT YEAR FROM STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE WHERE ORIENTAL_DOCTOR >= 100) OR T1.KOREAN_PAPER_DOCTOR_FEMALE >= 60 |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Show me, without duplication, the years when the number of revoked radiologic technologist licenses exceeds the minimum number of revoked clinical pathologist licenses. , schema : CREATE TABLE "MOIS_NPAS_SYS_M_PAGE_VIEW_STS" ( "YEAR_MONTHQ" TEXT, "LOG_TO_VISITORR" NUMERIC, "PAGE_VIEWS" NUMERIC ); CREATE TABLE "IMPORT_EXPORT_STS_MOTIE_TEXTILE_I" ( "YEAR" NUMERIC, "TAL_INDUSTRIAL_EXPORT_AMOUNT" NUMERIC, "CREASE_OR_DECREASE_OVERALL_INDUSTRIAL_EXPORTS" NUMERIC, "TAL_INDUSTRIAL_INCOME_AMOUNT" NUMERIC, "CREASE_OR_DECREASE_TOTAL_INDUSTRIAL_INCOME" NUMERIC, "TOTAL_BALANCE_TRADE_AND_INDUSTRY" NUMERIC, "TEXTILE_INDUSTRY_EXPORT_AMOUNT" NUMERIC, "EXPORT_INCREASE_AND_DECREASE_TEXTILE_INDUSTRY" NUMERIC, "EXPORT_SHARE_TEXTILE_INDUSTRY" NUMERIC, "TEXTILE_INDUSTRY_REVENUE_AMOUNT" NUMERIC, "CREASE_OR_DECREASE_TEXTILE_INDUSTRY_REVENUE" NUMERIC, "BALANCE_TRADE_TEXTILE_INDUSTRY" NUMERIC ); CREATE TABLE "CUR_STA_WORKERS_MOTIE_TEXTILE_I" ( "YEAR" NUMERIC, "NUMBER_MANUFACTURING_BUSINESSES" NUMERIC, "NUMBER_TEXTILE_INDUSTRY_BUSINESSES" NUMERIC, "PERCENTAGE_TEXTILE_INDUSTRY_BUSINESSES" NUMERIC, "NUMBER_MANUFACTURING_WORKERS" NUMERIC, "NUMBER_EMPLOYEES_TEXTILE_INDUSTRY" NUMERIC, "PERCENTAGE_WORKERS_TEXTILE_INDUSTRY" NUMERIC, FOREIGN KEY ("YEAR") REFERENCES "IMPORT_EXPORT_STS_MOTIE_TEXTILE_I"("YEAR") ); CREATE TABLE "CHILD_CARE_INFO_N_W" ( "SIGUNNAME" TEXT, "STCODE" NUMERIC, "CRNAME" TEXT, "CRTYPENAME" TEXT, "CRSTATUSNAME" TEXT, "ZIPCODE" NUMERIC, "CRADDR" TEXT, "CRTELNO" TEXT, "CRFAXNO" TEXT, "CRHOME" TEXT, "NRTRROOMCNT" TEXT, "NRTRROOMSIZE" TEXT, "CRCAPAT" TEXT, "CRCHCNT" TEXT, "LA" NUMERIC, "LO" NUMERIC, "CRCARGBNAME" TEXT, "CRCNFMDT" TEXT, "CRPAUSEBEGINDT" TEXT, "CRABLDT" TEXT, "DATASTDRDT" TEXT, "CRSPEC" TEXT, "CLASS_CNT_00" TEXT, "CLASS_CNT_M5" TEXT, "CLASS_CNT_TOT" TEXT, "CHILD_CNT_02" TEXT, "CHILD_CNT_03" TEXT, "CHILD_CNT_05" TEXT, "CHILD_CNT_M2" TEXT ); CREATE TABLE "L_O_C_A_L_D_A_T_A_010105_G_S" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "SITETEL" TEXT, "SITEPOSTNO" TEXT, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT ); Show me, without duplication, the years when the number of revoked radiologic technologist licenses exceeds the minimum number of revoked clinical pathologist licenses. | SELECT DISTINCT T1.YEAR FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T2.RADIOLOGIST > (SELECT MIN(MEDICAL_LABORATORY_TECHNOLOGIST) FROM STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE) |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: When is the year when the number of male oriental medicine practitioners is greater than the average number of revoked radiologic technologist licenses or the number of revoked occupational therapist licenses is less than the minimum number of female oriental medicine practitioners? , schema : CREATE TABLE "STS_M_CONTRACT_KR_ASSET_MNG_C_CONST_BOND_CA" ( "CONTRACT_YEAR_MONTHZ" TEXT, "CA_CORPORATIONA" TEXT, "ORDERB" NUMERIC, "NUM_AGREEMENTSC" NUMERIC ); CREATE TABLE "HF_MBB_MNG_FEE_CASHFLOW" ( "LIQUIDATION_PLAN_CDX" TEXT, "PAY_COUNTY" NUMERIC, "PAY_DTZ" TEXT, "S_P_D_I" TEXT, "F_C_S_D_J" TEXT, "F_C_C_D_K" TEXT, "RESOLUTION_DTD" TEXT, "FEE_AMT_KRWE" NUMERIC, "F_A_F_C_N" NUMERIC, "REGISTERED_COMPANY_NUMG" NUMERIC ); When is the year when the number of male oriental medicine practitioners is greater than the average number of revoked radiologic technologist licenses or the number of revoked occupational therapist licenses is less than the minimum number of female oriental medicine practitioners? CREATE TABLE "L_O_C_A_L_D_A_T_A_031103_J_G" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "SNTUPTAENM" TEXT, "BDNGJISGFLRCNT" TEXT, "BDNGUNDERFLRCNT" TEXT, "USEJISGSTFLR" TEXT, "USEJISGENDFLR" TEXT, "USEUNDERSTFLR" TEXT, "HANSHILCNT" TEXT, "YANGSILCNT" TEXT, "YOKSILCNT" TEXT, "BALHANSILYN" TEXT, "CHAIRCNT" TEXT, "CNDPERMSTYMD" TEXT, "WASHMCCNT" TEXT, "WMEIPCNT" TEXT, "MANEIPCNT" TEXT, "RCVDRYNCNT" TEXT, "MULTUSNUPSOYN" TEXT ); CREATE TABLE "YEARLY_AVERAGE_AIR_QUALITY" ( "MSRDT_YEAR" TEXT, "MSRSTE_NM" TEXT, "NO2" NUMERIC, "O3" NUMERIC, "CO" NUMERIC, "SO2" NUMERIC, "PM10" NUMERIC, "PM25" NUMERIC ); | SELECT T1.YEAR FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T1.KOREAN_PAPER_DOCTOR_MALE > (SELECT AVG(RADIOLOGIST) FROM STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE) OR T2.OCCUPATIONAL_THERAPIST < (SELECT MIN(KOREAN_PAPER_DOCTOR_FEMALE) FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE) |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Tell me the years, without duplication, when the number of revoked optician licenses is above average or the number of male oriental medicine practitioners is below average. , schema : CREATE TABLE "MOIS_N_ARCHIVES_RECORDS_MNG_COLLECTIVE_EDU_O_INFO" ( "YEARV" NUMERIC, "COURSE_NMW" TEXT, "TARGETX" TEXT, "OVERVIEW_EDU_MANAGEMENTY" TEXT, "NUM_TIMESZ" NUMERIC, "TRAINING_PERIOD_FLAGA" NUMERIC, "SJ_OVERVIEWB" TEXT, "SJ_NMC" TEXT, "ASSIGNMENT_TIMED" NUMERIC, "TRAINING_START_DTE" TEXT, "TRAINING_END_DTF" TEXT, "C_T_T_S" NUMERIC, "EDUAL_PERSONNELH" NUMERIC, "PLACE_EDUI" TEXT ); CREATE TABLE "CONSULTATION_STS_KR_ASSET_MNG_C_STATE_OWNED_P_REGIONAL_HD" ( "CONSULTATION_YEAR_MONTHL" TEXT, "CONSULTATION_POINTM" TEXT, "COUNTN" NUMERIC ); CREATE TABLE "B_STS_KEPCO" ( "INQUIRY_PERIODU" TEXT, "CITY_PROVINCEV" TEXT, "CONTRACT_TYPEW" TEXT, "CUSTOMER_NUMX" NUMERIC, "SALES_VOLUME_SALESY" NUMERIC, "SALES_REVENUEZ" NUMERIC ); CREATE TABLE "L_O_C_A_L_D_A_T_A_030601_E_P" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" NUMERIC, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "UPTAENM" TEXT, "Y" TEXT, "CULPHYEDCOBNM" TEXT, "CULWRKRSENM" TEXT, "REGNSENM" TEXT, "TOTNUMLAY" TEXT, "NEARENVNM" TEXT, "INSURORGNM" TEXT, "BDNGSRVNM" TEXT, "UNDERNUMLAY" TEXT, "STROOMCNT" TEXT, "CNSTYAREA" TEXT, "ENGSTNTRNMNM" TEXT, "SHPTOTTONS" TEXT, "SHPCNT" TEXT ); Tell me the years, without duplication, when the number of revoked optician licenses is above average or the number of male oriental medicine practitioners is below average. | SELECT DISTINCT T2.YEAR FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T2.OPTICIAN > (SELECT AVG(OPTICIAN) FROM STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE) OR T1.KOREAN_PAPER_DOCTOR_MALE <= (SELECT AVG(KOREAN_PAPER_DOCTOR_MALE) FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE) |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: When is the year when there are 68 male oriental medicine practitioners and 125 dentists? , schema : When is the year when there are 68 male oriental medicine practitioners and 125 dentists? CREATE TABLE "L_O_C_A_L_D_A_T_A_030502_M_P" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" TEXT, "APVPERMYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGSTDT" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPTAENM" TEXT, "X" TEXT, "Y" TEXT, "CULPHYEDCOBNM" TEXT, "CULWRKRSENM" TEXT, "TOTNUMLAY" TEXT, "NEARENVNM" TEXT, "MNFACTREARTCLCN" TEXT, "JISGNUMLAY" TEXT, "UNDERNUMLAY" TEXT, "PASGBRETH" TEXT, "LGHTFACILINILLU" TEXT, "BGROOMCNT" TEXT, "EMEXYN" TEXT, "BGROOMYN" TEXT ); CREATE TABLE "I_STS_GNUY_PHOTOVOLTAIC_PW_GENERATION" ( "NUMJ" NUMERIC, "MUTUALK" TEXT, "FACILITY_CP_KWL" NUMERIC, "LOC_INS_SITEM" TEXT, "PERMISSION_DTN" TEXT, "B_C_D_Z" TEXT, "DATA_BASE_DTP" TEXT ); CREATE TABLE "OVERSEAS_PROCUREMENT_INFO" ( "BIDDING_NUMQ" TEXT, "A_S_B_G" TEXT, "DT_PUBLIC_ANNOUNCEMENTS" TEXT, "SUCCESSFUL_BIDT" TEXT, "UNSPSC_CLASU" NUMERIC, "NATIONV" TEXT, "AREAW" TEXT, "ORIGINAL_URLX" TEXT ); CREATE TABLE "S_E_DESIGNATION" ( "COMPANYSEQ" NUMERIC, "TARGETNUM" TEXT, "COMPANYNM" TEXT, "WORKCONTENT" TEXT, "ADDRESS" TEXT, "PHONE" TEXT ); | SELECT T2.YEAR FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T1.KOREAN_PAPER_DOCTOR_MALE IN (SELECT KOREAN_PAPER_DOCTOR_MALE FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE WHERE KOREAN_PAPER_DOCTOR_MALE = 68) AND T2.DENTIST IN (SELECT DENTIST FROM STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE WHERE DENTIST = 125) |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: Find the years when the number of revoked optician licenses is 100 or less or the number of female oriental medicine practitioners is more than 10. , schema : CREATE TABLE "HFMBS_DETAILS" ( "PRODUCT_NMC" TEXT, "L_B_P_M_V" NUMERIC, "EARLY_REPAY_AMTE" NUMERIC, "EARLY_REPAY_RATEF" TEXT, "B_M_L_B_Y" NUMERIC, "LATE_PAY_AMTH" NUMERIC, "D_R_P_ZZ" TEXT ); CREATE TABLE "GWANGJU_CHILDREN_MEAL_CARD_MERCHANT" ( "FRANCHISE" TEXT, "INDUSTRY_NAME" TEXT, "PHONE_NUMBER" TEXT, "MERCHANT_ADDRESS" TEXT ); CREATE TABLE "MNG_STS_KR_ASSET_MNG_C_CONST_BOND_DELEGATE" ( "BASE_MONTHS" TEXT, "DELEGATE_NMT" TEXT, "NUM_DEBTORSU" NUMERIC ); CREATE TABLE "L_O_C_A_L_D_A_T_A_020302_G_J" ( "OPNSFTEAMCODE" NUMERIC, "MGTNO" NUMERIC, "APVPERMYMD" TEXT, "APVCANCELYMD" TEXT, "TRDSTATEGBN" NUMERIC, "TRDSTATENM" TEXT, "DTLSTATEGBN" NUMERIC, "DTLSTATENM" TEXT, "DCBYMD" TEXT, "CLGENDDT" TEXT, "ROPNYMD" TEXT, "SITETEL" TEXT, "SITEAREA" TEXT, "SITEPOSTNO" TEXT, "SITEWHLADDR" TEXT, "RDNWHLADDR" TEXT, "RDNPOSTNO" NUMERIC, "BPLCNM" TEXT, "LASTMODTS" NUMERIC, "UPDATEGBN" TEXT, "UPDATEDT" TEXT, "X" TEXT, "Y" TEXT, "LINDPRCBGBNNM" TEXT, "LINDSEQNO" TEXT, "RGTMBDSNO" NUMERIC ); Find the years when the number of revoked optician licenses is 100 or less or the number of female oriental medicine practitioners is more than 10. | SELECT T1.YEAR FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T2.OPTICIAN <= 100 OR T1.YEAR IN (SELECT YEAR FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE WHERE KOREAN_PAPER_DOCTOR_FEMALE > 10) |
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema. Instruction: When is the year when there are more than 100 oriental medicine doctors and more than 70 female oriental medicine practitioners?, schema : CREATE TABLE "ME_N_BIOLOGICAL_R_CNT_N_BIOLOGICAL_R_CNT_WILDLIFE_GENOME_LIST" ( "BIOPROJECT_UNIQUE_IDV" NUMERIC, "PROJECT_NMW" TEXT, "DATA_TYPEX" TEXT, "SAMPLE_INF_UIDY" NUMERIC, "PAPER_NMZ" TEXT, "SAMPLE_HOST_DESCRIPTIONA" TEXT, "SRA_UNIQUE_IDB" NUMERIC, "SEQUENCING_STRATEGYC" TEXT, "SEQUENCING_PLATFORMD" TEXT, "SRA_PRODUCTION_SOURCEE" TEXT, "SRA_PRODUCTION_LAYOUTF" TEXT ); CREATE TABLE "SEODAEMUN_FOOD_COLLECT_CHECK_HYGIENE_BIZ" ( "CGG_CODE" NUMERIC, "SNT_COB_CODE" NUMERIC, "SNT_COB_NM" TEXT, "PLN_SE_CODE" NUMERIC, "PLN_SE_NM" TEXT, "CHK_PLN_NM" TEXT, "COL_PRFDOC_NO" TEXT, "COL_WHY_CODE" TEXT, "UPSO_NM" TEXT, "ATCL_GUN_NM" TEXT, "ATCL_NM" TEXT, "PRDT_NM" TEXT, "EDF_NM" TEXT, "RM_NM" TEXT, "COL_YMD" TEXT, "PRDT_SIZE" TEXT, "COL_UNIT" TEXT, "COL_QY_IPT" TEXT, "PRD_YMD" TEXT, "PRDT_YUTONG_DLN" TEXT, "YUTONG_DLN_PRD_YMD_FROM" TEXT, "DEPO_STATE_CODE" TEXT, "BCE_CODE" TEXT, "CHD_SMBL_FD_KD_CODE" TEXT, "ISP_REQ_ORG_NM" NUMERIC, "FACTORY_NM" TEXT, "NATIV_FRGNR_SE" TEXT, "NTN" TEXT, "ISP_SE" TEXT, "ISP_REQ_YMD" TEXT, "ISP_RT_REPLY_YMD" TEXT, "COL_ISP_RT_GBN" TEXT, "DEAL_SE" TEXT, "COL_ISP_SE" TEXT, "COL_PLC_SE" TEXT, "DEAL_RT" TEXT, "COL_PDT_DEAL" TEXT ); When is the year when there are more than 100 oriental medicine doctors and more than 70 female oriental medicine practitioners? CREATE TABLE "KDN_PATENT_HOLDING_STS" ( "NUMY" NUMERIC, "NM_INVENTIONZ" TEXT, "RE_NUMA" NUMERIC, "RE_DTB" TEXT ); CREATE TABLE "STS_BASIC_LIVING_SECURITY_RECIPIENTS_NAM_GU_BUSAN" ( "TOWNSHIP_AND_TOWNSHIP" TEXT, "QUALIFICATION" TEXT, "NUMBER_HOUSEHOLDS" NUMERIC, "NUMBER_BENEFICIARIES" NUMERIC ); | SELECT T1.YEAR FROM MOHW_LICENSE_MEDICAL_ACCEPTANCE AS T1 JOIN STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE AS T2 ON T1.YEAR = T2.YEAR WHERE T1.YEAR IN (SELECT YEAR FROM STS_CANCELLATION_MOHW_HEALTH_CARE_WORKER_LICENSE WHERE ORIENTAL_DOCTOR >= 100) AND T1.KOREAN_PAPER_DOCTOR_MALE >= 70 |