When did the tom smith built train enter service with a number under 7007?
CREATE TABLE table_name_73 (entered_service INTEGER, builder VARCHAR, number VARCHAR)
SELECT AVG(entered_service) FROM table_name_73 WHERE builder = "tom smith" AND number < 7007
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (entered_service INTEGER, builder VARCHAR, number VARCHAR) Question: When did the tom smith built train enter service with a number under 7007? [/INST] SELECT AVG(entered_service) FROM table_name_73 WHERE builder = "tom smith" AND number < 7007 </s>