question
stringlengths
3
224
db
stringclasses
166 values
query
stringlengths
18
577
db_schema
stringclasses
166 values
what is the biggest city in wyoming
geo
SELECT city_name FROM city WHERE population = ( SELECT MAX ( population ) FROM city WHERE state_name = "wyoming" ) AND state_name = "wyoming";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what wyoming city has the largest population
geo
SELECT city_name FROM city WHERE population = ( SELECT MAX ( population ) FROM city WHERE state_name = "wyoming" ) AND state_name = "wyoming";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what is the largest city in wyoming
geo
SELECT city_name FROM city WHERE population = ( SELECT MAX ( population ) FROM city WHERE state_name = "wyoming" ) AND state_name = "wyoming";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
where is the most populated area of wyoming
geo
SELECT city_name FROM city WHERE population = ( SELECT MAX ( population ) FROM city WHERE state_name = "wyoming" ) AND state_name = "wyoming";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
which city in wyoming has the largest population
geo
SELECT city_name FROM city WHERE population = ( SELECT MAX ( population ) FROM city WHERE state_name = "wyoming" ) AND state_name = "wyoming";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what cities in wyoming have the highest number of citizens
geo
SELECT city_name FROM city WHERE population = ( SELECT MAX ( population ) FROM city WHERE state_name = "wyoming" ) AND state_name = "wyoming";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what cities in wyoming have the highest populations
geo
SELECT city_name FROM city WHERE population = ( SELECT MAX ( population ) FROM city WHERE state_name = "wyoming" ) AND state_name = "wyoming";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what is the most populous city in wyoming
geo
SELECT city_name FROM city WHERE population = ( SELECT MAX ( population ) FROM city WHERE state_name = "wyoming" ) AND state_name = "wyoming";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what is the largest city in wyoming by population
geo
SELECT city_name FROM city WHERE population = ( SELECT MAX ( population ) FROM city WHERE state_name = "wyoming" ) AND state_name = "wyoming";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what is the largest city of wyoming
geo
SELECT city_name FROM city WHERE population = ( SELECT MAX ( population ) FROM city WHERE state_name = "wyoming" ) AND state_name = "wyoming";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what is the city in wyoming with the largest population
geo
SELECT city_name FROM city WHERE population = ( SELECT MAX ( population ) FROM city WHERE state_name = "wyoming" ) AND state_name = "wyoming";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
which rivers run through the state with the largest city in the us
geo
SELECT river_name FROM river WHERE traverse IN ( SELECT state_name FROM city WHERE population = ( SELECT MAX ( population ) FROM city ) );
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
how big is new mexico
geo
SELECT area FROM state WHERE state_name = "new mexico";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what is the area of new mexico
geo
SELECT area FROM state WHERE state_name = "new mexico";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
how large is new mexico
geo
SELECT area FROM state WHERE state_name = "new mexico";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what is the area of the new mexico state
geo
SELECT area FROM state WHERE state_name = "new mexico";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what is the size of new mexico
geo
SELECT area FROM state WHERE state_name = "new mexico";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what is the area of new mexico in square kilometers
geo
SELECT area FROM state WHERE state_name = "new mexico";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
how many people live in california
geo
SELECT population FROM state WHERE state_name = "california";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
how many people reside in california
geo
SELECT population FROM state WHERE state_name = "california";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
how many residents live in california
geo
SELECT population FROM state WHERE state_name = "california";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
how much population does california have
geo
SELECT population FROM state WHERE state_name = "california";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what are the population of california
geo
SELECT population FROM state WHERE state_name = "california";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what is the population of california
geo
SELECT population FROM state WHERE state_name = "california";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
how many people are in the state of california
geo
SELECT population FROM state WHERE state_name = "california";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what can you tell me about the population of california
geo
SELECT population FROM state WHERE state_name = "california";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
how many people are there in california
geo
SELECT population FROM state WHERE state_name = "california";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
how many citizens in california
geo
SELECT population FROM state WHERE state_name = "california";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
how many people stay in california
geo
SELECT population FROM state WHERE state_name = "california";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
how many citizens live in california
geo
SELECT population FROM state WHERE state_name = "california";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what state has the smallest population
geo
SELECT state_name FROM state WHERE population = ( SELECT MIN ( population ) FROM state );
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what is the least populous state
geo
SELECT state_name FROM state WHERE population = ( SELECT MIN ( population ) FROM state );
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what is the state with the lowest population
geo
SELECT state_name FROM state WHERE population = ( SELECT MIN ( population ) FROM state );
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
give me the cities in texas
geo
SELECT city_name FROM city WHERE state_name = "texas";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
tell me what cities are in texas
geo
SELECT city_name FROM city WHERE state_name = "texas";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what cities are located in texas
geo
SELECT city_name FROM city WHERE state_name = "texas";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what are the cities in texas
geo
SELECT city_name FROM city WHERE state_name = "texas";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what cities in texas
geo
SELECT city_name FROM city WHERE state_name = "texas";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
give me the cities which are in texas
geo
SELECT city_name FROM city WHERE state_name = "texas";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what is the area of the state with the capital albany
geo
SELECT area FROM state WHERE capital = "albany";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
give me the lakes in california
geo
SELECT lake_name FROM lake WHERE state_name = "california";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
name the major lakes in michigan
geo
SELECT lake_name FROM lake WHERE area > 750 AND state_name = "michigan";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what are the states
geo
SELECT state_name FROM state;
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
list the states
geo
SELECT state_name FROM state;
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
give me all the states of usa
geo
SELECT state_name FROM state;
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
which states do ohio river flow through
geo
SELECT traverse FROM river WHERE river_name = "ohio";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what states does the ohio river run through
geo
SELECT traverse FROM river WHERE river_name = "ohio";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what states border the ohio river
geo
SELECT traverse FROM river WHERE river_name = "ohio";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
which states border the ohio river
geo
SELECT traverse FROM river WHERE river_name = "ohio";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what states does the ohio run through
geo
SELECT traverse FROM river WHERE river_name = "ohio";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
where is the ohio river
geo
SELECT traverse FROM river WHERE river_name = "ohio";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
which states does the ohio river run through
geo
SELECT traverse FROM river WHERE river_name = "ohio";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
which states does the ohio run through
geo
SELECT traverse FROM river WHERE river_name = "ohio";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
which states does the ohio river pass through
geo
SELECT traverse FROM river WHERE river_name = "ohio";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what are the states that the ohio run through
geo
SELECT traverse FROM river WHERE river_name = "ohio";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
which state has the ohio river
geo
SELECT traverse FROM river WHERE river_name = "ohio";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what states have rivers named ohio
geo
SELECT traverse FROM river WHERE river_name = "ohio";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
through which states does the ohio flow
geo
SELECT traverse FROM river WHERE river_name = "ohio";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what states are next to the ohio
geo
SELECT traverse FROM river WHERE river_name = "ohio";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
through which states does the ohio run
geo
SELECT traverse FROM river WHERE river_name = "ohio";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what states does the ohio river go through
geo
SELECT traverse FROM river WHERE river_name = "ohio";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what state has the largest population
geo
SELECT state_name FROM state WHERE population = ( SELECT MAX ( population ) FROM state );
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what is the most populous state
geo
SELECT state_name FROM state WHERE population = ( SELECT MAX ( population ) FROM state );
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what state is the largest in population
geo
SELECT state_name FROM state WHERE population = ( SELECT MAX ( population ) FROM state );
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
which state has the biggest population
geo
SELECT state_name FROM state WHERE population = ( SELECT MAX ( population ) FROM state );
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
which state has the greatest population
geo
SELECT state_name FROM state WHERE population = ( SELECT MAX ( population ) FROM state );
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
which state has the most population
geo
SELECT state_name FROM state WHERE population = ( SELECT MAX ( population ) FROM state );
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what state has the most people
geo
SELECT state_name FROM state WHERE population = ( SELECT MAX ( population ) FROM state );
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
which state has the most people
geo
SELECT state_name FROM state WHERE population = ( SELECT MAX ( population ) FROM state );
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what is the most populous state in the us
geo
SELECT state_name FROM state WHERE population = ( SELECT MAX ( population ) FROM state );
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what state has the highest population
geo
SELECT state_name FROM state WHERE population = ( SELECT MAX ( population ) FROM state );
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what is the lowest elevation in pennsylvania
geo
SELECT lowest_elevation FROM highlow WHERE state_name = "pennsylvania";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what is the highest point in each state whose lowest point is sea level
geo
SELECT highest_point , state_name FROM highlow WHERE lowest_elevation = 0;
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what is the length of the longest river in the usa
geo
SELECT length FROM river WHERE length = ( SELECT MAX ( length ) FROM river );
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
how long is the longest river in the usa
geo
SELECT length FROM river WHERE length = ( SELECT MAX ( length ) FROM river );
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what is the longest river flowing through texas
geo
SELECT river_name FROM river WHERE length = ( SELECT MAX ( length ) FROM river WHERE traverse = "texas" ) AND traverse = "texas";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what is the largest river in texas state
geo
SELECT river_name FROM river WHERE length = ( SELECT MAX ( length ) FROM river WHERE traverse = "texas" ) AND traverse = "texas";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what is the longest river in texas
geo
SELECT river_name FROM river WHERE length = ( SELECT MAX ( length ) FROM river WHERE traverse = "texas" ) AND traverse = "texas";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what is the biggest river in texas
geo
SELECT river_name FROM river WHERE length = ( SELECT MAX ( length ) FROM river WHERE traverse = "texas" ) AND traverse = "texas";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what is the longest river that flows through texas
geo
SELECT river_name FROM river WHERE length = ( SELECT MAX ( length ) FROM river WHERE traverse = "texas" ) AND traverse = "texas";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what are the biggest rivers in texas
geo
SELECT river_name FROM river WHERE length = ( SELECT MAX ( length ) FROM river WHERE traverse = "texas" ) AND traverse = "texas";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
how many rivers are in idaho
geo
SELECT COUNT ( river_name ) FROM river WHERE traverse = "idaho";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
give me the number of rivers in idaho
geo
SELECT COUNT ( river_name ) FROM river WHERE traverse = "idaho";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
how many rivers does idaho have
geo
SELECT COUNT ( river_name ) FROM river WHERE traverse = "idaho";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
how many rivers are there in idaho
geo
SELECT COUNT ( river_name ) FROM river WHERE traverse = "idaho";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
how many rivers run through idaho
geo
SELECT COUNT ( river_name ) FROM river WHERE traverse = "idaho";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
how many rivers are found in idaho
geo
SELECT COUNT ( river_name ) FROM river WHERE traverse = "idaho";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
how many rivers in idaho
geo
SELECT COUNT ( river_name ) FROM river WHERE traverse = "idaho";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what states neighbor kentucky
geo
SELECT border FROM border_info WHERE state_name = "kentucky";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
which states border kentucky
geo
SELECT border FROM border_info WHERE state_name = "kentucky";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what states border kentucky
geo
SELECT border FROM border_info WHERE state_name = "kentucky";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
give me the states that border kentucky
geo
SELECT border FROM border_info WHERE state_name = "kentucky";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what state borders kentucky
geo
SELECT border FROM border_info WHERE state_name = "kentucky";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what states are next to kentucky
geo
SELECT border FROM border_info WHERE state_name = "kentucky";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what states surround kentucky
geo
SELECT border FROM border_info WHERE state_name = "kentucky";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
which state borders kentucky
geo
SELECT border FROM border_info WHERE state_name = "kentucky";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
what are the neighboring states for kentucky
geo
SELECT border FROM border_info WHERE state_name = "kentucky";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
which states adjoin kentucky
geo
SELECT border FROM border_info WHERE state_name = "kentucky";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
states bordering kentucky
geo
SELECT border FROM border_info WHERE state_name = "kentucky";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )
which state border kentucky
geo
SELECT border FROM border_info WHERE state_name = "kentucky";
CREATE SCHEMA public; CREATE SCHEMA prod; CREATE SCHEMA dev; CREATE TABLE public.border_info( state_name TEXT, border TEXT, PRIMARY KEY (state_name), FOREIGN KEY (border) REFERENCES prod.state(state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.highlow( state_name TEXT, highest_elevation TEXT, lowest_point TEXT, highest_point TEXT, lowest_elevation TEXT, PRIMARY KEY (state_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE public.lake( lake_name TEXT, area DOUBLE, country_name VARCHAR(3), state_name TEXT ) CREATE TABLE public.river( river_name TEXT, length INTEGER, country_name VARCHAR(3), traverse TEXT, PRIMARY KEY (river_name), FOREIGN KEY (traverse) REFERENCES prod.state(state_name) ) CREATE TABLE prod.mountain( mountain_name TEXT, mountain_altitude INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (mountain_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) ) CREATE TABLE prod.state( state_name TEXT, population INTEGER, area DOUBLE, country_name VARCHAR(3), capital TEXT, density DOUBLE, PRIMARY KEY (state_name) ) CREATE TABLE dev.city( city_name TEXT, population INTEGER, country_name VARCHAR(3), state_name TEXT, PRIMARY KEY (city_name), FOREIGN KEY (state_name) REFERENCES prod.state(state_name) )