united sql statements for createSurvey