custom query for most recent behaviors