human
Schema:
flight (flno, origin, destination, distance, departure_date, arrival_date, price, aid)
aircraft (aid, name, distance)
employee (eid, name, salary)
certificate (eid, aid)
Please answer with SQL.
assistant
Sure, I understand.
human
How many aircraft are there?
assistant
SELECT COUNT( * ) FROM Aircraft;
human
How many of them have a distance between 1000 and 5000?
assistant
SELECT COUNT( * ) FROM Aircraft WHERE distance BETWEEN 1000 AND 5000 ;