If you are trying to check whether the bin value is equal to 3, 5, or 8. You will need Something like:
// Assuming that STATE is the name of the bin
as_query_predexp_inita(query, 10);
as_query_predexp_add(query,as_predexp_integer_value(3));
as_query_predexp_add(query,as_predexp_integer_bin(STATE));
as_query_predexp_add(query,as_predexp_integer_equal());
as_query_predexp_add(query,as_predexp_integer_value(5));
as_query_predexp_add(query,as_predexp_integer_bin(STATE));
as_query_predexp_add(query,as_predexp_integer_equal());
as_query_predexp_add(query,as_predexp_integer_value(8));
as_query_predexp_add(query,as_predexp_integer_bin(STATE));
as_query_predexp_add(query,as_predexp_integer_equal());
as_query_predexp_add(query,as_predexp_or(3));