Increasing order of the nucleophilic substitution of following compounds is

Increasing order of the nucleophilic substitution of following compounds is 
Identify the major product (G) in the following reaction
The major product (F) in the following reaction is

The major product 'P' and 'Q' in the above reactions are
