The starting grid for the Qatar MotoGP after Jorge Martin led the way in a tight qualifying in Lusail.