# Find all posts created in the last weekPost.where(created_at: 1.week.ago..)# Find all posts having less than 10 likesPost.where(likes: ..10)