add query for creating csv that feeds IAA script