Advertisement
Guest User

Untitled

a guest
May 22nd, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 14.19 KB | None | 0 0
  1. Query   SELECT SQL_CALC_FOUND_ROWS DISTINCT `organizations`.`id` AS `organizations___id`,
  2.  `organizations`.`id` AS `organizations___id_raw`,
  3.  `organizations`.`date_time` AS `organizations___date_time`,
  4.  `organizations`.`date_time` AS `organizations___date_time_raw`,
  5.  `organizations`.`organization_country` AS `organizations___organization_country_raw`,
  6.  CONCAT_WS('', IF(LENGTH(`geo_countries`.name_ru_RU),`geo_countries`.name_ru_RU,`geo_countries`.name_en_GB)) AS `organizations___organization_country`,
  7.  `organizations`.`organization_name` AS `organizations___organization_name_raw`,
  8.  CONCAT_WS('', IF(LENGTH(`org_list`.name_ru_RU),`org_list`.name_ru_RU,IF(LENGTH(`org_list`.name_en_GB),`org_list`.name_en_GB,`org_list`.name_ru_RU))) AS `organizations___organization_name`,
  9.  `organizations`.`user_id` AS `organizations___user_id_raw`,
  10.  `si1ez_users`.`name` AS `organizations___user_id`,
  11.  `organizations`.`is_subordinate` AS `organizations___is_subordinate`,
  12.  `organizations`.`is_subordinate` AS `organizations___is_subordinate_raw`,
  13.  `organizations`.`sub_id` AS `organizations___sub_id_raw`,
  14.  CONCAT_WS('', IF(LENGTH(`subs_list`.name_ru_RU),`subs_list`.name_ru_RU,IF(LENGTH(`subs_list`.name_en_GB),`subs_list`.name_en_GB,`subs_list`.name_ru_RU))) AS `organizations___sub_id`,
  15.  `organizations`.`position_id` AS `organizations___position_id_raw`,
  16.  CONCAT_WS('', IF(LENGTH(`organizations_position`.name_ru_RU),`organizations_position`.name_ru_RU,`organizations_position`.name_en_GB)) AS `organizations___position_id`,
  17.  `organizations`.`name_en_GB` AS `organizations___name_en_GB`,
  18.  `organizations`.`name_en_GB` AS `organizations___name_en_GB_raw`,
  19.  `organizations`.`name_ar_AA` AS `organizations___name_ar_AA`,
  20.  `organizations`.`name_ar_AA` AS `organizations___name_ar_AA_raw`,
  21.  `organizations`.`name_de_DE` AS `organizations___name_de_DE`,
  22.  `organizations`.`name_de_DE` AS `organizations___name_de_DE_raw`,
  23.  `organizations`.`name_es_ES` AS `organizations___name_es_ES`,
  24.  `organizations`.`name_es_ES` AS `organizations___name_es_ES_raw`,
  25.  `organizations`.`name_fa_IR` AS `organizations___name_fa_IR`,
  26.  `organizations`.`name_fa_IR` AS `organizations___name_fa_IR_raw`,
  27.  `organizations`.`name_it_IT` AS `organizations___name_it_IT`,
  28.  `organizations`.`name_it_IT` AS `organizations___name_it_IT_raw`,
  29.  `organizations`.`name_ja_JP` AS `organizations___name_ja_JP`,
  30.  `organizations`.`name_ja_JP` AS `organizations___name_ja_JP_raw`,
  31.  `organizations`.`name_ko_KR` AS `organizations___name_ko_KR`,
  32.  `organizations`.`name_ko_KR` AS `organizations___name_ko_KR_raw`,
  33.  `organizations`.`name_pt_PT` AS `organizations___name_pt_PT`,
  34.  `organizations`.`name_pt_PT` AS `organizations___name_pt_PT_raw`,
  35.  `organizations`.`name_ru_RU` AS `organizations___name_ru_RU`,
  36.  `organizations`.`name_ru_RU` AS `organizations___name_ru_RU_raw`,
  37.  `organizations`.`name_tr_TR` AS `organizations___name_tr_TR`,
  38.  `organizations`.`name_tr_TR` AS `organizations___name_tr_TR_raw`,
  39.  `organizations`.`name_zh_CN` AS `organizations___name_zh_CN`,
  40.  `organizations`.`name_zh_CN` AS `organizations___name_zh_CN_raw`,
  41.  `organizations`.`name_fr_FR` AS `organizations___name_fr_FR`,
  42.  `organizations`.`name_fr_FR` AS `organizations___name_fr_FR_raw`,
  43.  `organizations`.`to_check` AS `organizations___to_check`,
  44.  `organizations`.`to_check` AS `organizations___to_check_raw`,
  45.  `organizations`.`to_check_coord` AS `organizations___to_check_coord`,
  46.  `organizations`.`to_check_coord` AS `organizations___to_check_coord_raw`,
  47.  `si1ez_users_profiles`.`id` AS `si1ez_users_profiles___id`,
  48.  `si1ez_users_profiles`.`id` AS `si1ez_users_profiles___id_raw`,
  49.  `si1ez_users_profiles`.`education_level` AS `si1ez_users_profiles___education_level`,
  50.  `si1ez_users_profiles`.`education_level` AS `si1ez_users_profiles___education_level_raw`,
  51.  `si1ez_users_profiles`.`user_id` AS `si1ez_users_profiles___user_id_raw`,
  52.  `si1ez_users_1`.`name` AS `si1ez_users_profiles___user_id`,
  53.  `si1ez_users_profiles`.`user_group` AS `si1ez_users_profiles___user_group`,
  54.  `si1ez_users_profiles`.`user_group` AS `si1ez_users_profiles___user_group_raw`,
  55.  `si1ez_users_profiles`.`date_time` AS `si1ez_users_profiles___date_time`,
  56.  `si1ez_users_profiles`.`date_time` AS `si1ez_users_profiles___date_time_raw`,
  57.  `si1ez_users_profiles`.`researcher_profile` AS `si1ez_users_profiles___researcher_profile`,
  58.  `si1ez_users_profiles`.`researcher_profile` AS `si1ez_users_profiles___researcher_profile_raw`,
  59.  `si1ez_users_profiles`.`lector_degree` AS `si1ez_users_profiles___lector_degree`,
  60.  `si1ez_users_profiles`.`lector_degree` AS `si1ez_users_profiles___lector_degree_raw`,
  61.  `si1ez_users_profiles`.`about_id` AS `si1ez_users_profiles___about_id_raw`,
  62.  CONCAT_WS('', IF(LENGTH(`si1ez_users_profiles_about_0`.name_ru_RU),`si1ez_users_profiles_about_0`.name_ru_RU,`si1ez_users_profiles_about_0`.name_en_GB)) AS `si1ez_users_profiles___about_id`,
  63.  (SELECT GROUP_CONCAT(lookup.fos_name_en  SEPARATOR '//..*..//') FROM si1ez_users_profiles_repeat_fos
  64.         LEFT JOIN sti_oecd_fos AS lookup ON lookup.id = si1ez_users_profiles_repeat_fos.fos WHERE si1ez_users_profiles_repeat_fos.parent_id = `si1ez_users_profiles`.`id`) AS `si1ez_users_profiles___fos`,
  65.  (SELECT GROUP_CONCAT(id SEPARATOR '//..*..//') FROM si1ez_users_profiles_repeat_fos WHERE parent_id = `si1ez_users_profiles`.`id`) AS `si1ez_users_profiles___fos_raw`,
  66.  (SELECT GROUP_CONCAT(fos SEPARATOR '//..*..//') FROM si1ez_users_profiles_repeat_fos WHERE si1ez_users_profiles_repeat_fos.parent_id = `si1ez_users_profiles`.`id`) AS `si1ez_users_profiles___fos_id`,
  67.  (SELECT GROUP_CONCAT(params SEPARATOR '//..*..//') FROM si1ez_users_profiles_repeat_fos WHERE parent_id = `si1ez_users_profiles`.`id`) AS `si1ez_users_profiles___fos___params`,
  68.  (SELECT GROUP_CONCAT(lookup.title  SEPARATOR '//..*..//') FROM si1ez_users_profiles_repeat_fos_tags
  69.         LEFT JOIN si1ez_tags AS lookup ON lookup.id = si1ez_users_profiles_repeat_fos_tags.fos_tags WHERE si1ez_users_profiles_repeat_fos_tags.parent_id = `si1ez_users_profiles`.`id`) AS `si1ez_users_profiles___fos_tags`,
  70.  (SELECT GROUP_CONCAT(id SEPARATOR '//..*..//') FROM si1ez_users_profiles_repeat_fos_tags WHERE parent_id = `si1ez_users_profiles`.`id`) AS `si1ez_users_profiles___fos_tags_raw`,
  71.  (SELECT GROUP_CONCAT(fos_tags SEPARATOR '//..*..//') FROM si1ez_users_profiles_repeat_fos_tags WHERE si1ez_users_profiles_repeat_fos_tags.parent_id = `si1ez_users_profiles`.`id`) AS `si1ez_users_profiles___fos_tags_id`,
  72.  (SELECT GROUP_CONCAT(params SEPARATOR '//..*..//') FROM si1ez_users_profiles_repeat_fos_tags WHERE parent_id = `si1ez_users_profiles`.`id`) AS `si1ez_users_profiles___fos_tags___params`,
  73.  `si1ez_users_profiles`.`wikipedia` AS `si1ez_users_profiles___wikipedia`,
  74.  `si1ez_users_profiles`.`wikipedia` AS `si1ez_users_profiles___wikipedia_raw`,
  75.  `si1ez_users_profiles`.`lector_orcid` AS `si1ez_users_profiles___lector_orcid`,
  76.  `si1ez_users_profiles`.`lector_orcid` AS `si1ez_users_profiles___lector_orcid_raw`,
  77.  `si1ez_users_profiles`.`lector_author_id_scopus` AS `si1ez_users_profiles___lector_author_id_scopus`,
  78.  `si1ez_users_profiles`.`lector_author_id_scopus` AS `si1ez_users_profiles___lector_author_id_scopus_raw`,
  79.  `si1ez_users_profiles`.`lector_spin` AS `si1ez_users_profiles___lector_spin`,
  80.  `si1ez_users_profiles`.`lector_spin` AS `si1ez_users_profiles___lector_spin_raw`,
  81.  `si1ez_users_profiles`.`lector_citation_profile_google_scholar` AS `si1ez_users_profiles___lector_citation_profile_google_scholar`,
  82.  `si1ez_users_profiles`.`lector_citation_profile_google_scholar` AS `si1ez_users_profiles___lector_citation_profile_google_scholar_raw`,
  83.  `si1ez_users_profiles`.`lector_researcherid_web_of_science` AS `si1ez_users_profiles___lector_researcherid_web_of_science`,
  84.  `si1ez_users_profiles`.`lector_researcherid_web_of_science` AS `si1ez_users_profiles___lector_researcherid_web_of_science_raw`,
  85.  `si1ez_users_profiles`.`researchgate` AS `si1ez_users_profiles___researchgate`,
  86.  `si1ez_users_profiles`.`researchgate` AS `si1ez_users_profiles___researchgate_raw`,
  87.  (SELECT GROUP_CONCAT(lookup.wl_name  SEPARATOR '//..*..//') FROM si1ez_users_profiles_repeat_work_lang
  88.         LEFT JOIN sti_work_languges AS lookup ON lookup.id = si1ez_users_profiles_repeat_work_lang.work_lang WHERE si1ez_users_profiles_repeat_work_lang.parent_id = `si1ez_users_profiles`.`id`) AS `si1ez_users_profiles___work_lang`,
  89.  (SELECT GROUP_CONCAT(id SEPARATOR '//..*..//') FROM si1ez_users_profiles_repeat_work_lang WHERE parent_id = `si1ez_users_profiles`.`id`) AS `si1ez_users_profiles___work_lang_raw`,
  90.  (SELECT GROUP_CONCAT(work_lang SEPARATOR '//..*..//') FROM si1ez_users_profiles_repeat_work_lang WHERE si1ez_users_profiles_repeat_work_lang.parent_id = `si1ez_users_profiles`.`id`) AS `si1ez_users_profiles___work_lang_id`,
  91.  (SELECT GROUP_CONCAT(params SEPARATOR '//..*..//') FROM si1ez_users_profiles_repeat_work_lang WHERE parent_id = `si1ez_users_profiles`.`id`) AS `si1ez_users_profiles___work_lang___params`,
  92.  `si1ez_users_profiles`.`org_head_id` AS `si1ez_users_profiles___org_head_id_raw`,
  93.  `organizations_0`.`organization_name` AS `si1ez_users_profiles___org_head_id`,
  94.  `si1ez_users_profiles`.`sti_status` AS `si1ez_users_profiles___sti_status_raw`,
  95.  `sti_flow_0`.`sti_status` AS `si1ez_users_profiles___sti_status`,
  96.  `si1ez_users_profiles_about`.`id` AS `si1ez_users_profiles_about___id`,
  97.  `si1ez_users_profiles_about`.`id` AS `si1ez_users_profiles_about___id_raw`,
  98.  `si1ez_users_profiles_about`.`date_time` AS `si1ez_users_profiles_about___date_time`,
  99.  `si1ez_users_profiles_about`.`date_time` AS `si1ez_users_profiles_about___date_time_raw`,
  100.  `si1ez_users_profiles_about`.`name_en_GB` AS `si1ez_users_profiles_about___name_en_GB`,
  101.  `si1ez_users_profiles_about`.`name_en_GB` AS `si1ez_users_profiles_about___name_en_GB_raw`,
  102.  `si1ez_users_profiles_about`.`name_ar_AA` AS `si1ez_users_profiles_about___name_ar_AA`,
  103.  `si1ez_users_profiles_about`.`name_ar_AA` AS `si1ez_users_profiles_about___name_ar_AA_raw`,
  104.  `si1ez_users_profiles_about`.`name_de_DE` AS `si1ez_users_profiles_about___name_de_DE`,
  105.  `si1ez_users_profiles_about`.`name_de_DE` AS `si1ez_users_profiles_about___name_de_DE_raw`,
  106.  `si1ez_users_profiles_about`.`name_es_ES` AS `si1ez_users_profiles_about___name_es_ES`,
  107.  `si1ez_users_profiles_about`.`name_es_ES` AS `si1ez_users_profiles_about___name_es_ES_raw`,
  108.  `si1ez_users_profiles_about`.`name_fa_IR` AS `si1ez_users_profiles_about___name_fa_IR`,
  109.  `si1ez_users_profiles_about`.`name_fa_IR` AS `si1ez_users_profiles_about___name_fa_IR_raw`,
  110.  `si1ez_users_profiles_about`.`name_fr_FR` AS `si1ez_users_profiles_about___name_fr_FR`,
  111.  `si1ez_users_profiles_about`.`name_fr_FR` AS `si1ez_users_profiles_about___name_fr_FR_raw`,
  112.  `si1ez_users_profiles_about`.`name_it_IT` AS `si1ez_users_profiles_about___name_it_IT`,
  113.  `si1ez_users_profiles_about`.`name_it_IT` AS `si1ez_users_profiles_about___name_it_IT_raw`,
  114.  `si1ez_users_profiles_about`.`name_ja_JP` AS `si1ez_users_profiles_about___name_ja_JP`,
  115.  `si1ez_users_profiles_about`.`name_ja_JP` AS `si1ez_users_profiles_about___name_ja_JP_raw`,
  116.  `si1ez_users_profiles_about`.`name_ko_KR` AS `si1ez_users_profiles_about___name_ko_KR`,
  117.  `si1ez_users_profiles_about`.`name_ko_KR` AS `si1ez_users_profiles_about___name_ko_KR_raw`,
  118.  `si1ez_users_profiles_about`.`name_pt_PT` AS `si1ez_users_profiles_about___name_pt_PT`,
  119.  `si1ez_users_profiles_about`.`name_pt_PT` AS `si1ez_users_profiles_about___name_pt_PT_raw`,
  120.  `si1ez_users_profiles_about`.`name_ru_RU` AS `si1ez_users_profiles_about___name_ru_RU`,
  121.  `si1ez_users_profiles_about`.`name_ru_RU` AS `si1ez_users_profiles_about___name_ru_RU_raw`,
  122.  `si1ez_users_profiles_about`.`name_tr_TR` AS `si1ez_users_profiles_about___name_tr_TR`,
  123.  `si1ez_users_profiles_about`.`name_tr_TR` AS `si1ez_users_profiles_about___name_tr_TR_raw`,
  124.  `si1ez_users_profiles_about`.`name_zh_CN` AS `si1ez_users_profiles_about___name_zh_CN`,
  125.  `si1ez_users_profiles_about`.`name_zh_CN` AS `si1ez_users_profiles_about___name_zh_CN_raw`,
  126.  `si1ez_users_profiles_about`.`trans_meta` AS `si1ez_users_profiles_about___trans_meta`,
  127.  `si1ez_users_profiles_about`.`trans_meta` AS `si1ez_users_profiles_about___trans_meta_raw`,
  128.  `sti_flow`.`date_time` AS `sti_flow___date_time`,
  129.  `sti_flow`.`date_time` AS `sti_flow___date_time_raw`,
  130.  `sti_flow`.`id` AS `sti_flow___id`,
  131.  `sti_flow`.`id` AS `sti_flow___id_raw`,
  132.  `sti_flow`.`sti_status` AS `sti_flow___sti_status`,
  133.  `sti_flow`.`sti_status` AS `sti_flow___sti_status_raw`,
  134.  `sti_flow`.`sti_log` AS `sti_flow___sti_log`,
  135.  `sti_flow`.`sti_log` AS `sti_flow___sti_log_raw`,
  136.  `sti_flow`.`flow_owner` AS `sti_flow___flow_owner_raw`,
  137.  `si1ez_users_0`.`name` AS `sti_flow___flow_owner`,
  138.  `si1ez_users_profiles`.`id` AS slug
  139.  , `si1ez_users_profiles`.`id` AS `__pk_val`
  140.  
  141. FROM `si1ez_users_profiles`
  142. LEFT JOIN  `organizations` AS `organizations` ON `organizations`.`user_id` = `si1ez_users_profiles`.`user_id`
  143. LEFT JOIN  `sti_flow` AS `sti_flow` ON `sti_flow`.`id` = `si1ez_users_profiles`.`sti_status`
  144. LEFT JOIN  `si1ez_users_profiles_about` AS `si1ez_users_profiles_about` ON `si1ez_users_profiles_about`.`id` = `si1ez_users_profiles`.`about_id`
  145. LEFT JOIN  `organizations_position` AS `organizations_position` ON `organizations_position`.`id` = `organizations`.`position_id`
  146. LEFT JOIN  `si1ez_users` AS `si1ez_users` ON `si1ez_users`.`id` = `organizations`.`user_id`
  147. LEFT JOIN  `org_list` AS `org_list` ON `org_list`.`id` = `organizations`.`organization_name`
  148. LEFT JOIN  `subs_list` AS `subs_list` ON `subs_list`.`id` = `organizations`.`sub_id`
  149. LEFT JOIN  `geo_countries` AS `geo_countries` ON `geo_countries`.`alpha2` = `organizations`.`organization_country`
  150. LEFT JOIN  `si1ez_users` AS `si1ez_users_0` ON `si1ez_users_0`.`id` = `sti_flow`.`flow_owner`
  151. LEFT JOIN  `sti_flow` AS `sti_flow_0` ON `sti_flow_0`.`id` = `si1ez_users_profiles`.`sti_status`
  152. LEFT JOIN  `si1ez_users` AS `si1ez_users_1` ON `si1ez_users_1`.`id` = `si1ez_users_profiles`.`user_id`
  153. LEFT JOIN  `si1ez_users_profiles_about` AS `si1ez_users_profiles_about_0` ON `si1ez_users_profiles_about_0`.`id` = `si1ez_users_profiles`.`about_id`
  154. LEFT JOIN  `organizations` AS `organizations_0` ON `organizations_0`.`id` = `si1ez_users_profiles`.`org_head_id`
  155. WHERE ( ( `si1ez_users_1`.`id` > 1 ) ) AND (  `si1ez_users_1`.`name` regexp LOWER('Алена') ) LIMIT 0, 10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement