and p.cid = 5 and p.mid = 7 and (p.area > 500 and p.area <= 1000) and (p.least_rent_time <= 3)