human
Schema:
state (state_name, population, area, country_name, capital, density)
city (city_name, population, country_name, state_name)
border_info (state_name, border)
highlow (state_name, highest_elevation, lowest_point, highest_point, lowest_elevation)
lake (lake_name, area, country_name, state_name)
mountain (mountain_name, mountain_altitude, country_name, state_name)
river (river_name, length, country_name, traverse)
Please answer with SQL.
assistant
Sure, I understand.
human
give me the cities in usa
assistant
SELECT city_name FROM city;
human
what is the biggest capital city in the us
assistant
SELECT city_name FROM city WHERE population = ( SELECT MAX ( t1.population ) FROM state AS t2 JOIN city AS t1 ON t2.capital = t1.city_name );
human
how many major cities are there
assistant
SELECT COUNT ( city_name ) FROM city WHERE population > 150000;
human
what are the major cities in the largest state
assistant
SELECT city_name FROM city WHERE population > 150000 AND state_name = ( SELECT state_name FROM state WHERE area = ( SELECT MAX ( area ) FROM state ) );
human
how many cities are there in the united states
assistant
SELECT COUNT ( city_name ) FROM city;
human
what are the major cities of the united states
assistant
SELECT city_name FROM city WHERE population > 150000 ;