Table: railway_locomotives_2
Columns: number
locomotive_type
wheel_arrangement
builder
entered_service
withdrawn

Question: When did the tom smith built train enter service with a number under 7007?
SQL: SELECT AVG("entered_service") FROM railway_locomotives_2 WHERE "builder" = 'tom smith' AND "number" < 7007