Your second bind variable, the argument to the function, should not be enclosed in single quotes. You're passing the literal value '?'
, not defining a bind:
String sql = "{? = CALL GET_BOOKED_COUNT(?)}";
The way you then refer to both parameters seems to be OK.