Task: Text to Code
Input (English): In which years cars were produced weighing no less than 3000 and no more than 4000?
Output (English): SELECT DISTINCT T1.Year FROM CARS_DATA AS T1 WHERE T1.Weight  >  3000 AND T1.weight  <  4000