write get_sql and submit_by_get