SQL: check candidacy application
SQL: get candidacy application