generate mapping list for Q.