### Database Schema:
CREATE TABLE country (
	origin	INTEGER	NULL	PRIMARY KEY,
	country	TEXT	NULL
);

CREATE TABLE price (
	ID	INTEGER	NULL	PRIMARY KEY,
	price	REAL	NULL
);

CREATE TABLE production (
	ID	INTEGER	NULL	PRIMARY KEY,
	model_year	INTEGER	NULL	PRIMARY KEY,
	country	INTEGER	NULL,
	foreign key (ID) references data (ID),
	foreign key (country) references country (origin),
	foreign key (ID) references price (ID)
);

CREATE TABLE data (
	ID	INTEGER	NULL	PRIMARY KEY,
	mpg	REAL	NULL,
	cylinders	INTEGER	NULL,
	displacement	REAL	NULL,
	horsepower	INTEGER	NULL,
	weight	INTEGER	NULL,
	acceleration	REAL	NULL,
	model	INTEGER	NULL,
	car_name	TEXT	NULL,
	foreign key (ID) references price (ID)
);

### User's Query:
Among the cars with an engine displacement of no less than 400 cubic millimeter, how many cars cost at least 30,000?

### Extra Knowledge:
engine displacement of no less than 400 cubic millimeter refers to displacement > 400; cost at least 30,000 refers to price > 30000
SELECT COUNT(*) FROM data AS T1 INNER JOIN price AS T2 ON T1.ID = T2.ID WHERE T1.displacement > 400 AND T2.price > 30000