SELECT opg_call_list.* FROM opg_call_list LEFT JOIN xcalls.opgx_case_break ON (opgx_case_break.case_id = opg_call_list.case_id) WHERE   opg_call_list.segment = 'желтый' AND  opg_call_list.region IN ('3') AND  opg_call_list.priority IN ('2', '3', '1') AND  opg_call_list.row_id > 0 AND  opg_call_list.actual IS TRUE AND  opgx_case_break.case_id IS NULL  ORDER BY opg_call_list.row_id LIMIT 1


SELECT opg_call_list.* FROM opg_call_list LEFT JOIN xcalls.opgx_case_break ON (opgx_case_break.case_id = opg_call_list.case_id) WHERE   opg_call_list.segment = 'желтый' AND  opg_call_list.region IN ('3') AND  opg_call_list.priority IN ('2', '3', '1') AND  opg_call_list.row_id > 22437 AND  opg_call_list.actual IS TRUE AND  opgx_case_break.case_id IS NULL  ORDER BY opg_call_list.row_id LIMIT 1


SELECT opg_call_list.* FROM opg_call_list LEFT JOIN xcalls.opgx_case_break ON (opgx_case_break.case_id = opg_call_list.case_id) WHERE   opg_call_list.segment = 'желтый' AND  opg_call_list.region IN ('3') AND  opg_call_list.priority IN ('2', '3', '1') AND  opg_call_list.row_id > 22438 AND  opg_call_list.actual IS TRUE AND  opgx_case_break.case_id IS NULL  ORDER BY opg_call_list.row_id LIMIT 1


SELECT opg_call_list.* FROM opg_call_list LEFT JOIN xcalls.opgx_case_break ON (opgx_case_break.case_id = opg_call_list.case_id) WHERE   opg_call_list.segment = 'желтый' AND  opg_call_list.region IN ('3') AND  opg_call_list.priority IN ('2', '3', '1') AND  opg_call_list.row_id > 22439 AND  opg_call_list.actual IS TRUE AND  opgx_case_break.case_id IS NULL  ORDER BY opg_call_list.row_id LIMIT 1


SELECT opg_call_list.* FROM opg_call_list LEFT JOIN xcalls.opgx_case_break ON (opgx_case_break.case_id = opg_call_list.case_id) WHERE   opg_call_list.segment = 'желтый' AND  opg_call_list.region IN ('3') AND  opg_call_list.priority IN ('2', '3', '1') AND  opg_call_list.row_id > 22440 AND  opg_call_list.actual IS TRUE AND  opgx_case_break.case_id IS NULL  ORDER BY opg_call_list.row_id LIMIT 1


SELECT opg_call_list.* FROM opg_call_list LEFT JOIN xcalls.opgx_case_break ON (opgx_case_break.case_id = opg_call_list.case_id) WHERE   opg_call_list.segment = 'желтый' AND  opg_call_list.region IN ('3') AND  opg_call_list.priority IN ('2', '3', '1') AND  opg_call_list.row_id > 22441 AND  opg_call_list.actual IS TRUE AND  opgx_case_break.case_id IS NULL  ORDER BY opg_call_list.row_id LIMIT 1


SELECT opg_call_list.* FROM opg_call_list LEFT JOIN xcalls.opgx_case_break ON (opgx_case_break.case_id = opg_call_list.case_id) WHERE   opg_call_list.segment = 'желтый' AND  opg_call_list.region IN ('3') AND  opg_call_list.priority IN ('2', '3', '1') AND  opg_call_list.row_id > 22442 AND  opg_call_list.actual IS TRUE AND  opgx_case_break.case_id IS NULL  ORDER BY opg_call_list.row_id LIMIT 1


SELECT opg_call_list.* FROM opg_call_list LEFT JOIN xcalls.opgx_case_break ON (opgx_case_break.case_id = opg_call_list.case_id) WHERE   opg_call_list.segment = 'желтый' AND  opg_call_list.region IN ('3') AND  opg_call_list.priority IN ('2', '3', '1') AND  opg_call_list.row_id > 22443 AND  opg_call_list.actual IS TRUE AND  opgx_case_break.case_id IS NULL  ORDER BY opg_call_list.row_id LIMIT 1


SELECT opg_call_list.* FROM opg_call_list LEFT JOIN xcalls.opgx_case_break ON (opgx_case_break.case_id = opg_call_list.case_id) WHERE   opg_call_list.segment = 'желтый' AND  opg_call_list.region IN ('3') AND  opg_call_list.priority IN ('2', '3', '1') AND  opg_call_list.row_id > 22444 AND  opg_call_list.actual IS TRUE AND  opgx_case_break.case_id IS NULL  ORDER BY opg_call_list.row_id LIMIT 1


SELECT opg_call_list.* FROM opg_call_list LEFT JOIN xcalls.opgx_case_break ON (opgx_case_break.case_id = opg_call_list.case_id) WHERE   opg_call_list.segment = 'желтый' AND  opg_call_list.region IN ('3') AND  opg_call_list.priority IN ('2', '3', '1') AND  opg_call_list.row_id > 22445 AND  opg_call_list.actual IS TRUE AND  opgx_case_break.case_id IS NULL  ORDER BY opg_call_list.row_id LIMIT 1