[40;33;1mGAMEDB1[0m

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   267
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    12
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 12

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   307
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    18
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 18

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   274
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    19
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 19

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   291
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    20
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 20

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   253
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    11
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 11

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   266
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    21
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 21

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   273
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    16
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 16

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   276
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    15
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 15

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   261
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    19
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 19

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   245
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    16
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 16

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   189
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     3
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 3

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   220
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     5
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 5

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   188
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     1
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 1

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   183
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     3
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 3

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   166
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     1
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 1

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   187
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     2
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 2

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   189
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     6
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 6

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   186
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     2
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 2

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   182
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     3
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 3

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   164
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     3
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 3

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM1 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
  8037
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 8037

======== FM2 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 0
[40;33;1mGAMEDB2[0m

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   957
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    59
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 59

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   975
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    38
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 38

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   975
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    33
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 33

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1004
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    50
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 50

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   898
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    26
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 26

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   946
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    37
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 37

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   971
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    44
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 44

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   959
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    42
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 42

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1006
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    36
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 36

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   959
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    38
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 38

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   638
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
    11
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 11

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   682
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
    11
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 11

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   696
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     8
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 8

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   671
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     3
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 3

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   621
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     4
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 4

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   627
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     5
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 5

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   674
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     8
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 8

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   656
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
    13
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 13

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   703
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     9
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 9

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   664
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     8
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 8

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM1 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
 29205
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 29205

======== FM2 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 0
[40;33;1mGAMEDB3[0m

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   537
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    23
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 23

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   532
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    21
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 21

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   568
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    23
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 23

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   561
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    26
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 26

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   600
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    25
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 25

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   570
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    23
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 23

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   605
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    21
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 21

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   582
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    29
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 29

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   557
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    22
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 22

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   614
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    28
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 28

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   307
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     4
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 4

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   299
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     9
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 9

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   349
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     7
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 7

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   299
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     3
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 3

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   343
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     6
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 6

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   343
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     2
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 2

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   344
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     5
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 5

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   344
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     2
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 2

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   325
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     8
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 8

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   352
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
    11
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 11

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM1 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
 28021
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 28021

======== FM2 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 0
[40;33;1mGAMEDB4[0m

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   529
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    22
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 22

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   491
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    18
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 18

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   499
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    24
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 24

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   518
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    19
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 19

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   512
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    14
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 14

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   556
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    17
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 17

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   488
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    22
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 22

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   552
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    19
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 19

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   502
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    17
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 17

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   527
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    20
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 20

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   280
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     3
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 3

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   280
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     6
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 6

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   272
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     3
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 3

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   273
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     5
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 5

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   261
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     3
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 3

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   297
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     4
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 4

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   267
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     2
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 2

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   325
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     6
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 6

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   267
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     1
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 1

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   297
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     2
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 2

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM1 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
 28227
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 28227

======== FM2 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
     1
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 1
[40;33;1mGAMEDB5[0m

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   297
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    17
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 17

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   337
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    15
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 15

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   294
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    13
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 13

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   335
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    15
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 15

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   310
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    12
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 12

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   293
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    15
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 15

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   284
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    22
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 22

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   298
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    14
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 14

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   322
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    11
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 11

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   330
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    19
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 19

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   172
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     1
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 1

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   187
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     5
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 5

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   149
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     3
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 3

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   171
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     2
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 2

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   156
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     3
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 3

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   160
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     3
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 3

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   152
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     1
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 1

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   151
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     1
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 1

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   163
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     1
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 1

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   167
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     4
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 4

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM1 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
 18190
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 18190

======== FM2 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 0
[40;33;1mGAMEDB6[0m

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM1 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 0
[40;33;1mGAMEDB11[0m

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1163
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    34
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 34

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1169
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    47
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 47

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1144
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    35
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 35

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1180
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    35
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 35

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1215
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    36
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 36

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1168
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    34
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 34

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1172
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    39
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 39

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1138
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    45
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 45

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1169
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    34
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 34

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1157
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    31
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 31

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   709
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     4
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 4

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   723
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     6
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 6

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   679
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     9
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 9

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   723
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     5
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 5

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   750
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
    14
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 14

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   694
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     5
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 5

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   730
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     4
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 4

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   691
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     5
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 5

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   697
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     6
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 6

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   704
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
    11
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 11

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM1 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
 33145
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 33145

======== FM2 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 0
[40;33;1mGAMEDB12[0m

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   573
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    22
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 22

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   492
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    24
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 24

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   566
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    12
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 12

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   525
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    30
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 30

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   515
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    23
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 23

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   515
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    14
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 14

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   542
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    18
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 18

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   522
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    19
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 19

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   558
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    34
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 34

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   495
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    22
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 22

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   341
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     8
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 8

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   278
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     3
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 3

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   313
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     6
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 6

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   312
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     5
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 5

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   293
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     8
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 8

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   298
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     4
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 4

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   312
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     2
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 2

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   292
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     4
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 4

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   311
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
    11
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 11

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   305
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     4
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 4

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM1 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
 24775
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 24775

======== FM2 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
     2
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 2
[40;33;1mGAMEDB13[0m

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   697
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    36
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 36

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   668
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    30
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 30

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   676
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    38
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 38

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   686
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    26
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 26

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   727
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    35
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 35

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   647
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    17
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 17

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   714
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    26
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 26

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   659
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    32
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 32

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   695
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    32
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 32

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   682
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    40
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 40

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   395
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     8
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 8

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   375
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     8
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 8

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   408
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     7
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 7

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   410
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     6
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 6

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   414
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   342
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     6
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 6

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   394
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     3
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 3

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   392
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     4
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 4

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   399
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     5
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 5

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   397
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     8
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 8

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM1 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
 32572
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 32572

======== FM2 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
     2
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 2
[40;33;1mGAMEDB14[0m

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM1 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 0
[40;33;1mGAMEDB15[0m

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM1 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 0
[40;33;1mGAMEDB21[0m

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  2070
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    52
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 52

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  2020
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    54
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 54

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  2102
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    67
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 67

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1997
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    54
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 54

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  2073
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    50
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 50

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  2098
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    57
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 57

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  2138
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    65
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 65

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  2059
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    59
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 59

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  2109
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    48
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 48

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  2065
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    68
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 68

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
  1271
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     8
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 8

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     1
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 1

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
  1199
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
    10
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 10

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
  1244
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     9
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 9

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
  1152
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     8
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 8

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
  1266
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     7
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 7

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
  1265
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
    18
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 18

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
  1286
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
    10
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 10

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
  1238
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     6
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 6

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
  1249
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
    11
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 11

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
  1231
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
    18
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 18

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM1 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
 45163
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 45163

======== FM2 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
    18
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 18
[40;33;1mGAMEDB22[0m

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1532
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    50
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 50

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1536
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    44
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 44

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1593
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    53
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 53

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1582
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    57
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 57

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1521
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    51
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 51

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1546
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    59
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 59

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1547
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    61
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 61

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1631
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    59
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 59

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1569
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    49
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 49

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1584
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    58
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 58

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   937
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
    14
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 14

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   939
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
    20
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 20

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   952
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     6
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 6

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   970
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
    12
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 12

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   918
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
    10
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 10

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   909
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
    13
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 13

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   905
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     5
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 5

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
  1013
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
    14
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 14

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   922
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     7
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 7

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   946
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     8
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 8

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM1 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
 44205
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 44205

======== FM2 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 0
[40;33;1mGAMEDB23[0m

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1020
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    31
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 31

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   999
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    44
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 44

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1020
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    39
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 39

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1008
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    33
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 33

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   942
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    31
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 31

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1014
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    30
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 30

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1001
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    35
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 35

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   996
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    31
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 31

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1006
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    43
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 43

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   985
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    34
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 34

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   600
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
    10
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 10

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   570
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     6
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 6

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   608
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     9
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 9

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   604
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
    10
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 10

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   568
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     7
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 7

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   602
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     6
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 6

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   593
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     7
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 7

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   578
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     2
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 2

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   592
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     6
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 6

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   589
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     6
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 6

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM1 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
 32759
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 32759

======== FM2 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 0
[40;33;1mGAMEDB24[0m

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   999
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    38
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 38

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1049
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    48
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 48

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1023
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    45
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 45

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   948
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    39
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 39

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1028
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    40
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 40

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   995
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    30
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 30

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1014
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    32
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 32

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1022
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    40
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 40

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1026
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    35
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 35

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   987
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    28
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 28

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   621
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     7
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 7

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   595
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     6
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 6

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   599
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     4
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 4

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   536
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     9
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 9

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   587
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
    11
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 11

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   551
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     7
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 7

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   610
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     8
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 8

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   574
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
    12
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 12

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   606
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
    13
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 13

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   585
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     7
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 7

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM1 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
 38354
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 38354

======== FM2 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 0
[40;33;1mGAMEDB25[0m

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1245
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    36
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 36

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1252
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    43
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 43

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1271
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    38
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 38

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1268
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    42
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 42

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1201
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    38
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 38

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1213
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    52
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 52

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1257
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    39
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 39

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1280
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    41
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 41

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1228
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    52
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 52

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1279
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    43
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 43

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   694
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     7
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 7

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   712
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     6
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 6

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   696
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     6
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 6

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   674
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     4
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 4

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   674
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     8
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 8

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   673
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     8
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 8

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   698
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     7
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 7

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   746
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
    12
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 12

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   667
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     7
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 7

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   702
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     9
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 9

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM1 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
 47215
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 47215

======== FM2 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 0
[40;33;1mGAMEDB26[0m

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1180
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    51
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 51

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1144
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    30
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 30

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1206
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    49
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 49

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1105
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    37
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 37

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1101
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    48
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 48

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1208
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    43
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 43

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1235
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    50
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 50

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1154
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    33
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 33

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1217
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    40
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 40

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
  1174
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    45
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 45

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   701
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
    11
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 11

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   669
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     9
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 9

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   734
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
    12
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 12

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   648
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     2
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 2

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   685
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
    12
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 12

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   717
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     8
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 8

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   712
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
    13
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 13

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   689
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     8
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 8

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   749
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
    15
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 15

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   709
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     9
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 9

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM1 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
 41819
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 41819

======== FM2 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 0
[40;33;1mGAMEDB27[0m

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   554
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    30
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 30

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   502
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    20
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 20

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   527
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    19
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 19

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   521
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    25
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 25

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   494
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    29
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 29

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   510
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    20
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 20

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   510
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    21
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 21

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   492
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    20
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 20

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   521
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    28
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 28

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
   528
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
    20
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 20

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   320
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     5
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 5

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   297
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     5
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 5

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   343
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     9
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 9

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   311
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     3
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 3

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   272
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     3
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 3

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   296
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     6
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 6

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   305
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     6
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 6

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   293
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     3
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 3

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   300
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     6
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 6

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
   316
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     6
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 6

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM1 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
 18307
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 18307

======== FM2 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 0
[40;33;1mGAMEDB28[0m

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM1 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 0
[40;33;1mGAMEDB29[0m

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM1 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 0
[40;33;1mGAMEDB30[0m

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16004 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5007, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16004 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5007-1)/10 AND state=(3<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5007-1)%10*3) | (state&(~(7 << (5007-1)%10*3))) WHERE index=(5007-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 1 ========

SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement1 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 2 ========

SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement2 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 3 ========

SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement3 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 4 ========

SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement4 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 5 ========

SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement5 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 6 ========

SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement6 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 7 ========

SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement7 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 8 ========

SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement8 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 9 ========

SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement9 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== Achievement Table: 10 ========

SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE achievement_id = 16006 AND completed_num = 1 AND state = 2
 count 
-------
     0
(1 row)


======== FM1 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state1 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state1 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 5008, STATE: 3 ========
SELECT COUNT(player_id) FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM player_characters_achievement10 WHERE (achievement_id = 16006 AND completed_num = 1 AND state = 2) AND (player_id IN (SELECT player_id FROM final_mission_state2 WHERE index=(5008-1)/10 AND state=(3<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3)))))) UPDATE final_mission_state2 SET state=(4<<(5008-1)%10*3) | (state&(~(7 << (5008-1)%10*3))) WHERE index=(5008-1)/10 AND player_id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM1 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state1 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 0

======== FM2 MIDs: 12101, STATE: 1 ========

WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3)))) SELECT COUNT(player_id) FROM t1
 count 
-------
     0
(1 row)


WITH t1 AS (SELECT player_id FROM final_mission_state2 WHERE index=(12101-1)/10 AND state=(1<<(12101-1)%10*3) | (state&(~(7 << (12101-1)%10*3))) ORDER BY player_id) UPDATE player_characters SET state_flags = state_flags | 4 WHERE id IN (SELECT player_id FROM t1)
UPDATE 0
