Single spin asymmetries of pion production in twist-3 QCD