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
how many cities named austin are there in the usa
assistant
SELECT COUNT ( city_name ) FROM city WHERE city_name = 'austin';
human
which states have a major city named austin
assistant
SELECT state_name FROM city WHERE city_name = 'austin' AND population > 150000;
human
what are the capital city in texas
assistant
SELECT capital FROM state WHERE state_name = 'texas';
human
how many major cities are in texas
assistant
SELECT COUNT ( city_name ) FROM city WHERE population > 150000 AND state_name = 'texas';
human
how many cities are in texas
assistant
SELECT COUNT ( city_name ) FROM city WHERE state_name = 'texas';
human
what are the cities in texas
assistant
SELECT city_name FROM city WHERE state_name = "texas" ;