starting the custom SQL free agent query