public String getSessionQuery(int session, int subsession) {
        String query = new String();

        //piece together the query string
        if (sessionExists(session, subsession)) {
            query = "&Session=" + ((session <= 20) ? "rd" : "jd") + session + "l" + subsession + "se";
        } else {
            query = "Session data does not exist";
        }

        return query;
    }