query stringlengths 58 502 | question stringlengths 15 99 | answer stringlengths 50 10k | table_names list | tables list | source stringlengths 1.43k 24.4k | target stringlengths 23 11.2k |
|---|---|---|---|---|---|---|
SELECT state.state_name FROM state WHERE state.area=(SELECT min(state.area) FROM state WHERE state.state_name IN (SELECT border_info.border FROM border_info WHERE border_info.state_name = 'texas') ) AND state.state_name IN ((SELECT border_info.border FROM border_info WHERE border_info.state_name = 'texas')); | which state has the smallest area that borders texas ? | {"columns":["state_name"],"index":[0],"data":[["louisiana"]]} | [
"state",
"border_info"
] | [
"{\"columns\":[\"state_name\",\"population\",\"area\",\"country_name\",\"capital\",\"density\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",3894000,51700.0,\"usa\",\"montgomery\",75.... | which state has the smallest area that borders texas ? <table_name> : state col : state_name | population | area | country_name | capital | density row 1 : alabama | 3894000 | 51700 | usa | montgomery | 75.3191489362 row 2 : alaska | 401800 | 591000 | usa | juneau | 0.6798646362 row 3 : arizona | 2718000 | 114000 | usa... | col : state_name row 1 : louisiana |
SELECT highlow.state_name FROM highlow WHERE highlow.lowest_elevation=(SELECT min(highlow.lowest_elevation) FROM highlow,river WHERE(river.river_name='mississippi') AND(river.traverse=highlow.state_name)); | of the states washed by the mississippi river which has the lowest point | {"columns":["state_name"],"index":[0],"data":[["louisiana"]]} | [
"highlow"
] | [
"{\"columns\":[\"state_name\",\"highest_elevation\",\"lowest_point\",\"highest_point\",\"lowest_elevation\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",\"734\",\"gulf of mexico\",\"... | of the states washed by the mississippi river which has the lowest point <table_name> : highlow col : state_name | highest_elevation | lowest_point | highest_point | lowest_elevation row 1 : alabama | 734 | gulf of mexico | cheaha mountain | 0 row 2 : alaska | 6194 | pacific ocean | mount mckinley | 0 row 3 : arizona |... | col : state_name row 1 : louisiana |
SELECT state.population FROM state WHERE state.state_name='montana'; | what is the population of montana | {"columns":["population"],"index":[0],"data":[[786700]]} | [
"state"
] | [
"{\"columns\":[\"state_name\",\"population\",\"area\",\"country_name\",\"capital\",\"density\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",3894000,51700.0,\"usa\",\"montgomery\",75.... | what is the population of montana <table_name> : state col : state_name | population | area | country_name | capital | density row 1 : alabama | 3894000 | 51700 | usa | montgomery | 75.3191489362 row 2 : alaska | 401800 | 591000 | usa | juneau | 0.6798646362 row 3 : arizona | 2718000 | 114000 | usa | phoenix | 23.84210... | col : population row 1 : 786700 |
SELECT river.river_name FROM river WHERE river.traverse IN(SELECT border_info.border FROM border_info WHERE border_info.state_name IN(SELECT state.state_name FROM state WHERE state.capital='atlanta')); | what rivers run through the states that border the state with the capital atlanta | {"columns":["river_name"],"index":[0,1,2,3,4,5,6,7,8,9],"data":[["mississippi"],["chattahoochee"],["tennessee"],["tennessee"],["tennessee"],["cumberland"],["roanoke"],["tombigbee"],["wateree catawba"],["wateree catawba"]]} | [
"river",
"state",
"border_info"
] | [
"{\"columns\":[\"river_name\",\"length\",\"country_name\",\"traverse\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,... | what rivers run through the states that border the state with the capital atlanta <table_name> : river col : river_name | length | country_name | traverse row 1 : mississippi | 3778 | usa | minnesota row 2 : mississippi | 3778 | usa | wisconsin row 3 : mississippi | 3778 | usa | iowa row 4 : mississippi | 3778 | usa | ... | col : river_name row 1 : mississippi row 2 : chattahoochee row 3 : tennessee row 4 : tennessee row 5 : tennessee row 6 : cumberland row 7 : roanoke row 8 : tombigbee row 9 : wateree catawba row 10 : wateree catawba |
SELECT highlow.lowest_elevation FROM highlow WHERE highlow.state_name='pennsylvania'; | what is the lowest elevation in pennsylvania | {"columns":["lowest_elevation"],"index":[0],"data":[["0"]]} | [
"highlow"
] | [
"{\"columns\":[\"state_name\",\"highest_elevation\",\"lowest_point\",\"highest_point\",\"lowest_elevation\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",\"734\",\"gulf of mexico\",\"... | what is the lowest elevation in pennsylvania <table_name> : highlow col : state_name | highest_elevation | lowest_point | highest_point | lowest_elevation row 1 : alabama | 734 | gulf of mexico | cheaha mountain | 0 row 2 : alaska | 6194 | pacific ocean | mount mckinley | 0 row 3 : arizona | 3851 | colorado river | hum... | col : lowest_elevation row 1 : 0 |
SELECT city.state_name FROM city WHERE city.city_name='denver'; | which state is the city denver located in | {"columns":["state_name"],"index":[0],"data":[["colorado"]]} | [
"city"
] | [
"{\"columns\":[\"city_name\",\"population\",\"country_name\",\"state_name\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,7... | which state is the city denver located in <table_name> : city col : city_name | population | country_name | state_name row 1 : birmingham | 284413 | usa | alabama row 2 : mobile | 200452 | usa | alabama row 3 : montgomery | 177857 | usa | alabama row 4 : huntsville | 142513 | usa | alabama row 5 : tuscaloosa | 75143 | ... | col : state_name row 1 : colorado |
SELECT state.population FROM state WHERE state.state_name='new hampshire'; | how many people live in new hampshire | {"columns":["population"],"index":[0],"data":[[920600]]} | [
"state"
] | [
"{\"columns\":[\"state_name\",\"population\",\"area\",\"country_name\",\"capital\",\"density\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",3894000,51700.0,\"usa\",\"montgomery\",75.... | how many people live in new hampshire <table_name> : state col : state_name | population | area | country_name | capital | density row 1 : alabama | 3894000 | 51700 | usa | montgomery | 75.3191489362 row 2 : alaska | 401800 | 591000 | usa | juneau | 0.6798646362 row 3 : arizona | 2718000 | 114000 | usa | phoenix | 23.8... | col : population row 1 : 920600 |
SELECT count(city.city_name) FROM city WHERE city.state_name='louisiana'; | how many cities are in louisiana | {"columns":["count(city.city_name)"],"index":[0],"data":[[8]]} | [
"city"
] | [
"{\"columns\":[\"city_name\",\"population\",\"country_name\",\"state_name\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,7... | how many cities are in louisiana <table_name> : city col : city_name | population | country_name | state_name row 1 : birmingham | 284413 | usa | alabama row 2 : mobile | 200452 | usa | alabama row 3 : montgomery | 177857 | usa | alabama row 4 : huntsville | 142513 | usa | alabama row 5 : tuscaloosa | 75143 | usa | ala... | col : count(city.city_name) row 1 : 8 |
SELECT count(river.river_name) FROM river WHERE river.traverse='texas' AND river.length > all(SELECT river.length FROM river WHERE river.river_name='red'); | how many rivers in texas are longer than the red | {"columns":["count(river.river_name)"],"index":[0],"data":[[1]]} | [
"river"
] | [
"{\"columns\":[\"river_name\",\"length\",\"country_name\",\"traverse\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,... | how many rivers in texas are longer than the red <table_name> : river col : river_name | length | country_name | traverse row 1 : mississippi | 3778 | usa | minnesota row 2 : mississippi | 3778 | usa | wisconsin row 3 : mississippi | 3778 | usa | iowa row 4 : mississippi | 3778 | usa | illinois row 5 : mississippi | 37... | col : count(river.river_name) row 1 : 1 |
SELECT state.density FROM state WHERE state.area=(SELECT min(state.area) FROM state); | what is the population density of the smallest state | {"columns":["density"],"index":[0],"data":[[580.0]]} | [
"state"
] | [
"{\"columns\":[\"state_name\",\"population\",\"area\",\"country_name\",\"capital\",\"density\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",3894000,51700.0,\"usa\",\"montgomery\",75.... | what is the population density of the smallest state <table_name> : state col : state_name | population | area | country_name | capital | density row 1 : alabama | 3894000 | 51700 | usa | montgomery | 75.3191489362 row 2 : alaska | 401800 | 591000 | usa | juneau | 0.6798646362 row 3 : arizona | 2718000 | 114000 | usa |... | col : density row 1 : 580 |
SELECT mountain.mountain_name FROM mountain WHERE mountain.mountain_altitude=(SELECT max(mountain.mountain_altitude) FROM mountain); | what is the tallest mountain in the united states | {"columns":["mountain_name"],"index":[0],"data":[["mckinley"]]} | [
"mountain"
] | [
"{\"columns\":[\"mountain_name\",\"mountain_altitude\",\"country_name\",\"state_name\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49],\"data\":[[\"mckinley\",6194,\"usa\",\"alaska\"],[\"st. elias\",5489,\"usa\"... | what is the tallest mountain in the united states <table_name> : mountain col : mountain_name | mountain_altitude | country_name | state_name row 1 : mckinley | 6194 | usa | alaska row 2 : st. elias | 5489 | usa | alaska row 3 : foraker | 5304 | usa | alaska row 4 : bona | 5044 | usa | alaska row 5 : blackburn | 4996 |... | col : mountain_name row 1 : mckinley |
SELECT city.city_name FROM city WHERE city.state_name='wyoming' AND city.population=(SELECT max(city.population) FROM city WHERE city.state_name='wyoming'); | what is the most populous city in wyoming | {"columns":["city_name"],"index":[0],"data":[["casper"]]} | [
"city"
] | [
"{\"columns\":[\"city_name\",\"population\",\"country_name\",\"state_name\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,7... | what is the most populous city in wyoming <table_name> : city col : city_name | population | country_name | state_name row 1 : birmingham | 284413 | usa | alabama row 2 : mobile | 200452 | usa | alabama row 3 : montgomery | 177857 | usa | alabama row 4 : huntsville | 142513 | usa | alabama row 5 : tuscaloosa | 75143 | ... | col : city_name row 1 : casper |
SELECT count(border_info.border) FROM border_info WHERE border_info.state_name='kentucky'; | what is the number of neighboring states for kentucky | {"columns":["count(border_info.border)"],"index":[0],"data":[[7]]} | [
"border_info"
] | [
"{\"columns\":[\"state_name\",\"border\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,... | what is the number of neighboring states for kentucky <table_name> : border_info col : state_name | border row 1 : alabama | tennessee row 2 : alabama | georgia row 3 : alabama | florida row 4 : alabama | mississippi row 5 : arizona | utah row 6 : arizona | colorado row 7 : arizona | new mexico row 8 : arizona | califo... | col : count(border_info.border) row 1 : 7 |
SELECT state.capital FROM state, city WHERE state.capital = city.city_name AND city.population <= 150000; | which capitals are not major cities ? | {"columns":["capital"],"index":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18],"data":[["concord"],["richmond"],["hartford"],["tallahassee"],["albany"],["boise"],["springfield"],["topeka"],["lansing"],["springfield"],["columbia"],["trenton"],["albany"],["raleigh"],["springfield"],["salem"],["columbia"],["charleston"],... | [
"city"
] | [
"{\"columns\":[\"city_name\",\"population\",\"country_name\",\"state_name\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,7... | which capitals are not major cities ? <table_name> : city col : city_name | population | country_name | state_name row 1 : birmingham | 284413 | usa | alabama row 2 : mobile | 200452 | usa | alabama row 3 : montgomery | 177857 | usa | alabama row 4 : huntsville | 142513 | usa | alabama row 5 : tuscaloosa | 75143 | usa ... | col : capital row 1 : concord row 2 : richmond row 3 : hartford row 4 : tallahassee row 5 : albany row 6 : boise row 7 : springfield row 8 : topeka row 9 : lansing row 10 : springfield row 11 : columbia row 12 : trenton row 13 : albany row 14 : raleigh row 15 : springfield row 16 : salem row 17 : columbia row 18 : char... |
SELECT border_info.border FROM border_info WHERE border_info.state_name='delaware'; | what states border delaware | {"columns":["border"],"index":[0,1,2],"data":[["pennsylvania"],["new jersey"],["maryland"]]} | [
"border_info"
] | [
"{\"columns\":[\"state_name\",\"border\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,... | what states border delaware <table_name> : border_info col : state_name | border row 1 : alabama | tennessee row 2 : alabama | georgia row 3 : alabama | florida row 4 : alabama | mississippi row 5 : arizona | utah row 6 : arizona | colorado row 7 : arizona | new mexico row 8 : arizona | california row 9 : arizona | nev... | col : border row 1 : pennsylvania row 2 : new jersey row 3 : maryland |
SELECT state.state_name FROM state WHERE state.density=(SELECT max(state.density) FROM state); | which state has the largest density | {"columns":["state_name"],"index":[0],"data":[["new jersey"]]} | [
"state"
] | [
"{\"columns\":[\"state_name\",\"population\",\"area\",\"country_name\",\"capital\",\"density\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",3894000,51700.0,\"usa\",\"montgomery\",75.... | which state has the largest density <table_name> : state col : state_name | population | area | country_name | capital | density row 1 : alabama | 3894000 | 51700 | usa | montgomery | 75.3191489362 row 2 : alaska | 401800 | 591000 | usa | juneau | 0.6798646362 row 3 : arizona | 2718000 | 114000 | usa | phoenix | 23.842... | col : state_name row 1 : new jersey |
SELECT city.city_name FROM city WHERE city.population=(SELECT max(city.population) FROM city); | what city has the largest population | {"columns":["city_name"],"index":[0],"data":[["new york"]]} | [
"city"
] | [
"{\"columns\":[\"city_name\",\"population\",\"country_name\",\"state_name\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,7... | what city has the largest population <table_name> : city col : city_name | population | country_name | state_name row 1 : birmingham | 284413 | usa | alabama row 2 : mobile | 200452 | usa | alabama row 3 : montgomery | 177857 | usa | alabama row 4 : huntsville | 142513 | usa | alabama row 5 : tuscaloosa | 75143 | usa |... | col : city_name row 1 : new york |
SELECT river.traverse FROM river WHERE river.river_name='mississippi'; | which states does the mississippi river run through | {"columns":["traverse"],"index":[0,1,2,3,4,5,6,7,8,9,10],"data":[["minnesota"],["wisconsin"],["iowa"],["illinois"],["missouri"],["kentucky"],["tennessee"],["arkansas"],["mississippi"],["louisiana"],["louisiana"]]} | [
"river"
] | [
"{\"columns\":[\"river_name\",\"length\",\"country_name\",\"traverse\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,... | which states does the mississippi river run through <table_name> : river col : river_name | length | country_name | traverse row 1 : mississippi | 3778 | usa | minnesota row 2 : mississippi | 3778 | usa | wisconsin row 3 : mississippi | 3778 | usa | iowa row 4 : mississippi | 3778 | usa | illinois row 5 : mississippi |... | col : traverse row 1 : minnesota row 2 : wisconsin row 3 : iowa row 4 : illinois row 5 : missouri row 6 : kentucky row 7 : tennessee row 8 : arkansas row 9 : mississippi row 10 : louisiana row 11 : louisiana |
SELECT city.city_name FROM city WHERE city.state_name='missouri' AND city.population=(SELECT max(city.population) FROM city WHERE city.state_name='missouri'); | what is the largest city in missouri | {"columns":["city_name"],"index":[0],"data":[["st. louis"]]} | [
"city"
] | [
"{\"columns\":[\"city_name\",\"population\",\"country_name\",\"state_name\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,7... | what is the largest city in missouri <table_name> : city col : city_name | population | country_name | state_name row 1 : birmingham | 284413 | usa | alabama row 2 : mobile | 200452 | usa | alabama row 3 : montgomery | 177857 | usa | alabama row 4 : huntsville | 142513 | usa | alabama row 5 : tuscaloosa | 75143 | usa |... | col : city_name row 1 : st. louis |
SELECT state.population FROM state WHERE state.state_name='new york'; | how many people live in new york | {"columns":["population"],"index":[0],"data":[[17558000]]} | [
"state"
] | [
"{\"columns\":[\"state_name\",\"population\",\"area\",\"country_name\",\"capital\",\"density\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",3894000,51700.0,\"usa\",\"montgomery\",75.... | how many people live in new york <table_name> : state col : state_name | population | area | country_name | capital | density row 1 : alabama | 3894000 | 51700 | usa | montgomery | 75.3191489362 row 2 : alaska | 401800 | 591000 | usa | juneau | 0.6798646362 row 3 : arizona | 2718000 | 114000 | usa | phoenix | 23.842105... | col : population row 1 : 17558000 |
SELECT mountain.state_name FROM mountain WHERE mountain.mountain_name='whitney'; | where is mount whitney located | {"columns":["state_name"],"index":[0],"data":[["california"]]} | [
"mountain"
] | [
"{\"columns\":[\"mountain_name\",\"mountain_altitude\",\"country_name\",\"state_name\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49],\"data\":[[\"mckinley\",6194,\"usa\",\"alaska\"],[\"st. elias\",5489,\"usa\"... | where is mount whitney located <table_name> : mountain col : mountain_name | mountain_altitude | country_name | state_name row 1 : mckinley | 6194 | usa | alaska row 2 : st. elias | 5489 | usa | alaska row 3 : foraker | 5304 | usa | alaska row 4 : bona | 5044 | usa | alaska row 5 : blackburn | 4996 | usa | alaska row 6... | col : state_name row 1 : california |
SELECT highlow.highest_point,highlow.state_name FROM highlow WHERE highlow.lowest_elevation=0; | what is the highest point in each state whose lowest point is sea level | {"columns":["highest_point","state_name"],"index":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22],"data":[["cheaha mountain","alabama"],["mount mckinley","alaska"],["mount frissell","connecticut"],["centerville","delaware"],["tenleytown","district of columbia"],["walton county","florida"],["brasstown bald"... | [
"highlow"
] | [
"{\"columns\":[\"state_name\",\"highest_elevation\",\"lowest_point\",\"highest_point\",\"lowest_elevation\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",\"734\",\"gulf of mexico\",\"... | what is the highest point in each state whose lowest point is sea level <table_name> : highlow col : state_name | highest_elevation | lowest_point | highest_point | lowest_elevation row 1 : alabama | 734 | gulf of mexico | cheaha mountain | 0 row 2 : alaska | 6194 | pacific ocean | mount mckinley | 0 row 3 : arizona | ... | col : highest_point | state_name row 1 : cheaha mountain | alabama row 2 : mount mckinley | alaska row 3 : mount frissell | connecticut row 4 : centerville | delaware row 5 : tenleytown | district of columbia row 6 : walton county | florida row 7 : brasstown bald | georgia row 8 : mauna kea | hawaii row 9 : mount katah... |
SELECT city.population FROM city WHERE city.city_name='portland' AND city.state_name='maine'; | what is the population of portland maine | {"columns":["population"],"index":[0],"data":[[61572]]} | [
"city"
] | [
"{\"columns\":[\"city_name\",\"population\",\"country_name\",\"state_name\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,7... | what is the population of portland maine <table_name> : city col : city_name | population | country_name | state_name row 1 : birmingham | 284413 | usa | alabama row 2 : mobile | 200452 | usa | alabama row 3 : montgomery | 177857 | usa | alabama row 4 : huntsville | 142513 | usa | alabama row 5 : tuscaloosa | 75143 | u... | col : population row 1 : 61572 |
SELECT highlow.highest_point FROM highlow,state WHERE highlow.state_name=state.state_name AND state.state_name IN(SELECT state.state_name FROM state WHERE state.area=(SELECT max(state.area) FROM state)); | what is the highest point of the state with the largest area | {"columns":["highest_point"],"index":[0],"data":[["mount mckinley"]]} | [
"state"
] | [
"{\"columns\":[\"state_name\",\"population\",\"area\",\"country_name\",\"capital\",\"density\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",3894000,51700.0,\"usa\",\"montgomery\",75.... | what is the highest point of the state with the largest area <table_name> : state col : state_name | population | area | country_name | capital | density row 1 : alabama | 3894000 | 51700 | usa | montgomery | 75.3191489362 row 2 : alaska | 401800 | 591000 | usa | juneau | 0.6798646362 row 3 : arizona | 2718000 | 114000... | col : highest_point row 1 : mount mckinley |
SELECT state.country_name FROM state WHERE state.state_name='new hampshire'; | where is new hampshire | {"columns":["country_name"],"index":[0],"data":[["usa"]]} | [
"state"
] | [
"{\"columns\":[\"state_name\",\"population\",\"area\",\"country_name\",\"capital\",\"density\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",3894000,51700.0,\"usa\",\"montgomery\",75.... | where is new hampshire <table_name> : state col : state_name | population | area | country_name | capital | density row 1 : alabama | 3894000 | 51700 | usa | montgomery | 75.3191489362 row 2 : alaska | 401800 | 591000 | usa | juneau | 0.6798646362 row 3 : arizona | 2718000 | 114000 | usa | phoenix | 23.8421052632 row 4... | col : country_name row 1 : usa |
SELECT state.country_name FROM state WHERE state.state_name='massachusetts'; | where is massachusetts | {"columns":["country_name"],"index":[0],"data":[["usa"]]} | [
"state"
] | [
"{\"columns\":[\"state_name\",\"population\",\"area\",\"country_name\",\"capital\",\"density\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",3894000,51700.0,\"usa\",\"montgomery\",75.... | where is massachusetts <table_name> : state col : state_name | population | area | country_name | capital | density row 1 : alabama | 3894000 | 51700 | usa | montgomery | 75.3191489362 row 2 : alaska | 401800 | 591000 | usa | juneau | 0.6798646362 row 3 : arizona | 2718000 | 114000 | usa | phoenix | 23.8421052632 row 4... | col : country_name row 1 : usa |
SELECT border_info.border FROM border_info WHERE border_info.state_name='iowa'; | states bordering iowa | {"columns":["border"],"index":[0,1,2,3,4,5],"data":[["minnesota"],["wisconsin"],["illinois"],["missouri"],["nebraska"],["south dakota"]]} | [
"border_info"
] | [
"{\"columns\":[\"state_name\",\"border\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,... | states bordering iowa <table_name> : border_info col : state_name | border row 1 : alabama | tennessee row 2 : alabama | georgia row 3 : alabama | florida row 4 : alabama | mississippi row 5 : arizona | utah row 6 : arizona | colorado row 7 : arizona | new mexico row 8 : arizona | california row 9 : arizona | nevada ro... | col : border row 1 : minnesota row 2 : wisconsin row 3 : illinois row 4 : missouri row 5 : nebraska row 6 : south dakota |
SELECT border_info.border FROM border_info WHERE border_info.state_name='alabama'; | which states border alabama | {"columns":["border"],"index":[0,1,2,3],"data":[["tennessee"],["georgia"],["florida"],["mississippi"]]} | [
"border_info"
] | [
"{\"columns\":[\"state_name\",\"border\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,... | which states border alabama <table_name> : border_info col : state_name | border row 1 : alabama | tennessee row 2 : alabama | georgia row 3 : alabama | florida row 4 : alabama | mississippi row 5 : arizona | utah row 6 : arizona | colorado row 7 : arizona | new mexico row 8 : arizona | california row 9 : arizona | nev... | col : border row 1 : tennessee row 2 : georgia row 3 : florida row 4 : mississippi |
SELECT city.population FROM city WHERE city.city_name='spokane' AND city.state_name='washington'; | how many people live in spokane washington | {"columns":["population"],"index":[0],"data":[[171300]]} | [
"city"
] | [
"{\"columns\":[\"city_name\",\"population\",\"country_name\",\"state_name\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,7... | how many people live in spokane washington <table_name> : city col : city_name | population | country_name | state_name row 1 : birmingham | 284413 | usa | alabama row 2 : mobile | 200452 | usa | alabama row 3 : montgomery | 177857 | usa | alabama row 4 : huntsville | 142513 | usa | alabama row 5 : tuscaloosa | 75143 |... | col : population row 1 : 171300 |
SELECT highlow.highest_elevation FROM highlow WHERE highlow.state_name='louisiana'; | how high is the highest point of louisiana | {"columns":["highest_elevation"],"index":[0],"data":[["163"]]} | [
"highlow"
] | [
"{\"columns\":[\"state_name\",\"highest_elevation\",\"lowest_point\",\"highest_point\",\"lowest_elevation\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",\"734\",\"gulf of mexico\",\"... | how high is the highest point of louisiana <table_name> : highlow col : state_name | highest_elevation | lowest_point | highest_point | lowest_elevation row 1 : alabama | 734 | gulf of mexico | cheaha mountain | 0 row 2 : alaska | 6194 | pacific ocean | mount mckinley | 0 row 3 : arizona | 3851 | colorado river | humph... | col : highest_elevation row 1 : 163 |
SELECT river.river_name FROM river WHERE river.length=(SELECT max(river.length) FROM river); | what is the longest river in the us | {"columns":["river_name"],"index":[0,1,2,3,4,5,6],"data":[["missouri"],["missouri"],["missouri"],["missouri"],["missouri"],["missouri"],["missouri"]]} | [
"river"
] | [
"{\"columns\":[\"river_name\",\"length\",\"country_name\",\"traverse\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,... | what is the longest river in the us <table_name> : river col : river_name | length | country_name | traverse row 1 : mississippi | 3778 | usa | minnesota row 2 : mississippi | 3778 | usa | wisconsin row 3 : mississippi | 3778 | usa | iowa row 4 : mississippi | 3778 | usa | illinois row 5 : mississippi | 3778 | usa | mi... | col : river_name row 1 : missouri row 2 : missouri row 3 : missouri row 4 : missouri row 5 : missouri row 6 : missouri row 7 : missouri |
SELECT river.river_name FROM river WHERE river.traverse='texas'; | what river flows through texas | {"columns":["river_name"],"index":[0,1,2,3,4],"data":[["red"],["canadian"],["rio grande"],["pecos"],["washita"]]} | [
"river"
] | [
"{\"columns\":[\"river_name\",\"length\",\"country_name\",\"traverse\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,... | what river flows through texas <table_name> : river col : river_name | length | country_name | traverse row 1 : mississippi | 3778 | usa | minnesota row 2 : mississippi | 3778 | usa | wisconsin row 3 : mississippi | 3778 | usa | iowa row 4 : mississippi | 3778 | usa | illinois row 5 : mississippi | 3778 | usa | missour... | col : river_name row 1 : red row 2 : canadian row 3 : rio grande row 4 : pecos row 5 : washita |
SELECT state.area FROM state WHERE state.area=(SELECT max(state.area) FROM state); | what is the area of the largest state | {"columns":["area"],"index":[0],"data":[[591000.0]]} | [
"state"
] | [
"{\"columns\":[\"state_name\",\"population\",\"area\",\"country_name\",\"capital\",\"density\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",3894000,51700.0,\"usa\",\"montgomery\",75.... | what is the area of the largest state <table_name> : state col : state_name | population | area | country_name | capital | density row 1 : alabama | 3894000 | 51700 | usa | montgomery | 75.3191489362 row 2 : alaska | 401800 | 591000 | usa | juneau | 0.6798646362 row 3 : arizona | 2718000 | 114000 | usa | phoenix | 23.8... | col : area row 1 : 591000 |
SELECT border_info.border FROM border_info WHERE border_info.state_name='kentucky'; | which state border kentucky | {"columns":["border"],"index":[0,1,2,3,4,5,6],"data":[["indiana"],["ohio"],["west virginia"],["virginia"],["tennessee"],["missouri"],["illinois"]]} | [
"border_info"
] | [
"{\"columns\":[\"state_name\",\"border\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,... | which state border kentucky <table_name> : border_info col : state_name | border row 1 : alabama | tennessee row 2 : alabama | georgia row 3 : alabama | florida row 4 : alabama | mississippi row 5 : arizona | utah row 6 : arizona | colorado row 7 : arizona | new mexico row 8 : arizona | california row 9 : arizona | nev... | col : border row 1 : indiana row 2 : ohio row 3 : west virginia row 4 : virginia row 5 : tennessee row 6 : missouri row 7 : illinois |
SELECT river.river_name FROM river WHERE river.traverse='texas' AND river.length=(SELECT max(river.length) FROM river WHERE river.traverse='texas'); | what is the longest river in texas | {"columns":["river_name"],"index":[0],"data":[["rio grande"]]} | [
"river"
] | [
"{\"columns\":[\"river_name\",\"length\",\"country_name\",\"traverse\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,... | what is the longest river in texas <table_name> : river col : river_name | length | country_name | traverse row 1 : mississippi | 3778 | usa | minnesota row 2 : mississippi | 3778 | usa | wisconsin row 3 : mississippi | 3778 | usa | iowa row 4 : mississippi | 3778 | usa | illinois row 5 : mississippi | 3778 | usa | mis... | col : river_name row 1 : rio grande |
SELECT city.state_name FROM city GROUP BY city.state_name ORDER BY sum(city.population) DESC LIMIT 1; | what state has the largest urban population ? | {"columns":["state_name"],"index":[0],"data":[["california"]]} | [
"city"
] | [
"{\"columns\":[\"city_name\",\"population\",\"country_name\",\"state_name\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,7... | what state has the largest urban population ? <table_name> : city col : city_name | population | country_name | state_name row 1 : birmingham | 284413 | usa | alabama row 2 : mobile | 200452 | usa | alabama row 3 : montgomery | 177857 | usa | alabama row 4 : huntsville | 142513 | usa | alabama row 5 : tuscaloosa | 7514... | col : state_name row 1 : california |
SELECT state.population FROM state WHERE state.state_name='alabama'; | how many citizens in alabama | {"columns":["population"],"index":[0],"data":[[3894000]]} | [
"state"
] | [
"{\"columns\":[\"state_name\",\"population\",\"area\",\"country_name\",\"capital\",\"density\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",3894000,51700.0,\"usa\",\"montgomery\",75.... | how many citizens in alabama <table_name> : state col : state_name | population | area | country_name | capital | density row 1 : alabama | 3894000 | 51700 | usa | montgomery | 75.3191489362 row 2 : alaska | 401800 | 591000 | usa | juneau | 0.6798646362 row 3 : arizona | 2718000 | 114000 | usa | phoenix | 23.8421052632... | col : population row 1 : 3894000 |
SELECT state.state_name FROM state WHERE state.population=(SELECT max(state.population) FROM state); | what state has the largest population | {"columns":["state_name"],"index":[0],"data":[["california"]]} | [
"state"
] | [
"{\"columns\":[\"state_name\",\"population\",\"area\",\"country_name\",\"capital\",\"density\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",3894000,51700.0,\"usa\",\"montgomery\",75.... | what state has the largest population <table_name> : state col : state_name | population | area | country_name | capital | density row 1 : alabama | 3894000 | 51700 | usa | montgomery | 75.3191489362 row 2 : alaska | 401800 | 591000 | usa | juneau | 0.6798646362 row 3 : arizona | 2718000 | 114000 | usa | phoenix | 23.8... | col : state_name row 1 : california |
SELECT city.population FROM city WHERE city.city_name='atlanta'; | what is the population of atlanta | {"columns":["population"],"index":[0],"data":[[425022]]} | [
"city"
] | [
"{\"columns\":[\"city_name\",\"population\",\"country_name\",\"state_name\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,7... | what is the population of atlanta <table_name> : city col : city_name | population | country_name | state_name row 1 : birmingham | 284413 | usa | alabama row 2 : mobile | 200452 | usa | alabama row 3 : montgomery | 177857 | usa | alabama row 4 : huntsville | 142513 | usa | alabama row 5 : tuscaloosa | 75143 | usa | al... | col : population row 1 : 425022 |
SELECT state.state_name FROM state WHERE state.area=(SELECT max(state.area) FROM state); | what is the largest state in the us | {"columns":["state_name"],"index":[0],"data":[["alaska"]]} | [
"state"
] | [
"{\"columns\":[\"state_name\",\"population\",\"area\",\"country_name\",\"capital\",\"density\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",3894000,51700.0,\"usa\",\"montgomery\",75.... | what is the largest state in the us <table_name> : state col : state_name | population | area | country_name | capital | density row 1 : alabama | 3894000 | 51700 | usa | montgomery | 75.3191489362 row 2 : alaska | 401800 | 591000 | usa | juneau | 0.6798646362 row 3 : arizona | 2718000 | 114000 | usa | phoenix | 23.842... | col : state_name row 1 : alaska |
SELECT river.traverse FROM river WHERE river.river_name='mississippi'; | through which states does the mississippi run | {"columns":["traverse"],"index":[0,1,2,3,4,5,6,7,8,9,10],"data":[["minnesota"],["wisconsin"],["iowa"],["illinois"],["missouri"],["kentucky"],["tennessee"],["arkansas"],["mississippi"],["louisiana"],["louisiana"]]} | [
"river"
] | [
"{\"columns\":[\"river_name\",\"length\",\"country_name\",\"traverse\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,... | through which states does the mississippi run <table_name> : river col : river_name | length | country_name | traverse row 1 : mississippi | 3778 | usa | minnesota row 2 : mississippi | 3778 | usa | wisconsin row 3 : mississippi | 3778 | usa | iowa row 4 : mississippi | 3778 | usa | illinois row 5 : mississippi | 3778 ... | col : traverse row 1 : minnesota row 2 : wisconsin row 3 : iowa row 4 : illinois row 5 : missouri row 6 : kentucky row 7 : tennessee row 8 : arkansas row 9 : mississippi row 10 : louisiana row 11 : louisiana |
SELECT state.state_name FROM state left outer join border_info ON state.state_name = border_info.state_name GROUP BY state.state_name having count(border_info.border) = (SELECT min(cnt) FROM (SELECT state.state_name, count(border_info.border) AS cnt FROM state left outer join border_info ON state.state_name = border_in... | what state borders the least states | {"columns":["state_name"],"index":[0,1],"data":[["alaska"],["hawaii"]]} | [
"state",
"border_info"
] | [
"{\"columns\":[\"state_name\",\"population\",\"area\",\"country_name\",\"capital\",\"density\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",3894000,51700.0,\"usa\",\"montgomery\",75.... | what state borders the least states <table_name> : state col : state_name | population | area | country_name | capital | density row 1 : alabama | 3894000 | 51700 | usa | montgomery | 75.3191489362 row 2 : alaska | 401800 | 591000 | usa | juneau | 0.6798646362 row 3 : arizona | 2718000 | 114000 | usa | phoenix | 23.842... | col : state_name row 1 : alaska row 2 : hawaii |
SELECT border_info.border FROM border_info WHERE border_info.state_name='california'; | what is the adjacent state of california | {"columns":["border"],"index":[0,1,2],"data":[["oregon"],["nevada"],["arizona"]]} | [
"border_info"
] | [
"{\"columns\":[\"state_name\",\"border\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,... | what is the adjacent state of california <table_name> : border_info col : state_name | border row 1 : alabama | tennessee row 2 : alabama | georgia row 3 : alabama | florida row 4 : alabama | mississippi row 5 : arizona | utah row 6 : arizona | colorado row 7 : arizona | new mexico row 8 : arizona | california row 9 : ... | col : border row 1 : oregon row 2 : nevada row 3 : arizona |
SELECT state.area FROM state WHERE state.state_name='california'; | what is the area of california | {"columns":["area"],"index":[0],"data":[[158000.0]]} | [
"state"
] | [
"{\"columns\":[\"state_name\",\"population\",\"area\",\"country_name\",\"capital\",\"density\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",3894000,51700.0,\"usa\",\"montgomery\",75.... | what is the area of california <table_name> : state col : state_name | population | area | country_name | capital | density row 1 : alabama | 3894000 | 51700 | usa | montgomery | 75.3191489362 row 2 : alaska | 401800 | 591000 | usa | juneau | 0.6798646362 row 3 : arizona | 2718000 | 114000 | usa | phoenix | 23.84210526... | col : area row 1 : 158000 |
SELECT highlow.state_name FROM highlow WHERE highlow.highest_elevation=(SELECT max(highlow.highest_elevation) FROM highlow); | what is the state wih the highest elevation in the united states | {"columns":["state_name"],"index":[0],"data":[["pennsylvania"]]} | [
"highlow"
] | [
"{\"columns\":[\"state_name\",\"highest_elevation\",\"lowest_point\",\"highest_point\",\"lowest_elevation\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",\"734\",\"gulf of mexico\",\"... | what is the state wih the highest elevation in the united states <table_name> : highlow col : state_name | highest_elevation | lowest_point | highest_point | lowest_elevation row 1 : alabama | 734 | gulf of mexico | cheaha mountain | 0 row 2 : alaska | 6194 | pacific ocean | mount mckinley | 0 row 3 : arizona | 3851 | ... | col : state_name row 1 : pennsylvania |
SELECT state.capital FROM state WHERE state.state_name='michigan'; | what is the capital of michigan | {"columns":["capital"],"index":[0],"data":[["lansing"]]} | [
"state"
] | [
"{\"columns\":[\"state_name\",\"population\",\"area\",\"country_name\",\"capital\",\"density\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",3894000,51700.0,\"usa\",\"montgomery\",75.... | what is the capital of michigan <table_name> : state col : state_name | population | area | country_name | capital | density row 1 : alabama | 3894000 | 51700 | usa | montgomery | 75.3191489362 row 2 : alaska | 401800 | 591000 | usa | juneau | 0.6798646362 row 3 : arizona | 2718000 | 114000 | usa | phoenix | 23.8421052... | col : capital row 1 : lansing |
SELECT highlow.highest_point FROM highlow WHERE highlow.state_name='new mexico'; | what is the highest point in new mexico | {"columns":["highest_point"],"index":[0],"data":[["wheeler peak"]]} | [
"highlow"
] | [
"{\"columns\":[\"state_name\",\"highest_elevation\",\"lowest_point\",\"highest_point\",\"lowest_elevation\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",\"734\",\"gulf of mexico\",\"... | what is the highest point in new mexico <table_name> : highlow col : state_name | highest_elevation | lowest_point | highest_point | lowest_elevation row 1 : alabama | 734 | gulf of mexico | cheaha mountain | 0 row 2 : alaska | 6194 | pacific ocean | mount mckinley | 0 row 3 : arizona | 3851 | colorado river | humphrey... | col : highest_point row 1 : wheeler peak |
SELECT count(city.city_name) FROM city WHERE city.city_name='austin'; | how many cities named austin are there in the usa | {"columns":["count(city.city_name)"],"index":[0],"data":[[1]]} | [
"city"
] | [
"{\"columns\":[\"city_name\",\"population\",\"country_name\",\"state_name\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,7... | how many cities named austin are there in the usa <table_name> : city col : city_name | population | country_name | state_name row 1 : birmingham | 284413 | usa | alabama row 2 : mobile | 200452 | usa | alabama row 3 : montgomery | 177857 | usa | alabama row 4 : huntsville | 142513 | usa | alabama row 5 : tuscaloosa | ... | col : count(city.city_name) row 1 : 1 |
SELECT highlow.lowest_point FROM highlow WHERE highlow.state_name='colorado'; | what is the lowest point of colorado | {"columns":["lowest_point"],"index":[0],"data":[["arkansas river"]]} | [
"highlow"
] | [
"{\"columns\":[\"state_name\",\"highest_elevation\",\"lowest_point\",\"highest_point\",\"lowest_elevation\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",\"734\",\"gulf of mexico\",\"... | what is the lowest point of colorado <table_name> : highlow col : state_name | highest_elevation | lowest_point | highest_point | lowest_elevation row 1 : alabama | 734 | gulf of mexico | cheaha mountain | 0 row 2 : alaska | 6194 | pacific ocean | mount mckinley | 0 row 3 : arizona | 3851 | colorado river | humphreys p... | col : lowest_point row 1 : arkansas river |
SELECT city.population FROM city WHERE city.city_name='austin'; | how many people live in austin | {"columns":["population"],"index":[0],"data":[[345496]]} | [
"city"
] | [
"{\"columns\":[\"city_name\",\"population\",\"country_name\",\"state_name\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,7... | how many people live in austin <table_name> : city col : city_name | population | country_name | state_name row 1 : birmingham | 284413 | usa | alabama row 2 : mobile | 200452 | usa | alabama row 3 : montgomery | 177857 | usa | alabama row 4 : huntsville | 142513 | usa | alabama row 5 : tuscaloosa | 75143 | usa | alaba... | col : population row 1 : 345496 |
SELECT city.city_name FROM city WHERE city.state_name='alaska' AND city.population=(SELECT min(city.population) FROM city WHERE city.state_name='alaska'); | what is the smallest city in alaska | {"columns":["city_name"],"index":[0],"data":[["anchorage"]]} | [
"city"
] | [
"{\"columns\":[\"city_name\",\"population\",\"country_name\",\"state_name\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,7... | what is the smallest city in alaska <table_name> : city col : city_name | population | country_name | state_name row 1 : birmingham | 284413 | usa | alabama row 2 : mobile | 200452 | usa | alabama row 3 : montgomery | 177857 | usa | alabama row 4 : huntsville | 142513 | usa | alabama row 5 : tuscaloosa | 75143 | usa | ... | col : city_name row 1 : anchorage |
SELECT state.population FROM state WHERE state.state_name IN(SELECT river.traverse FROM river WHERE river.river_name='mississippi'); | what are the populations of states through which the mississippi run | {"columns":["population"],"index":[0,1,2,3,4,5,6,7,8,9],"data":[[2286000],[11400000],[2913000],[2364000],[4206000],[4076000],[2520000],[4916000],[4591000],[4700000]]} | [
"river",
"state"
] | [
"{\"columns\":[\"river_name\",\"length\",\"country_name\",\"traverse\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,... | what are the populations of states through which the mississippi run <table_name> : river col : river_name | length | country_name | traverse row 1 : mississippi | 3778 | usa | minnesota row 2 : mississippi | 3778 | usa | wisconsin row 3 : mississippi | 3778 | usa | iowa row 4 : mississippi | 3778 | usa | illinois row ... | col : population row 1 : 2286000 row 2 : 11400000 row 3 : 2913000 row 4 : 2364000 row 5 : 4206000 row 6 : 4076000 row 7 : 2520000 row 8 : 4916000 row 9 : 4591000 row 10 : 4700000 |
SELECT border_info.border FROM border_info WHERE border_info.state_name='wisconsin'; | what states border wisconsin | {"columns":["border"],"index":[0,1,2,3],"data":[["michigan"],["illinois"],["iowa"],["minnesota"]]} | [
"border_info"
] | [
"{\"columns\":[\"state_name\",\"border\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,... | what states border wisconsin <table_name> : border_info col : state_name | border row 1 : alabama | tennessee row 2 : alabama | georgia row 3 : alabama | florida row 4 : alabama | mississippi row 5 : arizona | utah row 6 : arizona | colorado row 7 : arizona | new mexico row 8 : arizona | california row 9 : arizona | ne... | col : border row 1 : michigan row 2 : illinois row 3 : iowa row 4 : minnesota |
SELECT border_info.border FROM border_info WHERE border_info.state_name='arizona'; | which states border arizona | {"columns":["border"],"index":[0,1,2,3,4],"data":[["utah"],["colorado"],["new mexico"],["california"],["nevada"]]} | [
"border_info"
] | [
"{\"columns\":[\"state_name\",\"border\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,... | which states border arizona <table_name> : border_info col : state_name | border row 1 : alabama | tennessee row 2 : alabama | georgia row 3 : alabama | florida row 4 : alabama | mississippi row 5 : arizona | utah row 6 : arizona | colorado row 7 : arizona | new mexico row 8 : arizona | california row 9 : arizona | nev... | col : border row 1 : utah row 2 : colorado row 3 : new mexico row 4 : california row 5 : nevada |
SELECT city.city_name FROM city WHERE city.population=(SELECT max(city.population) FROM city,state WHERE city.city_name=state.capital); | what capital has the largest population | {"columns":["city_name"],"index":[0],"data":[["phoenix"]]} | [
"city"
] | [
"{\"columns\":[\"city_name\",\"population\",\"country_name\",\"state_name\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,7... | what capital has the largest population <table_name> : city col : city_name | population | country_name | state_name row 1 : birmingham | 284413 | usa | alabama row 2 : mobile | 200452 | usa | alabama row 3 : montgomery | 177857 | usa | alabama row 4 : huntsville | 142513 | usa | alabama row 5 : tuscaloosa | 75143 | us... | col : city_name row 1 : phoenix |
SELECT state.population FROM state WHERE state.state_name IN(SELECT border_info.border FROM border_info WHERE border_info.state_name='wyoming') AND state.population=(SELECT max(state.population) FROM state WHERE state.state_name IN(SELECT border_info.border FROM border_info WHERE border_info.state_name='wyoming' )); | how many people live in the smallest state bordering wyoming | {"columns":["population"],"index":[0],"data":[[2889000]]} | [
"state",
"border_info"
] | [
"{\"columns\":[\"state_name\",\"population\",\"area\",\"country_name\",\"capital\",\"density\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",3894000,51700.0,\"usa\",\"montgomery\",75.... | how many people live in the smallest state bordering wyoming <table_name> : state col : state_name | population | area | country_name | capital | density row 1 : alabama | 3894000 | 51700 | usa | montgomery | 75.3191489362 row 2 : alaska | 401800 | 591000 | usa | juneau | 0.6798646362 row 3 : arizona | 2718000 | 114000... | col : population row 1 : 2889000 |
SELECT river.river_name FROM river WHERE river.traverse='virginia'; | what river runs through virginia | {"columns":["river_name"],"index":[0,1],"data":[["potomac"],["roanoke"]]} | [
"river"
] | [
"{\"columns\":[\"river_name\",\"length\",\"country_name\",\"traverse\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,... | what river runs through virginia <table_name> : river col : river_name | length | country_name | traverse row 1 : mississippi | 3778 | usa | minnesota row 2 : mississippi | 3778 | usa | wisconsin row 3 : mississippi | 3778 | usa | iowa row 4 : mississippi | 3778 | usa | illinois row 5 : mississippi | 3778 | usa | misso... | col : river_name row 1 : potomac row 2 : roanoke |
SELECT state.population FROM state WHERE state.state_name IN(SELECT river.traverse FROM river WHERE river.river_name='mississippi'); | what are the populations of the states through which the mississippi river runs | {"columns":["population"],"index":[0,1,2,3,4,5,6,7,8,9],"data":[[2286000],[11400000],[2913000],[2364000],[4206000],[4076000],[2520000],[4916000],[4591000],[4700000]]} | [
"river",
"state"
] | [
"{\"columns\":[\"river_name\",\"length\",\"country_name\",\"traverse\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,... | what are the populations of the states through which the mississippi river runs <table_name> : river col : river_name | length | country_name | traverse row 1 : mississippi | 3778 | usa | minnesota row 2 : mississippi | 3778 | usa | wisconsin row 3 : mississippi | 3778 | usa | iowa row 4 : mississippi | 3778 | usa | il... | col : population row 1 : 2286000 row 2 : 11400000 row 3 : 2913000 row 4 : 2364000 row 5 : 4206000 row 6 : 4076000 row 7 : 2520000 row 8 : 4916000 row 9 : 4591000 row 10 : 4700000 |
SELECT count(city.state_name) FROM city WHERE city.city_name='springfield'; | how many states have cities or towns named springfield | {"columns":["count(city.state_name)"],"index":[0],"data":[[4]]} | [
"city"
] | [
"{\"columns\":[\"city_name\",\"population\",\"country_name\",\"state_name\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,7... | how many states have cities or towns named springfield <table_name> : city col : city_name | population | country_name | state_name row 1 : birmingham | 284413 | usa | alabama row 2 : mobile | 200452 | usa | alabama row 3 : montgomery | 177857 | usa | alabama row 4 : huntsville | 142513 | usa | alabama row 5 : tuscaloo... | col : count(city.state_name) row 1 : 4 |
SELECT border_info.border FROM border_info WHERE border_info.state_name='kentucky'; | what states border kentucky | {"columns":["border"],"index":[0,1,2,3,4,5,6],"data":[["indiana"],["ohio"],["west virginia"],["virginia"],["tennessee"],["missouri"],["illinois"]]} | [
"border_info"
] | [
"{\"columns\":[\"state_name\",\"border\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,... | what states border kentucky <table_name> : border_info col : state_name | border row 1 : alabama | tennessee row 2 : alabama | georgia row 3 : alabama | florida row 4 : alabama | mississippi row 5 : arizona | utah row 6 : arizona | colorado row 7 : arizona | new mexico row 8 : arizona | california row 9 : arizona | nev... | col : border row 1 : indiana row 2 : ohio row 3 : west virginia row 4 : virginia row 5 : tennessee row 6 : missouri row 7 : illinois |
SELECT state.state_name FROM state WHERE state.state_name IN(SELECT river.traverse FROM river WHERE river.river_name='rio grande') AND state.area=(SELECT max(state.area) FROM state WHERE state.state_name IN(SELECT river.traverse FROM river WHERE river.river_name='rio grande')); | what is the largest of the state that the rio grande runs through | {"columns":["state_name"],"index":[0],"data":[["texas"]]} | [
"river",
"state"
] | [
"{\"columns\":[\"river_name\",\"length\",\"country_name\",\"traverse\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,... | what is the largest of the state that the rio grande runs through <table_name> : river col : river_name | length | country_name | traverse row 1 : mississippi | 3778 | usa | minnesota row 2 : mississippi | 3778 | usa | wisconsin row 3 : mississippi | 3778 | usa | iowa row 4 : mississippi | 3778 | usa | illinois row 5 :... | col : state_name row 1 : texas |
SELECT state.density FROM state WHERE state.capital='austin'; | what is the population density in the state with capital austin | {"columns":["density"],"index":[0],"data":[[53.3306847272]]} | [
"state"
] | [
"{\"columns\":[\"state_name\",\"population\",\"area\",\"country_name\",\"capital\",\"density\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",3894000,51700.0,\"usa\",\"montgomery\",75.... | what is the population density in the state with capital austin <table_name> : state col : state_name | population | area | country_name | capital | density row 1 : alabama | 3894000 | 51700 | usa | montgomery | 75.3191489362 row 2 : alaska | 401800 | 591000 | usa | juneau | 0.6798646362 row 3 : arizona | 2718000 | 114... | col : density row 1 : 53.3306847272 |
SELECT state.capital FROM state WHERE state.state_name='hawaii'; | what is the capital of hawaii | {"columns":["capital"],"index":[0],"data":[["honolulu"]]} | [
"state"
] | [
"{\"columns\":[\"state_name\",\"population\",\"area\",\"country_name\",\"capital\",\"density\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",3894000,51700.0,\"usa\",\"montgomery\",75.... | what is the capital of hawaii <table_name> : state col : state_name | population | area | country_name | capital | density row 1 : alabama | 3894000 | 51700 | usa | montgomery | 75.3191489362 row 2 : alaska | 401800 | 591000 | usa | juneau | 0.6798646362 row 3 : arizona | 2718000 | 114000 | usa | phoenix | 23.842105263... | col : capital row 1 : honolulu |
SELECT state.population FROM state WHERE state.state_name='arizona'; | what is the population of arizona | {"columns":["population"],"index":[0],"data":[[2718000]]} | [
"state"
] | [
"{\"columns\":[\"state_name\",\"population\",\"area\",\"country_name\",\"capital\",\"density\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",3894000,51700.0,\"usa\",\"montgomery\",75.... | what is the population of arizona <table_name> : state col : state_name | population | area | country_name | capital | density row 1 : alabama | 3894000 | 51700 | usa | montgomery | 75.3191489362 row 2 : alaska | 401800 | 591000 | usa | juneau | 0.6798646362 row 3 : arizona | 2718000 | 114000 | usa | phoenix | 23.84210... | col : population row 1 : 2718000 |
SELECT highlow.state_name FROM highlow WHERE highlow.highest_elevation=(SELECT max(highlow.highest_elevation) FROM highlow); | what is the state that contains the highest point | {"columns":["state_name"],"index":[0],"data":[["pennsylvania"]]} | [
"highlow"
] | [
"{\"columns\":[\"state_name\",\"highest_elevation\",\"lowest_point\",\"highest_point\",\"lowest_elevation\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",\"734\",\"gulf of mexico\",\"... | what is the state that contains the highest point <table_name> : highlow col : state_name | highest_elevation | lowest_point | highest_point | lowest_elevation row 1 : alabama | 734 | gulf of mexico | cheaha mountain | 0 row 2 : alaska | 6194 | pacific ocean | mount mckinley | 0 row 3 : arizona | 3851 | colorado river ... | col : state_name row 1 : pennsylvania |
SELECT count(city.city_name) FROM city WHERE city.state_name='texas'; | how many cities does texas have | {"columns":["count(city.city_name)"],"index":[0],"data":[[30]]} | [
"city"
] | [
"{\"columns\":[\"city_name\",\"population\",\"country_name\",\"state_name\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,7... | how many cities does texas have <table_name> : city col : city_name | population | country_name | state_name row 1 : birmingham | 284413 | usa | alabama row 2 : mobile | 200452 | usa | alabama row 3 : montgomery | 177857 | usa | alabama row 4 : huntsville | 142513 | usa | alabama row 5 : tuscaloosa | 75143 | usa | alab... | col : count(city.city_name) row 1 : 30 |
SELECT state.capital FROM state WHERE state.area=(SELECT max(state.area) FROM state); | what is the capital city of the largest state in the us | {"columns":["capital"],"index":[0],"data":[["juneau"]]} | [
"state"
] | [
"{\"columns\":[\"state_name\",\"population\",\"area\",\"country_name\",\"capital\",\"density\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",3894000,51700.0,\"usa\",\"montgomery\",75.... | what is the capital city of the largest state in the us <table_name> : state col : state_name | population | area | country_name | capital | density row 1 : alabama | 3894000 | 51700 | usa | montgomery | 75.3191489362 row 2 : alaska | 401800 | 591000 | usa | juneau | 0.6798646362 row 3 : arizona | 2718000 | 114000 | us... | col : capital row 1 : juneau |
SELECT city.city_name FROM city WHERE city.population=(SELECT max(city.population) FROM city,state WHERE city.city_name=state.capital); | what is largest capital | {"columns":["city_name"],"index":[0],"data":[["phoenix"]]} | [
"city"
] | [
"{\"columns\":[\"city_name\",\"population\",\"country_name\",\"state_name\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,7... | what is largest capital <table_name> : city col : city_name | population | country_name | state_name row 1 : birmingham | 284413 | usa | alabama row 2 : mobile | 200452 | usa | alabama row 3 : montgomery | 177857 | usa | alabama row 4 : huntsville | 142513 | usa | alabama row 5 : tuscaloosa | 75143 | usa | alabama row ... | col : city_name row 1 : phoenix |
SELECT river.length FROM river WHERE river.length=(SELECT min(river.length) FROM river); | how long is the shortest river in the usa | {"columns":["length"],"index":[0,1,2,3],"data":[[451],[451],[451],[451]]} | [
"river"
] | [
"{\"columns\":[\"river_name\",\"length\",\"country_name\",\"traverse\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,... | how long is the shortest river in the usa <table_name> : river col : river_name | length | country_name | traverse row 1 : mississippi | 3778 | usa | minnesota row 2 : mississippi | 3778 | usa | wisconsin row 3 : mississippi | 3778 | usa | iowa row 4 : mississippi | 3778 | usa | illinois row 5 : mississippi | 3778 | us... | col : length row 1 : 451 row 2 : 451 row 3 : 451 row 4 : 451 |
SELECT city.population FROM city WHERE city.city_name=(SELECT state.capital FROM state WHERE state.state_name = 'texas'); | what is the size of the capital of texas | {"columns":["population"],"index":[0],"data":[[345496]]} | [
"city",
"state"
] | [
"{\"columns\":[\"city_name\",\"population\",\"country_name\",\"state_name\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,7... | what is the size of the capital of texas <table_name> : city col : city_name | population | country_name | state_name row 1 : birmingham | 284413 | usa | alabama row 2 : mobile | 200452 | usa | alabama row 3 : montgomery | 177857 | usa | alabama row 4 : huntsville | 142513 | usa | alabama row 5 : tuscaloosa | 75143 | u... | col : population row 1 : 345496 |
SELECT city.population FROM city WHERE city.city_name='austin' AND city.state_name='texas'; | what is the population of austin texas | {"columns":["population"],"index":[0],"data":[[345496]]} | [
"city"
] | [
"{\"columns\":[\"city_name\",\"population\",\"country_name\",\"state_name\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,7... | what is the population of austin texas <table_name> : city col : city_name | population | country_name | state_name row 1 : birmingham | 284413 | usa | alabama row 2 : mobile | 200452 | usa | alabama row 3 : montgomery | 177857 | usa | alabama row 4 : huntsville | 142513 | usa | alabama row 5 : tuscaloosa | 75143 | usa... | col : population row 1 : 345496 |
SELECT river.river_name FROM river WHERE river.traverse IN(SELECT border_info.border FROM border_info WHERE border_info.state_name='alabama'); | what rivers flow through states that alabama borders | {"columns":["river_name"],"index":[0,1,2,3,4,5,6,7,8],"data":[["mississippi"],["mississippi"],["chattahoochee"],["chattahoochee"],["chattahoochee"],["tennessee"],["tennessee"],["cumberland"],["tombigbee"]]} | [
"river",
"border_info"
] | [
"{\"columns\":[\"river_name\",\"length\",\"country_name\",\"traverse\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,... | what rivers flow through states that alabama borders <table_name> : river col : river_name | length | country_name | traverse row 1 : mississippi | 3778 | usa | minnesota row 2 : mississippi | 3778 | usa | wisconsin row 3 : mississippi | 3778 | usa | iowa row 4 : mississippi | 3778 | usa | illinois row 5 : mississippi ... | col : river_name row 1 : mississippi row 2 : mississippi row 3 : chattahoochee row 4 : chattahoochee row 5 : chattahoochee row 6 : tennessee row 7 : tennessee row 8 : cumberland row 9 : tombigbee |
SELECT city.city_name FROM city WHERE city.population=(SELECT max(city.population) FROM city); | what is the biggest city in the us | {"columns":["city_name"],"index":[0],"data":[["new york"]]} | [
"city"
] | [
"{\"columns\":[\"city_name\",\"population\",\"country_name\",\"state_name\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,7... | what is the biggest city in the us <table_name> : city col : city_name | population | country_name | state_name row 1 : birmingham | 284413 | usa | alabama row 2 : mobile | 200452 | usa | alabama row 3 : montgomery | 177857 | usa | alabama row 4 : huntsville | 142513 | usa | alabama row 5 : tuscaloosa | 75143 | usa | a... | col : city_name row 1 : new york |
SELECT state.state_name FROM state WHERE state.density=(SELECT min(state.density) FROM state); | which state has the least population density | {"columns":["state_name"],"index":[0],"data":[["alaska"]]} | [
"state"
] | [
"{\"columns\":[\"state_name\",\"population\",\"area\",\"country_name\",\"capital\",\"density\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",3894000,51700.0,\"usa\",\"montgomery\",75.... | which state has the least population density <table_name> : state col : state_name | population | area | country_name | capital | density row 1 : alabama | 3894000 | 51700 | usa | montgomery | 75.3191489362 row 2 : alaska | 401800 | 591000 | usa | juneau | 0.6798646362 row 3 : arizona | 2718000 | 114000 | usa | phoenix... | col : state_name row 1 : alaska |
SELECT highlow.lowest_elevation FROM highlow WHERE highlow.lowest_point='death valley'; | what is the elevation of death valley | {"columns":["lowest_elevation"],"index":[0],"data":[["-85"]]} | [
"highlow"
] | [
"{\"columns\":[\"state_name\",\"highest_elevation\",\"lowest_point\",\"highest_point\",\"lowest_elevation\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",\"734\",\"gulf of mexico\",\"... | what is the elevation of death valley <table_name> : highlow col : state_name | highest_elevation | lowest_point | highest_point | lowest_elevation row 1 : alabama | 734 | gulf of mexico | cheaha mountain | 0 row 2 : alaska | 6194 | pacific ocean | mount mckinley | 0 row 3 : arizona | 3851 | colorado river | humphreys ... | col : lowest_elevation row 1 : -85 |
SELECT city.city_name FROM city WHERE city.state_name='rhode island' AND city.population>150000; | what are the major cities in rhode island | {"columns":["city_name"],"index":[0],"data":[["providence"]]} | [
"city"
] | [
"{\"columns\":[\"city_name\",\"population\",\"country_name\",\"state_name\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,7... | what are the major cities in rhode island <table_name> : city col : city_name | population | country_name | state_name row 1 : birmingham | 284413 | usa | alabama row 2 : mobile | 200452 | usa | alabama row 3 : montgomery | 177857 | usa | alabama row 4 : huntsville | 142513 | usa | alabama row 5 : tuscaloosa | 75143 | ... | col : city_name row 1 : providence |
SELECT city.city_name FROM city WHERE city.state_name='missouri' AND city.population>150000; | what are the major cities in missouri | {"columns":["city_name"],"index":[0,1],"data":[["st. louis"],["kansas city"]]} | [
"city"
] | [
"{\"columns\":[\"city_name\",\"population\",\"country_name\",\"state_name\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,7... | what are the major cities in missouri <table_name> : city col : city_name | population | country_name | state_name row 1 : birmingham | 284413 | usa | alabama row 2 : mobile | 200452 | usa | alabama row 3 : montgomery | 177857 | usa | alabama row 4 : huntsville | 142513 | usa | alabama row 5 : tuscaloosa | 75143 | usa ... | col : city_name row 1 : st. louis row 2 : kansas city |
SELECT state.area FROM state WHERE state.density=(SELECT min(state.density) FROM state); | what is the area of the state with the smallest population density | {"columns":["area"],"index":[0],"data":[[591000.0]]} | [
"state"
] | [
"{\"columns\":[\"state_name\",\"population\",\"area\",\"country_name\",\"capital\",\"density\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",3894000,51700.0,\"usa\",\"montgomery\",75.... | what is the area of the state with the smallest population density <table_name> : state col : state_name | population | area | country_name | capital | density row 1 : alabama | 3894000 | 51700 | usa | montgomery | 75.3191489362 row 2 : alaska | 401800 | 591000 | usa | juneau | 0.6798646362 row 3 : arizona | 2718000 | ... | col : area row 1 : 591000 |
SELECT state.capital FROM state WHERE state.state_name='new hampshire'; | what is the capital of new hampshire | {"columns":["capital"],"index":[0],"data":[["concord"]]} | [
"state"
] | [
"{\"columns\":[\"state_name\",\"population\",\"area\",\"country_name\",\"capital\",\"density\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",3894000,51700.0,\"usa\",\"montgomery\",75.... | what is the capital of new hampshire <table_name> : state col : state_name | population | area | country_name | capital | density row 1 : alabama | 3894000 | 51700 | usa | montgomery | 75.3191489362 row 2 : alaska | 401800 | 591000 | usa | juneau | 0.6798646362 row 3 : arizona | 2718000 | 114000 | usa | phoenix | 23.84... | col : capital row 1 : concord |
SELECT highlow.state_name FROM highlow WHERE highlow.highest_elevation>(SELECT highlow.highest_elevation FROM highlow WHERE highlow.state_name='colorado'); | which states have points higher than the highest point in colorado | {"columns":["state_name"],"index":[0,1,2,3,4,5,6,7,8,9,10,11,12],"data":[["alabama"],["alaska"],["arkansas"],["california"],["connecticut"],["iowa"],["michigan"],["minnesota"],["missouri"],["new jersey"],["ohio"],["pennsylvania"],["wisconsin"]]} | [
"highlow"
] | [
"{\"columns\":[\"state_name\",\"highest_elevation\",\"lowest_point\",\"highest_point\",\"lowest_elevation\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",\"734\",\"gulf of mexico\",\"... | which states have points higher than the highest point in colorado <table_name> : highlow col : state_name | highest_elevation | lowest_point | highest_point | lowest_elevation row 1 : alabama | 734 | gulf of mexico | cheaha mountain | 0 row 2 : alaska | 6194 | pacific ocean | mount mckinley | 0 row 3 : arizona | 3851 ... | col : state_name row 1 : alabama row 2 : alaska row 3 : arkansas row 4 : california row 5 : connecticut row 6 : iowa row 7 : michigan row 8 : minnesota row 9 : missouri row 10 : new jersey row 11 : ohio row 12 : pennsylvania row 13 : wisconsin |
SELECT highlow.state_name FROM highlow WHERE highlow.highest_elevation=(SELECT max(highlow.highest_elevation) FROM highlow); | what state contains the highest point in the us | {"columns":["state_name"],"index":[0],"data":[["pennsylvania"]]} | [
"highlow"
] | [
"{\"columns\":[\"state_name\",\"highest_elevation\",\"lowest_point\",\"highest_point\",\"lowest_elevation\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",\"734\",\"gulf of mexico\",\"... | what state contains the highest point in the us <table_name> : highlow col : state_name | highest_elevation | lowest_point | highest_point | lowest_elevation row 1 : alabama | 734 | gulf of mexico | cheaha mountain | 0 row 2 : alaska | 6194 | pacific ocean | mount mckinley | 0 row 3 : arizona | 3851 | colorado river | ... | col : state_name row 1 : pennsylvania |
SELECT state.area FROM state WHERE state.state_name='north dakota'; | how big is north dakota | {"columns":["area"],"index":[0],"data":[[70700.0]]} | [
"state"
] | [
"{\"columns\":[\"state_name\",\"population\",\"area\",\"country_name\",\"capital\",\"density\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",3894000,51700.0,\"usa\",\"montgomery\",75.... | how big is north dakota <table_name> : state col : state_name | population | area | country_name | capital | density row 1 : alabama | 3894000 | 51700 | usa | montgomery | 75.3191489362 row 2 : alaska | 401800 | 591000 | usa | juneau | 0.6798646362 row 3 : arizona | 2718000 | 114000 | usa | phoenix | 23.8421052632 row ... | col : area row 1 : 70700 |
SELECT river.traverse FROM river GROUP BY river.traverse ORDER BY count(1) DESC LIMIT 1; | what state has the most rivers running through it ? | {"columns":["traverse"],"index":[0],"data":[["colorado"]]} | [
"river"
] | [
"{\"columns\":[\"river_name\",\"length\",\"country_name\",\"traverse\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,... | what state has the most rivers running through it ? <table_name> : river col : river_name | length | country_name | traverse row 1 : mississippi | 3778 | usa | minnesota row 2 : mississippi | 3778 | usa | wisconsin row 3 : mississippi | 3778 | usa | iowa row 4 : mississippi | 3778 | usa | illinois row 5 : mississippi |... | col : traverse row 1 : colorado |
SELECT state.area FROM state WHERE state.state_name='massachusetts'; | how big is massachusetts | {"columns":["area"],"index":[0],"data":[[8284.0]]} | [
"state"
] | [
"{\"columns\":[\"state_name\",\"population\",\"area\",\"country_name\",\"capital\",\"density\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",3894000,51700.0,\"usa\",\"montgomery\",75.... | how big is massachusetts <table_name> : state col : state_name | population | area | country_name | capital | density row 1 : alabama | 3894000 | 51700 | usa | montgomery | 75.3191489362 row 2 : alaska | 401800 | 591000 | usa | juneau | 0.6798646362 row 3 : arizona | 2718000 | 114000 | usa | phoenix | 23.8421052632 row... | col : area row 1 : 8284 |
SELECT b1.border FROM border_info b1, border_info b2, border_info b3, border_info b4 WHERE b1.state_name = b2.border AND b2.state_name = b3.border AND b3.state_name = b4.border AND b4.state_name = 'texas'; | what states border states that border states that border states that border texas | {"columns":["border"],"index":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99... | [
"border_info"
] | [
"{\"columns\":[\"state_name\",\"border\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,... | what states border states that border states that border states that border texas <table_name> : border_info col : state_name | border row 1 : alabama | tennessee row 2 : alabama | georgia row 3 : alabama | florida row 4 : alabama | mississippi row 5 : arizona | utah row 6 : arizona | colorado row 7 : arizona | new mex... | col : border row 1 : tennessee row 2 : tennessee row 3 : tennessee row 4 : georgia row 5 : georgia row 6 : georgia row 7 : florida row 8 : florida row 9 : florida row 10 : mississippi row 11 : mississippi row 12 : mississippi row 13 : utah row 14 : utah row 15 : utah row 16 : utah row 17 : colorado row 18 : colorado ro... |
SELECT count(border_info.border) FROM border_info WHERE border_info.state_name=(SELECT state.state_name FROM state WHERE state.capital='boston'); | how many states border on the state whose capital is boston | {"columns":["count(border_info.border)"],"index":[0],"data":[[5]]} | [
"state",
"border_info"
] | [
"{\"columns\":[\"state_name\",\"population\",\"area\",\"country_name\",\"capital\",\"density\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",3894000,51700.0,\"usa\",\"montgomery\",75.... | how many states border on the state whose capital is boston <table_name> : state col : state_name | population | area | country_name | capital | density row 1 : alabama | 3894000 | 51700 | usa | montgomery | 75.3191489362 row 2 : alaska | 401800 | 591000 | usa | juneau | 0.6798646362 row 3 : arizona | 2718000 | 114000 ... | col : count(border_info.border) row 1 : 5 |
SELECT river.river_name FROM river WHERE river.length=(SELECT max(river.length) FROM river); | what is the longest river | {"columns":["river_name"],"index":[0,1,2,3,4,5,6],"data":[["missouri"],["missouri"],["missouri"],["missouri"],["missouri"],["missouri"],["missouri"]]} | [
"river"
] | [
"{\"columns\":[\"river_name\",\"length\",\"country_name\",\"traverse\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,... | what is the longest river <table_name> : river col : river_name | length | country_name | traverse row 1 : mississippi | 3778 | usa | minnesota row 2 : mississippi | 3778 | usa | wisconsin row 3 : mississippi | 3778 | usa | iowa row 4 : mississippi | 3778 | usa | illinois row 5 : mississippi | 3778 | usa | missouri row... | col : river_name row 1 : missouri row 2 : missouri row 3 : missouri row 4 : missouri row 5 : missouri row 6 : missouri row 7 : missouri |
SELECT state.state_name FROM state WHERE state.area=(SELECT max(state.area) FROM state); | what is the largest state | {"columns":["state_name"],"index":[0],"data":[["alaska"]]} | [
"state"
] | [
"{\"columns\":[\"state_name\",\"population\",\"area\",\"country_name\",\"capital\",\"density\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",3894000,51700.0,\"usa\",\"montgomery\",75.... | what is the largest state <table_name> : state col : state_name | population | area | country_name | capital | density row 1 : alabama | 3894000 | 51700 | usa | montgomery | 75.3191489362 row 2 : alaska | 401800 | 591000 | usa | juneau | 0.6798646362 row 3 : arizona | 2718000 | 114000 | usa | phoenix | 23.8421052632 ro... | col : state_name row 1 : alaska |
SELECT state.capital FROM state WHERE state.state_name='texas'; | can you tell me the capital of texas | {"columns":["capital"],"index":[0],"data":[["austin"]]} | [
"state"
] | [
"{\"columns\":[\"state_name\",\"population\",\"area\",\"country_name\",\"capital\",\"density\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",3894000,51700.0,\"usa\",\"montgomery\",75.... | can you tell me the capital of texas <table_name> : state col : state_name | population | area | country_name | capital | density row 1 : alabama | 3894000 | 51700 | usa | montgomery | 75.3191489362 row 2 : alaska | 401800 | 591000 | usa | juneau | 0.6798646362 row 3 : arizona | 2718000 | 114000 | usa | phoenix | 23.84... | col : capital row 1 : austin |
SELECT state.population FROM state WHERE state.state_name='south dakota'; | what is the population of south dakota | {"columns":["population"],"index":[0],"data":[[690767]]} | [
"state"
] | [
"{\"columns\":[\"state_name\",\"population\",\"area\",\"country_name\",\"capital\",\"density\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",3894000,51700.0,\"usa\",\"montgomery\",75.... | what is the population of south dakota <table_name> : state col : state_name | population | area | country_name | capital | density row 1 : alabama | 3894000 | 51700 | usa | montgomery | 75.3191489362 row 2 : alaska | 401800 | 591000 | usa | juneau | 0.6798646362 row 3 : arizona | 2718000 | 114000 | usa | phoenix | 23.... | col : population row 1 : 690767 |
SELECT state.area FROM state WHERE state.state_name='new mexico'; | what is the area of new mexico | {"columns":["area"],"index":[0],"data":[[121600.0]]} | [
"state"
] | [
"{\"columns\":[\"state_name\",\"population\",\"area\",\"country_name\",\"capital\",\"density\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",3894000,51700.0,\"usa\",\"montgomery\",75.... | what is the area of new mexico <table_name> : state col : state_name | population | area | country_name | capital | density row 1 : alabama | 3894000 | 51700 | usa | montgomery | 75.3191489362 row 2 : alaska | 401800 | 591000 | usa | juneau | 0.6798646362 row 3 : arizona | 2718000 | 114000 | usa | phoenix | 23.84210526... | col : area row 1 : 121600 |
SELECT state.state_name FROM state WHERE state.state_name NOT IN(SELECT border_info.border FROM border_info WHERE border_info.state_name='texas'); | which states does not border texas | {"columns":["state_name"],"index":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],"data":[["alabama"],["alaska"],["arizona"],["california"],["colorado"],["connecticut"],["delaware"],["district of columbia"],["florida"],["georgia"],["ha... | [
"state",
"border_info"
] | [
"{\"columns\":[\"state_name\",\"population\",\"area\",\"country_name\",\"capital\",\"density\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",3894000,51700.0,\"usa\",\"montgomery\",75.... | which states does not border texas <table_name> : state col : state_name | population | area | country_name | capital | density row 1 : alabama | 3894000 | 51700 | usa | montgomery | 75.3191489362 row 2 : alaska | 401800 | 591000 | usa | juneau | 0.6798646362 row 3 : arizona | 2718000 | 114000 | usa | phoenix | 23.8421... | col : state_name row 1 : alabama row 2 : alaska row 3 : arizona row 4 : california row 5 : colorado row 6 : connecticut row 7 : delaware row 8 : district of columbia row 9 : florida row 10 : georgia row 11 : hawaii row 12 : idaho row 13 : illinois row 14 : indiana row 15 : iowa row 16 : kansas row 17 : kentucky row 18 ... |
SELECT count(city.city_name) FROM city WHERE city.state_name IN(SELECT border_info.border FROM border_info WHERE border_info.state_name='nebraska') AND city.population>150000; | how many major cities are in states bordering nebraska | {"columns":["count(city.city_name)"],"index":[0],"data":[[8]]} | [
"city",
"border_info"
] | [
"{\"columns\":[\"city_name\",\"population\",\"country_name\",\"state_name\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,7... | how many major cities are in states bordering nebraska <table_name> : city col : city_name | population | country_name | state_name row 1 : birmingham | 284413 | usa | alabama row 2 : mobile | 200452 | usa | alabama row 3 : montgomery | 177857 | usa | alabama row 4 : huntsville | 142513 | usa | alabama row 5 : tuscaloo... | col : count(city.city_name) row 1 : 8 |
SELECT state.state_name FROM state WHERE state.capital='salem'; | what state has the capital salem | {"columns":["state_name"],"index":[0],"data":[["oregon"]]} | [
"state"
] | [
"{\"columns\":[\"state_name\",\"population\",\"area\",\"country_name\",\"capital\",\"density\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",3894000,51700.0,\"usa\",\"montgomery\",75.... | what state has the capital salem <table_name> : state col : state_name | population | area | country_name | capital | density row 1 : alabama | 3894000 | 51700 | usa | montgomery | 75.3191489362 row 2 : alaska | 401800 | 591000 | usa | juneau | 0.6798646362 row 3 : arizona | 2718000 | 114000 | usa | phoenix | 23.842105... | col : state_name row 1 : oregon |
SELECT count(border_info.border) FROM border_info WHERE border_info.state_name=(SELECT state.state_name FROM state WHERE state.area=(SELECT max(state.area) FROM state)); | how many states border the largest state | {"columns":["count(border_info.border)"],"index":[0],"data":[[0]]} | [
"state",
"border_info"
] | [
"{\"columns\":[\"state_name\",\"population\",\"area\",\"country_name\",\"capital\",\"density\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",3894000,51700.0,\"usa\",\"montgomery\",75.... | how many states border the largest state <table_name> : state col : state_name | population | area | country_name | capital | density row 1 : alabama | 3894000 | 51700 | usa | montgomery | 75.3191489362 row 2 : alaska | 401800 | 591000 | usa | juneau | 0.6798646362 row 3 : arizona | 2718000 | 114000 | usa | phoenix | 2... | col : count(border_info.border) row 1 : 0 |
SELECT city.city_name FROM city WHERE city.population=(SELECT max(city.population) FROM city); | what is the biggest city in usa | {"columns":["city_name"],"index":[0],"data":[["new york"]]} | [
"city"
] | [
"{\"columns\":[\"city_name\",\"population\",\"country_name\",\"state_name\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,7... | what is the biggest city in usa <table_name> : city col : city_name | population | country_name | state_name row 1 : birmingham | 284413 | usa | alabama row 2 : mobile | 200452 | usa | alabama row 3 : montgomery | 177857 | usa | alabama row 4 : huntsville | 142513 | usa | alabama row 5 : tuscaloosa | 75143 | usa | alab... | col : city_name row 1 : new york |
SELECT city.city_name FROM city WHERE city.state_name='california'; | what cities in california | {"columns":["city_name"],"index":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70],"data":[["los angeles"],["san diego"],["san francisco"],["san jose"],["long beach"... | [
"city"
] | [
"{\"columns\":[\"city_name\",\"population\",\"country_name\",\"state_name\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,7... | what cities in california <table_name> : city col : city_name | population | country_name | state_name row 1 : birmingham | 284413 | usa | alabama row 2 : mobile | 200452 | usa | alabama row 3 : montgomery | 177857 | usa | alabama row 4 : huntsville | 142513 | usa | alabama row 5 : tuscaloosa | 75143 | usa | alabama ro... | col : city_name row 1 : los angeles row 2 : san diego row 3 : san francisco row 4 : san jose row 5 : long beach row 6 : oakland row 7 : sacramento row 8 : anaheim row 9 : fresno row 10 : santa ana row 11 : riverside row 12 : huntington beach row 13 : stockton row 14 : glendale row 15 : fremont row 16 : torrance row 17 ... |
SELECT river.river_name FROM river WHERE river.traverse='oregon'; | what rivers are in oregon | {"columns":["river_name"],"index":[0,1],"data":[["snake"],["columbia"]]} | [
"river"
] | [
"{\"columns\":[\"river_name\",\"length\",\"country_name\",\"traverse\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,... | what rivers are in oregon <table_name> : river col : river_name | length | country_name | traverse row 1 : mississippi | 3778 | usa | minnesota row 2 : mississippi | 3778 | usa | wisconsin row 3 : mississippi | 3778 | usa | iowa row 4 : mississippi | 3778 | usa | illinois row 5 : mississippi | 3778 | usa | missouri row... | col : river_name row 1 : snake row 2 : columbia |
SELECT state.population FROM state WHERE state.state_name='minnesota'; | what is the population of minnesota | {"columns":["population"],"index":[0],"data":[[4076000]]} | [
"state"
] | [
"{\"columns\":[\"state_name\",\"population\",\"area\",\"country_name\",\"capital\",\"density\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",3894000,51700.0,\"usa\",\"montgomery\",75.... | what is the population of minnesota <table_name> : state col : state_name | population | area | country_name | capital | density row 1 : alabama | 3894000 | 51700 | usa | montgomery | 75.3191489362 row 2 : alaska | 401800 | 591000 | usa | juneau | 0.6798646362 row 3 : arizona | 2718000 | 114000 | usa | phoenix | 23.842... | col : population row 1 : 4076000 |
SELECT state.density FROM state WHERE state.state_name='wyoming'; | what is the population density of wyoming | {"columns":["density"],"index":[0],"data":[[4.8007545318]]} | [
"state"
] | [
"{\"columns\":[\"state_name\",\"population\",\"area\",\"country_name\",\"capital\",\"density\"],\"index\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],\"data\":[[\"alabama\",3894000,51700.0,\"usa\",\"montgomery\",75.... | what is the population density of wyoming <table_name> : state col : state_name | population | area | country_name | capital | density row 1 : alabama | 3894000 | 51700 | usa | montgomery | 75.3191489362 row 2 : alaska | 401800 | 591000 | usa | juneau | 0.6798646362 row 3 : arizona | 2718000 | 114000 | usa | phoenix | ... | col : density row 1 : 4.8007545318 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.