Schema:
CREATE TABLE `state` (
  `state_name` text
,  `population` integer DEFAULT NULL
,  `area` double DEFAULT NULL
,  `country_name` varchar(3) NOT NULL DEFAULT ''
,  `capital` text
,  `density` double DEFAULT NULL
,  PRIMARY KEY (`state_name`)
);
CREATE TABLE `city` (
  `city_name` text
,  `population` integer DEFAULT NULL
,  `country_name` varchar(3) NOT NULL DEFAULT ''
,  `state_name` text
,  PRIMARY KEY (`city_name`,`state_name`)
,  FOREIGN KEY(`state_name`) REFERENCES `state`(`state_name`)
);
CREATE TABLE `border_info` (
  `state_name` text
,  `border` text
,  PRIMARY KEY (`border`,`state_name`)
,  FOREIGN KEY(`state_name`) REFERENCES `state`(`state_name`)
,  FOREIGN KEY(`border`) REFERENCES `state`(`state_name`)
);
CREATE TABLE `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 `state`(`state_name`)
);
CREATE TABLE `lake` (
  `lake_name` text
,  `area` double DEFAULT NULL
,  `country_name` varchar(3) NOT NULL DEFAULT ''
,  `state_name` text
);
CREATE TABLE `mountain` (
  `mountain_name` text
,  `mountain_altitude` integer DEFAULT NULL
,  `country_name` varchar(3) NOT NULL DEFAULT ''
,  `state_name` text
,  PRIMARY KEY (`mountain_name`, `state_name`)
,  FOREIGN KEY(`state_name`) REFERENCES `state`(`state_name`)
);
CREATE TABLE `river` (
  `river_name` text
,  `length` integer DEFAULT NULL
,  `country_name` varchar(3) NOT NULL DEFAULT ''
,  `traverse` text
,  PRIMARY KEY (`river_name`)
,  FOREIGN KEY(`traverse`) REFERENCES `state`(`state_name`)
);

Question: what is the biggest city in wyoming
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city WHERE state_name  =  "wyoming" ) AND state_name  =  "wyoming";

Question: what wyoming city has the largest population
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city WHERE state_name  =  "wyoming" ) AND state_name  =  "wyoming";

Question: what is the largest city in wyoming
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city WHERE state_name  =  "wyoming" ) AND state_name  =  "wyoming";

Question: where is the most populated area of wyoming
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city WHERE state_name  =  "wyoming" ) AND state_name  =  "wyoming";

Question: which city in wyoming has the largest population
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city WHERE state_name  =  "wyoming" ) AND state_name  =  "wyoming";

Question: what cities in wyoming have the highest number of citizens
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city WHERE state_name  =  "wyoming" ) AND state_name  =  "wyoming";

Question: what cities in wyoming have the highest populations
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city WHERE state_name  =  "wyoming" ) AND state_name  =  "wyoming";

Question: what is the most populous city in wyoming
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city WHERE state_name  =  "wyoming" ) AND state_name  =  "wyoming";

Question: what is the largest city in wyoming by population
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city WHERE state_name  =  "wyoming" ) AND state_name  =  "wyoming";

Question: what is the largest city of wyoming
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city WHERE state_name  =  "wyoming" ) AND state_name  =  "wyoming";

Question: what is the city in wyoming with the largest population
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city WHERE state_name  =  "wyoming" ) AND state_name  =  "wyoming";

Question: which rivers run through the state with the largest city in the us
SQL:
SELECT river_name FROM river WHERE traverse IN ( SELECT state_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city ) );

Question: how big is new mexico
SQL:
SELECT area FROM state WHERE state_name  =  "new mexico";

Question: what is the area of new mexico
SQL:
SELECT area FROM state WHERE state_name  =  "new mexico";

Question: how large is new mexico
SQL:
SELECT area FROM state WHERE state_name  =  "new mexico";

Question: what is the area of the new mexico state
SQL:
SELECT area FROM state WHERE state_name  =  "new mexico";

Question: what is the size of new mexico
SQL:
SELECT area FROM state WHERE state_name  =  "new mexico";

Question: what is the area of new mexico in square kilometers
SQL:
SELECT area FROM state WHERE state_name  =  "new mexico";

Question: how many people live in california
SQL:
SELECT population FROM state WHERE state_name  =  "california";

Question: how many people reside in california
SQL:
SELECT population FROM state WHERE state_name  =  "california";

Question: how many residents live in california
SQL:
SELECT population FROM state WHERE state_name  =  "california";

Question: how much population does california have
SQL:
SELECT population FROM state WHERE state_name  =  "california";

Question: what are the population of california
SQL:
SELECT population FROM state WHERE state_name  =  "california";

Question: what is the population of california
SQL:
SELECT population FROM state WHERE state_name  =  "california";

Question: how many people are in the state of california
SQL:
SELECT population FROM state WHERE state_name  =  "california";

Question: what can you tell me about the population of california
SQL:
SELECT population FROM state WHERE state_name  =  "california";

Question: how many people are there in california
SQL:
SELECT population FROM state WHERE state_name  =  "california";

Question: how many citizens in california
SQL:
SELECT population FROM state WHERE state_name  =  "california";

Question: how many people stay in california
SQL:
SELECT population FROM state WHERE state_name  =  "california";

Question: how many citizens live in california
SQL:
SELECT population FROM state WHERE state_name  =  "california";

Question: what state has the smallest population
SQL:
SELECT state_name FROM state WHERE population  =  ( SELECT MIN ( population ) FROM state );

Question: what is the least populous state
SQL:
SELECT state_name FROM state WHERE population  =  ( SELECT MIN ( population ) FROM state );

Question: what is the state with the lowest population
SQL:
SELECT state_name FROM state WHERE population  =  ( SELECT MIN ( population ) FROM state );

Question: give me the cities in texas
SQL:
SELECT city_name FROM city WHERE state_name  =  "texas";

Question: tell me what cities are in texas
SQL:
SELECT city_name FROM city WHERE state_name  =  "texas";

Question: what cities are located in texas
SQL:
SELECT city_name FROM city WHERE state_name  =  "texas";

Question: what are the cities in texas
SQL:
SELECT city_name FROM city WHERE state_name  =  "texas";

Question: what cities in texas
SQL:
SELECT city_name FROM city WHERE state_name  =  "texas";

Question: give me the cities which are in texas
SQL:
SELECT city_name FROM city WHERE state_name  =  "texas";

Question: what is the area of the state with the capital albany
SQL:
SELECT area FROM state WHERE capital  =  "albany";

Question: give me the lakes in california
SQL:
SELECT lake_name FROM lake WHERE state_name  =  "california";

Question: name the major lakes in michigan
SQL:
SELECT lake_name FROM lake WHERE area  >  750 AND state_name  =  "michigan";

Question: what are the states
SQL:
SELECT state_name FROM state;

Question: list the states
SQL:
SELECT state_name FROM state;

Question: give me all the states of usa
SQL:
SELECT state_name FROM state;

Question: which states do ohio river flow through
SQL:
SELECT traverse FROM river WHERE river_name  =  "ohio";

Question: what states does the ohio river run through
SQL:
SELECT traverse FROM river WHERE river_name  =  "ohio";

Question: what states border the ohio river
SQL:
SELECT traverse FROM river WHERE river_name  =  "ohio";

Question: which states border the ohio river
SQL:
SELECT traverse FROM river WHERE river_name  =  "ohio";

Question: what states does the ohio run through
SQL:
SELECT traverse FROM river WHERE river_name  =  "ohio";

Question: where is the ohio river
SQL:
SELECT traverse FROM river WHERE river_name  =  "ohio";

Question: which states does the ohio river run through
SQL:
SELECT traverse FROM river WHERE river_name  =  "ohio";

Question: which states does the ohio run through
SQL:
SELECT traverse FROM river WHERE river_name  =  "ohio";

Question: which states does the ohio river pass through
SQL:
SELECT traverse FROM river WHERE river_name  =  "ohio";

Question: what are the states that the ohio run through
SQL:
SELECT traverse FROM river WHERE river_name  =  "ohio";

Question: which state has the ohio river
SQL:
SELECT traverse FROM river WHERE river_name  =  "ohio";

Question: what states have rivers named ohio
SQL:
SELECT traverse FROM river WHERE river_name  =  "ohio";

Question: through which states does the ohio flow
SQL:
SELECT traverse FROM river WHERE river_name  =  "ohio";

Question: what states are next to the ohio
SQL:
SELECT traverse FROM river WHERE river_name  =  "ohio";

Question: through which states does the ohio run
SQL:
SELECT traverse FROM river WHERE river_name  =  "ohio";

Question: what states does the ohio river go through
SQL:
SELECT traverse FROM river WHERE river_name  =  "ohio";

Question: what state has the largest population
SQL:
SELECT state_name FROM state WHERE population  =  ( SELECT MAX ( population ) FROM state );

Question: what is the most populous state
SQL:
SELECT state_name FROM state WHERE population  =  ( SELECT MAX ( population ) FROM state );

Question: what state is the largest in population
SQL:
SELECT state_name FROM state WHERE population  =  ( SELECT MAX ( population ) FROM state );

Question: which state has the biggest population
SQL:
SELECT state_name FROM state WHERE population  =  ( SELECT MAX ( population ) FROM state );

Question: which state has the greatest population
SQL:
SELECT state_name FROM state WHERE population  =  ( SELECT MAX ( population ) FROM state );

Question: which state has the most population
SQL:
SELECT state_name FROM state WHERE population  =  ( SELECT MAX ( population ) FROM state );

Question: what state has the most people
SQL:
SELECT state_name FROM state WHERE population  =  ( SELECT MAX ( population ) FROM state );

Question: which state has the most people
SQL:
SELECT state_name FROM state WHERE population  =  ( SELECT MAX ( population ) FROM state );

Question: what is the most populous state in the us
SQL:
SELECT state_name FROM state WHERE population  =  ( SELECT MAX ( population ) FROM state );

Question: what state has the highest population
SQL:
SELECT state_name FROM state WHERE population  =  ( SELECT MAX ( population ) FROM state );

Question: what is the lowest elevation in pennsylvania
SQL:
SELECT lowest_elevation FROM highlow WHERE state_name  =  "pennsylvania";

Question: what is the highest point in each state whose lowest point is sea level
SQL:
SELECT highest_point  ,  state_name FROM highlow WHERE lowest_elevation  =  0;

Question: what is the length of the longest river in the usa
SQL:
SELECT LENGTH FROM river WHERE LENGTH  =  ( SELECT MAX ( LENGTH ) FROM river );

Question: how long is the longest river in the usa
SQL:
SELECT LENGTH FROM river WHERE LENGTH  =  ( SELECT MAX ( LENGTH ) FROM river );

Question: what is the longest river flowing through texas
SQL:
SELECT river_name FROM river WHERE LENGTH  =  ( SELECT MAX ( LENGTH ) FROM river WHERE traverse  =  "texas" ) AND traverse  =  "texas";

Question: what is the largest river in texas state
SQL:
SELECT river_name FROM river WHERE LENGTH  =  ( SELECT MAX ( LENGTH ) FROM river WHERE traverse  =  "texas" ) AND traverse  =  "texas";

Question: what is the longest river in texas
SQL:
SELECT river_name FROM river WHERE LENGTH  =  ( SELECT MAX ( LENGTH ) FROM river WHERE traverse  =  "texas" ) AND traverse  =  "texas";

Question: what is the biggest river in texas
SQL:
SELECT river_name FROM river WHERE LENGTH  =  ( SELECT MAX ( LENGTH ) FROM river WHERE traverse  =  "texas" ) AND traverse  =  "texas";

Question: what is the longest river that flows through texas
SQL:
SELECT river_name FROM river WHERE LENGTH  =  ( SELECT MAX ( LENGTH ) FROM river WHERE traverse  =  "texas" ) AND traverse  =  "texas";

Question: what are the biggest rivers in texas
SQL:
SELECT river_name FROM river WHERE LENGTH  =  ( SELECT MAX ( LENGTH ) FROM river WHERE traverse  =  "texas" ) AND traverse  =  "texas";

Question: how many rivers are in idaho
SQL:
SELECT COUNT ( river_name ) FROM river WHERE traverse  =  "idaho";

Question: give me the number of rivers in idaho
SQL:
SELECT COUNT ( river_name ) FROM river WHERE traverse  =  "idaho";

Question: how many rivers does idaho have
SQL:
SELECT COUNT ( river_name ) FROM river WHERE traverse  =  "idaho";

Question: how many rivers are there in idaho
SQL:
SELECT COUNT ( river_name ) FROM river WHERE traverse  =  "idaho";

Question: how many rivers run through idaho
SQL:
SELECT COUNT ( river_name ) FROM river WHERE traverse  =  "idaho";

Question: how many rivers are found in idaho
SQL:
SELECT COUNT ( river_name ) FROM river WHERE traverse  =  "idaho";

Question: how many rivers in idaho
SQL:
SELECT COUNT ( river_name ) FROM river WHERE traverse  =  "idaho";

Question: what states neighbor kentucky
SQL:
SELECT border FROM border_info WHERE state_name  =  "kentucky";

Question: which states border kentucky
SQL:
SELECT border FROM border_info WHERE state_name  =  "kentucky";

Question: what states border kentucky
SQL:
SELECT border FROM border_info WHERE state_name  =  "kentucky";

Question: give me the states that border kentucky
SQL:
SELECT border FROM border_info WHERE state_name  =  "kentucky";

Question: what state borders kentucky
SQL:
SELECT border FROM border_info WHERE state_name  =  "kentucky";

Question: what states are next to kentucky
SQL:
SELECT border FROM border_info WHERE state_name  =  "kentucky";

Question: what states surround kentucky
SQL:
SELECT border FROM border_info WHERE state_name  =  "kentucky";

Question: which state borders kentucky
SQL:
SELECT border FROM border_info WHERE state_name  =  "kentucky";

Question: what are the neighboring states for kentucky
SQL:
SELECT border FROM border_info WHERE state_name  =  "kentucky";

Question: which states adjoin kentucky
SQL:
SELECT border FROM border_info WHERE state_name  =  "kentucky";

Question: states bordering kentucky
SQL:
SELECT border FROM border_info WHERE state_name  =  "kentucky";

Question: which state border kentucky
SQL:
SELECT border FROM border_info WHERE state_name  =  "kentucky";

Question: what is the adjacent state of kentucky
SQL:
SELECT border FROM border_info WHERE state_name  =  "kentucky";

Question: name all the rivers in illinois
SQL:
SELECT river_name FROM river WHERE traverse  =  "illinois";

Question: rivers in illinois
SQL:
SELECT river_name FROM river WHERE traverse  =  "illinois";

Question: what are all the rivers in illinois
SQL:
SELECT river_name FROM river WHERE traverse  =  "illinois";

Question: what are the rivers in illinois
SQL:
SELECT river_name FROM river WHERE traverse  =  "illinois";

Question: what rivers are in illinois
SQL:
SELECT river_name FROM river WHERE traverse  =  "illinois";

Question: what rivers are there in illinois
SQL:
SELECT river_name FROM river WHERE traverse  =  "illinois";

Question: what rivers run through illinois
SQL:
SELECT river_name FROM river WHERE traverse  =  "illinois";

Question: what rivers flow through illinois
SQL:
SELECT river_name FROM river WHERE traverse  =  "illinois";

Question: what river flows through illinois
SQL:
SELECT river_name FROM river WHERE traverse  =  "illinois";

Question: what are the rivers in the state of illinois
SQL:
SELECT river_name FROM river WHERE traverse  =  "illinois";

Question: name the rivers in illinois
SQL:
SELECT river_name FROM river WHERE traverse  =  "illinois";

Question: what are the rivers of illinois
SQL:
SELECT river_name FROM river WHERE traverse  =  "illinois";

Question: which rivers are in illinois
SQL:
SELECT river_name FROM river WHERE traverse  =  "illinois";

Question: which rivers flow through illinois
SQL:
SELECT river_name FROM river WHERE traverse  =  "illinois";

Question: what is the river that cross over illinois
SQL:
SELECT river_name FROM river WHERE traverse  =  "illinois";

Question: what river runs through illinois
SQL:
SELECT river_name FROM river WHERE traverse  =  "illinois";

Question: what state is springfield in
SQL:
SELECT state_name FROM city WHERE city_name  =  "springfield";

Question: where is springfield
SQL:
SELECT state_name FROM city WHERE city_name  =  "springfield";

Question: springfield is in what state
SQL:
SELECT state_name FROM city WHERE city_name  =  "springfield";

Question: what states have cities named springfield
SQL:
SELECT state_name FROM city WHERE city_name  =  "springfield";

Question: which states have cities named springfield
SQL:
SELECT state_name FROM city WHERE city_name  =  "springfield";

Question: which state is springfield in
SQL:
SELECT state_name FROM city WHERE city_name  =  "springfield";

Question: what states have a city named springfield
SQL:
SELECT state_name FROM city WHERE city_name  =  "springfield";

Question: what state has the city springfield
SQL:
SELECT state_name FROM city WHERE city_name  =  "springfield";

Question: what states have towns named springfield
SQL:
SELECT state_name FROM city WHERE city_name  =  "springfield";

Question: what state is springfield located in
SQL:
SELECT state_name FROM city WHERE city_name  =  "springfield";

Question: in which state is springfield
SQL:
SELECT state_name FROM city WHERE city_name  =  "springfield";

Question: which state is the city springfield located in
SQL:
SELECT state_name FROM city WHERE city_name  =  "springfield";

Question: what states in the united states have a city of springfield
SQL:
SELECT state_name FROM city WHERE city_name  =  "springfield";

Question: what is the population of the state with the largest area
SQL:
SELECT population FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state );

Question: what is the population of the largest state
SQL:
SELECT population FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state );

Question: how many people live in boulder
SQL:
SELECT population FROM city WHERE city_name  =  "boulder";

Question: what is the population of boulder
SQL:
SELECT population FROM city WHERE city_name  =  "boulder";

Question: how many people lived in boulder
SQL:
SELECT population FROM city WHERE city_name  =  "boulder";

Question: number of people in boulder
SQL:
SELECT population FROM city WHERE city_name  =  "boulder";

Question: what is the population of boulder city
SQL:
SELECT population FROM city WHERE city_name  =  "boulder";

Question: how big is the city of boulder
SQL:
SELECT population FROM city WHERE city_name  =  "boulder";

Question: population of boulder
SQL:
SELECT population FROM city WHERE city_name  =  "boulder";

Question: what is the population in boulder
SQL:
SELECT population FROM city WHERE city_name  =  "boulder";

Question: people in boulder
SQL:
SELECT population FROM city WHERE city_name  =  "boulder";

Question: how many people in boulder
SQL:
SELECT population FROM city WHERE city_name  =  "boulder";

Question: how many inhabitants does boulder have
SQL:
SELECT population FROM city WHERE city_name  =  "boulder";

Question: number of citizens in boulder
SQL:
SELECT population FROM city WHERE city_name  =  "boulder";

Question: how many citizens in boulder
SQL:
SELECT population FROM city WHERE city_name  =  "boulder";

Question: what is the smallest city in alaska
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MIN ( population ) FROM city WHERE state_name  =  "alaska" ) AND state_name  =  "alaska";

Question: which states lie on the largest river in the united states
SQL:
SELECT traverse FROM river WHERE LENGTH  =  ( SELECT MAX ( LENGTH ) FROM river );

Question: which states does the longest river run through
SQL:
SELECT traverse FROM river WHERE LENGTH  =  ( SELECT MAX ( LENGTH ) FROM river );

Question: which state has the longest river
SQL:
SELECT traverse FROM river WHERE LENGTH  =  ( SELECT MAX ( LENGTH ) FROM river );

Question: what are the states through which the longest river runs
SQL:
SELECT traverse FROM river WHERE LENGTH  =  ( SELECT MAX ( LENGTH ) FROM river );

Question: which states does the longest river cross
SQL:
SELECT traverse FROM river WHERE LENGTH  =  ( SELECT MAX ( LENGTH ) FROM river );

Question: what is the population density of the state with the smallest area
SQL:
SELECT density FROM state WHERE area  =  ( SELECT MIN ( area ) FROM state );

Question: what is the population density of the smallest state
SQL:
SELECT density FROM state WHERE area  =  ( SELECT MIN ( area ) FROM state );

Question: which states have points higher than the highest point in colorado
SQL:
SELECT state_name FROM highlow WHERE highest_elevation  >  ( SELECT highest_elevation FROM highlow WHERE state_name  =  "colorado" );

Question: which states have points that are higher than the highest point in colorado
SQL:
SELECT state_name FROM highlow WHERE highest_elevation  >  ( SELECT highest_elevation FROM highlow WHERE state_name  =  "colorado" );

Question: what states high point are higher than that of colorado
SQL:
SELECT state_name FROM highlow WHERE highest_elevation  >  ( SELECT highest_elevation FROM highlow WHERE state_name  =  "colorado" );

Question: what is the highest elevation in delaware
SQL:
SELECT highest_elevation FROM highlow WHERE state_name  =  "delaware";

Question: how high is the highest point of delaware
SQL:
SELECT highest_elevation FROM highlow WHERE state_name  =  "delaware";

Question: how tall is the highest point in delaware
SQL:
SELECT highest_elevation FROM highlow WHERE state_name  =  "delaware";

Question: what is the highest point in delaware in meters
SQL:
SELECT highest_elevation FROM highlow WHERE state_name  =  "delaware";

Question: how high is the highest point in delaware
SQL:
SELECT highest_elevation FROM highlow WHERE state_name  =  "delaware";

Question: give me the longest river that passes through the us
SQL:
SELECT river_name FROM river WHERE LENGTH  =  ( SELECT MAX ( LENGTH ) FROM river );

Question: which is the longest river in usa
SQL:
SELECT river_name FROM river WHERE LENGTH  =  ( SELECT MAX ( LENGTH ) FROM river );

Question: what is the longest river in america
SQL:
SELECT river_name FROM river WHERE LENGTH  =  ( SELECT MAX ( LENGTH ) FROM river );

Question: name the longest river in us
SQL:
SELECT river_name FROM river WHERE LENGTH  =  ( SELECT MAX ( LENGTH ) FROM river );

Question: what river is the longest one in the united states
SQL:
SELECT river_name FROM river WHERE LENGTH  =  ( SELECT MAX ( LENGTH ) FROM river );

Question: what is the longest river in the us
SQL:
SELECT river_name FROM river WHERE LENGTH  =  ( SELECT MAX ( LENGTH ) FROM river );

Question: what is the longest river
SQL:
SELECT river_name FROM river WHERE LENGTH  =  ( SELECT MAX ( LENGTH ) FROM river );

Question: what is the longest river in the united states
SQL:
SELECT river_name FROM river WHERE LENGTH  =  ( SELECT MAX ( LENGTH ) FROM river );

Question: what state has the city with the largest population
SQL:
SELECT state_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city );

Question: what state has the largest city
SQL:
SELECT state_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city );

Question: which state has the largest city
SQL:
SELECT state_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city );

Question: what state has the city with the most population
SQL:
SELECT state_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city );

Question: what is the smallest city in the largest state
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MIN ( population ) FROM city WHERE state_name IN ( SELECT state_name FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state ) ) ) AND state_name IN ( SELECT state_name FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state ) );

Question: what state is the biggest
SQL:
SELECT state_name FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state );

Question: what is the state with the largest area
SQL:
SELECT state_name FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state );

Question: what state has the largest area
SQL:
SELECT state_name FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state );

Question: what is the biggest state in continental us
SQL:
SELECT state_name FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state );

Question: state the state with the largest area
SQL:
SELECT state_name FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state );

Question: what is the largest state in usa
SQL:
SELECT state_name FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state );

Question: what is the biggest state
SQL:
SELECT state_name FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state );

Question: what is the biggest state in the usa
SQL:
SELECT state_name FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state );

Question: give me the largest state
SQL:
SELECT state_name FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state );

Question: what is the largest state in the us
SQL:
SELECT state_name FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state );

Question: what is the largest state
SQL:
SELECT state_name FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state );

Question: what are the highest points of states surrounding mississippi
SQL:
SELECT highest_point FROM highlow WHERE state_name IN ( SELECT border FROM border_info WHERE state_name  =  "mississippi" );

Question: what are the high points of states surrounding mississippi
SQL:
SELECT highest_point FROM highlow WHERE state_name IN ( SELECT border FROM border_info WHERE state_name  =  "mississippi" );

Question: what is the highest point in states bordering colorado
SQL:
SELECT highest_point FROM highlow WHERE state_name IN ( SELECT border FROM border_info WHERE state_name  =  "colorado" ) ORDER BY highest_elevation DESC LIMIT 1;

Question: what is the highest point in the states bordering colorado
SQL:
SELECT highest_point FROM highlow WHERE state_name IN ( SELECT border FROM border_info WHERE state_name  =  "colorado" ) ORDER BY highest_elevation DESC LIMIT 1;

Question: what is the state with the lowest population density
SQL:
SELECT state_name FROM state WHERE density  =  ( SELECT MIN ( density ) FROM state );

Question: what state has the lowest population density
SQL:
SELECT state_name FROM state WHERE density  =  ( SELECT MIN ( density ) FROM state );

Question: which state has the lowest population density
SQL:
SELECT state_name FROM state WHERE density  =  ( SELECT MIN ( density ) FROM state );

Question: which state has the smallest population density
SQL:
SELECT state_name FROM state WHERE density  =  ( SELECT MIN ( density ) FROM state );

Question: what state has the sparsest population density
SQL:
SELECT state_name FROM state WHERE density  =  ( SELECT MIN ( density ) FROM state );

Question: which state has the sparsest population density
SQL:
SELECT state_name FROM state WHERE density  =  ( SELECT MIN ( density ) FROM state );

Question: what state has the least population density
SQL:
SELECT state_name FROM state WHERE density  =  ( SELECT MIN ( density ) FROM state );

Question: which state has the least population density
SQL:
SELECT state_name FROM state WHERE density  =  ( SELECT MIN ( density ) FROM state );

Question: what state has the smallest population density
SQL:
SELECT state_name FROM state WHERE density  =  ( SELECT MIN ( density ) FROM state );

Question: where is the highest point in texas
SQL:
SELECT highest_point FROM highlow WHERE state_name  =  "texas";

Question: what is the highest point in texas
SQL:
SELECT highest_point FROM highlow WHERE state_name  =  "texas";

Question: what is the high point of texas
SQL:
SELECT highest_point FROM highlow WHERE state_name  =  "texas";

Question: what is the highest mountain in texas
SQL:
SELECT highest_point FROM highlow WHERE state_name  =  "texas";

Question: could you tell me what is the highest point in the state of texas
SQL:
SELECT highest_point FROM highlow WHERE state_name  =  "texas";

Question: what states have no bordering state
SQL:
SELECT state_name FROM state WHERE state_name NOT IN ( SELECT state_name FROM border_info );

Question: name the states which have no surrounding states
SQL:
SELECT state_name FROM state WHERE state_name NOT IN ( SELECT state_name FROM border_info );

Question: which states border no other states
SQL:
SELECT state_name FROM state WHERE state_name NOT IN ( SELECT state_name FROM border_info );

Question: what is the area of the state with the smallest population density
SQL:
SELECT area FROM state WHERE density  =  ( SELECT MIN ( density ) FROM state );

Question: count the states which have elevations lower than what alabama has
SQL:
SELECT COUNT ( state_name ) FROM highlow WHERE lowest_elevation  <  ( SELECT lowest_elevation FROM highlow WHERE state_name  =  "alabama" );

Question: how high is guadalupe peak
SQL:
SELECT highest_elevation FROM highlow WHERE highest_point  =  "guadalupe peak";

Question: how tall is guadalupe peak
SQL:
SELECT highest_elevation FROM highlow WHERE highest_point  =  "guadalupe peak";

Question: what is the maximum elevation of guadalupe peak
SQL:
SELECT highest_elevation FROM highlow WHERE highest_point  =  "guadalupe peak";

Question: how high is the highest point in america
SQL:
SELECT MAX ( highest_elevation ) FROM highlow;

Question: what is the highest elevation in the united states
SQL:
SELECT MAX ( highest_elevation ) FROM highlow;

Question: what is the elevation of the highest point in the usa
SQL:
SELECT MAX ( highest_elevation ) FROM highlow;

Question: what is the height of the highest point in the usa
SQL:
SELECT MAX ( highest_elevation ) FROM highlow;

Question: how long is the rio grande river
SQL:
SELECT LENGTH FROM river WHERE river_name  =  "rio grande";

Question: what is the length of the rio grande river
SQL:
SELECT LENGTH FROM river WHERE river_name  =  "rio grande";

Question: what length is the rio grande
SQL:
SELECT LENGTH FROM river WHERE river_name  =  "rio grande";

Question: how long is the rio grande
SQL:
SELECT LENGTH FROM river WHERE river_name  =  "rio grande";

Question: how long is the rio grande river in miles
SQL:
SELECT LENGTH FROM river WHERE river_name  =  "rio grande";

Question: how long is rio grande
SQL:
SELECT LENGTH FROM river WHERE river_name  =  "rio grande";

Question: how long is the longest river in texas
SQL:
SELECT LENGTH FROM river WHERE LENGTH  =  ( SELECT MAX ( LENGTH ) FROM river WHERE traverse  =  "texas" ) AND traverse  =  "texas";

Question: what is the length of the longest river that runs through texas
SQL:
SELECT LENGTH FROM river WHERE LENGTH  =  ( SELECT MAX ( LENGTH ) FROM river WHERE traverse  =  "texas" ) AND traverse  =  "texas";

Question: how many capitals does rhode island have
SQL:
SELECT COUNT ( capital ) FROM state WHERE state_name  =  "rhode island";

Question: how many cities are there in the united states
SQL:
SELECT COUNT ( city_name ) FROM city;

Question: how many cities does the usa have
SQL:
SELECT COUNT ( city_name ) FROM city;

Question: how many cities are there in the us
SQL:
SELECT COUNT ( city_name ) FROM city;

Question: how many cities are there in usa
SQL:
SELECT COUNT ( city_name ) FROM city;

Question: how many cities are there in us
SQL:
SELECT COUNT ( city_name ) FROM city;

Question: how many major cities are there
SQL:
SELECT COUNT ( city_name ) FROM city WHERE population  >  150000;

Question: how many citizens does the biggest city have in the usa
SQL:
SELECT population FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city );

Question: how many colorado rivers are there
SQL:
SELECT COUNT ( river_name ) FROM river WHERE river_name  =  "colorado";

Question: how many rivers are called colorado
SQL:
SELECT COUNT ( river_name ) FROM river WHERE river_name  =  "colorado";

Question: what is the population of seattle washington
SQL:
SELECT population FROM city WHERE city_name  =  "seattle" AND state_name  =  "washington";

Question: how many people live in seattle washington
SQL:
SELECT population FROM city WHERE city_name  =  "seattle" AND state_name  =  "washington";

Question: how many people live in the biggest city in alaska state
SQL:
SELECT population FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city WHERE state_name  =  "alaska" ) AND state_name  =  "alaska";

Question: how large is the largest city in alaska
SQL:
SELECT population FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city WHERE state_name  =  "alaska" ) AND state_name  =  "alaska";

Question: how many people live in the capital of texas
SQL:
SELECT population FROM city WHERE city_name  =  ( SELECT capital FROM state WHERE state_name  =  "texas" );

Question: what is the size of the capital of texas
SQL:
SELECT population FROM city WHERE city_name  =  ( SELECT capital FROM state WHERE state_name  =  "texas" );

Question: how many people live in the united states
SQL:
SELECT SUM ( population ) FROM state;

Question: what is the combined population of all 50 states
SQL:
SELECT SUM ( population ) FROM state;

Question: how many states are in the usa
SQL:
SELECT COUNT ( state_name ) FROM state;

Question: how many states are there
SQL:
SELECT COUNT ( state_name ) FROM state;

Question: how many states are there in the usa
SQL:
SELECT COUNT ( state_name ) FROM state;

Question: how many states does usa have
SQL:
SELECT COUNT ( state_name ) FROM state;

Question: how many states are in the united states
SQL:
SELECT COUNT ( state_name ) FROM state;

Question: how many states are there in united states
SQL:
SELECT COUNT ( state_name ) FROM state;

Question: how many states border kentucky
SQL:
SELECT COUNT ( border ) FROM border_info WHERE state_name  =  "kentucky";

Question: how many states does kentucky border
SQL:
SELECT COUNT ( border ) FROM border_info WHERE state_name  =  "kentucky";

Question: kentucky borders how many states
SQL:
SELECT COUNT ( border ) FROM border_info WHERE state_name  =  "kentucky";

Question: number of states bordering kentucky
SQL:
SELECT COUNT ( border ) FROM border_info WHERE state_name  =  "kentucky";

Question: what is the number of neighboring states for kentucky
SQL:
SELECT COUNT ( border ) FROM border_info WHERE state_name  =  "kentucky";

Question: how many states border the state with the largest population
SQL:
SELECT COUNT ( border ) FROM border_info WHERE state_name IN ( SELECT state_name FROM state WHERE population  =  ( SELECT MAX ( population ) FROM state ) );

Question: how many states do not have rivers
SQL:
SELECT COUNT ( DISTINCT state_name ) FROM state WHERE state_name NOT IN ( SELECT traverse FROM river );

Question: how many states have a higher point than the highest point of the state with the largest capital city in the us
SQL:
SELECT COUNT ( state_name ) FROM highlow WHERE highest_elevation  >  ( SELECT highest_elevation FROM highlow WHERE state_name  =  ( SELECT state_name FROM state WHERE capital  =  ( SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city ) ) ) );

Question: name the major rivers in illinois
SQL:
SELECT river_name FROM river WHERE LENGTH  >  750 AND traverse  =  "illinois";

Question: what are the major rivers in illinois
SQL:
SELECT river_name FROM river WHERE LENGTH  >  750 AND traverse  =  "illinois";

Question: what are major rivers in illinois
SQL:
SELECT river_name FROM river WHERE LENGTH  >  750 AND traverse  =  "illinois";

Question: what major rivers run through illinois
SQL:
SELECT river_name FROM river WHERE LENGTH  >  750 AND traverse  =  "illinois";

Question: through which states does the longest river in texas run
SQL:
SELECT traverse FROM river WHERE LENGTH  =  ( SELECT MAX ( LENGTH ) FROM river WHERE traverse  =  "texas" );

Question: what are the capital city in texas
SQL:
SELECT capital FROM state WHERE state_name  =  "texas";

Question: what is the capital of texas
SQL:
SELECT capital FROM state WHERE state_name  =  "texas";

Question: what is the capital of the texas state
SQL:
SELECT capital FROM state WHERE state_name  =  "texas";

Question: what is capital of texas
SQL:
SELECT capital FROM state WHERE state_name  =  "texas";

Question: what is the capital of the state texas
SQL:
SELECT capital FROM state WHERE state_name  =  "texas";

Question: can you tell me the capital of texas
SQL:
SELECT capital FROM state WHERE state_name  =  "texas";

Question: what are the capitals of states that border texas
SQL:
SELECT t2.capital FROM state AS t2 JOIN border_info AS t1 ON t2.state_name  =  t1.border WHERE t1.state_name  =  "texas";

Question: what are the capital cities of the states which border texas
SQL:
SELECT t2.capital FROM state AS t2 JOIN border_info AS t1 ON t2.state_name  =  t1.border WHERE t1.state_name  =  "texas";

Question: what are the capitals of the states that border texas
SQL:
SELECT t2.capital FROM state AS t2 JOIN border_info AS t1 ON t2.state_name  =  t1.border WHERE t1.state_name  =  "texas";

Question: which capitals are in the states that border texas
SQL:
SELECT t2.capital FROM state AS t2 JOIN border_info AS t1 ON t2.state_name  =  t1.border WHERE t1.state_name  =  "texas";

Question: what are the cities in states through which the mississippi runs
SQL:
SELECT city_name FROM city WHERE state_name IN ( SELECT traverse FROM river WHERE river_name  =  "mississippi" );

Question: what are the cities of the state with the highest point
SQL:
SELECT city_name FROM city WHERE state_name IN ( SELECT state_name FROM highlow WHERE highest_elevation  =  ( SELECT MAX ( highest_elevation ) FROM highlow ) );

Question: what are the highest points of all the states
SQL:
SELECT highest_point FROM highlow;

Question: what are the major cities in kansas
SQL:
SELECT city_name FROM city WHERE population  >  150000 AND state_name  =  "kansas";

Question: what are the major cities in the state of kansas
SQL:
SELECT city_name FROM city WHERE population  >  150000 AND state_name  =  "kansas";

Question: what major cities are located in kansas
SQL:
SELECT city_name FROM city WHERE population  >  150000 AND state_name  =  "kansas";

Question: show major cities in kansas
SQL:
SELECT city_name FROM city WHERE population  >  150000 AND state_name  =  "kansas";

Question: what are the names of the major cities in kansas
SQL:
SELECT city_name FROM city WHERE population  >  150000 AND state_name  =  "kansas";

Question: what are the major cities of kansas
SQL:
SELECT city_name FROM city WHERE population  >  150000 AND state_name  =  "kansas";

Question: what is the major cities in kansas
SQL:
SELECT city_name FROM city WHERE population  >  150000 AND state_name  =  "kansas";

Question: what are the major cities in states through which the mississippi runs
SQL:
SELECT city_name FROM city WHERE population  >  150000 AND state_name IN ( SELECT traverse FROM river WHERE LENGTH  >  750 AND river_name  =  "mississippi" );

Question: what are the major cities in the usa
SQL:
SELECT city_name FROM city WHERE population  >  150000;

Question: what are the major cities of the united states
SQL:
SELECT city_name FROM city WHERE population  >  150000;

Question: what are the major cities of the us
SQL:
SELECT city_name FROM city WHERE population  >  150000;

Question: what are the population densities of each us state
SQL:
SELECT density FROM state;

Question: what are the populations of states through which the mississippi river run
SQL:
SELECT population FROM state WHERE state_name IN ( SELECT traverse FROM river WHERE river_name  =  "mississippi" );

Question: what are the populations of states through which the mississippi runs
SQL:
SELECT population FROM state WHERE state_name IN ( SELECT traverse FROM river WHERE river_name  =  "mississippi" );

Question: what are the populations of the states through which the mississippi runs
SQL:
SELECT population FROM state WHERE state_name IN ( SELECT traverse FROM river WHERE river_name  =  "mississippi" );

Question: what are the populations of states through which the mississippi river runs
SQL:
SELECT population FROM state WHERE state_name IN ( SELECT traverse FROM river WHERE river_name  =  "mississippi" );

Question: what are the populations of the states through which the mississippi run
SQL:
SELECT population FROM state WHERE state_name IN ( SELECT traverse FROM river WHERE river_name  =  "mississippi" );

Question: what are the populations of the states through which the mississippi river run
SQL:
SELECT population FROM state WHERE state_name IN ( SELECT traverse FROM river WHERE river_name  =  "mississippi" );

Question: what are the populations of states through which the mississippi run
SQL:
SELECT population FROM state WHERE state_name IN ( SELECT traverse FROM river WHERE river_name  =  "mississippi" );

Question: what are the populations of the states through which the mississippi river runs
SQL:
SELECT population FROM state WHERE state_name IN ( SELECT traverse FROM river WHERE river_name  =  "mississippi" );

Question: what are the populations of states which border texas
SQL:
SELECT t2.population FROM state AS t2 JOIN border_info AS t1 ON t2.state_name  =  t1.border WHERE t1.state_name  =  "texas";

Question: what are the populations of the major cities of wisconsin
SQL:
SELECT population FROM city WHERE population  >  150000 AND state_name  =  "wisconsin";

Question: what are the populations of all the major cities in wisconsin
SQL:
SELECT population FROM city WHERE population  >  150000 AND state_name  =  "wisconsin";

Question: what is the population of the major cities in wisconsin
SQL:
SELECT population FROM city WHERE population  >  150000 AND state_name  =  "wisconsin";

Question: what city has the most people
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city );

Question: what city in the united states has the highest population density
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city );

Question: what is the most populous city
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city );

Question: which us city has the highest population density
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city );

Question: what is the biggest city in the usa
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city );

Question: whats the largest city
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city );

Question: what city has the largest population
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city );

Question: what is the biggest city in the us
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city );

Question: what is the biggest city in usa
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city );

Question: what is the biggest capital city in the us
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( t1.population ) FROM state AS t2 JOIN city AS t1 ON t2.capital  =  t1.city_name );

Question: what is the largest capital city in the usa
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( t1.population ) FROM state AS t2 JOIN city AS t1 ON t2.capital  =  t1.city_name );

Question: what is the largest state capital in population
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( t1.population ) FROM state AS t2 JOIN city AS t1 ON t2.capital  =  t1.city_name );

Question: what is the largest capital
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( t1.population ) FROM state AS t2 JOIN city AS t1 ON t2.capital  =  t1.city_name );

Question: what is the most populated capital in the usa
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( t1.population ) FROM state AS t2 JOIN city AS t1 ON t2.capital  =  t1.city_name );

Question: what capital is the largest in the us
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( t1.population ) FROM state AS t2 JOIN city AS t1 ON t2.capital  =  t1.city_name );

Question: what capital has the largest population
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( t1.population ) FROM state AS t2 JOIN city AS t1 ON t2.capital  =  t1.city_name );

Question: what is largest capital
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( t1.population ) FROM state AS t2 JOIN city AS t1 ON t2.capital  =  t1.city_name );

Question: what is the capital of states that have cities named durham
SQL:
SELECT t2.capital FROM state AS t2 JOIN city AS t1 ON t2.state_name  =  t1.state_name WHERE t1.city_name  =  "durham";

Question: what is the capital of the smallest state
SQL:
SELECT capital FROM state WHERE area  =  ( SELECT MIN ( area ) FROM state );

Question: what is the capital of the state with the largest population density
SQL:
SELECT DISTINCT capital FROM state WHERE density  =  ( SELECT MAX ( density ) FROM state );

Question: what is the capital of the state with the largest population
SQL:
SELECT capital FROM state WHERE population  =  ( SELECT MAX ( population ) FROM state );

Question: what is the capital of the state with the most inhabitants
SQL:
SELECT capital FROM state WHERE population  =  ( SELECT MAX ( population ) FROM state );

Question: what is the capital of the state with the longest river
SQL:
SELECT capital FROM state WHERE state_name IN ( SELECT traverse FROM river WHERE LENGTH  =  ( SELECT MAX ( LENGTH ) FROM river ) );

Question: what is the combined area of all 50 states
SQL:
SELECT SUM ( area ) FROM state;

Question: what is the area of all the states combined
SQL:
SELECT SUM ( area ) FROM state;

Question: how many square kilometers in the us
SQL:
SELECT SUM ( area ) FROM state;

Question: what is the total area of the usa
SQL:
SELECT SUM ( area ) FROM state;

Question: what is the density of the wyoming
SQL:
SELECT density FROM state WHERE state_name  =  "wyoming";

Question: what is the population density of wyoming
SQL:
SELECT density FROM state WHERE state_name  =  "wyoming";

Question: what is the density of wyoming
SQL:
SELECT density FROM state WHERE state_name  =  "wyoming";

Question: what is the highest mountain in the us
SQL:
SELECT mountain_name FROM mountain WHERE mountain_altitude  =  ( SELECT MAX ( mountain_altitude ) FROM mountain );

Question: what is the highest mountain in us
SQL:
SELECT mountain_name FROM mountain WHERE mountain_altitude  =  ( SELECT MAX ( mountain_altitude ) FROM mountain );

Question: what is the tallest mountain in america
SQL:
SELECT mountain_name FROM mountain WHERE mountain_altitude  =  ( SELECT MAX ( mountain_altitude ) FROM mountain );

Question: what is the tallest mountain in the united states
SQL:
SELECT mountain_name FROM mountain WHERE mountain_altitude  =  ( SELECT MAX ( mountain_altitude ) FROM mountain );

Question: what is the highest point in the state with capital des moines
SQL:
SELECT highest_point FROM highlow WHERE state_name IN ( SELECT state_name FROM state WHERE capital  =  "des moines" );

Question: what is the highest point in the state with the capital des moines
SQL:
SELECT highest_point FROM highlow WHERE state_name IN ( SELECT state_name FROM state WHERE capital  =  "des moines" );

Question: what is the highest point in the usa
SQL:
SELECT highest_point FROM highlow WHERE highest_elevation  =  ( SELECT MAX ( highest_elevation ) FROM highlow );

Question: what is the highest point of the usa
SQL:
SELECT highest_point FROM highlow WHERE highest_elevation  =  ( SELECT MAX ( highest_elevation ) FROM highlow );

Question: what is the highest point in the country
SQL:
SELECT highest_point FROM highlow WHERE highest_elevation  =  ( SELECT MAX ( highest_elevation ) FROM highlow );

Question: what is the highest point in the us
SQL:
SELECT highest_point FROM highlow WHERE highest_elevation  =  ( SELECT MAX ( highest_elevation ) FROM highlow );

Question: what is the highest point in the united states
SQL:
SELECT highest_point FROM highlow WHERE highest_elevation  =  ( SELECT MAX ( highest_elevation ) FROM highlow );

Question: what is the highest point of the state with the smallest population density
SQL:
SELECT highest_point FROM highlow WHERE state_name IN ( SELECT state_name FROM state WHERE density  =  ( SELECT MIN ( density ) FROM state ) );

Question: what is the largest city in smallest state through which the mississippi runs
SQL:
SELECT city_name FROM city WHERE state_name IN ( SELECT state_name FROM state WHERE state_name IN ( SELECT traverse FROM river WHERE river_name  =  "mississippi" ) AND area  =  ( SELECT MIN ( area ) FROM state WHERE state_name IN ( SELECT traverse FROM river WHERE river_name  =  "mississippi" ) ) ) ORDER BY population DESC LIMIT 1;

Question: what is the largest city in the smallest state in the usa
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city WHERE state_name IN ( SELECT state_name FROM state WHERE area  =  ( SELECT MIN ( area ) FROM state ) ) ) AND state_name IN ( SELECT state_name FROM state WHERE area  =  ( SELECT MIN ( area ) FROM state ) );

Question: what is the biggest city in the smallest state
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city WHERE state_name IN ( SELECT state_name FROM state WHERE area  =  ( SELECT MIN ( area ) FROM state ) ) ) AND state_name IN ( SELECT state_name FROM state WHERE area  =  ( SELECT MIN ( area ) FROM state ) );

Question: what is the largest state bordering california
SQL:
SELECT state_name FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state WHERE state_name IN ( SELECT border FROM border_info WHERE state_name  =  "california" ) ) AND state_name IN ( SELECT border FROM border_info WHERE state_name  =  "california" );

Question: what is the largest state that borders california
SQL:
SELECT state_name FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state WHERE state_name IN ( SELECT border FROM border_info WHERE state_name  =  "california" ) ) AND state_name IN ( SELECT border FROM border_info WHERE state_name  =  "california" );

Question: what state that borders california is the largest
SQL:
SELECT state_name FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state WHERE state_name IN ( SELECT border FROM border_info WHERE state_name  =  "california" ) ) AND state_name IN ( SELECT border FROM border_info WHERE state_name  =  "california" );

Question: what is the longest river in the largest state
SQL:
SELECT river_name FROM river WHERE LENGTH  =  ( SELECT MAX ( LENGTH ) FROM river WHERE traverse IN ( SELECT state_name FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state ) ) ) AND traverse IN ( SELECT state_name FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state ) );

Question: what is the longest river in the states that border tennessee
SQL:
SELECT river_name FROM river WHERE LENGTH  =  ( SELECT MAX ( LENGTH ) FROM river WHERE traverse IN ( SELECT border FROM border_info WHERE state_name  =  "tennessee" ) ) AND traverse IN ( SELECT border FROM border_info WHERE state_name  =  "tennessee" );

Question: what is the longest river that flows through a state that borders tennessee
SQL:
SELECT river_name FROM river WHERE LENGTH  =  ( SELECT MAX ( LENGTH ) FROM river WHERE traverse IN ( SELECT border FROM border_info WHERE state_name  =  "tennessee" ) ) AND traverse IN ( SELECT border FROM border_info WHERE state_name  =  "tennessee" );

Question: what is the longest river that runs through a state that borders tennessee
SQL:
SELECT river_name FROM river WHERE LENGTH  =  ( SELECT MAX ( LENGTH ) FROM river WHERE traverse IN ( SELECT border FROM border_info WHERE state_name  =  "tennessee" ) ) AND traverse IN ( SELECT border FROM border_info WHERE state_name  =  "tennessee" );

Question: what is the longest river in the state with the most major cities
SQL:
SELECT river_name FROM river WHERE traverse  =  ( SELECT state_name FROM city WHERE population  >  150000 GROUP BY state_name ORDER BY COUNT ( city_name ) DESC LIMIT 1 ) ORDER BY LENGTH DESC LIMIT 1;

Question: what is the lowest point in iowa
SQL:
SELECT lowest_point FROM highlow WHERE state_name  =  "iowa";

Question: what is the lowest point in iowa in meters
SQL:
SELECT lowest_point FROM highlow WHERE state_name  =  "iowa";

Question: what is the lowest point in the state of iowa
SQL:
SELECT lowest_point FROM highlow WHERE state_name  =  "iowa";

Question: where is the lowest point in iowa
SQL:
SELECT lowest_point FROM highlow WHERE state_name  =  "iowa";

Question: what is the lowest point of iowa
SQL:
SELECT lowest_point FROM highlow WHERE state_name  =  "iowa";

Question: where is the lowest spot in iowa
SQL:
SELECT lowest_point FROM highlow WHERE state_name  =  "iowa";

Question: what is the lowest point in usa
SQL:
SELECT lowest_point FROM highlow WHERE lowest_elevation  =  ( SELECT MIN ( lowest_elevation ) FROM highlow );

Question: what is the lowest point in the united states
SQL:
SELECT lowest_point FROM highlow WHERE lowest_elevation  =  ( SELECT MIN ( lowest_elevation ) FROM highlow );

Question: where is the lowest point in the us
SQL:
SELECT lowest_point FROM highlow WHERE lowest_elevation  =  ( SELECT MIN ( lowest_elevation ) FROM highlow );

Question: what is the lowest point of the us
SQL:
SELECT lowest_point FROM highlow WHERE lowest_elevation  =  ( SELECT MIN ( lowest_elevation ) FROM highlow );

Question: what is the lowest point of all states through which the mississippi river runs through
SQL:
SELECT lowest_point FROM highlow WHERE state_name IN ( SELECT traverse FROM river WHERE river_name  =  "mississippi" ) ORDER BY lowest_elevation LIMIT 1;

Question: which is the lowest point of the states that the mississippi runs through
SQL:
SELECT lowest_point FROM highlow WHERE state_name IN ( SELECT traverse FROM river WHERE river_name  =  "mississippi" ) ORDER BY lowest_elevation LIMIT 1;

Question: what is the most dense state in the usa
SQL:
SELECT state_name FROM state WHERE density  =  ( SELECT MAX ( density ) FROM state );

Question: which state has the highest population density
SQL:
SELECT state_name FROM state WHERE density  =  ( SELECT MAX ( density ) FROM state );

Question: which state has the greatest density
SQL:
SELECT state_name FROM state WHERE density  =  ( SELECT MAX ( density ) FROM state );

Question: what state has the highest population density
SQL:
SELECT state_name FROM state WHERE density  =  ( SELECT MAX ( density ) FROM state );

Question: what state has the greatest population density
SQL:
SELECT state_name FROM state WHERE density  =  ( SELECT MAX ( density ) FROM state );

Question: what state has the largest population density
SQL:
SELECT state_name FROM state WHERE density  =  ( SELECT MAX ( density ) FROM state );

Question: what is the state with the largest density in usa
SQL:
SELECT state_name FROM state WHERE density  =  ( SELECT MAX ( density ) FROM state );

Question: what is the state with the largest population density
SQL:
SELECT state_name FROM state WHERE density  =  ( SELECT MAX ( density ) FROM state );

Question: which state has the largest density
SQL:
SELECT state_name FROM state WHERE density  =  ( SELECT MAX ( density ) FROM state );

Question: what is the most populous state through which the mississippi runs
SQL:
SELECT state_name FROM state WHERE population  =  ( SELECT MAX ( population ) FROM state WHERE state_name IN ( SELECT traverse FROM river WHERE river_name  =  "mississippi" ) ) AND state_name IN ( SELECT traverse FROM river WHERE river_name  =  "mississippi" );

Question: what state which the mississippi runs through has the largest population
SQL:
SELECT state_name FROM state WHERE population  =  ( SELECT MAX ( population ) FROM state WHERE state_name IN ( SELECT traverse FROM river WHERE river_name  =  "mississippi" ) ) AND state_name IN ( SELECT traverse FROM river WHERE river_name  =  "mississippi" );

Question: what is the population density of the largest state
SQL:
SELECT density FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state );

Question: what is the population of the largest city in the state with the largest area
SQL:
SELECT population FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city WHERE state_name IN ( SELECT state_name FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state ) ) ) AND state_name IN ( SELECT state_name FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state ) );

Question: what is the population of the smallest state
SQL:
SELECT population FROM state WHERE area  =  ( SELECT MIN ( area ) FROM state );

Question: what is the population of the state with the highest population density
SQL:
SELECT population FROM state WHERE density  =  ( SELECT MAX ( density ) FROM state );

Question: how many people live in the state with the largest population density
SQL:
SELECT population FROM state WHERE density  =  ( SELECT MAX ( density ) FROM state );

Question: what is the smallest city in the usa
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MIN ( population ) FROM city );

Question: what is the smallest city in the us
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MIN ( population ) FROM city );

Question: what city has the least population
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MIN ( population ) FROM city );

Question: what is the city with the smallest population
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MIN ( population ) FROM city );

Question: what is the smallest state bordering texas
SQL:
SELECT state_name FROM state WHERE area  =  ( SELECT MIN ( area ) FROM state WHERE state_name IN ( SELECT border FROM border_info WHERE state_name  =  "texas" ) ) AND state_name IN ( SELECT border FROM border_info WHERE state_name  =  "texas" );

Question: what is the smallest state that borders texas
SQL:
SELECT state_name FROM state WHERE area  =  ( SELECT MIN ( area ) FROM state WHERE state_name IN ( SELECT border FROM border_info WHERE state_name  =  "texas" ) ) AND state_name IN ( SELECT border FROM border_info WHERE state_name  =  "texas" );

Question: which state has the smallest area that borders texas
SQL:
SELECT state_name FROM state WHERE area  =  ( SELECT MIN ( area ) FROM state WHERE state_name IN ( SELECT border FROM border_info WHERE state_name  =  "texas" ) ) AND state_name IN ( SELECT border FROM border_info WHERE state_name  =  "texas" );

Question: what is the smallest state that the mississippi river runs through
SQL:
SELECT state_name FROM state WHERE area  =  ( SELECT MIN ( area ) FROM state WHERE state_name IN ( SELECT traverse FROM river WHERE river_name  =  "mississippi" ) ) AND state_name IN ( SELECT traverse FROM river WHERE river_name  =  "mississippi" );

Question: what is the state with the smallest area
SQL:
SELECT state_name FROM state WHERE area  =  ( SELECT MIN ( area ) FROM state );

Question: which is the smallest state
SQL:
SELECT state_name FROM state WHERE area  =  ( SELECT MIN ( area ) FROM state );

Question: which state is the smallest
SQL:
SELECT state_name FROM state WHERE area  =  ( SELECT MIN ( area ) FROM state );

Question: what is the smallest state in the usa
SQL:
SELECT state_name FROM state WHERE area  =  ( SELECT MIN ( area ) FROM state );

Question: what is the smallest state by area
SQL:
SELECT state_name FROM state WHERE area  =  ( SELECT MIN ( area ) FROM state );

Question: what state has the smallest area
SQL:
SELECT state_name FROM state WHERE area  =  ( SELECT MIN ( area ) FROM state );

Question: what is the total length of all rivers in the usa
SQL:
SELECT SUM ( LENGTH ) FROM river;

Question: what river flows through the most states
SQL:
SELECT river_name FROM river GROUP BY ( river_name ) ORDER BY COUNT ( DISTINCT traverse ) DESC LIMIT 1;

Question: which river goes through the most states
SQL:
SELECT river_name FROM river GROUP BY ( river_name ) ORDER BY COUNT ( DISTINCT traverse ) DESC LIMIT 1;

Question: which river runs through most states
SQL:
SELECT river_name FROM river GROUP BY ( river_name ) ORDER BY COUNT ( DISTINCT traverse ) DESC LIMIT 1;

Question: which river traverses most states
SQL:
SELECT river_name FROM river GROUP BY ( river_name ) ORDER BY COUNT ( DISTINCT traverse ) DESC LIMIT 1;

Question: what river traverses the most states
SQL:
SELECT river_name FROM river GROUP BY ( river_name ) ORDER BY COUNT ( DISTINCT traverse ) DESC LIMIT 1;

Question: which river runs through the most states
SQL:
SELECT river_name FROM river GROUP BY ( river_name ) ORDER BY COUNT ( DISTINCT traverse ) DESC LIMIT 1;

Question: what river runs through the most states
SQL:
SELECT river_name FROM river GROUP BY ( river_name ) ORDER BY COUNT ( DISTINCT traverse ) DESC LIMIT 1;

Question: what rivers are in states that border alabama
SQL:
SELECT river_name FROM river WHERE traverse IN ( SELECT border FROM border_info WHERE state_name  =  "alabama" );

Question: which rivers run through states bordering alabama
SQL:
SELECT river_name FROM river WHERE traverse IN ( SELECT border FROM border_info WHERE state_name  =  "alabama" );

Question: what rivers flow through states that alabama borders
SQL:
SELECT river_name FROM river WHERE traverse IN ( SELECT border FROM border_info WHERE state_name  =  "alabama" );

Question: what state bordering oklahoma has the largest population
SQL:
SELECT state_name FROM state WHERE state_name IN ( SELECT border FROM border_info WHERE state_name  =  "oklahoma" ) ORDER BY population DESC LIMIT 1;

Question: which of the states bordering oklahoma has the largest population
SQL:
SELECT state_name FROM state WHERE state_name IN ( SELECT border FROM border_info WHERE state_name  =  "oklahoma" ) ORDER BY population DESC LIMIT 1;

Question: what state that borders oklahoma has the highest population
SQL:
SELECT state_name FROM state WHERE state_name IN ( SELECT border FROM border_info WHERE state_name  =  "oklahoma" ) ORDER BY population DESC LIMIT 1;

Question: what is the most populated state bordering oklahoma
SQL:
SELECT state_name FROM state WHERE state_name IN ( SELECT border FROM border_info WHERE state_name  =  "oklahoma" ) ORDER BY population DESC LIMIT 1;

Question: what state contains the highest point of those the colorado river traverses
SQL:
SELECT state_name FROM highlow WHERE highest_elevation  =  ( SELECT MAX ( highest_elevation ) FROM highlow WHERE state_name IN ( SELECT traverse FROM river WHERE river_name  =  "colorado" ) );

Question: what state has the largest capital
SQL:
SELECT state_name FROM city WHERE population  =  ( SELECT MAX ( t1.population ) FROM state AS t2 JOIN city AS t1 ON t2.capital  =  t1.city_name );

Question: which state 's capital city is the largest
SQL:
SELECT state_name FROM city WHERE population  =  ( SELECT MAX ( t1.population ) FROM state AS t2 JOIN city AS t1 ON t2.capital  =  t1.city_name );

Question: what state has the longest river
SQL:
SELECT DISTINCT traverse FROM river WHERE LENGTH  =  ( SELECT MAX ( DISTINCT LENGTH ) FROM river );

Question: what state has the smallest urban population
SQL:
SELECT state_name FROM city GROUP BY state_name ORDER BY SUM ( population ) LIMIT 1;

Question: what states border states that border colorado
SQL:
SELECT border FROM border_info WHERE state_name IN ( SELECT border FROM border_info WHERE state_name  =  "colorado" );

Question: what states border states that the mississippi runs through
SQL:
SELECT border FROM border_info WHERE state_name IN ( SELECT traverse FROM river WHERE river_name  =  "mississippi" );

Question: which states border states through which the mississippi traverses
SQL:
SELECT border FROM border_info WHERE state_name IN ( SELECT traverse FROM river WHERE river_name  =  "mississippi" );

Question: what states border states which the mississippi runs through
SQL:
SELECT border FROM border_info WHERE state_name IN ( SELECT traverse FROM river WHERE river_name  =  "mississippi" );

Question: what states border texas and have a major river
SQL:
SELECT state_name FROM border_info WHERE border  =  "texas" AND state_name IN ( SELECT traverse FROM river WHERE LENGTH  >  750 );

Question: what states border the most populous state
SQL:
SELECT border FROM border_info WHERE state_name  =  ( SELECT state_name FROM state WHERE population  =  ( SELECT MAX ( population ) FROM state ) );

Question: what are the states that border the state with the greatest population
SQL:
SELECT border FROM border_info WHERE state_name  =  ( SELECT state_name FROM state WHERE population  =  ( SELECT MAX ( population ) FROM state ) );

Question: what states border the state with the smallest area
SQL:
SELECT border FROM border_info WHERE state_name  =  ( SELECT state_name FROM state WHERE area  =  ( SELECT MIN ( area ) FROM state ) );

Question: which states border the state with the smallest area
SQL:
SELECT border FROM border_info WHERE state_name  =  ( SELECT state_name FROM state WHERE area  =  ( SELECT MIN ( area ) FROM state ) );

Question: what states contain at least one major rivers
SQL:
SELECT traverse FROM river WHERE LENGTH  >  750;

Question: where are mountains
SQL:
SELECT state_name FROM mountain;

Question: where is the highest mountain of the united states
SQL:
SELECT state_name FROM mountain WHERE mountain_altitude  =  ( SELECT MAX ( mountain_altitude ) FROM mountain );

Question: which state has the highest peak in the country
SQL:
SELECT state_name FROM mountain WHERE mountain_altitude  =  ( SELECT MAX ( mountain_altitude ) FROM mountain );

Question: where is the smallest city
SQL:
SELECT state_name FROM city WHERE population  =  ( SELECT MIN ( population ) FROM city );

Question: which is the density of the state that the largest river in the united states runs through
SQL:
SELECT density FROM state WHERE state_name IN ( SELECT traverse FROM river WHERE LENGTH  =  ( SELECT MAX ( LENGTH ) FROM river ) );

Question: which is the highest peak not in alaska
SQL:
SELECT mountain_name FROM mountain WHERE mountain_altitude  =  ( SELECT MAX ( mountain_altitude ) FROM mountain WHERE state_name != "alaska" );

Question: which rivers do not run through tennessee
SQL:
SELECT river_name FROM river WHERE river_name NOT IN ( SELECT river_name FROM river WHERE traverse  =  "tennessee" );

Question: what rivers do not run through tennessee
SQL:
SELECT river_name FROM river WHERE river_name NOT IN ( SELECT river_name FROM river WHERE traverse  =  "tennessee" );

Question: which rivers do not run through usa
SQL:
SELECT river_name FROM river WHERE country_name != "usa";

Question: which rivers run through states that border the state with the capital atlanta
SQL:
SELECT river_name FROM river WHERE traverse IN ( SELECT border FROM border_info WHERE state_name IN ( SELECT state_name FROM state WHERE capital  =  "atlanta" ) );

Question: what rivers run through the states that border the state with the capital atlanta
SQL:
SELECT river_name FROM river WHERE traverse IN ( SELECT border FROM border_info WHERE state_name IN ( SELECT state_name FROM state WHERE capital  =  "atlanta" ) );

Question: which state capital has the smallest population
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MIN ( t1.population ) FROM state AS t2 JOIN city AS t1 ON t2.capital  =  t1.city_name );

Question: which state has the highest elevation
SQL:
SELECT state_name FROM highlow WHERE highest_elevation  =  ( SELECT MAX ( highest_elevation ) FROM highlow );

Question: which state has the highest point
SQL:
SELECT state_name FROM highlow WHERE highest_elevation  =  ( SELECT MAX ( highest_elevation ) FROM highlow );

Question: what state has the highest elevation
SQL:
SELECT state_name FROM highlow WHERE highest_elevation  =  ( SELECT MAX ( highest_elevation ) FROM highlow );

Question: in which state does the highest point in usa exist
SQL:
SELECT state_name FROM highlow WHERE highest_elevation  =  ( SELECT MAX ( highest_elevation ) FROM highlow );

Question: what state has highest elevation
SQL:
SELECT state_name FROM highlow WHERE highest_elevation  =  ( SELECT MAX ( highest_elevation ) FROM highlow );

Question: what is the state with the highest elevation in the united states
SQL:
SELECT state_name FROM highlow WHERE highest_elevation  =  ( SELECT MAX ( highest_elevation ) FROM highlow );

Question: what is the state that contains the highest point
SQL:
SELECT state_name FROM highlow WHERE highest_elevation  =  ( SELECT MAX ( highest_elevation ) FROM highlow );

Question: what state contains the highest point in the us
SQL:
SELECT state_name FROM highlow WHERE highest_elevation  =  ( SELECT MAX ( highest_elevation ) FROM highlow );

Question: which state has the lowest elevation
SQL:
SELECT state_name FROM highlow WHERE lowest_elevation  =  ( SELECT MIN ( lowest_elevation ) FROM highlow );

Question: what is the name of the state with the lowest point
SQL:
SELECT state_name FROM highlow WHERE lowest_elevation  =  ( SELECT MIN ( lowest_elevation ) FROM highlow );

Question: what is the state with the lowest point
SQL:
SELECT state_name FROM highlow WHERE lowest_elevation  =  ( SELECT MIN ( lowest_elevation ) FROM highlow );

Question: which state has the lowest point that borders idaho
SQL:
SELECT state_name FROM highlow WHERE lowest_elevation  =  ( SELECT MIN ( lowest_elevation ) FROM highlow WHERE state_name IN ( SELECT border FROM border_info WHERE state_name  =  "idaho" ) ) AND state_name IN ( SELECT border FROM border_info WHERE state_name  =  "idaho" );

Question: which state has the smallest average urban population
SQL:
SELECT state_name FROM city GROUP BY state_name ORDER BY AVG ( population ) LIMIT 1;

Question: which state is mount whitney in
SQL:
SELECT state_name FROM mountain WHERE mountain_name  =  "whitney";

Question: in what state is mount whitney
SQL:
SELECT state_name FROM mountain WHERE mountain_name  =  "whitney";

Question: where is mount whitney
SQL:
SELECT state_name FROM mountain WHERE mountain_name  =  "whitney";

Question: where is mount whitney located
SQL:
SELECT state_name FROM mountain WHERE mountain_name  =  "whitney";

Question: which states have a river
SQL:
SELECT traverse FROM river;

Question: what states have rivers running through them
SQL:
SELECT traverse FROM river;

Question: which states have a major city named austin
SQL:
SELECT state_name FROM city WHERE city_name  =  "austin" AND population  >  150000;

Question: what is the largest city in a state that borders california
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city WHERE state_name IN ( SELECT border FROM border_info WHERE state_name  =  "california" ) ) AND state_name IN ( SELECT border FROM border_info WHERE state_name  =  "california" );

Question: what is the largest city in states that border california
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city WHERE state_name IN ( SELECT border FROM border_info WHERE state_name  =  "california" ) ) AND state_name IN ( SELECT border FROM border_info WHERE state_name  =  "california" );

Question: how many rivers do not traverse the state with the capital albany
SQL:
SELECT COUNT ( river_name ) FROM river WHERE traverse NOT IN ( SELECT state_name FROM state WHERE capital  =  "albany" );

Question: what is the shortest river in texas
SQL:
SELECT river_name FROM river WHERE LENGTH  =  ( SELECT MIN ( LENGTH ) FROM river WHERE traverse  =  "texas" ) AND traverse  =  "texas";

Question: what are the major cities in the smallest state in the us
SQL:
SELECT city_name FROM city WHERE population  >  150000 AND state_name  =  ( SELECT state_name FROM state WHERE area  =  ( SELECT MIN ( area ) FROM state ) );

Question: what is the population of the capital of the largest state through which the mississippi runs
SQL:
SELECT population FROM city WHERE city_name  =  ( SELECT capital FROM state WHERE area  =  ( SELECT MAX ( t1.area ) FROM state AS t1 JOIN river AS t2 ON t1.state_name  =  t2.traverse WHERE t2.river_name  =  "mississippi" ) );

Question: what is the shortest river in the usa
SQL:
SELECT river_name FROM river WHERE LENGTH  =  ( SELECT MIN ( LENGTH ) FROM river );

Question: what is the shortest river
SQL:
SELECT river_name FROM river WHERE LENGTH  =  ( SELECT MIN ( LENGTH ) FROM river );

Question: what is the shortest river in the us
SQL:
SELECT river_name FROM river WHERE LENGTH  =  ( SELECT MIN ( LENGTH ) FROM river );

Question: what is the shortest river in the united states
SQL:
SELECT river_name FROM river WHERE LENGTH  =  ( SELECT MIN ( LENGTH ) FROM river );

Question: which is the shortest river
SQL:
SELECT river_name FROM river WHERE LENGTH  =  ( SELECT MIN ( LENGTH ) FROM river );

Question: what is the capital of the state that borders the state that borders texas
SQL:
SELECT capital FROM state WHERE state_name IN ( SELECT border FROM border_info WHERE state_name IN ( SELECT border FROM border_info WHERE state_name  =  "texas" ) );

Question: what is the smallest city of the smallest state in the us
SQL:
SELECT city_name FROM city WHERE population  =  ( SELECT MIN ( population ) FROM city WHERE state_name IN ( SELECT state_name FROM state WHERE area  =  ( SELECT MIN ( area ) FROM state ) ) ) AND state_name IN ( SELECT state_name FROM state WHERE area  =  ( SELECT MIN ( area ) FROM state ) );

Question: what is the population of the largest state that borders texas
SQL:
SELECT population FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state WHERE state_name IN ( SELECT border FROM border_info WHERE state_name  =  "texas" ) ) AND state_name IN ( SELECT border FROM border_info WHERE state_name  =  "texas" );

Question: what state is salem the capital of
SQL:
SELECT state_name FROM state WHERE capital  =  "salem";

Question: what states capital is salem
SQL:
SELECT state_name FROM state WHERE capital  =  "salem";

Question: salem is the capital of which state
SQL:
SELECT state_name FROM state WHERE capital  =  "salem";

Question: what state has the capital salem
SQL:
SELECT state_name FROM state WHERE capital  =  "salem";

Question: what rivers flow through the state with the largest population
SQL:
SELECT river_name FROM river WHERE traverse IN ( SELECT state_name FROM state WHERE population  =  ( SELECT MAX ( population ) FROM state ) );

Question: what is the largest state that borders the state with the highest population
SQL:
SELECT state_name FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state WHERE state_name IN ( SELECT state_name FROM border_info WHERE border IN ( SELECT state_name FROM state WHERE population  =  ( SELECT MAX ( population ) FROM state ) ) ) ) AND state_name IN ( SELECT state_name FROM border_info WHERE border IN ( SELECT state_name FROM state WHERE population  =  ( SELECT MAX ( population ) FROM state ) ) );

Question: how many rivers are there in us
SQL:
SELECT COUNT ( river_name ) FROM river;

Question: name the 50 capitals in the usa
SQL:
SELECT DISTINCT capital FROM state;

Question: how many states have a city named springfield
SQL:
SELECT COUNT ( state_name ) FROM city WHERE city_name  =  "springfield";

Question: how many states have a city called springfield
SQL:
SELECT COUNT ( state_name ) FROM city WHERE city_name  =  "springfield";

Question: how many states have cities named springfield
SQL:
SELECT COUNT ( state_name ) FROM city WHERE city_name  =  "springfield";

Question: how many states have cities or towns named springfield
SQL:
SELECT COUNT ( state_name ) FROM city WHERE city_name  =  "springfield";

Question: what state borders the state with the smallest population
SQL:
SELECT border FROM border_info WHERE state_name IN ( SELECT state_name FROM state WHERE population  =  ( SELECT MIN ( population ) FROM state ) );

Question: what are the lakes in states bordering texas
SQL:
SELECT lake_name FROM lake WHERE state_name IN ( SELECT border FROM border_info WHERE state_name  =  "texas" );

Question: how many major cities are in texas
SQL:
SELECT COUNT ( city_name ) FROM city WHERE population  >  150000 AND state_name  =  "texas";

Question: how many big cities are in texas
SQL:
SELECT COUNT ( city_name ) FROM city WHERE population  >  150000 AND state_name  =  "texas";

Question: how many major cities are there in texas
SQL:
SELECT COUNT ( city_name ) FROM city WHERE population  >  150000 AND state_name  =  "texas";

Question: how high are the highest points of all the states
SQL:
SELECT highest_elevation FROM highlow;

Question: how many states does the missouri run through
SQL:
SELECT COUNT ( traverse ) FROM river WHERE river_name  =  "missouri";

Question: how many states does the missouri river flow through
SQL:
SELECT COUNT ( traverse ) FROM river WHERE river_name  =  "missouri";

Question: how many states does the missouri river run through
SQL:
SELECT COUNT ( traverse ) FROM river WHERE river_name  =  "missouri";

Question: what is the longest river in the smallest state in the usa
SQL:
SELECT river_name FROM river WHERE LENGTH  =  ( SELECT MAX ( LENGTH ) FROM river WHERE traverse IN ( SELECT state_name FROM state WHERE area  =  ( SELECT MIN ( area ) FROM state ) ) ) AND traverse IN ( SELECT state_name FROM state WHERE area  =  ( SELECT MIN ( area ) FROM state ) );

Question: what is the average population per square km in pennsylvania
SQL:
SELECT population / area FROM state WHERE state_name  =  "pennsylvania";

Question: what states border states that border states that border florida
SQL:
SELECT border FROM border_info WHERE state_name IN ( SELECT border FROM border_info WHERE state_name IN ( SELECT border FROM border_info WHERE state_name  =  "florida" ) );

Question: how many states border at least one other state
SQL:
SELECT COUNT ( DISTINCT state_name ) FROM border_info;

Question: what is the height of the highest mountain in texas
SQL:
SELECT MAX ( DISTINCT highest_elevation ) FROM highlow WHERE state_name  =  "texas";

Question: how many states border colorado and border new mexico
SQL:
SELECT COUNT ( border ) FROM border_info WHERE border IN ( SELECT border FROM border_info WHERE state_name  =  "new mexico" ) AND state_name  =  "colorado";

Question: how many major cities are in states bordering nebraska
SQL:
SELECT COUNT ( city_name ) FROM city WHERE population  >  150000 AND state_name IN ( SELECT border FROM border_info WHERE state_name  =  "nebraska" );

Question: what is the total population of the states that border texas
SQL:
SELECT SUM ( t2.population ) FROM state AS t2 JOIN border_info AS t1 ON t2.state_name  =  t1.border WHERE t1.state_name  =  "texas";

Question: what are the major lakes in united states
SQL:
SELECT lake_name FROM lake WHERE area  >  750;

Question: show me all the major lakes in the us
SQL:
SELECT lake_name FROM lake WHERE area  >  750;

Question: name all the lakes of us
SQL:
SELECT lake_name FROM lake;

Question: how many major rivers cross ohio
SQL:
SELECT COUNT ( river_name ) FROM river WHERE LENGTH  >  750 AND traverse  =  "ohio";

Question: what state has the shortest river
SQL:
SELECT DISTINCT traverse FROM river WHERE LENGTH  =  ( SELECT MIN ( DISTINCT LENGTH ) FROM river );

Question: how many states are next to major rivers
SQL:
SELECT COUNT ( DISTINCT traverse ) FROM river WHERE LENGTH  >  750;

Question: what is the height of mount mckinley
SQL:
SELECT mountain_altitude FROM mountain WHERE mountain_name  =  "mckinley";

Question: what states does the shortest river run through
SQL:
SELECT traverse FROM river WHERE LENGTH  =  ( SELECT MIN ( LENGTH ) FROM river );

Question: what is the highest point in the state with the smallest population
SQL:
SELECT t2.highest_point FROM state AS t1 JOIN highlow AS t2 ON t1.state_name  =  t2.state_name WHERE t1.state_name IN ( SELECT state_name FROM state WHERE population  =  ( SELECT MIN ( population ) FROM state ) );

Question: which rivers run through the state with the lowest elevation in the usa
SQL:
SELECT river_name FROM river WHERE traverse IN ( SELECT state_name FROM highlow WHERE lowest_elevation  =  ( SELECT MIN ( lowest_elevation ) FROM highlow ) );

Question: what rivers run through the state with the lowest point in the usa
SQL:
SELECT river_name FROM river WHERE traverse IN ( SELECT state_name FROM highlow WHERE lowest_elevation  =  ( SELECT MIN ( lowest_elevation ) FROM highlow ) );

Question: what mountains are in alaska
SQL:
SELECT mountain_name FROM mountain WHERE state_name  =  "alaska";

Question: how many states have major rivers
SQL:
SELECT COUNT ( traverse ) FROM river WHERE LENGTH  >  750;

Question: what is the smallest state through which the longest river runs
SQL:
SELECT state_name FROM state WHERE area  =  ( SELECT MIN ( area ) FROM state WHERE state_name IN ( SELECT traverse FROM river WHERE LENGTH  =  ( SELECT MAX ( LENGTH ) FROM river ) ) ) AND state_name IN ( SELECT traverse FROM river WHERE LENGTH  =  ( SELECT MAX ( LENGTH ) FROM river ) );

Question: what is the largest state traversed by the rio grande river
SQL:
SELECT state_name FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state WHERE state_name IN ( SELECT traverse FROM river WHERE river_name  =  "rio grande" ) ) AND state_name IN ( SELECT traverse FROM river WHERE river_name  =  "rio grande" );

Question: what is the largest of the state that the rio grande runs through
SQL:
SELECT state_name FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state WHERE state_name IN ( SELECT traverse FROM river WHERE river_name  =  "rio grande" ) ) AND state_name IN ( SELECT traverse FROM river WHERE river_name  =  "rio grande" );

Question: how many rivers run through the states bordering colorado
SQL:
SELECT COUNT ( river_name ) FROM river WHERE traverse IN ( SELECT border FROM border_info WHERE state_name  =  "colorado" );

Question: what state has no rivers
SQL:
SELECT state_name FROM state WHERE state_name NOT IN ( SELECT traverse FROM river );

Question: what is the capital of the largest state
SQL:
SELECT capital FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state );

Question: what is the capital city of the largest state in the us
SQL:
SELECT capital FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state );

Question: how many cities are in texas
SQL:
SELECT COUNT ( city_name ) FROM city WHERE state_name  =  "texas";

Question: how many cities does texas have
SQL:
SELECT COUNT ( city_name ) FROM city WHERE state_name  =  "texas";

Question: what is the area of the states
SQL:
SELECT area FROM state;

Question: how many states in the us does the shortest river run through
SQL:
SELECT COUNT ( DISTINCT traverse ) FROM river WHERE LENGTH  =  ( SELECT MIN ( DISTINCT LENGTH ) FROM river );

Question: what rivers flow through states that border the state with the largest population
SQL:
SELECT river_name FROM river WHERE traverse IN ( SELECT border FROM border_info WHERE state_name IN ( SELECT state_name FROM state WHERE population  =  ( SELECT MAX ( population ) FROM state ) ) );

Question: what are the major cities in the largest state
SQL:
SELECT city_name FROM city WHERE population  >  150000 AND state_name  =  ( SELECT state_name FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state ) );

Question: what is the area of the smallest state
SQL:
SELECT area FROM state WHERE area  =  ( SELECT MIN ( area ) FROM state );

Question: which states border the longest river in the usa
SQL:
SELECT border FROM border_info WHERE state_name IN ( SELECT traverse FROM river WHERE LENGTH  =  ( SELECT MAX ( LENGTH ) FROM river ) );

Question: what is the population density of the state with the smallest population
SQL:
SELECT density FROM state WHERE population  =  ( SELECT MIN ( population ) FROM state );

Question: how many states border the mississippi river
SQL:
SELECT COUNT ( DISTINCT border ) FROM border_info WHERE state_name IN ( SELECT traverse FROM river WHERE river_name  =  "mississippi" );

Question: what states have a capital that is the highest point in the state
SQL:
SELECT t1.state_name FROM state AS t1 JOIN highlow AS t2 ON t1.capital  =  t2.highest_point;

Question: what is the population of the capital of the smallest state
SQL:
SELECT population FROM city WHERE city_name  =  ( SELECT capital FROM state WHERE area  =  ( SELECT MIN ( area ) FROM state ) );

Question: what is the population of the capital of the largest state
SQL:
SELECT population FROM city WHERE city_name  =  ( SELECT capital FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state ) );

Question: what is the lowest point of the state with the largest area
SQL:
SELECT t2.lowest_point FROM state AS t1 JOIN highlow AS t2 ON t1.state_name  =  t2.state_name WHERE t1.state_name IN ( SELECT state_name FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state ) );

Question: what states border states that border the state with the largest population
SQL:
SELECT t1.border FROM border_info AS t2 JOIN border_info AS t1 ON t2.border  =  t1.state_name WHERE t2.state_name IN ( SELECT state_name FROM state WHERE population  =  ( SELECT MAX ( population ) FROM state ) );

Question: what is the size of the largest state in the usa
SQL:
SELECT MAX ( area ) FROM state;

Question: what is the area of the largest state
SQL:
SELECT MAX ( area ) FROM state;

Question: which capitals are not major cities
SQL:
SELECT t2.capital FROM state AS t2 JOIN city AS t1 ON t2.capital  =  t1.city_name WHERE t1.population  <=  150000;

Question: give me the cities in usa
SQL:
SELECT city_name FROM city;

Question: what is the highest point of the state with the largest area
SQL:
SELECT t2.highest_point FROM state AS t1 JOIN highlow AS t2 ON t1.state_name  =  t2.state_name WHERE t1.state_name IN ( SELECT state_name FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state ) );

Question: where is massachusetts
SQL:
SELECT country_name FROM state WHERE state_name  =  "massachusetts";

Question: what state has the largest urban population
SQL:
SELECT state_name FROM city GROUP BY state_name ORDER BY SUM ( population ) DESC LIMIT 1;

Question: what are the major rivers in the us
SQL:
SELECT river_name FROM river;

Question: how many cities named austin are there in the usa
SQL:
SELECT COUNT ( city_name ) FROM city WHERE city_name  =  "austin";

Question: how many people live in the smallest state bordering wyoming
SQL:
SELECT population FROM state WHERE population  =  ( SELECT MAX ( population ) FROM state WHERE state_name IN ( SELECT border FROM border_info WHERE state_name  =  "wyoming" ) ) AND state_name IN ( SELECT border FROM border_info WHERE state_name  =  "wyoming" );

Question: what is the length of the colorado river in texas
SQL:
SELECT LENGTH FROM river WHERE river_name  =  "colorado" AND traverse  =  "texas";

Question: what is the population density in the state with capital austin
SQL:
SELECT density FROM state WHERE capital  =  "austin";

Question: how long is the shortest river in the usa
SQL:
SELECT LENGTH FROM river WHERE LENGTH  =  ( SELECT MIN ( LENGTH ) FROM river );

Question: what is the elevation of death valley
SQL:
SELECT lowest_elevation FROM highlow WHERE lowest_point  =  "death valley";

Question: what is the average population of the us by state
SQL:
SELECT AVG ( population ) FROM state;

Question: what rivers flow through the largest state
SQL:
SELECT river_name FROM river WHERE traverse IN ( SELECT state_name FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state ) );

Question: what states border states that border states that border states that border texas
SQL:
SELECT t1.border FROM border_info AS t2 JOIN border_info AS t1 ON t2.border  =  t1.state_name JOIN border_info AS t3 ON t3.border  =  t2.state_name JOIN border_info AS t4 ON t4.border  =  t3.state_name WHERE t4.state_name  =  "texas";

Question: how many states border on the state whose capital is boston
SQL:
SELECT COUNT ( border ) FROM border_info WHERE state_name  =  ( SELECT state_name FROM state WHERE capital  =  "boston" );

Question: what are the major cities in the states through which the major river in virginia runs
SQL:
SELECT city_name FROM city WHERE population  >  150000 AND state_name IN ( SELECT traverse FROM river WHERE river_name IN ( SELECT river_name FROM river WHERE LENGTH  >  750 AND traverse  =  "virginia" ) );

Question: which states does not border texas
SQL:
SELECT state_name FROM state WHERE state_name NOT IN ( SELECT border FROM border_info WHERE state_name  =  "texas" );

Question: how many states border the largest state
SQL:
SELECT COUNT ( border ) FROM border_info WHERE state_name  =  ( SELECT state_name FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state ) );

Question: which state is the largest city in montana in
SQL:
SELECT state_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city WHERE state_name  =  "montana" ) AND state_name  =  "montana";

Question: what is capital of the state with the lowest point
SQL:
SELECT t1.capital FROM highlow AS t2 JOIN state AS t1 ON t1.state_name  =  t2.state_name WHERE t2.lowest_elevation  =  ( SELECT MIN ( lowest_elevation ) FROM highlow ) ;

Question: what is the biggest american city in a state with a river
SQL:
SELECT DISTINCT t1.city_name FROM city AS t1 JOIN river AS t2 ON t2.traverse  =  t1.state_name WHERE t1.population  =  ( SELECT MAX ( t1.population ) FROM river AS t2 JOIN city AS t1 ON t2.traverse  =  t1.state_name );

Question: how many rivers are in the state with the largest population
SQL:
SELECT COUNT ( t2.river_name ) FROM river AS t2 JOIN state AS t1 ON t1.state_name  =  t2.traverse WHERE t1.state_name  =  ( SELECT state_name FROM state WHERE population  =  ( SELECT MAX ( population ) FROM state ) );

Question: what is the largest state that borders the state with the lowest point in the usa
SQL:
SELECT t1.state_name FROM highlow AS t3 JOIN border_info AS t1 ON t3.state_name  =  t1.border JOIN state AS t2 ON t2.state_name  =  t1.border WHERE t3.lowest_elevation  =  ( SELECT MIN ( lowest_elevation ) FROM highlow ) ORDER BY t2.area DESC LIMIT 1;

Question: what is the capital of the state with the highest point
SQL:
SELECT t1.capital FROM highlow AS t2 JOIN state AS t1 ON t1.state_name  =  t2.state_name WHERE t2.highest_elevation  =  ( SELECT MAX ( highest_elevation ) FROM highlow );

Question: what is the capital of the state with the highest elevation
SQL:
SELECT t1.capital FROM highlow AS t2 JOIN state AS t1 ON t1.state_name  =  t2.state_name WHERE t2.highest_elevation  =  ( SELECT MAX ( highest_elevation ) FROM highlow );

Question: what is the highest point in the smallest state
SQL:
SELECT t2.highest_point FROM highlow AS t2 JOIN state AS t1 ON t1.state_name  =  t2.state_name WHERE t1.area  =  ( SELECT MIN ( area ) FROM state );

Question: how many rivers are in the state with the highest point.
SQL:
SELECT COUNT ( t1.river_name ) FROM highlow AS t2 JOIN river AS t1 ON t1.traverse  =  t2.state_name WHERE t2.highest_elevation  =  ( SELECT MAX ( highest_elevation ) FROM highlow );

Question: how high is the highest point in the largest state
SQL:
SELECT t2.highest_elevation FROM highlow AS t2 JOIN state AS t1 ON t1.state_name  =  t2.state_name WHERE t1.area  =  ( SELECT MAX ( area ) FROM state );

Question: what is the longest river in the state with the highest point
SQL:
SELECT t1.river_name FROM highlow AS t2 JOIN river AS t1 ON t1.traverse  =  t2.state_name WHERE t2.highest_elevation  =  ( SELECT MAX ( highest_elevation ) FROM highlow ) ORDER BY t1.length DESC LIMIT 1;