results & sql gen file