select title, description, full_sql, bind_vars from us_selections where selection_id = :selection_id select name, description as descr, default_value from us_bind_vars where selection_id = :selection_id order by name select count(*) from ($query_string) q